Explore gradient vector fields, contour plots, and optimization paths
Click anywhere on the plot to compute the gradient at that point or start a descent path
Current Function: f(x,y) = x² + y²
Gradient Vector: ∇f = ⟨∂f/∂x, ∂f/∂y⟩
The gradient vector points in the direction of steepest ascent and is perpendicular to contour lines.
Gradient Descent: xn+1 = xn - α∇f(xn)
This iterative algorithm moves downhill to find local minima.