Loading…

Gradient and Directional Derivative Tool

Math Calculus • Differential Equations

View all topics

Compute the gradient vector \(\nabla f\), normalize a direction vector, find the directional derivative, and identify the maximum rate of change. The graph shows a 2D gradient field, the selected direction arrow, the gradient arrow, and numeric axes with units.

Gradient \(\displaystyle \nabla f=\left\langle f_x,f_y,f_z\right\rangle\) Unit direction \(\displaystyle \mathbf{u}=\frac{\mathbf{v}}{\|\mathbf{v}\|}\) Directional derivative \(\displaystyle D_{\mathbf{u}}f=\nabla f\cdot\mathbf{u}\) Maximum rate \(\displaystyle \max D_{\mathbf{u}}f=\|\nabla f\|\)

Function, point, and direction

Supported: variables x, y, z, powers, fractions, implicit multiplication, sin, cos, tan, sqrt, ln, exp, and constants pi, e.
Examples: 3,4, <3,4>, 1,2,2.
Live preview

Quick examples

Ready
Enter a function and click “Compute gradient”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is the gradient vector?

The gradient vector is the vector of partial derivatives. For a two-variable function, grad f = <fx, fy>.

What is a directional derivative?

A directional derivative measures the rate of change of a function in a specified unit direction u. It is computed as grad f dot u.

Does the direction vector need to be a unit vector?

For a standard directional derivative, yes. This calculator can normalize the entered direction vector automatically.

What is the maximum rate of change?

The maximum rate of change is the magnitude of the gradient vector, ||grad f||.

Which direction gives the maximum rate of change?

The direction of maximum increase is the direction of the gradient vector.

What does the graph show?

The graph shows a 2D gradient vector field for f(x,y,z0), along with the selected point, gradient arrow, direction arrow, and projection arrow.