Gradient Vector and Nabla Operator
The gradient vector captures two essential pieces of information about a scalar function: the direction in which the function increases most rapidly, and the rate of that increase. Understanding the gradient geometrically connects the algebra of partial derivatives to the shape and behavior of surfaces in higher dimensions.
Definition and Notation
The gradient of a scalar function is denoted (read "del f" or "nabla f"). The symbol is the nabla operator, a vector differential operator defined in Cartesian coordinates as:
When you apply to a scalar function , you get the gradient vector:
Each component is just the partial derivative of with respect to that coordinate. For a function of two variables , the gradient lives in and has only the and components.
Scalar and Vector Fields
A scalar field assigns a single number to every point in space. Temperature at each point in a room or the elevation of a terrain are scalar fields. A vector field assigns a vector to every point, like the velocity of a fluid at each location.
The gradient bridges these two ideas: it takes a scalar field as input and produces a vector field as output. At every point in the domain, gives you a vector that encodes both the direction and magnitude of the steepest increase in .

Gradient Computation
To compute , take the partial derivative with respect to each variable and assemble the results into a vector.
Example: Let .
So .
At the point , this evaluates to . The function increases fastest in the direction of , and the rate of that maximum increase is .
Geometric Interpretation

Level Curves and Surfaces
A level curve (in 2D) or level surface (in 3D) is the set of all points where takes a constant value . Think of contour lines on a topographic map: each line connects points at the same elevation.
The gradient vector at a point is always perpendicular to the level curve or level surface passing through that point. This is one of the most important geometric facts about the gradient. It means:
- points "across" level curves, from lower values toward higher values.
- The magnitude tells you how tightly packed the level curves are. Where the gradient is large, level curves are close together (the function is changing rapidly). Where the gradient is small, level curves are spread apart.
If you're standing on a hillside, the gradient points straight uphill, perpendicular to the contour line under your feet.
Normal Vector and Tangent Plane
For a level surface defined by , the gradient evaluated at a point on that surface serves as a normal vector to the surface at .
This gives you a direct way to write the equation of the tangent plane at :
This works because the tangent plane consists of all displacement vectors from that are perpendicular to , and "perpendicular" means the dot product with is zero.
Orthogonality and Gradient Magnitude
Two vectors are orthogonal when their dot product equals zero. Any vector tangent to a level surface at a point must be orthogonal to at that point. This is why the gradient is normal to the surface: it's perpendicular to every possible tangent direction along the surface.
The magnitude has a direct interpretation as the maximum rate of change of per unit distance. A few key cases:
- Large : the function value is changing rapidly. Level curves/surfaces are closely spaced.
- Small : the function is nearly flat in that region.
- : this is a critical point. The function has no preferred direction of increase, which occurs at local maxima, local minima, or saddle points. No tangent plane is defined by the gradient at such points (since the normal vector is the zero vector).