Home

The Gradient Calculator

Compute the gradient vector and its magnitude.

展开更多 ▾
∇f = (f_x, f_y, f_z)
include z for 3D, e.g. x^2+y^2+z^2

📖 Tutorial | The Gradient

1. Definition
The gradient ∇f=(f_x,f_y,f_z) points in the direction of steepest ascent; its magnitude |∇f| is the largest directional derivative.
2. Symbols
∇fgradient vector
|∇f|magnitude
∇fsteepest ascent
−∇fsteepest descent
3. How it works
  • Assemble partials into a vector;
  • Compute its norm;
  • That direction steepest ascent.
4. Steps
  1. Enter f (add z for 3D);
  2. Enter the point;
  3. Click Calculate.
5. Example
Example: f=x²+y² at (1,1).
Solution: ∇f=(2,2), |∇f|=√8≈2.828, pointing northeast.
6. Pitfalls
The gradient is a vector;
It is perpendicular to level curves/surfaces;
Leave z₀ blank for 2D.

❓ FAQ | Gradient

Geometric meaning?
Perpendicular to level curves, toward fastest increase.
Relation to directional derivative?
D_u f=∇f·u; max is |∇f|.
Why the magnitude?
It tells the fastest rate.
3D?
Include z and fill z₀.
Zero gradient?
A critical point: extrema or saddle.