Fiveable

Calculus IV Unit 6 Review

QR code for Calculus IV practice questions

6.3 Relationship between directional derivatives and the gradient

6.3 Relationship between directional derivatives and the gradient

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
Calculus IV
Unit & Topic Study Guides

Gradient and Directional Derivatives

Relationship between Gradient and Directional Derivatives

The gradient vector f(x,y,z)\nabla f(x, y, z) points in the direction of the maximum rate of change of a function f(x,y,z)f(x, y, z) at a given point. Its components are the partial derivatives with respect to each variable:

f(x,y,z)=fx(x,y,z),  fy(x,y,z),  fz(x,y,z)\nabla f(x, y, z) = \langle f_x(x, y, z),\; f_y(x, y, z),\; f_z(x, y, z) \rangle

One geometric fact worth remembering: the gradient is always perpendicular to the level curves (in 2D) or level surfaces (in 3D) of the function at the point where it's calculated. This makes sense if you think about it: along a level surface, ff doesn't change at all, so the direction of greatest change must point away from that surface, i.e., normal to it.

The directional derivative Duf(x,y,z)D_{\vec{u}}f(x, y, z) measures the rate of change of ff in the direction of a unit vector u\vec{u}. The core formula connecting it to the gradient is:

Duf(x,y,z)=f(x,y,z)uD_{\vec{u}}f(x, y, z) = \nabla f(x, y, z) \cdot \vec{u}

Because this is a dot product, you can also write it as:

Duf=fcosθD_{\vec{u}}f = \|\nabla f\| \cos\theta

where θ\theta is the angle between f\nabla f and u\vec{u}. This form makes the sign behavior obvious:

  • Positive when u\vec{u} has a component along the gradient direction (θ<90°\theta < 90°), meaning ff is increasing.
  • Negative when u\vec{u} points partly against the gradient (θ>90°\theta > 90°), meaning ff is decreasing.
  • Zero when u\vec{u} is perpendicular to the gradient (θ=90°\theta = 90°), meaning you're moving along a level surface.
Relationship between Gradient and Directional Derivatives, Directional derivative - Wikipedia

Properties of Gradient and Directional Derivatives

Since Duf=fcosθD_{\vec{u}}f = \|\nabla f\| \cos\theta, the extreme values follow directly from the range of cosine:

  • Maximum directional derivative: f(x,y,z)\|\nabla f(x, y, z)\|, occurring when u\vec{u} is parallel to f\nabla f (θ=0\theta = 0, so cosθ=1\cos\theta = 1).
  • Minimum directional derivative: f(x,y,z)-\|\nabla f(x, y, z)\|, occurring when u\vec{u} is antiparallel to f\nabla f (θ=π\theta = \pi, so cosθ=1\cos\theta = -1).

In other words, the gradient's magnitude tells you the steepest possible rate of increase, and the gradient's direction tells you which way to go to achieve it. Moving opposite to the gradient gives the steepest decrease.

If ff is differentiable at a point, then the directional derivative exists in every direction at that point and equals fu\nabla f \cdot \vec{u}. This is sometimes called the gradient theorem for directional derivatives, and it's what justifies using the dot product formula rather than the limit definition every time.

Relationship between Gradient and Directional Derivatives, Directional Derivatives and the Gradient · Calculus

Differentiability and Chain Rule

Differentiability in Multivariable Functions

A function f(x,y,z)f(x, y, z) is differentiable at a point if it's continuous there and its partial derivatives exist and are continuous in some neighborhood of the point. (A sufficient condition: if all partial derivatives are continuous near the point, then ff is differentiable there.)

Differentiability is a stronger condition than just having partial derivatives. For example, f(x,y)=xyf(x, y) = \sqrt{|xy|} has partial derivatives at (0,0)(0, 0) (both equal zero), but it's not differentiable there because the function doesn't behave linearly in all directions near that point.

When ff is differentiable at a point (a,b,c)(a, b, c), two things follow:

  • The tangent plane exists, with the gradient vector f\nabla f as its normal.
  • The linear approximation is valid:

L(x,y,z)=f(a,b,c)+fx(a,b,c)(xa)+fy(a,b,c)(yb)+fz(a,b,c)(zc)L(x, y, z) = f(a, b, c) + f_x(a, b, c)(x - a) + f_y(a, b, c)(y - b) + f_z(a, b, c)(z - c)

This approximation estimates ff near the point and also gives the equation of the tangent plane to the graph (or to the level surface, depending on context).

Multivariable Chain Rule

The chain rule for multivariable functions handles composite functions where the inputs are themselves functions of other variables.

If z=f(x,y)z = f(x, y) is differentiable and x=g(t)x = g(t), y=h(t)y = h(t) are differentiable functions of tt, then:

dzdt=fxdxdt+fydydt\frac{dz}{dt} = \frac{\partial f}{\partial x}\frac{dx}{dt} + \frac{\partial f}{\partial y}\frac{dy}{dt}

This extends naturally: if ff depends on nn variables and each variable depends on mm parameters, you sum over all intermediate variables for each parameter. Tree diagrams can help you keep track of which paths contribute to each derivative.

A common application is finding the rate of change of a quantity along a parametric curve. If a particle moves along r(t)=x(t),y(t),z(t)\vec{r}(t) = \langle x(t), y(t), z(t) \rangle through a scalar field ff, then the rate of change of ff along the particle's path is:

dfdt=fr(t)\frac{df}{dt} = \nabla f \cdot \vec{r}\,'(t)

Notice this is just the directional derivative formula scaled by the particle's speed. If r(t)\vec{r}\,'(t) is a unit vector, you recover the directional derivative exactly. This is one of the cleanest ways to see how the chain rule and the gradient-directional derivative relationship are really the same idea from two different angles.