Multivariable Calculus · Undergraduate

Tangent Planes and Linear Approximation

Quick answer

Near a point where f is differentiable, the surface z = f(x, y) looks flat, and the plane it resembles is the tangent plane: z = f(a, b) + f_x(a, b)(x − a) + f_y(a, b)(y − b). The two partial derivatives are its slopes in the x and y directions. The same formula, read as a function, is the linearization L(x, y), which approximates f near (a, b). Written with small changes, it becomes the differential dz = f_x dx + f_y dy, used to estimate how errors in measured inputs affect a computed output.

What you'll learn

  • Write the tangent plane to a surface z = f(x, y)
  • Linearize a function at a point and use it to approximate
  • Estimate changes and errors with differentials
  • Explain the tangent plane as the plane with matching slopes

The plane that fits

Zoom in on a smooth surface and it looks flat, the way a smooth curve looks straight under a microscope. In one variable, the straight line it resembles is the tangent line, and the linear approximation f(a)+f′(a)(x−a)f(a) + f'(a)(x - a) uses it to estimate values. In two variables the flat object is a plane. The tangent plane to z=f(x,y)z = f(x, y) at the point (a,b,f(a,b))(a, b, f(a, b)) is

z=f(a,b)+fx(a,b)(x−a)+fy(a,b)(y−b)z = f(a, b) + f_x(a, b)(x - a) + f_y(a, b)(y - b)

Why this is the right plane

Every non-vertical plane through (a,b,f(a,b))(a, b, f(a, b)) has the form z=f(a,b)+m(x−a)+n(y−b)z = f(a, b) + m(x - a) + n(y - b), where mm is its slope in the xx direction and nn its slope in the yy direction. The surface has slopes of its own at the point: the partial derivatives fx(a,b)f_x(a, b) and fy(a,b)f_y(a, b) are the slopes of its two slices. The tangent plane is the one whose slices match both: m=fx(a,b)m = f_x(a, b) and n=fy(a,b)n = f_y(a, b). Two slopes pin down a plane, so matching the two partial derivatives picks out the tangent plane. Each slice of the plane is then the tangent line of the matching slice of the surface.

In the slice y = 1, the tangent plane touches the surface The slice y = 1 of the surface z = 2x² + y² is the upward parabola z = 2x² + 1. The slice of the tangent plane at (1, 1, 3) is the line z = 4x − 1, which touches the parabola at the marked point (1, 3) and lies below it elsewhere. -112-22468xz (1, 3)
  • surface slice: z = 2x² + 1
  • tangent plane slice: z = 4x − 1
In the slice y = 1, the tangent plane touches the surface

Linearization and differentials

The tangent plane formula, used as a function, is the linearization:

L(x,y)=f(a,b)+fx(a,b)(x−a)+fy(a,b)(y−b)f(x,y)≈L(x,y) near (a,b)L(x, y) = f(a, b) + f_x(a, b)(x - a) + f_y(a, b)(y - b) \qquad f(x, y) \approx L(x, y) \text{ near } (a, b)

Writing dx=x−adx = x - a and dy=y−bdy = y - b for small changes in the inputs, the predicted change in the output is the total differential

dz=fx dx+fy dydz = f_x\,dx + f_y\,dy

Each input contributes its own rate times its own change, and the contributions add.

Worked examples

Common mistakes

