Calculate the gradient vector of a multivariable function, evaluate it at a point, find its magnitude, and determine the direction of steepest ascent.
The gradient is a vector containing all first partial derivatives of a scalar-valued multivariable function. It describes how the function changes with respect to each independent variable.
For a function of two variables, \(f(x,y)\), the gradient is
For a function of three variables, \(f(x,y,z)\), the gradient is
Consider
Its partial derivatives are
Therefore,
At \(P=(1,2)\),
and \[ \|\nabla f(1,2)\|=\sqrt{41}. \]
The gradient points in the direction in which the function increases most rapidly.
The magnitude of the gradient gives the maximum rate of increase per unit distance.
At a regular point, the gradient is perpendicular to the level curve of the scalar function.
If \(\mathbf u\) is a unit vector, then the directional derivative is
The maximum directional derivative occurs when \(\mathbf u\) points in the same direction as the gradient.
See the Directional Derivative Calculator for directional-change calculations.
For a scalar field \(f(x,y,z)\), the gradient is a three-dimensional vector.
For example,
has gradient
and therefore
x,
y,
z
+,
-,
*,
/,
^
Implicit multiplication is supported:
2x,
3sin(x),
x(y+1).
sin,
cos,
tan,
sec,
csc,
cot
ln,
log,
log10,
exp,
sqrt,
asin,
acos,
atan
Click an example to fill the calculator. You still need to press Calculate Gradient.
Calculate the rate of change of a function in a specified direction.
Calculate the divergence of a vector field.
Calculate the curl of a three-dimensional vector field.
Calculate the Jacobian matrix of vector-valued functions.
Calculate the matrix of second-order partial derivatives.
Find and analyze critical points of multivariable functions.