The gradient vector
Pack the two partial derivatives into the gradient ∇f = ⟨fx, fy⟩, use it to find the steepest direction and the steepest rate, show that it stands perpendicular to level curves, and extend it to level surfaces, tangent planes and normal lines.
It opens on
You stand on the hill 2 units east and 0 north, at height 6. East goes down at 4 per unit and north goes up at 2. Of all the directions you could face, which climbs fastest, and how steep is it?
Why it matters
The gradient answers where to walk to climb fastest, it links the slope formulas to the contour map, and it is the object that critical points, Lagrange multipliers and vector fields are built on.
Good to know first
- Directional derivatives: the rate Du f of the hill in the direction of a unit vector u is fx a + fy b
- The chain rule for several variables: along a path r(t) the height changes at the rate fx x′ + fy y′
- Planes in space: the plane through a point with normal vector n is n · (r − r₀) = 0
Step by step
The steepest direction
Define the gradient ∇f = ⟨fx, fy⟩, show that the rate Du f = |∇f| cos θ is largest along ∇f with value |∇f|, and find both for the hill at (2, 0).
For the hill fx = −2x + y and fy = x − 4y, so at (2, 0) the gradient is ∇f = ⟨−4, 2⟩.
A common mix-up
The gradient points at the summit.
In fact: At (2, 0) the gradient ⟨−4, 2⟩ is north of west while the summit is due west, and due west climbs at 4 against 4.47.
Perpendicular to level curves
Show with the chain rule that ∇f is perpendicular to the level curve through a point, and use it to write the tangent line to a level curve.
At (1, 1) the height is 10 − 1 − 2 + 1 = 8 and ∇f = ⟨−2 + 1, 1 − 4⟩ = ⟨−1, −3⟩.
A common mix-up
The gradient lies along the contour.
In fact: The dot product of ∇f with the contour direction is 0, so they are perpendicular; at (1, 1) ⟨−1, −3⟩ · ⟨3, −1⟩ = 0.
Level surfaces, tangent planes and normal lines
Extend the gradient to F(x, y, z), show that ∇F is normal to the level surface F = k, and write the tangent plane and the normal line, including for the hill seen as a surface.
∇T = ⟨−2x, −2y, −2z⟩ = ⟨−2, −4, −4⟩ at (1, 2, 2); its length is 6, so the temperature rises fastest at 6 degrees per metre.
A common mix-up
The gradient of f(x, y) points up along the surface with three components.
In fact: ∇f has two, one per input; the surface's normal ⟨−fx, −fy, 1⟩ = ⟨4, −2, 1⟩ is a different vector.
Try it
For the hill find ∇f(1, 0) and the steepest rate there.Answer
∇f = ⟨−2, 1⟩ and the rate is √5
Hint: fx = −2x + y and fy = x − 4y at (1, 0)
Find the tangent line to the level curve of the hill through (2, 0).Answer
−4(x − 2) + 2y = 0, that is y = 2x − 4
Hint: ∇f(2, 0) = ⟨−4, 2⟩ is the normal vector
Find the tangent plane to x² + y² + z² = 14 at (1, 2, 3).Answer
x + 2y + 3z = 14
Hint: ∇F = ⟨2x, 2y, 2z⟩ = ⟨2, 4, 6⟩
The summit (0, 0) is due west, direction ⟨−1, 0⟩. What is ∇f · ⟨−1, 0⟩, and is due west the steepest way?Answer
4, which is less than 4.47: no.
The direction ⟨3, −1⟩ lies along that line. What is ⟨−1, −3⟩ · ⟨3, −1⟩?Answer
0, so the gradient meets the line at a right angle.
