Linearization and Approximation
12.1Linearization and Differentials
Take a complicated function, zoom in, replace it with something linear. Thus we are looking to replace graphs by planes. To start, look back on the tangent line formula from single variable calculus:
Our extension to multiple dimensions is just....to add more variables! We need to adjust
Theorem 12.1 (Tangent Plane and Linearization). Suppose
is tangent to the graph of
More generally,
The same formula works in higher dimensions, by just adding more terms. Since this gives us an implicit plane, we can rearrange this to the "standard form" and find the normal vector to the graph.
Theorem 12.2 (Normal Vector to a Graph). At the point
Its negative,
is a downward-facing normal vector.
Note that any scalar multiple of this vector is also a normal vector to the graph - this just provides one such vector. Depending on the application, sometimes we want the upward facing normal and sometimes we want the downward facing normal.
We will use normal vectors to surfaces a lot in the last portion of this course, on Vector Analysis. Here we will often need to be careful, and think about whether we want the normal that is pointed up or down in a given application.
Example 12.3 (A Tangent Plane). Find the tangent plane to
Let
Therefore the tangent plane is
An upward-facing normal is
The second method we could use is to try and find a parametric equation for the plane. Again, we start by considering the one dimensional case. A parametric line is of the form
Now all we need is the position: but that's just
What do we do for a function of two or more variables? We just...add more variables!
For
the two coordinate-direction tangent vectors are
Theorem 12.4 (Parametric Tangent Plane). The tangent plane to the graph of
Example 12.5 (A Parametric Tangent Plane). Find a parametric equation for the tangent plane to the saddle
Here
Thus,
The differentiability of a function in multiple variables is defined in terms of the existence of a tangent plane: we say that a function
Definition 12.6 (Multivariable Differentiability). A function
where the error is small compared with the step:
Functions we will see are mostly differentiable, but warning there are functions that are not. Luckily, there's an easy sufficient condition to check using partial derivatives:
Theorem 12.7 (A Sufficient Condition for Differentiability). If all first partial derivatives of a multivariable function exist and are continuous in a neighborhood of a point, then the function is differentiable there.
The existence of the partial derivatives at the point alone is not enough. They measure the function along coordinate lines, while differentiability requires one linear approximation to work for steps arriving from every direction.
The Fundamental Strategy of calculus is to take a complicated nonlinear object (like a function that you encounter in some real-world problem) and zoom in until it looks linear. Here, this zooming in process is realized by finding the tangent plane. Close to the point
where
Example 12.8 (Numerical Approximation). Find an approximate value of
Let
The nearby point
Since
The actual value is
Using linearization to estimate changes in a value is fundamental to physics and engineering. In 1-dimension, we define a variable called
So, any change in the input is multiplied by the derivative to give a change in the output. We can do a similar thing in more variables.
Starting at
The tangent plane predicts the linear change
Definition 12.9 (Differentials). The differential of
For a differentiable function and a small step,
This allows us to easily estimate how much
For worst-case error, the contributions from uncertain measurements may all push in the unfavorable direction, so we estimate
Example 12.10 (Error in the Volume of a Cone). The volume of a cone is given by
The relevant partial derivatives are
Thus,
This measurement can also be interpreted geometrically: this is the approximate volume of a thin-shelled cone of thickness
Example 12.11 (Error in the Volume of a Box). The dimensions of a rectangular box are measured to be 75cm, 60cm and 40cm. Each measurement is correct to within
For
Therefore,
12.2Quadratic Approximation
We've already gotten a ton of use out of linear approximations to a multivariable function. But we can learn even more by proceeding to higher derivatives. Here we study the quadratic approximation that includes all the first and second derivative information. Like in the linear case, the best way to get started is to recall what happens in one variable for the second order term in a Taylor series:
The move to multiple variables for the linearization required us just tacking on analogous terms for all additional variables. Happily the same holds true here!
Definition 12.12 (Quadratic Approximation). If
Because we know the order in which we take partials doesn't matter, the two mixed terms combine into
If you have taken Linear Algebra (or have seen Matrix Multiplication before elsewhere) there is a nice way to remember this formula. For
This formula looks intimidating in any of these forms when written out completely. But it is actually super easy to remember!
Start with the value
at the point we know.𝑓 ( 𝑎 , 𝑏 ) Add in first derivatives
and𝑓 𝑥 ( 𝑎 , 𝑏 ) multiplied by how far we've moved in that direction.𝑓 𝑦 ( 𝑎 , 𝑏 ) Add in
each second derivative, multiplied by the differences1 2 , or( 𝑥 − 𝑎 ) ( 𝑥 − 𝑎 ) or( 𝑥 − 𝑎 ) ( 𝑦 − 𝑏 ) depending on which second derivatives were taken.( 𝑦 − 𝑏 ) ( 𝑦 − 𝑏 )
Example 12.13 (A Quadratic Approximation). Find a quadratic approximation to
At
and
Writing
The quadratic approximation remembers more of the local shape than the tangent
plane, but we will postpone the classification into hills, bowls, and saddles
until Chapter 14. First, the next chapter develops the geometry already hidden
inside the linear term