Multivariable calculus: practice problems with step-by-step solutions
Also called: calculus 3 · partial differentiation · double integrals · functions of several variables
Free Multivariable calculus practice problems with diagrams, hints and full worked solutions. New values every time, at three levels: partial derivatives and double integrals, gradient, tangent plane and chain rule, critical points and integrals over regions.
Learn Multivariable calculus from scratch
Before this: Derivatives, Integrals
1Partial derivatives
A function of two variables, z = f(x, y), is a surface above the xy-plane. On a map it is drawn with level curves, lines where f has the same value.
A partial derivative measures the slope in one direction. For ∂f/∂x (also written fx) you hold y constant and differentiate with respect to x, using the ordinary rules.
Example: f(x, y) = x²y + 3y². Treat y as a number for fx, and x as a number for fy:
fx = 2xy fy = x² + 6y
At (1, 2) this gives fx = 4 and fy = 1 + 12 = 13.
Differentiating again gives the second partials fxx, fyy and fxy. The order of the mixed derivative does not matter: fxy = fyx. Here fxy = 2x.
Self-check What is ∂f/∂y for f(x, y) = x³y²?
- 2x³y
- 3x²y²
- 6x²y
- x³y²
Answer: 2x³y. Hold x constant: x³ is a constant factor, and y² gives 2y, so fy = 2x³y. 3x²y² is ∂f/∂x.
2Gradient and directional derivative
The gradient collects both partial derivatives: ∇f = (fx, fy). It points in the direction in which f rises fastest, at right angles to the level curve.
The steepest slope itself is the length |∇f| = √(fx² + fy²).
The slope in any other direction v is the directional derivative. First make v a unit vector u = v/|v|, then take the dot product:
Duf = ∇f·u
For f = x²y + 3y² at (1, 2): ∇f = (4, 13). In the direction v = (3, 4), u = (0.6, 0.8), so Duf = 4·0.6 + 13·0.8 = 12.8.
Self-check At a point ∇f = (3, 4). What is the largest rate of increase of f there?
- 12
- 25
- 5
- 7
Answer: 5. It is |∇f| = √(3² + 4²) = 5. Adding the components gives 7, and forgetting the square root gives 25.
3Tangent plane and chain rule
Near a point (a, b) the surface is almost flat. The tangent plane is
z = f(a, b) + fx(a, b)(x − a) + fy(a, b)(y − b)
It gives the linear approximation f(a + Δx, b + Δy) ≈ f(a, b) + fxΔx + fyΔy.
Example: f = x²y + 3y² has f(1, 2) = 14, so near (1, 2): f(1.1, 1.9) ≈ 14 + 4·0.1 + 13·(−0.1) = 13.1. The exact value is 13.129.
When x and y both depend on t, the chain rule adds the two routes: dz/dt = fx·dx/dt + fy·dy/dt.
4Critical points
At a maximum, a minimum or a saddle point the surface is flat: fx = 0 and fy = 0. Such points are critical points.
The second-derivative test uses D = fxxfyy − fxy² at the point:
- D > 0 and fxx > 0: local minimum.
- D > 0 and fxx < 0: local maximum.
- D < 0: saddle point, up in one direction and down in another.
- D = 0: the test decides nothing.
Worked exampleFind and classify the critical points of f(x, y) = x³ − 3x + y² − 4y.
1fx = 3x² − 3 = 0 → x = ±1 fy = 2y − 4 = 0 → y = 2
The critical points are (1, 2) and (−1, 2).
2fxx = 6x, fyy = 2, fxy = 0
3D = 6·2 − 0 = 12 > 0 and fxx = 6 > 0: a local minimum, with f(1, 2) = 1 − 3 + 4 − 8 = −6.
4D = −6·2 − 0 = −12 < 0: a saddle point.
Answer Local minimum at (1, 2) with f = −6; saddle point at (−1, 2).
5Double integrals
A double integral ∬R f dA adds up f over a region R; for f = 1 it is the area of R. Compute it as two single integrals, the inner one first.
Over a rectangle the limits are numbers: ∫02∫01 (x + 2y) dy dx. The inner integral gives x + 1, and ∫02 (x + 1) dx = 4.
Over a general region, the inner limits are the curves that bound it. For the region between y = x² and y = 2x, y runs from x² up to 2x, and x from 0 to 2.
Area = ∫02 (2x − x²) dx = 4 − 8/3 = 4/3
For discs and sectors use polar coordinates: x² + y² = r² and dA = r dr dθ. Over the disc r ≤ 2: ∬(x² + y²) dA = ∫02π∫02 r³ dr dθ = 2π·4 = 8π.
Self-check In polar coordinates, what does dA become?
- dr dθ
- r dr dθ
- r² dr dθ
- θ dr dθ
Answer: r dr dθ. A small polar patch is Δr wide and r·Δθ long, so dA = r dr dθ. Forgetting the factor r is the most common mistake.
6Common mistakes and exam questions
- Differentiating the "constant" variable as well in a partial derivative.
- Using v instead of the unit vector u in a directional derivative.
- Writing D = fxxfyy + fxy², or classifying a point with D < 0 as an extremum.
- Using numbers as inner limits when the region is bounded by curves.
- Forgetting the factor r in polar coordinates.
Easy: partial derivatives at a point and integrals over rectangles. Medium: gradient, directional derivative, tangent plane and chain rule. Hard: classifying critical points and integrals over curved regions, in polar coordinates or with the order reversed.
Learn it step by step in the appLearn it step by step in the app