In one-variable calculus, the tangent line gives the best linear approximation to a curve near a point.
For functions of two variables, the same idea becomes a tangent plane.
1-D tangent line
Let y=f(x) and let x0 be a point in the domain. If f is differentiable at x0, then the tangent line at the point (x0,f(x0)) is
y=f′(x0)(x−x0)+f(x0).
This is the line with slope f′(x0) that passes through (x0,f(x0)).
Why this is the best linear approximation
Near x0, the graph of f behaves almost like a line. The tangent line is the linear function that matches both:
the value of the function at the point, and
the slope of the function at the point.
So if x is close to x0, then
f(x)≈f(x0)+f′(x0)(x−x0).
The right-hand side is the tangent-line formula written as a linear approximation.
1-D tangent line: best linear approximation near x₀
For the graph above, the curve is f(x)=x3−2x+1. At x0=1 we have
f(1)=0,f′(x)=3x2−2,f′(1)=1.
So the tangent line is
y=1(x−1)+0=x−1.
That line is the best local linear model for the curve near x=1.
From tangent line to tangent plane
For a function of two variables, z=f(x,y), a tangent line is not enough because the graph is a surface in 3D, not a curve in 2D.
At a point on a surface, we need a plane that best matches the surface near that point. That plane is the tangent plane.
So the one-variable picture
curve→tangent line
becomes
surface→tangent plane.
Plane equation and tangent planes
A general plane in 3D can be written as
ax+by+cz+d=0.
This is the same as saying the plane has a normal vector (a,b,c).
Why we let c be non-zero
If c=0, we can solve for z:
z=−cax−cby−cd.
That form is especially useful for a graph of the form z=f(x,y), because the tangent plane can then be written as a function of x and y.
If c=0, then the plane is vertical and cannot be written as z=something.
But the graph of a differentiable function z=f(x,y) has a tangent plane that is not vertical at the point of tangency, so we assume the tangent plane can be written with c=0.
Deriving the tangent plane equation
Let the surface be z=f(x,y) and let the point of tangency be (x0,y0,z0), where
This is the multivariable analogue of the tangent line formula.
Example: z = 3x^3 + y^2 at (1,1,4)
Consider
f(x,y)=3x3+y2.
At (1,1),
f(1,1)=3(1)3+(1)2=4.
The partial derivatives are
fx(x,y)=9x2,fy(x,y)=2y.
So at (1,1),
fx(1,1)=9,fy(1,1)=2.
Therefore the tangent plane is
z=4+9(x−1)+2(y−1).
Expanding gives
z=9x+2y−7.
The graph below shows the surface and its tangent plane at the point (1,1,4).
Surface z = 3x³ + y² with tangent plane at (1,1,4)
Near (1,1,4), the plane and the surface are very close. If you zoom in enough, the surface looks almost flat, and the tangent plane captures that local flatness.
Examples of tangent planes
Let
f(x,y)=x2+y2.
Then
fx=2x,fy=2y.
At (1,1),
f(1,1)=2,fx(1,1)=2,fy(1,1)=2.
So the tangent plane is
z=2+2(x−1)+2(y−1)=2x+2y−2.
Let
f(x,y)=xy.
Then
fx=y,fy=x.
At (1,2),
f(1,2)=2,fx(1,2)=2,fy(1,2)=1.
So the tangent plane is
z=2+2(x−1)+1(y−2)=2x+y−2.
Let
f(x,y)=ex+y.
Then
fx=ex+y,fy=ex+y.
At (0,0),
f(0,0)=1,fx(0,0)=1,fy(0,0)=1.
So the tangent plane is
z=1+x+y.
Let
f(x,y)=9−x2−y2.
At (1,2),
f(1,2)=4=2.
The partial derivatives are
fx(x,y)=9−x2−y2−x,fy(x,y)=9−x2−y2−y.
So
fx(1,2)=−21,fy(1,2)=−1.
Hence the tangent plane is
z=2−21(x−1)−(y−2).
Best linear approximation in two variables
The tangent plane is the best linear approximation to the surface near the point.