Courses / Physics I
Multivariable Calculus

The Chain Rule and Directional Derivatives

Multivariable chain rule — If z = f(x,y) where x = x(t) and y = y(t): More generally, if x = x(s,t) and y = y(s,t): The gradient collects all partial de…

Physics I 190 words Free to read

Multivariable chain rule — If z=f(x,y)z = f(x,y) where x=x(t)x = x(t) and y=y(t)y = y(t):

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

More generally, if x=x(s,t)x = x(s,t) and y=y(s,t)y = y(s,t):

zs=fxxs+fyys\frac{\partial z}{\partial s} = f_x\frac{\partial x}{\partial s} + f_y\frac{\partial y}{\partial s}

The gradient collects all partial derivatives into one vector:

f=(fx,  fy)\nabla f = \left(\frac{\partial f}{\partial x},\;\frac{\partial f}{\partial y}\right)

Directional derivative — The rate of change of ff in direction u^\hat{u}:

Du^f=fu^=fcosθD_{\hat{u}}f = \nabla f \cdot \hat{u} = |\nabla f|\cos\theta

Key properties of the gradient

PropertyStatement
Direction of steepest ascentf\nabla f
Maximum rate of changef|\nabla f|
Perpendicular to level curvesf{f=c}\nabla f \perp \{f = c\}
Zero directional derivativeWhen u^f\hat{u} \perp \nabla f
Physics link: Temperature gradient T\nabla T points from cold to hot. Heat flows in the opposite direction: q=kT\vec{q} = -k\nabla T (Fourier's law).
Common pitfall: The directional derivative needs a unit vector: Duf=fu^D_{\vec{u}}f = \nabla f \cdot \hat{u}. Feeding it an unnormalized direction silently scales the answer by that vector’s length.
Placeholder: The Chain Rule and Directional Derivatives

Practise this lesson

The explanation above is free to read. The graded practice for this lesson lives in the Tryals app.

13practice questions
2interactive scenes
Start Physics I free

Multivariable Calculus