Interactive Gradient and Contour Plot Explorer

The gradient of a two variable function $f(x,y)$, denoted $\nabla f(x,y)$, is the vector of partial derivatives: \[ \nabla f(x,y) = \left( \frac{\partial f}{\partial x}, \frac{\partial f}{\partial y} \right). \] So, you differentiate $f(x,y)$ with respect to $x$ while treating $y$ as constant, and then with respect to $y$ while treating $x$ as constant.

Interpretation of the Gradient

\[ \nabla f(x_0,y_0) = \left( \frac{\partial f}{\partial x}(x_0,y_0), \frac{\partial f}{\partial y}(x_0,y_0) \right). \] This interactive tool allows you to visualize the relationship between a 3D surface, its contour plot, and the gradient vector field. Explore how the gradient vector always points in the direction of steepest ascent and is perpendicular to the contour lines. You can customize the function, domain bounds, and visualization options to better understand multivariable calculus concepts.

Controls & Settings

Try: x^2 + y^2, sin(x)*cos(y), exp(-x^2-y^2), etc.
Show Surface
Show Gradient
Show Contour Plot
Orbit Camera
Select Point
Switch to "Select Point" mode to click on the contour plot
Coordinates update when you click on the contour plot

Mathematical Information

$$z = x^2 + y^2$$
Gradient at (1.00, 1.00): ?f = (2.0000, 2.0000)
Mode: Orbit Camera
Click on contour plot to set gradient point

More Links and References