To get a first order approximation to a function f(x,y) we use a similar idea. However, a linear function in two variables is a plane. Thus, we need to relate the constants in the equation of a plane:
z = m(x - x0) + n(y - y0) + d
to the function that is being approximated. In order for this plane to touch the graph of f(x,y) at (x0,y0,f(x0,y0)) the constant d must be equal to f(x0,y0). The slope of the plane in the x and y directions must e equal to the slope of the function in the x and y directions. Thus, we have the linear approximation to a function of two variables as Of course, the farther the point (x,y) is from (x0,y0) the worse the approximation will be.
There is another version of this formula which is commonly seen. By rearranging the terms, we get
or, in more compact notation, This makes it a little easier to write down higher order approximations as well as to see what happens for a function of more than two variables. To get a linear approximation to g(x,y,z) at the point (x0,y0,z0,g(x0,y0,z0)) we use the formula where are partial derivatives are to be evaluated at the point (x0,y0,z0).