Determine the equation of a plane tangent to a given surface at a point.
Use the tangent plane to approximate a function of two variables at a point.
Explain when a function of two variables is differentiable.
Use the total differential to approximate the change in a function of two variables.
In this section, we consider the problem of finding the tangent plane to a surface, which is analogous to finding the equation of a tangent line to a curve when the curve is defined by the graph of a function of one variable, . The slope of the tangent line at the point is given by ; what is the slope of a tangent plane? We learned about the equation of a plane in Equations of Lines and Planes in Space; in this section, we see how it can be applied to the problem at hand.
Tangent Planes
Intuitively, it seems clear that, in a plane, only one line can be tangent to a curve at a point. However, in three-dimensional space, many lines can be tangent to a given point. If these lines lie in the same plane, they determine the tangent plane at that point. A more intuitive way to think of a tangent plane is to assume the surface is smooth at that point (no corners). Then, a tangent line to the surface at that point in any direction does not have any abrupt changes in slope because the direction changes smoothly. Therefore, in a small-enough neighborhood around the point, a tangent plane touches the surface at that point only.
Definition: Tangent Lines
Let be a point on a surface , and let be any curve passing through and lying entirely in . If the tangent lines to all such curves at lie in the same plane, then this plane is called the tangent planeto at (Figure ).
Figure :The tangent plane to a surface at a point contains all the tangent lines to curves in that pass through .
For a tangent plane to a surface to exist at a point on that surface, it is sufficient for the function that defines the surface to be differentiable at that point. We define the term tangent plane here and then explore the idea intuitively.
Definition: Tangent Planes
Let be a surface defined by a differentiable function and let be a point in the domain of . Then, the equation of the tangent plane to at is given by
To see why this formula is correct, let’s first find two tangent lines to the surface . The equation of the tangent line to the curve that is represented by the intersection of with the vertical trace given by is . Similarly, the equation of the tangent line to the curve that is represented by the intersection of with the vertical trace given by is . A parallel vector to the first tangent line is ; a parallel vector to the second tangent line is . We can take the cross product of these two vectors:
This vector is perpendicular to both lines and is therefore perpendicular to the tangent plane. We can use this vector as a normal vector to the tangent plane, along with the point in the equation for a plane:
Solving this equation for gives Equation .
Example : Finding a Tangent Plane
Find the equation of the tangent plane to the surface defined by the function at point
Solution
First, we must calculate and , then use Equation with and :
Then Equation becomes
(See the following figure).
Figure : Calculating the equation of a tangent plane to a given surface at a given point.
Exercise
Find the equation of the tangent plane to the surface defined by the function at point .
Hint
First, calculate and , then use Equation .
Answer
Example : Finding Another Tangent Plane
Find the equation of the tangent plane to the surface defined by the function at the point
Solution
First, calculate and , then use Equation with and :
Then Equation becomes
A tangent plane to a surface does not always exist at every point on the surface. Consider the piecewise function
The graph of this function follows.
Figure : Graph of a function that does not have a tangent plane at the origin. Dynamic figure powered by CalcPlot3D.
If either or , then so the value of the function does not change on either the - or -axis. Therefore, , so as either or approach zero, these partial derivatives stay equal to zero. Substituting them into Equation gives as the equation of the tangent line. However, if we approach the origin from a different direction, we get a different story. For example, suppose we approach the origin along the line . If we put into the original function, it becomes
When the slope of this curve is equal to ; when , the slope of this curve is equal to This presents a problem. In the definition of tangent plane, we presumed that all tangent lines through point (in this case, the origin) lay in the same plane. This is clearly not the case here. When we study differentiable functions, we will see that this function is not differentiable at the origin.
Linear Approximations
Recall from Linear Approximations and Differentials that the formula for the linear approximation of a function at the point is given by
The diagram for the linear approximation of a function of one variable appears in the following graph.
Figure : Linear approximation of a function in one variable.
The tangent line can be used as an approximation to the function for values of reasonably close to . When working with a function of two variables, the tangent line is replaced by a tangent plane, but the approximation idea is much the same.
Definition: Linear Approximation
Given a function with continuous partial derivatives that exist at the point , the linear approximation of at the point is given by the equation
Notice that this equation also represents the tangent plane to the surface defined by at the point . The idea behind using a linear approximation is that, if there is a point at which the precise value of is known, then for values of reasonably close to , the linear approximation (i.e., tangent plane) yields a value that is also reasonably close to the exact value of (Figure ). Furthermore the plane that is used to find the linear approximation is also the tangent plane to the surface at the point
Figure : Using a tangent plane for linear approximation at a point.
Example : Using a Tangent Plane Approximation
Given the function , approximate using point for What is the approximate value of to four decimal places?
Solution
To apply Equation , we first must calculate and using and
Now we substitute these values into Equation :
Last, we substitute and into
The approximate value of to four decimal places is
which corresponds to a error in approximation.
Exercise
Given the function approximate using point for . Also state the approximate value of to four decimal places to compare the two values.
Hint
First calculate and using and , then use Equation .
Answer
so
Note that
Differentiability
When working with a function of one variable, the function is said to be differentiable at a point if exists. Furthermore, if a function of one variable is differentiable at a point, the graph is “smooth” at that point (i.e., no corners exist) and a tangent line is well-defined at that point.
The idea behind differentiability of a function of two variables is connected to the idea of smoothness at that point. In this case, a surface is considered to be smooth at point if a tangent plane to the surface exists at that point. If a function is differentiable at a point, then a tangent plane to the surface exists at that point. Recall the formula (Equation ) for a tangent plane at a point is given by
For a tangent plane to exist at the point the partial derivatives must therefore exist at that point. However, this is not a sufficient condition for smoothness, as was illustrated in Figure . In that case, the partial derivatives existed at the origin, but the function also had a corner on the graph at the origin.
Definition: Differentiable Functions
A function is differentiable at a point if, for all points in a disk around , we can write
where the error term satisfies
The last term in Equation is referred to as the error term. It represents how closely the tangent plane comes to the surface in a small neighborhood ( disk) of point . For the function to be differentiable at , the function must be smooth—that is, the graph of must be close to the tangent plane for points near .
Example : Demonstrating Differentiability
Show that the function is differentiable at point
Solution
First, we calculate and using and then we use Equation :
Therefore and and Equation becomes
Next, we calculate the limit in Equation :
Since for any value of or , the original limit must be equal to zero. Therefore, is differentiable at point .
Exercise
Show that the function is differentiable at point .
Hint
First, calculate and using and , then use Equation to find .
Since you will find that , show
Answer
Since , we know it's also true that
Therefore, is differentiable at point .
This function from (Equation )
is not differentiable at the origin (Figure ). We can see this by calculating the partial derivatives. This function appeared earlier in the section, where we showed that . Substituting this information into Equations and using and , we get
Calculating
gives
Depending on the path taken toward the origin, this limit takes different values. Therefore, the limit does not exist and the function is not differentiable at the origin as shown in the following figure.
Figure : This function (Equation ) is not differentiable at the origin.
Differentiability and continuity for functions of two or more variables are connected, the same as for functions of one variable. In fact, with some adjustments of notation, the basic theorem is the same.
Theorem : Differentiability Implies Continuity
Let be a function of two variables with in the domain of . If is differentiable at , then is continuous at
Theorem shows that if a function is differentiable at a point, then it is continuous there. However, if a function is continuous at a point, then it is not necessarily differentiable at that point. For example, the function discussed above (Equation )
is continuous at the origin, but it is not differentiable at the origin. This observation is also similar to the situation in single-variable calculus.
We can further explore the connection between continuity and differentiability at a point. This next theorem says that if the function and its partial derivatives are continuous at a point, the function is differentiable.
Theorem : Continuity of First Partials Implies Differentiability
Let be a function of two variables with in the domain of . If , , and all exist in a neighborhood of and are continuous at , then is differentiable there.
Recall that earlier we showed that the function in Equation was not differentiable at the origin. Let’s calculate the partial derivatives and :
and
The contrapositive of the preceding theorem states that if a function is not differentiable, then at least one of the hypotheses must be false. Let’s explore the condition that must be continuous. For this to be true, it must be true that
therefor
Let . Then
If , then this expression equals ; if , then it equals . In either case, the value depends on , so the limit fails to exist.
Differentials
In Linear Approximations and Differentials we first studied the concept of differentials. The differential of , written , is defined as . The differential is used to approximate , where . Extending this idea to the linear approximation of a function of two variables at the point yields the formula for the total differential for a function of two variables.
Definition: Total Differential
Let be a function of two variables with in the domain of , and let and be chosen so that is also in the domain of . If is differentiable at the point , then the differentials and are defined as
and
The differential , also called the total differential of at , is defined as
Notice that the symbol is not used to denote the total differential; rather, appears in front of . Now, let’s define We use to approximate , so
Therefore, the differential is used to approximate the change in the function at the point for given values of and . Since , this can be used further to approximate
See the following figure.
Figure : The linear approximation is calculated via the formula
One such application of this idea is to determine error propagation. For example, if we are manufacturing a gadget and are off by a certain amount in measuring a given quantity, the differential can be used to estimate the error in the total volume of the gadget.
Example : Approximation by Differentials
Find the differential of the function and use it to approximate at point Use and What is the exact value of ?
Solution
First, we must calculate and using and
Then, we substitute these quantities into Equation :
This is the approximation to The exact value of is given by
Exercise
Find the differential of the function and use it to approximate at point . Use and . What is the exact value of ?
Hint
First, calculate and using and , then use Equation .
Answer
Differentiability of a Function of Three Variables
All of the preceding results for differentiability of functions of two variables can be generalized to functions of three variables. First, the definition:
Definition: Differentiability at a Point
A function is differentiable at a point if for all points in a disk around we can write
where the error term E satisfies
If a function of three variables is differentiable at a point , then it is continuous there. Furthermore, continuity of first partial derivatives at that point guarantees differentiability.
Key Concepts
The analog of a tangent line to a curve is a tangent plane to a surface for functions of two variables.
Tangent planes can be used to approximate values of functions near known values.
A function is differentiable at a point if it is ”smooth” at that point (i.e., no corners or discontinuities exist at that point).
The total differential can be used to approximate the change in a function at the point for given values of and .
Key Equations
Tangent plane
Linear approximation
Total differential
.
Differentiability (two variables)
where the error term satisfies
.
Differentiability (three variables)
where the error term satisfies
.
Glossary
differentiable
a function is differentiable at if can be expressed in the form
where the error term satisfies
linear approximation
given a function and a tangent plane to the function at a point , we can approximate for points near using the tangent plane formula
tangent plane
given a function that is differentiable at a point , the equation of the tangent plane to the surface is given by
total differential
the total differential of the function at is given by the formula