The Gradient Vector
Learn to compute and interpret \(\nabla f\): the vector that reveals the direction of steepest ascent and the maximum rate of change of a multivariable function.
What Is the Gradient?
Given a scalar function \(f(x,y)\), the gradient is a vector of its partial derivatives. It collects all the "rate of change" information into a single vector:
The symbol \(\nabla\) is called "nabla" or "del". In three dimensions the gradient extends naturally: \(\nabla f = \left\langle f_x,\, f_y,\, f_z \right\rangle\).
Why Does \(\nabla f\) Matter?
Visualizing \(\nabla f\) on Contour Maps
The Formal Definition
Gradient and Directional Derivative
The gradient is the engine behind the directional derivative. For any unit vector \(\hat{\mathbf{u}}\):
Gradient vs. Partial Derivatives
| Gradient \(\nabla f\) | Partial Derivative \(f_x\) | |
|---|---|---|
| Type | Vector | Scalar |
| Components | All partial derivatives combined | Rate of change along one axis |
| Direction info | Points toward steepest ascent | Only along the \(x\)-axis |
| Magnitude | \(\|\nabla f\| =\) max rate of change | Rate of change in \(x\) only |
| Dimension | Same as domain (\(\mathbb{R}^n\)) | Always \(\mathbb{R}^1\) |
How to Compute \(\nabla f\)
Example 1: Polynomial
Find \(\nabla f(1,2)\) for \(f(x,y) = x^2y + 3xy^2\).
Example 2: Trigonometric
Find \(\nabla f\) for \(f(x,y) = \sin(x)\,e^{2y}\).
Example 3: Three Variables
Find \(\nabla f(1,-1,2)\) for \(f(x,y,z) = x^2z - 3y^2z^2\).
Gradient is Perpendicular to Level Curves
Key Properties of \(\nabla f\)
Application: Steepest Ascent
A hiker is at point \((2,1)\) on a terrain modeled by \(f(x,y) = 100 - x^2 - 3y^2\). In which direction should they walk to climb most steeply?
Common Mistakes
Summary at a Glance
| Concept | Formula / Fact |
|---|---|
| Gradient (2D) | \(\nabla f = \langle f_x, f_y \rangle\) |
| Gradient (3D) | \(\nabla f = \langle f_x, f_y, f_z \rangle\) |
| Directional Derivative | \(D_{\hat{\mathbf{u}}} f = \nabla f \cdot \hat{\mathbf{u}}\) |
| Max Rate of Change | \(\|\nabla f\|\), in direction of \(\nabla f\) |
| Perpendicularity | \(\nabla f \perp\) level curves / surfaces |
| Critical Points | \(\nabla f = \mathbf{0}\) |
Question 1 of 5
If \(f(x,y) = 3x^2 + 2xy\), what is \(\nabla f(1,4)\)?
Question 2 of 5
The gradient \(\nabla f\) at a point is always perpendicular to:
Question 3 of 5
For \(f(x,y) = xe^y\), what is the maximum rate of change of \(f\) at \((2, 0)\)?
Question 4 of 5
If \(\nabla f(a,b) = \langle 3, -4 \rangle\) and \(\hat{\mathbf{u}} = \langle 0, 1 \rangle\), what is the directional derivative \(D_{\hat{\mathbf{u}}} f(a,b)\)?
Question 5 of 5
For \(f(x,y,z) = x^2 + y^2 + z^2\), the gradient \(\nabla f\) at any point \((x,y,z)\) is: