Curvy surfaces z=f(x,y) are hard to work with directly, so near a single point we replace the surface with a flat, tilted plane that has the same slope.
1
The Tangent Plane Equation
A tangent plane is the flat plane that touches a surface z=f(x,y) at a starting point (x0,y0,z0) and matches the slope of the surface in every direction.
The Tangent Plane Equation
Starting at height z0=f(x0,y0), each step away from (x0,y0) changes the height on the plane by slope times step:
z=start heightz0+slope in xfxstep in x(x−x0)+slope in yfystep in y(y−y0)
Each term adds the rise from stepping in x and the rise from stepping in y onto the starting height z0.
Stepping to any point on the tangent plane changes the starting height by the x-slope times your x-step and the y-slope times your y-step, adding or subtracting depending on which way each step goes.
2
Finding a Tangent Plane
Let's find the equation of the tangent plane to the surface
z=x2+y2at x=1,y=2
Finding a Tangent Plane
Text solution
Find the starting height at (1,2)Plug x=1 and y=2 into the surface equation to find where the plane touches the surface.
z0=12+22=1+4=5
Find the x-slope and y-slope at (1,2)Take each partial derivative by treating the other variable as a constant, then evaluate both at (1,2).
fx⟶fx(1,2)fy⟶fy(1,2)=2x=2(1)=2=2y=2(2)=4
Write the tangent plane equationPlug the starting height 5 and the two slopes 2 and 4 at (1,2) into the tangent plane formula.
z=5+2(x−1)+4(y−2)
So z=5+2(x−1)+4(y−2) is the flat plane touching z=x2+y2 at the point (1,2,5).
3
Linear Approximation and Linearization
Because the tangent plane stays close to the surface near the point where it touches, we can estimate a messy function at awkward decimals by starting at a nearby clean point and following the tangent plane instead.
Suppose we want to estimate this value without a calculator:
4.022+2.972
Linear Approximation and Linearization
When we use the right side of the tangent plane equation to approximate f(x,y) near (x0,y0), we call it the linearizationL(x,y) and write it in place of z:
So 4.022+2.972 is approximately 4.998, which is within 0.0002 of the calculator value 4.998129…
4
Differentiability: When Tangent Planes Work
Having fx and fy exist at a point only tells us what the surface is doing along the x- and y-directions. A function is differentiable at a point when zooming in makes the surface flatten out into a single plane in every direction, including the diagonals.
Differentiability: When Tangent Planes Work
x
y
z
f(x,y)=x2+y2xy,f(0,0)=0
On the pinched surface
f(x,y)=x2+y2xyfor (x,y)=(0,0),f(0,0)=0
both axes lie flat at height 0, giving fx(0,0)=0,fy(0,0)=0, and the plane z=0. Along the diagonals y=x and y=−x, however, the surface stays at heights 21 and −21 instead of approaching 0:
This surface lies completely flat on the plane along both axes, yet pulls away from the plane at the origin in every direction between them.
We don't have to test diagonal paths one by one to know a tangent plane works: we only need to check whether the partial derivative formulas are continuous near our point.
5
Total Differentials: dz vs. Δz
When we care only about how much the output changes from a small step rather than the total height, we drop the starting height z0 and keep just the slope-times-step terms. This estimated change on the tangent plane is the total differentialdz.
Total Differentials: dz vs. Δz
z=z0+fx(x−x0)+fy(y−y0)
dz=?Δz=?
Writing dx (or Δx) for the step x−x0 and dy (or Δy) for the step y−y0 separates the plane's estimated change from the surface's true change:
estimated changeon the tangent planedz=fxstep in xdx+fystep in ydy
true changeon the surfaceΔz=f(x0+Δx,y0+Δy)−f(x0,y0)
For tiny steps away from (x0,y0), the tangent plane stays right against the surface so dz and Δz are nearly equal, while larger steps let the curved surface curve away from the plane and widen the gap between dz and Δz.
Near where they touch, the tangent plane stays so close to the surface that their height changes are nearly identical, while larger steps make the surface curve away.
6
Estimating Maximum Error with Differentials
Differentials are especially useful when measurements have small possible errors and we want to know the largest error they could cause in a calculated result.
Suppose we measure a metal cylinder to have radius r=2 cm (with possible error dr=±0.05 cm) and height h=10 cm (with possible error dh=±0.1 cm), and we want to estimate the maximum possible error dV in its volume
V=πr2h
Estimating Maximum Error with Differentials
r=2 cm
dr=±0.05 cm
h=10 cm
dh=±0.1 cm
Text solution
Find the volume slopes Vr and Vh at r=2,h=10Differentiate V=πr2h with respect to each variable and evaluate at r=2 and h=10.
Add the positive error steps in dV=Vrdr+VhdhUse dr=+0.05 and dh=+0.1 so the two parts of the error add together for the largest possible total.
dV=(40π)(0.05)+(4π)(0.1)=2π+0.4π=2.4π cm3
So the calculated volume of 40π cm3 could be off by at most about 2.4π cm3, with 2π cm3 coming from the radius error and only 0.4π cm3 coming from the height error.
7
Three Variables: Linear Approximation and Differentials
When a function has three inputs, w=f(x,y,z), we can no longer draw a tangent plane in 3D, but "start plus slope times step" works the exact same way by adding a third term for z.
Let's estimate this three-variable expression without a calculator:
2.072+2.932+6.142
Three Variables: Linear Approximation and Differentials
x
y
z
w=f(x,y,z)
w0
w≈?
Adding the z-step gives the three-variable linearization and total differential:
Here z is the third input variable, so dz=z−z0 is the small input step in z, while dw is the resulting estimated change in the output w.
Text solution
Find the starting value at the clean point (2,3,6)Plug (2,3,6) into w=x2+y2+z2.
w0=22+32+62=4+9+36=49=7
Find all three slopes at (2,3,6)Differentiate x2+y2+z2 with respect to each variable and evaluate at (2,3,6), where the square root in the denominator is 7.
Add the change dw to the starting value w0Add the estimated change to 7.
2.072+2.932+6.142≈7+0.11=7.11
So 2.072+2.932+6.142 is approximately 7.11, compared to the exact value 7.1112…
Summary
Tangent planes, linear approximation, and differentials are all the same equation: you just keep the pieces that match what the question asks for.
One Equation for Everything
x
y
z
z=z0+fx(x−x0)+fy(y−y0)
Everything here comes from Start + Slope × Step at a clean point (x0,y0):
z=z0+dzfx(x−x0)+fy(y−y0)
When the method works (Differentiability)
Before trusting a tangent plane at (x0,y0), check that the partial derivatives fx and fy are continuous near (x0,y0) (for x2+y2 at (4,3),fx=x2+y2x has denominator 5=0, so it is smooth there). When not to use it: Merely finding values for fx and fy at the point is not enough if the derivative formulas divide by zero there. For f(x,y)=x2+y2xy at (0,0), both axis slopes are 0, but the surface stays at height 21 and −21 along the diagonals and never flattens into the plane z=0.
Tangent plane or linearization L(x,y)
Keep the whole equation and leave (x−x0) and (y−y0) as variables, evaluating z0,fx, and fy as numbers at (x0,y0) (for z=x2+y2 at (1,2), the tangent plane is z=5+2(x−1)+4(y−2) and the linearization is L(x,y)=5+2(x−1)+4(y−2)).
Linear approximation
To estimate a messy number like 4.022+2.972, evaluate z0=5,fx=0.8, and fy=0.6 at the nearby clean point (4,3), then plug the small steps dx=+0.02 and dy=−0.03 into 5+0.8(0.02)+0.6(−0.03)=4.998.
Total differential dz (or dw) and maximum error
When a question asks only for the change in output from small steps in the inputs, drop z0 and keep dz=fxdx+fydy (or dw=fxdx+fydy+fzdz for three variables). For the largest possible measurement error, make every error step positive so the errors add together: on V=πr2h at (2,10),dV=40π(0.05)+4π(0.1)=2.4π.
8
Practice
1
Find the equation of the tangent plane to the surface z=3x2−xy+y3 at the point where x=1 and y=2.
What three numbers do you need at (1,2) to fill in z=z0+fx(x−1)+fy(y−2)?
Find the starting height at (1,2):
z0=3(1)2−(1)(2)+(2)3=3−2+8=9
Differentiate with respect to x and y and evaluate at (1,2). Watch the product term −xy: its x-derivative is −y and its y-derivative is −x (dropping −xy gives slopes 6 and 12 and the wrong plane z=9+6(x−1)+12(y−2), while flipping the minus sign gives slopes 8 and 13 and the wrong plane z=9+8(x−1)+13(y−2)):
Find the linearization L(x,y) of f(x,y)=50−x2−y2 at (3,4), explain why the function is guaranteed to be differentiable there, and use L(x,y) to estimate 50−3.052−3.982 without a calculator.
Write the function as (50−x2−y2)1/2 to take the partial derivatives at (3,4). What do you get when you multiply by the derivative of the inside?
Find the starting value at (3,4):
z0=50−32−42=50−9−16=25=5
Take the partial derivatives using the chain rule. Keep the negative signs from differentiating −x2 and −y2 inside the square root (forgetting those minus signs makes the slopes +0.6 and +0.8, which leads to the wrong estimate 5.014):
Because the denominator 50−x2−y2 is near 5 (nowhere near 0), fx and fy are continuous near (3,4), which guarantees f is differentiable there.
Write the linearization at (3,4):
L(x,y)=5−0.6(x−3)−0.8(y−4)
Plug in the steps dx=3.05−3=+0.05 and dy=3.98−4=−0.02. Be careful that 3.98 is below 4, so dy is negative (using +0.02 instead of −0.02 subtracts 0.016 and gives the wrong answer 4.954):
For the step from (3,2) to (3.1,1.9),dx=+0.1 and dy=−0.1. Keep the minus sign on dy=1.9−2=−0.1 (using +0.1 for both steps gives the wrong differential dz=1.6):
dz=10(0.1)+6(−0.1)=1.0−0.6=0.4
For the true change Δz, evaluate f(3.1,1.9) and subtract the starting height 21 (forgetting to subtract 21 leaves the total new height 21.39 instead of the change):
A rectangular pillar with a square base of side s and height h has volume V=s2h. You measure s=3 m with a possible error of ±0.02 m, and h=10 m with a possible error of ±0.05 m. Use differentials to estimate the maximum possible error in the calculated volume, and state which measurement contributes more to that error.
Multiply each slope by its positive possible error (ds=0.02 and dh=0.05) so the errors add rather than cancel (subtracting them gives 0.75 m3).
Find the two pieces Vsds and Vhdh at s=3,h=10 before deciding which measurement matters more.
Find the partial derivatives of V=s2h at s=3 and h=10:
Multiply each slope by its positive possible error (ds=0.02 and dh=0.05) so the errors add rather than cancel (subtracting them gives 0.75 m3, and comparing the possible errors 0.05>0.02 before multiplying by the slopes 60 and 9 picks the wrong variable):
dV=60(0.02)+9(0.05)=1.2+0.45=1.65 m3,with side s contributing more (1.2 m3 vs. 0.45 m3)
5
Use a three-variable linear approximation to estimate (3.02)2(1.95)4.08 without a calculator.
In fz, remember the 2 in the denominator from differentiating z=z1/2 (leaving off the 2 makes fz=9 instead of 4.5 and leads to the wrong answer 36.30).Add the change dw=−0.06 to the starting value w0=36 (don't stop at −0.06).
Match the expression to the function w=x2yz at the clean starting point (3,2,4).
Evaluate w=x2yz at (3,2,4):
w0=(3)2(2)4=(9)(2)(2)=36
Find the three partial derivatives at (3,2,4). In fz, remember the 2 in the denominator from differentiating z=z1/2 (leaving off the 2 makes fz=9 instead of 4.5 and leads to the wrong answer 36.30):
Add the change dw=−0.06 to the starting value w0=36 (don't stop at −0.06):
(3.02)2(1.95)4.08≈36−0.06=35.94
6
Let f(x,y)=x2+y24xy for (x,y)=(0,0), and f(0,0)=0. Find fx(0,0) and fy(0,0) along the coordinate axes and write the plane equation they give at the origin. Then find the height of the surface along the diagonals y=x and y=−x away from the origin, and explain why f is not differentiable at (0,0).
Look at what f(x,0) and f(0,y) equal along the two axes before taking any derivatives, then substitute y=x into x2+y24xy for x=0.
Along the x-axis (y=0),f(x,0)=0 everywhere, and along the y-axis (x=0),f(0,y)=0 everywhere (trying to use the quotient rule on x2+y24xy and plug in (0,0) divides by zero instead of using the values along the axes):
fx(0,0)=0,fy(0,0)=0⟶z=0
Now substitute y=x and y=−x for x=0. Remember to add both x2 terms in the denominator x2+x2=2x2 (writing x2 instead of 2x2 on the bottom gives the wrong heights 4 and −4):
Along y=x:f(x,x)Along y=−x:f(x,−x)=x2+x24x(x)=2x24x2=2=x2+(−x)24x(−x)=2x2−4x2=−2
Because the surface stays at heights 2 and −2 along the diagonals right up to the origin instead of flattening out into the plane z=0,f has a pinch at (0,0) and is not differentiable there.