Functions of several variables
When a quantity depends on two or more variables, a partial derivative measures how it changes when just one of them varies. For example, the volume of a cylinder depends on its radius and its height. Partial derivatives give gradient vectors, error estimates and the stationary points of surfaces.
Key facts
- (∂f)/(∂x): differentiate with respect to x, treating y as a constant. (∂f)/(∂y) is the other way round.
- Second derivatives: (∂²f)/(∂x²), (∂²f)/(∂y²) and the mixed (∂²f)/(∂x∂y). For smooth functions, the order of the mixed one does not matter.
- The gradient vector ∇f = ((∂f)/(∂x), (∂f)/(∂y)) points in the direction of fastest increase. The rate in the direction of a unit vector u is ∇f · u.
- Small changes: δf ≈ (∂f)/(∂x) δx + (∂f)/(∂y) δy.
- Stationary points: both first partials are 0. Let D = (∂²f)/(∂x²) × (∂²f)/(∂y²) − ((∂²f)/(∂x∂y))^2. If D > 0, it is a minimum when (∂²f)/(∂x²) > 0 and a maximum when it is < 0. If D < 0, it is a saddle.
- A double integral over a rectangle: integrate in one variable, then the other.
Worked examples
Example 1
f(x, y) = x³y² + 4xy. Find (∂f)/(∂x) and (∂f)/(∂y) at (1, 2).
- Treat y as a constant. (∂f)/(∂x) = 3x^2y^2 + 4y
- Treat x as a constant. (∂f)/(∂y) = 2x^3y + 4x
- At (1, 2): (∂f)/(∂x) = 12 + 8 = 20, (∂f)/(∂y) = 4 + 4 = 8
Answer: (∂f)/(∂x) = 20, (∂f)/(∂y) = 8
Example 2
V = πr²h. When r = 5 cm and h = 12 cm, r increases by 0.1 cm and h decreases by 0.2 cm. Estimate the change in V.
- Partial derivatives: (∂V)/(∂r) = 2πrh = 120π, (∂V)/(∂h) = πr^2 = 25π
- Combine: δV ≈ 120π(0.1) + 25π(−0.2) = 12π − 5π = 7π
- So the volume goes up by about 22.0 cm³. δV ≈ 7π ≈ 22.0 cm³
Answer: ≈ 7π ≈ 22.0 cm³
Example 3
Find and classify the stationary point of f(x, y) = x² + xy + y² − 3x.
- Partial derivatives: (∂f)/(∂x) = 2x + y − 3, (∂f)/(∂y) = x + 2y
- Set both to 0. The second one gives x = −2y. −4y + y = 3, y = −1, x = 2
- Value: f(2, −1) = 4 − 2 + 1 − 6 = −3
- D > 0 and (∂²f)/(∂x²) = 2 > 0, so it is a minimum. D = 2 × 2 − 1² = 3
Answer: Minimum at (2, −1), value −3