Linear Approximation and Differentials
Click here for a printable version of this page.In this section we discuss using the derivative to compute a linear approximation to a function. We can use the linear approximation to a function to approximate values of the function at certain points. While it might not seem like a useful thing to do with when we have the function there really are reasons that one might want to do this. We give two ways this can be useful in the examples.
Also, we will compute the differential for a function. We will give an application of differentials in this section. However, one of the more important uses of differentials will come in the next chapter and unfortunately we will not be able to discuss it until then.
Linear Approximation
Linear approximation is really an application of the tangent line. Of course, to get the tangent line we do need to take derivatives, so in some way this is an application of derivatives as well.
Recall that the tangent line to the graph of $y=f(x)$ at $x=a$ is the line which best approximates $f(x)$ when $x$ is near $a$. The equation of the tangent line, which we'll call $L(x)$ for this discussion, is,
$$L\left( x \right) = f\left( a \right) + f'\left( a \right)\left( {x - a} \right).$$Again, this is just the tangent line, but we've given it a new name. Take a look at the following graph of a function and its tangent line.
From this graph we can see that near $x=a$ the tangent line and the function have nearly the same graph. On occasion we will use the tangent line, $L(x)$, as an approximation to the function, $f(x)$, near $x=a$. In these cases we call the tangent line the linear approximation to the function at $x=a$.
So, why would we do this? Let’s take a look at an example.
Determine the linear approximation for $f(x)=\sqrt[3]{x}$ at $x=8$. Use this to approximate the values of $\sqrt[3]{8.05}$ and $\sqrt[3]{25}$.
Since this is just the tangent line there really isn’t a whole lot to finding the linear approximation.
$$f\left( 8 \right) = 2\hspace{0.5in}f'\left( x \right) = \frac{1}{3}{x^{ - \frac{2}{3}}} = \frac{1}{{3\,\sqrt[3]{{{x^2}}}}}\hspace{0.5in}f'\left( 8 \right) = \frac{1}{{12}}$$The linear approximation is then,
$$L\left( x \right) = 2 + \frac{1}{{12}}\left( {x - 8} \right).$$As for approximating values of $\sqrt[3]{8.05}$ and $\sqrt[3]{25}$, we recognize that $f(x)\approx L(x)$. Thus,
$$\begin{align*} \sqrt[3]{8.05}=f(8.05) &\approx L(8.05) \\ &= 2 + \frac{1}{12}(8.05-8) \\ &= 2 + \frac{1}{12}(0.05) \\ &= 2 + \frac{1}{240} \\ &= 2.0041\bar{6} \end{align*}$$ and $$\begin{align*} \sqrt[3]{25}=f(25) &\approx L(25) \\ &= 2 + \frac{1}{12}(25-8) \\ &= 2 + \frac{1}{12}(17) \\ &= 2 + 1.41\bar{6} \\ &= 3.41\bar{6}. \end{align*}$$So we have $\sqrt[3]{8.05}\approx 2.0041\bar{6}$ and $\sqrt[3]{25}\approx 3.41\bar{6}$ using $L(x)$.
Just for fun, let's compare these to the actual values (still rounded slightly):
$$\begin{align*}L\left( {8.05} \right) & = 2.0041\bar{6} & \hspace{0.75in} \sqrt[3]{{8.05}} & = 2.00415802\\ L\left( {25} \right) & = 3.41\bar{6} & \hspace{0.75in} \sqrt[3]{{25}} & = 2.92401774\end{align*}$$So, at $x=8.05$ this linear approximation does a very good job of approximating the actual value. However, at $x=25$ it doesn’t do such a good job.
This shouldn’t be too surprising if you think about it. Near $x=8$ both the function and the linear approximation have nearly the same slope and since they both pass through the point $(8,2)$ they should have nearly the same value as long as we stay close to $x=8$. However, as we move away from $x=8$ the linear approximation is a line and so will always have the same slope while the function's slope will change as $x$ changes and so the function will, in all likelihood, move away from the linear approximation.
Here’s a quick sketch of the function and its linear approximation at $x=8$.
As noted above, the farther from $x=8$, the more $f(x)$ and $L(x)$ differ in $y$-values. Thus $L(x)$ does not produce good approximations for values of $f(x)$.
Linear approximations do a very good job of approximating values of $f(x)$ as long as we stay "near" $x=a$. However, the farther away from $x=a$ we get the worse the approximation is liable to be. The main problem here is that how near we need to stay to $x=a$ in order to get a good approximation will depend upon both the function we're using and the value of $x=a$ that we’re using. Also, there will often be no easy way of predicting how far away from $x=a$ we can get and still have a "good" approximation.
Let's take a look at another example that is actually used fairly heavily in some places.
Determine the linear approximation for $\sin(\theta)$ at $\theta=0$.
Again, there really isn’t a whole lot to this example. All that we need to do is compute the tangent line to $\sin(\theta)$ at $\theta=0$.
$$\begin{align*} &f(\theta)=\sin(\theta) && &f'(\theta)=\cos(\theta) \\ &f(0)=0 && &f'(0)=1 \end{align*}$$The linear approximation is
$$\begin{align*} L(\theta) &= f(0)+f'(0)(\theta-0)\\ &= 0+1\cdot(\theta-0)\\ &= \theta. \end{align*}$$So, as long as $\theta$ stays small, we can say that $\sin(\theta)\approx\theta$.
This is actually a somewhat important linear approximation. In optics this linear approximation is often used to simplify formulas. This linear approximation is also used to help describe the motion of a pendulum and vibrations in a string.
In practice, one might not be given an actual function and "nice" value to use in an approximation. For example, say you wanted to find an approximation of the value of $\sqrt{10}$. One way to do that could be to use linear approximation, allowing $f(x)=\sqrt{x}$ and $x=9$. Then $\sqrt{10}=f(10)\approx L(10)$. We might suspect that this approximation is fairly good since $10$ is near $x=9$ and choosing to do our approximation with $x=9$ is nice since it gives nice values for $f(x)$ and $f'(x)$ while still being close to $10$.
Differentials
Recall in the section on the definition of the derivative, we introduced a possible way to denote derivatives with the limit definition:
$$\frac{dy}{dx}=\lim_{\Delta x\to 0}\frac{\Delta y}{\Delta x}$$where $\Delta x$ and $\Delta y$ can be thought of as just the "change in $x$" and "change in $y$", respectively. We also have typically treated $\dfrac{dy}{dx}$ as one big variable. In fact, we can think about $dy$ and $dx$ separately.
While $\Delta y$ represents the difference in the $y$-values of a secant line for a certain difference of $x$-values ($\Delta x$), $dy$ represents the different in $y$-values of the
To reiterate the idea of the derivative of a function, we would expect the values of $\dfrac{\Delta y}{\Delta x}$ to get close to the values of $\dfrac{dy}{dx}$ as the difference in the $x$-values gets very small ($\Delta x\to 0$). Thus we know that for a function $y=f(x)$,
$$\frac{dy}{dx}=f'(x).$$With the idea of treating $dy$ and $dx$ spearately, we can rewrite the above as
$$dy=f'(x)\, dx.$$We call $dy$ and $dx$ differentials. Note that if we are just given $f(x)$ then the differentials are $df$ and $dx$ and we compute them in the same manner:
$$df=f'(x)\, dx.$$While we are really just doing derivatives here, this new way of writing it out is quite important, (hopefully) becoming apparant in the next chapter. Let's work on computing some of these differentials.
Compute the differential for each of the following.
Before working any of these we should first discuss just what we're being asked to find here. We defined two differentials earlier and here we’re being asked to compute a differential.
So, which differential are we being asked to compute? In this kind of problem we're being asked to compute the differential of the function. In other words, $dy$ for the first problem, $dw$ for the second problem and $df$ for the third problem.
- $y=t^3-4y^2+7t$
- $w=x^2\sin(2x)$
- $f(z)=e^{3-z^4}$
This is just like finding $\dfrac{dy}{dt}$, the derivative, and "solving" for $dy$. In fact, let's do that for this example.
$$\begin{align*} \frac{dy}{dt} &= 3t^2-8t+7 \\ dt\cdot\left(\frac{dy}{dt}\right) &= (3t^2-8t+7)\cdot dt \\ dy &= (3t^2-8t+7)dt \end{align*}$$For this example, we'll skip the part of keeping $\dfrac{dw}{dx}$ on one side and go right to where we would have multiplied by $dx$. Keep in mind that we'll need the product rule to take the derivative of $x^2\sin(2x)$.
$$dw=\left(2x\sin(2x)+2x^2\cos(2x)\right)dx$$Let's also jump right to the differentials for this one.
$$df=-4z^3 e^{3-z^4}\, dz$$We can use differentials, such as $dy$ and $dx$, and their relationships with $\Delta y$ and $\Delta x$ to do a few applications. Remembering that $\Delta y$ and $\Delta x$ are really just the change, or difference, in $y$ and $x$, respectively, we can say $\Delta y=f(x+\Delta x)-f(x)$ for some function $f(x)$. As noted before, when $\Delta x=dx$ is small, we can assume that $\Delta y\approx dy$.
Compute $dy$ and $\Delta y$ if $y=\cos(x^2+1)-x$ and $x$ changes from $x=2$ to $x=2.03$.
First, let's compute the actual change in $y$, $\Delta y$.
$$\Delta y=[\cos((2.03)^2+1)-2.03]-[\cos((2)^2+1)-2]\approx0.08358$$To determine $dy$, we should first compute the differential, as we have done before.
$$dy=\left(-2x\sin(x^2+1)-1\right) dx$$Recall that $dx=\Delta x$. So we have $dx=0.03$. Also, as $x$ is starting at $2$, then we'll use $x=2$ to evaluate $dy$.
$$dy=(-2(2)\sin(2^2+1)-1)\cdot(0.03)\approx0.08507$$We can see that, in fact, $\Delta y\approx dy$, provided we keep $\Delta x$ small.
Let's see another example where we use the fact that $\Delta y\approx dy$.
A sphere was measured and its radius was found to be 45 inches with a possible error of no more that $0.01$ inches. What is the maximum possible error in the volume if we use this value of the radius?
First, recall the equation for the volume of a sphere.
$$V=\frac{4}{3}\pi r^2$$We can think of the error or the radius and volume as $\Delta r=0.01$ and $\Delta V$, respectively. So if we want to find $\Delta V$, we can use $dV$ to get a decent approximation (since $\Delta r=dr$ is small). Let's first find the differential $dV$.
$$dV=4\pi r^2 dr$$Now we can evaluate this with $r=45$ (the "initial" measurement of the radius) and $dr=\Delta r=0.01$. We'll also inlude our variables here.
$$\Delta V\approx dV=4\pi(45)^2(0.01)\approx 254.47 \text{ in}^3$$Thus the maximum error in the volume (the difference between the actual volumes of spheres with radius 45 and 45.01 in) is approximately 254.47 in$^3$.
Be careful to not assume this is a large error. On the surface it looks large, however if we compute the actual volume for $r=45$ we get $V=381,703.51 \text{ in}^3$. So, in comparison the error in the volume is,
$$\frac{254.47}{381703.51}\times 100=0.067\%,$$which is not much possible error at all!
Practice Problems
For problems 1 & 2 find a linear approximation to the function at the given point.
- $f(x)=3xe^{2x-10}$ at $x=5$
We'll need the derivative (which requires the product rule) as well as both the function and derivative evaluated at $x=5$.
$$f'\left( x \right) = 3{{\bf{e}}^{2x - 10}} + 6x\,{{\bf{e}}^{2x - 10}}\hspace{0.5in}f\left( 5 \right) = 15\hspace{0.5in}f'\left( 5 \right) = 33$$sThere really isn’t much to do at this point other than write down the linear approximation.
$$L(x)=15+33(x-5)=33x-150$$While it wasn't asked for, here is a quick sketch of the function and the linear approximation.
- $h(t)=t^4-6t^3+3t-7$ at $t=-3$
We'll need the derivative first as well as a couple of function evaluations.
$$h'\left( t \right) = 4{t^3} - 18{t^2} + 3\hspace{0.5in}h\left( { - 3} \right) = 227\hspace{0.5in}h'\left( { - 3} \right) = - 267$$There really isn't much to do at this point other than write down the linear approximation.
$$L(t)=227-267(t+3)=-267t-574$$
- Find the linear approximation to $g(z)=\sqrt[4]{x}$ at $z=2$. Use the linear approximation to approximate the value of $\sqrt[4]{3}$ and $\sqrt[4]{10}$. Compare the approximated values to the exact values.
We'll need the derivative first as well as a couple of function evaluations.
$$g'\left( z \right) = \frac{1}{4}{z^{ - \,\frac{3}{4}}}\hspace{0.5in}g\left( 2 \right) = {2^{\frac{1}{4}}}\hspace{0.5in}g'\left( 2 \right) = \frac{1}{4}\left( {{2^{ - \,\frac{3}{4}}}} \right)$$Here is the linear approximation.
$$L(z)=2^{1/4}+\frac{1}{4}\left(2^{-3/4}\right)(z-2)$$Finally, here are the approximations of the values along with the exact values.
$$\begin{align*} L\left( 3 \right) & = 1.33786 & \hspace{0.5in}g\left( 3 \right) & = 1.31607 & \hspace{0.5in} {\mbox{% Error : }} & 1.65523\\ L\left( {10} \right) & = 2.37841 & \hspace{0.5in}g\left( {10} \right) & = 1.77828 & \hspace{0.5in} {\mbox{% Error : }} & 33.7481 \end{align*}$$So, as we might have expected the farther from $z=2$ we got the worse the approximation is. Recall that the approximation will generally be more accurate the closer to the point of the linear approximation.
- Find the linear approximation to $f(t)=\cos(2t)$ at $t=\frac{1}{2}$. Use the linear approximation to approximate the value of $\cos(2)$ and $\cos(18)$. Compare the approximated values to the exact values.
We'll need the derivative first as well as a couple of function evaluations.
$$f'\left( t \right) = - 2\sin \left( {2t} \right)\hspace{0.5in}f\left( {\frac{1}{2}} \right) = \cos \left( 1 \right)\hspace{0.5in}f'\left( {\frac{1}{2}} \right) = - 2\sin \left( 1 \right)$$Here is the linear approximation.
$${L\left( t \right) = \cos \left( 1 \right) - 2\sin \left( 1 \right)\left( {t - \frac{1}{2}} \right) = 0.5403 - 1.6829\left( {t - \frac{1}{2}} \right)}$$Make sure you are using radians!
Now, if we want to approximate $\cos(2)$, that is equivalent to evaluating $f(1)=\cos(2)$, we need to evaluate the linear approximation at $t=1$. Likewise, to approximate $\cos(18)$ we need to evaluate the linear approximation at $t=9$.
So, here are the approximations of the values along with the exact values.
$$\begin{align*} L\left( 1 \right) & = - 0.301169 & \hspace{0.5in}f\left( 1 \right) & = - 0.416147 & \hspace{0.5in}{\mbox{% Error : }} & 27.6292\\ L\left( 9 \right) & = - 13.7647 & \hspace{0.5in}f\left( 9 \right) & = 0.660317 & \hspace{0.5in}{\mbox{% Error : }} & 2184.56 \end{align*}$$So, as we might have expected the farther from $t=\frac{1}{2}$ we got the worse the approximation is. Recall that the approximation will generally be more accurate the closer to the point of the linear approximation.
- Without using any kind of computational aid use a linear approximation to estimate the value of $e^{0.1}$.
This is really the same problem as Problems 3 & 4 from this section. The difference is that we need to determine the function and point for the linear approximation.
Given the value we are being asked to estimate it should be fairly clear that the function should be $f(x)=e^x$.
The point for the linear approximation should also be somewhat clear. With the function in hand it’s now clear that we are being asked to use a linear approximation to estimate $f(0.1)$. So, we'll need a point that is close to $x=0.1$ and one that we can evaluate in the function without a calculator. It therefore seems fairly clear that $x=0$ would be a really nice point use for the linear approximation.
At this point finding the linear approximation shouldn’t be too bad so here is the work for that.
$$f'\left( x \right) = {{\bf{e}}^x}\hspace{0.5in}f\left( 0 \right) = 1\hspace{0.5in}f'\left( 0 \right) = 1$$The linear approximation is then,
$${L\left( t \right) = 1 + \left( 1 \right)\left( {x - 0} \right) = x + 1}.$$The estimation of $e^{0.1}$ is then,
$$e^{0.1}\approx L(0.1)=1.1$$For comparison purposes the exact value is $f(0.1)=1.10517$ and so we have an error of $0.467884 \%$.
For problems 6 – 8 compute the differential of the given function.
- $f(x)=x^2-\sec(x)$
There is not really a whole lot to this problem. We need to simply differentiate each side, keeping the differentials $df$ and $dx$ on their respective sides.
$${df = \left( {2x - \sec \left( x \right)\tan \left( x \right)} \right)dx}$$- $w=e^{x^4-x^2+4x}$
There is not really a whole lot to this problem. Make sure you're using the chain rule!
$$dw = \left( {4{x^3} - 2x + 4} \right){{\bf{e}}^{{x^{\,4}} - {x^{\,2}} + 4x}}\,dx$$- $h(z)=\ln(2z)\sin(2z)$
Let's get right to the differentials. Make sure you're using the product rule (as well as chain rule).
$$dh = \left( {\frac{1}{z}\sin \left( {2z} \right) + 2\ln \left( {2z} \right)\cos \left( {2z} \right)} \right)dz$$
- Compute $dy$ and $\Delta y$ for $y=e^{x^2}$ as $x$ changes from $3$ to $3.01$.
First let's get the actual change, $\Delta y$.
$$\Delta y = {{\bf{e}}^{3.01{\,^2}}} - \,{{\bf{e}}^{3{\,^2}}} = 501.927$$Next, we'll need the differential.
$$dy=2xe^{x^2}dx$$As $x$ changes from $3$ to $3.01$ we have $\Delta x=3.01−3=0.01$ and $dx=\Delta x=0.01$. The approximate change, $dy$, is then,
$$dy = 2\left( 3 \right)\,{{\bf{e}}^{{3^{\,2}}}}\left( {0.01} \right) = 486.185$$Don’t forget to use the "starting" value of $x$ (i.e. $x=3$) for all the $x$'s in the differential.
- Compute $dy$ and $\Delta y$ for $y=x^5−2x^3+7x$ as $x$ changes from $6$ to $5.9$.
First let's get the actual change, $\Delta y$.
$$\Delta y = \left( {{{5.9}^5} - 2\left( {{{5.9}^3}} \right) + 7\left( {5.9} \right)} \right) - \left( {{6^5} - 2\left( {{6^3}} \right) + 7\left( 6 \right)} \right) = - 606.215$$Next, we'll need the differential.
$$dy = \left( {5{x^4} - 6{x^2} + 7} \right)dx$$As $x$ changes from $6$ to $5.9$ we have $\Delta x=5.9−6=−0.1$ and $dx=\Delta x=−0.1$. The approximate change, $dy$, is then,
$$dy = \left( {5\left( {{6^4}} \right) - 6\left( {{6^2}} \right) + 7} \right)\left( { - 0.1} \right) = - 627.1$$Don't forget to use the "starting" value of $x$ (i.e. $x=6$) for all the $x$'s in the differential.
- The sides of a cube are found to be $6$ feet in length with a possible error of no more than $1.5$ inches. What is the maximum possible error in the volume of the cube if we use this value of the length of the side to compute the volume?
Let's get everything set up first. If we let the side of the cube be denoted by $x$ the volume is then,
$$V(x)=x^3.$$We are told that $x=6$ and we can assume that $dx=\Delta x=\frac{1.5}{12}=0.125$ (don’t forget to convert the inches to feet!).
We want to estimate the maximum error in the volume and so we can again assume that $\Delta V\approx dV$.
The differential is then,
$$dV=3x^2 dx$$The maximum error in the volume is then,
$$\Delta V \approx dV = 3\left( {{6^2}} \right)\left( {0.125} \right) = 13.5\, \mbox{ft}^{3}$$
Assignment Problems
For problems 1 – 4 find a linear approximation to the function at the given point.
- $f(x)=\cos(2x)$ at $x=\pi$
- $h(z)=\ln(z^2+5)$ at $z=2$
- $g(x)=2-9x-3x^2-x^3$ at $x=-1$
- $g(t)=e^{\sin(t)}$ at $t=-4$
- Find the linear approximation to $h(y)=\sin(y+1)$ at $y=0$. Use the linear approximation to approximate the value of $\sin(2)$ and $\sin(15)$. Compare the approximated values to the exact values.
- Find the linear approximation to $R(t)=\sqrt[5]{t}$ at $t=32$. Use the linear approximation to approximate the value of $\sqrt[5]{31}$ and $\sqrt[5]{3}$. Compare the approximated values to the exact values.
- Find the linear approximation to $h(x)=e^{1−x}$ at $x=1$. Use the linear approximation to approximate the value of $e$ and $e^{-4}$. Compare the approximated values to the exact values.
For problems 8 – 10 estimate the given value using a linear approximation and without using any kind of computational aid.
- $\ln(1.1)$
- $\sqrt{8.9}$
- $\sec(0.1)$
For problems 11 – 14 compute the differential of the given function.
- $f(x)=3x^6-8x^3+x^2-9x-4$
- $u=t^2\cos(2t)$
- $y=e^{\cos(z)}$
- $g(z)=\sin(3z)-\cos(1-z)$
- Compute $dy$ and $\Delta y$ for $y=\sin(x)$ as $x$ changes from $6$ radians to $6.05$ radians.
- Compute $dy$ and $\Delta y$ for $y=\ln(x^2+1)$ as $x$ changes from $-2$ to $-2.1$.
- Compute $dy$ and $\Delta y$ for $y=\dfrac{1}{x−2}$ as $x$ changes from $3$ to $3.02$.
- Compute $dy$ and $\Delta y$ for $y=xe^{\frac{1}{4}x}$ as $x$ changes from $-10$ to $-9.99$.
- The sides of a cube are found to be $6$ feet in length with a possible error of no more than $1.5$ inches. What is the maximum possible error in the surface area of the cube if we use this value of the length of the side to compute the surface area?
- The radius of a circle is found to be $7$ cm in length with a possible error of no more than $0.04$ cm. What is the maximum possible error in the area of the circle if we use this value of the radius to compute the area?
- The radius of a sphere is found to be $22$ cm in length with a possible error of no more than $0.07$ cm. What is the maximum possible error in the volume of the sphere if we use this value of the radius to compute the volume?
- The radius of a sphere is found to be $1/2$ foot in length with a possible error of no more than $0.03$ inches. What is the maximum possible error in the surface area of the sphere if we use this value of the radius to compute the surface area?
- Compute $dy$ and $\Delta y$ for $y=x^5−2x^3+7x$ as $x$ changes from $6$ to $5.9$.
- $w=e^{x^4-x^2+4x}$
- Find the linear approximation to $f(t)=\cos(2t)$ at $t=\frac{1}{2}$. Use the linear approximation to approximate the value of $\cos(2)$ and $\cos(18)$. Compare the approximated values to the exact values.
- $h(t)=t^4-6t^3+3t-7$ at $t=-3$