How Do You Graph a 3D Equation in Google Search?

You can render an interactive 3D rotatable surface graph directly in Google Search by typing a two-variable mathematical equation into the search bar using the variables x and y. Google's built-in graphing calculator automatically detects valid equations in two variables and displays a 3D plot above the search results that you can click and drag to rotate, zoom, and inspect.

How to Format Your Equation

To trigger the 3D graphing tool, enter an expression that defines \(z\) implicitly or explicitly in terms of \(x\) and \(y\). You do not need to include z = at the beginning; simply typing the expression itself is enough.

For example, typing sin(x) * cos(y) or x^2 + y^2 into Google Search will immediately open the interactive 3D grapher. You can also use standard mathematical functions and constants, such as:

  • Trigonometric functions: sin(x), cos(y), tan(x + y)
  • Exponential and logarithmic functions: exp(-x^2 - y^2), ln(x^2 + y^2 + 1)
  • Powers and roots: x^2 - y^2, sqrt(x^2 + y^2)
  • Constants: pi, e

Interacting with the 3D Graph

Once the graph appears, you can manipulate it directly in your browser:

  • Rotate: Click and drag anywhere on the 3D plot to rotate the surface around its axes and view it from different angles.
  • Zoom: Use your mouse scroll wheel or the on-screen zoom controls to zoom in and out.
  • Edit the equation: Click the equation input box at the top of the grapher to modify the formula or adjust the viewing range for \(x\), \(y\), and \(z\) without leaving the page.

Tips for Better Results

If Google Search treats your query as a regular web search instead of opening the grapher, make sure you are using lowercase x and y as your variables and avoid extra words in the search bar. Keeping the query strictly to the mathematical expression, such as cos(sqrt(x^2 + y^2)), ensures the 3D graphing tool activates reliably.