We use a method called “linear approximation” to estimate the value of a (complicated) function at a given point.
Given a function, a linear approximation is a fancy phrase for something you already know:
The line tangent to the graph of a function at a point is very close to the graph of the function near that point.
This tangent line is the graph of a linear function, called the linear approximation.
Note that the graph of \(L\) is just the tangent line to the graph of \(f\) at \(x=a\).
A linear approximation of \(f\) is a “good” approximation as long as \(x\) is “not too far” from \(a\). If one “zooms in” on the graph of \(f\) sufficiently, then the graphs of \(f\) and \(L\) are nearly indistinguishable.
As a first example, we will see how linear approximations allow us to approximate “difficult” computations.
What would happen if we chose \(a=27\) instead?
Then we would use \(L_{27}\), the linear approximation to the function \(f\) at \(a=27\). In that case, \(L_{27}=f(27)+f'(27)(x-27)=3+\frac {1}{27}(x-27)\). The graph of \(L_{27}\), together with the graphs of \(f\) and \(L=L_{64}\) is given in the figure below.
\(L_{27}(50)>L_{64}(50)>f(50)\).
So, our choice, \(a=64\), was better!
With modern calculators and computing software, it may not appear necessary to use linear approximations. In fact they are quite useful. In cases requiring an explicit numerical approximation, they allow us to get a quick rough estimate which can be used as a “reality check” on a more complex calculation. In some complex calculations involving functions, the linear approximation makes an otherwise intractable calculation possible, without serious loss of accuracy.
1 Overestimates or Underestimates
Remember that geometrically, the actual function value corresponds to the \(y\)-coordinate of a point on the graph of the function and the approximate value corresponds to the \(y\)-coordinate of a point on the graph of the tangent line. We have terminology to describe the sitation when the graph of the function is above or below the tangent line: Concavity.
- If \(f\) is concave up on the interval \(I\), then the approximation value \(L(b)\) is an underestimate of \(f(b)\).
- If \(f\) is concave down on the interval \(I\), then the approximation value \(L(b)\) is an overestimate of \(f(b)\).
For the point \(a\) we need a value near \(0.9\) that we can calculate \(f(a)\) and \(f'(a)\). Using \(a=1\) works for this since \(f(1) = \answer [given]{1}\) and \(f'(x) = 3x^2\) so \(f'(1) = \answer [given]{3}\).
The linear approximation function is \(L(x) = 3(x-1)+1\). That makes \(L(0.9) = \answer [given]{0.7}\).
That is our approximation. Now we need to determine whether this value was an overestimate or an underestimate. \(f''(x) = 6x\) which is positive in the interval \((0, \infty )\). That means \(f\) is concave up on the interval \((0.9, 1)\) (since this interval is inside \((0,\infty )\)).
The approximation value is \(L(0.9)=0.7\) which is an underestimate because \(f\) is concave up on the interval \((0.9,1)\).
Notice that we only indicated the interval \((0.9, 1)\) in this answer. Even though the function \(f\) is concave up on the entire \((0, \infty )\), it is only the interval \((0.9, 1)\) that is relevant to this question, so that is what was included in the response.
2 Differentials
The graph of a function \(f\) and the graph of \(L\), the linear approximation of \(f\) at \(a\), are shown in the figure below. Also, two quantities, \(\d x\) and \(\d f\), and a point \(P\) are marked in the figure. Look carefully at the figure when answering the questions below.
So, we can write \(\d f=f'(a)\d x\) and call it a differential of \(f\) at \(a\). Notice that we can define a differential at any point \(x\) of the domain of \(f\), provided that \(f'(x)\) exists.
Students frequently confuse the differential \(df\) with the derivative \(f'(a)\). Remember that the derivative tells us the rate of change at the point, while the differential \(df\) is an estimated amount of change.
We will do that in our next definition.
Geometrically, differentials can be interpreted via the diagram below.
Note, it is now the case (by definition!) that
We should not be surprised, since the slope of the tangent line in the figure is \(f'(x)\), and this slope is also given by \(\frac {\d f }{\d x}\).
Essentially, differentials allow us to solve the problems presented in the previous examples from a slightly different point of view. Recall, when \(h\) is near but not equal zero,
Hence,
We can replace a quantity \(h\) with a quantity \(\d x\) to write
Adding \(f(x)\) to both sides we see
or, equivalently
There are contexts where the language of differentials is common. Here is the basic strategy:
We will repeat our previous examples using differentials.
Here we see a plot of \(y=\sqrt [3]{x}\) with the differentials above marked:
Now we must compute \(\d f\):Hence \(f(50) \approx f(64) + \frac {-7}{24} \approx 3.71\).
Here we see a plot of \(y=\sin (x)\) with the differentials above marked:
Now we must compute \(\d y\):Hence \(\sin (0.3) \approx \sin (0) + 0.3 \approx 0.3\).
The upshot is that linear approximations and differentials are simply two slightly different ways of doing the exact same thing.
3 Error approximation
Differentials also help us estimate error in real life settings.
There is a mark indicating when the glass is filled to \(250\) ml at \(16.8\) cm from the base of the glass. If the glass is filled within \(\pm 2\) millimeters of the mark, what are the bounds on the volume?
4 New and old friends
You might be wondering, given a plot \(y=f(x)\),
What’s the difference between \(\Delta x\) and \(\d x\)? What about \(\Delta y\) and \(\d y\)?
Regardless, it is now a pressing question. Here’s the deal:
is the average rate of change of \(y=f(x)\) with respect to \(x\). On the other hand:
is the instantaneous rate of change of \(y=f(x)\) with respect to \(x\). Essentially, \(\Delta x\) and \(\d x\) are the same type of thing, they are (usually small) changes in \(x\). However, \(\Delta y\) and \(\d y\) are very different things.
- \(\Delta y=f(x+\Delta x)-f(x)\); it is the change in \(y=f(x)\) associated to \(\Delta x\).
-
\(\d y=L(x+\d x)-L(x)\), it is the change in \(y=L(x)\) associated to \(\Delta x=\d x\).
\[ \d y =f'(x)\d x \]Note: \( L(x+\d x)= f(x)+f'(x)\d x\).So, the change
\begin{align*} \d y &= L(x+\d x)-L(x)\\ &= f(x)+f'(x)\d x-L(x)\\ &= f(x)+f'(x)\d x-f(x)\\ &=f'(x)\d x \end{align*}
Differentials can be confusing at first. However, when you master them, you will have a powerful tool at your disposal.