What does gradient mean?
For f(x₁,…,xₙ), the gradient collects the partial derivatives into a vector at each input. At a point, its dot product with a unit direction gives the directional derivative in that direction. A zero gradient identifies a stationary point when the function is differentiable, but does not by itself classify that point as a maximum or minimum.
∇f
Gradient as the vector of first partial derivatives
Gradient examples
Example 1
Find the gradient of f(x,y)=x²+xy+y².
Answer: ∇f=(2x+y, x+2y)
Differentiate with respect to x and y separately, then place the results in a vector.
Properties and types
- The gradient is perpendicular to a regular level curve or level surface.
- The directional derivative along a unit vector u is ∇f·u.
- The gradient is zero at differentiable interior local extrema.
Where is gradient used?
This concept appears in a range of mathematical and practical settings:
- Steepest-ascent methods
- Optimization
- Potential fields and contour maps
Common misunderstandings
- Using a non-unit direction when a unit directional derivative is requested.
- Treating the gradient as a scalar.
- Assuming every zero-gradient point is an extremum.