Practice problems

  1. Find the tangent plane to z=x2+y2z = x^2 + y^2 at (1,2,5)(1, 2, 5).

    Answer

    z=2x+4y−5z = 2x + 4y - 5

    Full solution

    fx=2x=2f_x = 2x = 2 and fy=2y=4f_y = 2y = 4 at the point, so z=5+2(x−1)+4(y−2)z = 5 + 2(x - 1) + 4(y - 2).

  2. Linearize f(x,y)=xyf(x, y) = xy at (2,3)(2, 3), and use it to estimate f(2.1,2.9)f(2.1, 2.9).

    Answer

    L=6+3(x−2)+2(y−3)L = 6 + 3(x - 2) + 2(y - 3); about 6.16.1

    Full solution

    fx=y=3f_x = y = 3 and fy=x=2f_y = x = 2. L(2.1,2.9)=6+0.3−0.2=6.1L(2.1, 2.9) = 6 + 0.3 - 0.2 = 6.1, and the exact value is 6.096.09.

  3. Linearize f(x,y)=ex−yf(x, y) = e^{x - y} at (1,1)(1, 1).

    Answer

    L=1+(x−1)−(y−1)L = 1 + (x - 1) - (y - 1)

    Full solution

    f(1,1)=1f(1, 1) = 1, fx=ex−y=1f_x = e^{x - y} = 1 and fy=−ex−y=−1f_y = -e^{x - y} = -1 at the point.

  4. Find the total differential of z=x3y2z = x^3y^2.

    Answer

    dz=3x2y2 dx+2x3y dydz = 3x^2y^2\,dx + 2x^3y\,dy

    Full solution

    The two partial derivatives multiply their own changes, and the contributions add.

  5. A rectangle measures 1010 cm by 2020 cm, each with a possible error of 1%1\%. Estimate the largest error in its area.

    Answer

    44 square centimeters

    Full solution

    A=xyA = xy with dx=0.1dx = 0.1 and dy=0.2dy = 0.2. Then ∣dA∣≤y ∣dx∣+x ∣dy∣=20(0.1)+10(0.2)=4|dA| \le y\,|dx| + x\,|dy| = 20(0.1) + 10(0.2) = 4, which is 2%2\% of the area 200200.

  6. For f(x,y)=x2+y2f(x, y) = \sqrt{x^2 + y^2}, why is L(3.1,3.9)=4.98L(3.1, 3.9) = 4.98 so close to the true value?

    Answer

    The point is close to (3,4)(3, 4), where the surface and its tangent plane touch.

    Full solution

    The inputs moved by only 0.10.1 each. The error in a linearization shrinks like the square of the distance moved, so small steps give very small errors.

  7. Find the tangent plane to z=4−x2−2y2z = 4 - x^2 - 2y^2 at (1,1,1)(1, 1, 1).

    Answer

    z=7−2x−4yz = 7 - 2x - 4y

    Full solution

    fx=−2x=−2f_x = -2x = -2 and fy=−4y=−4f_y = -4y = -4, so z=1−2(x−1)−4(y−1)z = 1 - 2(x - 1) - 4(y - 1).

  8. The tangent plane to a surface at (0,0,5)(0, 0, 5) is z=5+3x−2yz = 5 + 3x - 2y. Find fx(0,0)f_x(0, 0) and fy(0,0)f_y(0, 0).

    Answer

    33 and −2-2

    Full solution

    The coefficients of x−ax - a and y−by - b in the tangent plane are the partial derivatives.

  9. For V=πr2hV = \pi r^2h at r=3r = 3, h=10h = 10, which measurement error matters more: 0.10.1 cm in rr or 0.10.1 cm in hh?

    Answer

    The error in rr, by more than six times

    Full solution

    Vr dr=60π(0.1)=6πV_r\,dr = 60\pi(0.1) = 6\pi and Vh dh=9π(0.1)=0.9πV_h\,dh = 9\pi(0.1) = 0.9\pi.

  10. A student writes the tangent plane to z=2x2+y2z = 2x^2 + y^2 at (1,1,3)(1, 1, 3) as z=3+4x(x−1)+2y(y−1)z = 3 + 4x(x - 1) + 2y(y - 1). What went wrong?

    Hint

    Is the student’s answer a plane?

    Answer

    The partial derivatives must be evaluated at (1,1)(1, 1). The plane is z=3+4(x−1)+2(y−1)z = 3 + 4(x - 1) + 2(y - 1).

    Full solution

    With 4x4x and 2y2y left unevaluated, the right side contains x2x^2 and y2y^2, so it describes a curved surface. The slopes of a plane are constants, here fx(1,1)=4f_x(1, 1) = 4 and fy(1,1)=2f_y(1, 1) = 2.

Frequently asked questions

What is the equation of a tangent plane?

z = f(a, b) + f_x(a, b)(x − a) + f_y(a, b)(y − b), the plane through (a, b, f(a, b)) with the same slopes as the surface in the x and y directions.

What is a linearization?

The function L(x, y) given by the tangent plane formula. Near (a, b), L(x, y) is close to f(x, y) and much easier to compute.

What is the total differential?

dz = f_x dx + f_y dy. It estimates the change in z caused by small changes dx and dy in the inputs.

How are differentials used to estimate error?

If the inputs are measured with small errors dx and dy, then |f_x dx| + |f_y dy| bounds the resulting error in f, to first order.

Does every surface have a tangent plane?

No. A cone has none at its tip. A surface has a tangent plane where f is differentiable, which is guaranteed when the partial derivatives are continuous nearby.

What to learn next