Topic 2 of 7
Step 18: Multivariable calculus
Partial derivatives and gradients
Step 18 · Multivariable calculus topics
Differentiate functions of several variables one variable at a time, gather the results into the gradient, and use it for rates of change in any direction and for tangent planes.
Partial derivatives
For f(x, y), the partial derivative is the ordinary derivative in x with y held fixed: the slope of the surface as you walk in the x direction. works the same way in y.
Example: A polynomial
Find and for f(x, y) = x³y² + 4xy − y.
- For , treat y as a constant: 3x²y² + 4y.
- For , treat x as a constant: 2x³y + 4x − 1.
Answer and
Example: With the chain rule
Find for .
- Treat y as a constant: the inside, xy, has x-derivative y.
Answer
The gradient
The gradient gathers the partial derivatives into a vector, . It points in the direction in which f increases fastest, its length is that fastest rate, and it crosses the level curves at right angles.
Example: Fastest increase
f(x, y) = x² + 3y. In which direction does f increase fastest at (1, 2), and how fast?
- ∇f = ⟨2x, 3⟩, which is ⟨2, 3⟩ at (1, 2).
- Its length is √13.
AnswerIn the direction ⟨2, 3⟩, at a rate of √13, about 3.61
Tangent planes and directional derivatives
The rate of change of f in the direction of a unit vector u is the directional derivative, . Near a point, the surface z = f(x, y) is close to its tangent plane.
Example: A directional derivative
For f(x, y) = x² + 3y, find the rate of change at (1, 2) in the direction of ⟨3, 4⟩.
- The unit vector is ⟨0.6, 0.8⟩.
- ∇f = ⟨2, 3⟩, so the rate is 1.2 + 2.4.
Answer3.6
Example: A tangent plane
Find the tangent plane to z = x² + y² at (1, 2, 5).
- At (1, 2), and .
- z = 5 + 2(x − 1) + 4(y − 2).
Answerz = 2x + 4y − 5
Example: Linear approximation
Use that plane to estimate f(1.1, 1.9).
- Put x = 1.1 and y = 1.9 into z = 2x + 4y − 5.
- 2.2 + 7.6 − 5 = 4.8.
Answer4.8; the true value is 4.82
Try it yourself
Work each one on paper first, then open the answer to check.
Find for f(x, y) = 5x²y − y³.
Show answer
10xy
Find for f(x, y) = 5x²y − y³.
Show answer
5x² − 3y²
Find the gradient of f(x, y) = xy at (2, 3).
Show answer
⟨3, 2⟩
What is the largest rate of increase of f(x, y) = 3x + 4y?
Show answer
5
For f(x, y) = xy, find the rate of change at (2, 3) in the direction ⟨1, 0⟩.
Show answer
3
Find the tangent plane to z = xy at (1, 1, 1).
Show answer
z = x + y − 1