How to find a linear approximation in two variables

If you’ve used a tangent line to estimate a function in one variable, we can do the same thing with a tangent plane in two variables. This time we need two slopes, one for a change in x and one for a change in y.

Build the linear approximation from two slopes

For a differentiable function f near (a,b), start with the height f(a,b). The partial derivative fx(a,b) is the slope in the x direction, so multiply it by the change x-a. The partial derivative fy(a,b) is the slope in the y direction, so multiply it by y-b.

L(x,y)=f(a,b)+fx(a,b)(x-a)+fy(a,b)(y-b)

The formula gives the height z=L(x,y) on the tangent plane. At the base point, both changes are zero and we get L(a,b)=f(a,b). For points close to (a,b), we use L(x,y) to estimate f(x,y).

Find the height at the base point

Let f(x,y)=6x3-2xy2 and use the base point (1,2). Plug both coordinates into the function to find the starting height.

f(1,2)=6(1)3-2(1)(2)2=-2

Find the slopes in the x and y directions

When we differentiate with respect to x, treat y as a constant. When we differentiate with respect to y, treat x as a constant. Then plug (1,2) into each partial derivative.

fx(x,y)=18x2-2y2fx(1,2)=18(1)2-2(2)2=10fy(x,y)=-4xyfy(1,2)=-4(1)(2)=-8

Put the height and the slopes together

L(x,y)=-2+10(x-1)-8(y-2)=10x-8y+4

For example, at (1.02,1.99), the x coordinate increases by 0.02 and the y coordinate decreases by 0.01. The plane gives an estimate of -2+10(0.02)-8(-0.01)=-1.72. The function itself gives about -1.7114 at that point.