Section3.4Approximating Functions Near a Specified Point — Taylor Polynomials
Suppose that you are interested in the values of some function \(f(x)\) for \(x\) near some fixed point \(a\text{.}\) When the function is a polynomial or a rational function we can use some arithmetic (and maybe some hard work) to write down the answer. For example:
but how does the calculator do this? How did people compute this before calculators 1
Originally the word “calculator” referred not to the software or electronic (or even mechanical) device we think of today, but rather to a person who performed calculations.
? A hint comes from the following sketch of \(\sin(x)\) for \(x\) around \(0\text{.}\)
The above figure shows that the curves \(y=x\) and \(y=\sin x\) are almost the same when \(x\) is close to \(0\text{.}\) Hence if we want the value of \(\sin(1/10)\) we could just use this approximation \(y=x\) to get
Of course, in this case we simply observed that one function was a good approximation of the other. We need to know how to find such approximations more systematically.
More precisely, say we are given a function \(f(x)\) that we wish to approximate close to some point \(x=a\text{,}\) and we need to find another function \(F(x)\) that
is simple and easy to compute 2
It is no good approximating a function with something that is even more difficult to work with.
is a good approximation to \(f(x)\) for \(x\) values close to \(a\text{.}\)
Further, we would like to understand how good our approximation actually is. Namely we need to be able to estimate the error \(|f(x)-F(x)|\text{.}\)
There are many different ways to approximate a function and we will discuss one family of approximations: Taylor polynomials. This is an infinite family of ever improving approximations, and our starting point is the very simplest.
Subsection3.4.1Zeroth Approximation — the Constant Approximation
The simplest functions are those that are constants. And our zeroth 3
It barely counts as an approximation at all, but it will help build intuition. Because of this, and the fact that a constant is a polynomial of degree 0, we’ll start counting our approximations from zero rather than 1.
approximation will be by a constant function. That is, the approximating function will have the form \(F(x)=A\text{,}\) for some constant \(A\text{.}\) Notice that this function is a polynomial of degree zero.
To ensure that \(F(x)\) is a good approximation for \(x\) close to \(a\text{,}\) we choose \(A\) so that \(f(x)\) and \(F(x)\) take exactly the same value when \(x=a\text{.}\)
An important point to note is that we need to know \(f(a)\) — if we cannot compute that easily then we are not going to be able to proceed. We will often have to choose \(a\) (the point around which we are approximating \(f(x)\)) with some care to ensure that we can compute \(f(a)\text{.}\)
Here is a figure showing the graphs of a typical \(f(x)\) and approximating function \(F(x)\text{.}\)
At \(x=a\text{,}\)\(f(x)\) and \(F(x)\) take the same value. For \(x\) very near \(a\text{,}\) the values of \(f(x)\) and \(F(x)\) remain close together. But the quality of the approximation deteriorates fairly quickly as \(x\) moves away from \(a\text{.}\) Clearly we could do better with a straight line that follows the slope of the curve. That is our next approximation.
But before then, an example:
Example3.4.2.A (weak) approximation of \(e^{0.1}\).
Use the constant approximation to estimate \(e^{0.1}\text{.}\)
Solution First set \(f(x) = e^x\text{.}\)
Now we first need to pick a point \(x=a\) to approximate the function. This point needs to be close to \(0.1\) and we need to be able to evaluate \(f(a)\) easily. The obvious choice is \(a=0\text{.}\)
Note that \(e^{0.1} = 1.105170918\dots\text{,}\) so even this approximation isn’t too bad..
Subsection3.4.2First Approximation — the Linear Approximation
Our first 4
Recall that we started counting from zero.
approximation improves on our zeroth approximation by allowing the approximating function to be a linear function of \(x\) rather than just a constant function. That is, we allow \(F(x)\) to be of the form \(A+Bx\text{,}\) for some constants \(A\) and \(B\text{.}\)
To ensure that \(F(x)\) is a good approximation for \(x\) close to \(a\text{,}\) we still require that \(f(x)\) and \(F(x)\) have the same value at \(x=a\) (that was our zeroth approximation). Our additional requirement is that their tangent lines at \(x=a\) have the same slope — that the derivatives of \(f(x)\) and \(F(x)\) are the same at \(x=a\text{.}\) Hence
We write it in this form because we can now clearly see that our first approximation is just an extension of our zeroth approximation. This first approximation is also often called the linear approximation of \(f(x)\) about \(x=a\text{.}\)
We should again stress that in order to form this approximation we need to know \(f(a)\) and \(f'(a)\) — if we cannot compute them easily then we are not going to be able to proceed.
Recall, from Theorem 2.3.4, that \(y=f(a)+f'(a)(x-a)\) is exactly the equation of the tangent line to the curve \(y=f(x)\) at \(a\text{.}\) Here is a figure showing the graphs of a typical \(f(x)\) and the approximating function \(F(x)\text{.}\)
Observe that the graph of \(f(a)+f'(a)(x-a)\) remains close to the graph of \(f(x)\) for a much larger range of \(x\) than did the graph of our constant approximation, \(f(a)\text{.}\) One can also see that we can improve this approximation if we can use a function that curves down rather than being perfectly straight. That is our next approximation.
But before then, back to our example:
Example3.4.4.A better approximation of \(e^{0.1}\).
Use the linear approximation to estimate \(e^{0.1}\text{.}\)
Solution First set \(f(x) = e^x\) and \(a=0\) as before.
To form the linear approximation we need \(f(a)\) and \(f'(a)\text{:}\)
Recall that \(e^{0.1} = 1.105170918\dots\text{,}\) so the linear approximation is almost correct to 3 digits.
It is worth doing another simple example here.
Example3.4.5.A linear approximation of \(\sqrt{4.1}\).
Use a linear approximation to estimate \(\sqrt{4.1}\text{.}\)
Solution First set \(f(x)=\sqrt{x}\text{.}\) Hence \(f'(x) = \frac{1}{2\sqrt{x}}\text{.}\) Then we are trying to approximate \(f(4.1)\text{.}\) Now we need to choose a sensible \(a\) value.
We need to choose \(a\) so that \(f(a)\) and \(f'(a)\) are easy to compute.
We could try \(a=4.1\) — but then we need to compute \(f(4.1)\) and \(f'(4.1)\) — which is our original problem and more!
We could try \(a=0\) — then \(f(0)=0\) and \(f'(0) = DNE\text{.}\)
Setting \(a=1\) gives us \(f(1)=1\) and \(f'(1)=\frac{1}{2}\text{.}\) This would work, but we can get a better approximation by choosing \(a\) is closer to \(4.1\text{.}\)
Indeed we can set \(a\) to be the square of any rational number and we’ll get a result that is easy to compute.
Setting \(a=4\) gives \(f(4)=2\) and \(f'(4) = \frac{1}{4}\text{.}\) This seems good enough.
Notice that the true value is \(\sqrt{4.1} = 2.024845673\dots\text{.}\)
Subsection3.4.3Second Approximation — the Quadratic Approximation
We next develop a still better approximation by now allowing the approximating function be to a quadratic function of \(x\text{.}\) That is, we allow \(F(x)\) to be of the form \(A+Bx+Cx^2\text{,}\) for some constants \(A\text{,}\)\(B\) and \(C\text{.}\) To ensure that \(F(x)\) is a good approximation for \(x\) close to \(a\text{,}\) we choose \(A\text{,}\)\(B\) and \(C\) so that
\(f(a)=F(a)\) (just as in our zeroth approximation),
\(f'(a)=F'(a)\) (just as in our first approximation), and
Solve these for \(C\) first, then \(B\) and finally \(A\text{.}\)
\begin{align*}
C &=\half f''(a) & \text{substitute}\\
B &= f'(a) - 2Ca = f'(a)-af''(a) & \text{substitute again}\\
A &= f(a)-Ba-Ca^2 = f(a)-a[f'(a)-af''(a)]-\half f''(a)a^2\hskip-0.5in
\end{align*}
Then put things back together to build up \(F(x)\text{:}\)
\begin{align*}
F(x)&=f(a)-f'(a)a+\half f''(a)a^2 & &\text{(this line is $A$)}\cr
&\phantom{=f(a)\hskip3pt}+f'(a)\,x\hskip3pt- f''(a)ax
& & \text{(this line is $Bx$)}\\
&\phantom{=f(a)-f'(a)a\hskip3.5pt}+\half f''(a)x^2
& &\text{(this line is $Cx^2$)}\\
&=f(a)+f'(a)(x-a)+\half f''(a)(x-a)^2
\end{align*}
Oof! We again write it in this form because we can now clearly see that our second approximation is just an extension of our first approximation.
Our second approximation is called the quadratic approximation:
And from these we can clearly read off the values of \(\alpha,\beta\) and \(\gamma\) and so recover our function \(F(x)\text{.}\) Additionally if we write things this way, then it is quite clear how to extend this to a cubic approximation and a quartic approximation and so on.
Return to our example:
Example3.4.7.An even better approximation of \(e^{0.1}\).
Use the quadratic approximation to estimate \(e^{0.1}\text{.}\)
Solution Set \(f(x) = e^x\) and \(a=0\) as before.
To form the quadratic approximation we need \(f(a), f'(a)\) and \(f''(a)\text{:}\)
Recall that \(e^{0.1} = 1.105170918\dots\text{,}\) so the quadratic approximation is quite accurate with very little effort.
Before we go on, let us first introduce (or revise) some notation that will make our discussion easier.
Subsection3.4.4Whirlwind Tour of Summation Notation
In the remainder of this section we will frequently need to write sums involving a large number of terms. Writing out the summands explicitly can become quite impractical — for example, say we need the sum of the first 11 squares:
Or possibly gobbledygook. For a discussion of statements without meaning and why one should avoid them we recommend the book “Bendable learnings: the wisdom of modern management” by Don Watson.
.
Subsection3.4.5Still Better Approximations — Taylor Polynomials
We can use the same strategy to generate still better approximations by polynomials 8
Polynomials are generally a good choice for an approximating function since they are so easy to work with. Depending on the situation other families of functions may be more appropriate. For example if you are approximating a periodic function, then sums of sines and cosines might be a better choice; this leads to Fourier series.
of any degree we like. As was the case with the approximations above, we determine the coefficients of the polynomial by requiring, that at the point \(x=a\text{,}\) the approximation and its first \(n\) derivatives agree with those of the original function.
Rather than simply moving to a cubic polynomial, let us try to write things in a more general way. We will consider approximating the function \(f(x)\) using a polynomial, \(T_n(x)\text{,}\) of degree \(n\) — where \(n\) is a non-negative integer. As we discussed above, the algebra is easier if we write
Any polynomial in \(x\) of degree \(n\) can also be expressed as a polynomial in \((x-a)\) of the same degree \(n\) and vice versa. So \(T_n(x)\) really still is a polynomial of degree \(n\text{.}\)
10
Furthermore when \(x\) is close to \(a\text{,}\)\((x-a)^k\) decreases very quickly as \(k\) increases, which often makes the "high \(k\)" terms in \(T_n(x)\) very small. This can be a considerable advantage when building up approximations by adding more and more terms. If we were to rewrite \(T_n(x)\) in the form \(\ds \sum_{k=0}^n b_k x^k\) the "high \(k\)" terms would typically not be very small when \(x\) is close to \(a\text{.}\)
makes it very easy to evaluate this polynomial and its derivatives at \(x=a\text{.}\) Before we proceed, we remind the reader of some notation (see Notation 2.2.8):
Let \(f(x)\) be a function and \(k\) be a positive integer. We can denote its \(k^\mathrm{th}\) derivative with respect to \(x\) by
It is actually possible to define the factorial of positive real numbers and even negative numbers but it requires more advanced calculus and is outside the scope of this course. The interested reader should look up the Gamma function.
, then \(n\)-factorial, denoted \(n!\text{,}\) is the product
The polynomials are named after Brook Taylor who devised a general method for constructing them in 1715. Slightly later, Colin Maclaurin made extensive use of the special case \(a=0\) (with attribution of the general case to Taylor) and it is now named after him. The special case of \(a=0\) was worked on previously by James Gregory and Isaac Newton, and some specific cases were known to the 14th century Indian mathematician Madhava of Sangamagrama.
polynomial.
Before we proceed with some examples, a couple of remarks are in order.
While we can compute a Taylor polynomial about any \(a\)-value (providing the derivatives exist), in order to be a useful approximation, we must be able to compute \(f(a),f'(a),\cdots,f^{(n)}(a)\) easily. This means we must choose the point \(a\) with care. Indeed for many functions the choice \(a=0\) is very natural — hence the prominence of Maclaurin polynomials.
If we have computed the approximation \(T_n(x)\text{,}\) then we can readily extend this to the next Taylor polynomial \(T_{n+1}(x)\) since
This is very useful if we discover that \(T_n(x)\) is an insufficient approximation, because then we can produce \(T_{n+1}(x)\) without having to start again from scratch.
Subsection3.4.6Some Examples
Let us return to our running example of \(e^x\text{:}\)
Example3.4.12.Taylor approximations of \(e^x\).
The constant, linear and quadratic approximations we used above were the first few Maclaurin polynomial approximations of \(e^x\text{.}\) That is
The true value of \(e\) is \(2.718281828\dots\text{,}\) so the approximation has an error of about \(3\times10^{-5}\text{.}\)
Under the assumption that the accuracy of the approximation improves with \(n\) (an assumption we examine in Subsection 3.4.9 below) we can see that the approximation of \(e\) above can be improved by adding more and more terms. Indeed this is how the expression for \(e\) in equation 2.7.4 in Section 2.7 comes about.
Now that we have examined Maclaurin polynomials for \(e^x\) we should take a look at \(\log
x\text{.}\) Notice that we cannot compute a Maclaurin polynomial for \(\log x\) since it is not defined at \(x=0\text{.}\)
Example3.4.13.Taylor approximation of \(\log x\).
Compute the \(5^\mathrm{th}\) order Taylor polynomial for \(\log x\) about \(x=1\text{.}\)
Solution We have been told \(a=1\) and fifth order, so we should start by writing down the function and its first five derivatives:
Notice that since the \(4^\mathrm{th}\) derivative of \(\cos x\) is \(\cos x\) again, we also have that the fifth derivative is the same as the first derivative, and the sixth derivative is the same as the second derivative and so on. Hence the next four derivatives are
\begin{align*}
f^{(4)}(x) &= \cos x & f^{(4)}(0) &= 1\\
f^{(5)}(x) &= -\sin x & f^{(5)}(0) &= 0\\
f^{(6)}(x) &= -\cos x & f^{(6)}(0) &= -1\\
f^{(7)}(x) &= \sin x & f^{(7)}(0) &= 0\\
f^{(8)}(x) &= \cos x & f^{(8)}(0) &= 1
\end{align*}
Using this we can find the \(8^\mathrm{th}\) order Maclaurin polynomial:
The above formula only works when \(x\) is measured in radians, because all of our derivative formulae for trig functions were developed under the assumption that angles are measured in radians.
Below we plot \(\cos x\) against its first few Maclaurin polynomial approximations:
The above work is quite easily recycled to get the Maclaurin polynomial for sine:
Example3.4.16.Maclaurin polynomial for \(\sin x\).
Find the 5th order Maclaurin polynomial for \(\sin x\text{.}\)
Solution We could simply work as before and compute the first five derivatives of \(\sin x\text{.}\) But set \(g(x) = \sin x\) and notice that \(g(x) = - f'(x)\text{,}\) where \(f(x) =\cos x\text{.}\) Then we have
\begin{align*}
T_5(x) &= x - \frac{x^3}{3!} + \frac{x^5}{5!}
\end{align*}
Just as we extended to the \(2n^\mathrm{th}\) Maclaurin polynomial for cosine, we can also extend our work to compute the \((2n+1)^\mathrm{th}\) Maclaurin polynomial for sine:
The above formula only works when \(x\) is measured in radians, because all of our derivative formulae for trig functions were developed under the assumption that angles are measured in radians.
Below we plot \(\sin x\) against its first few Maclaurin polynomial approximations.
To get an idea of how good these Taylor polynomials are at approximating \(\sin\) and \(\cos\text{,}\) let’s concentrate on \(\sin x\) and consider \(x\)’s whose magnitude \(|x|\le 1\text{.}\) There are tricks that you can employ 14
If you are writing software to evaluate \(\sin x\text{,}\) you can always use the trig identity \(\sin(x)=\sin(x-2n\pi)\text{,}\) to easily restrict to \(|x|\le\pi\text{.}\) You can then use the trig identity \(\sin(x)=-\sin(x\pm\pi)\) to reduce to \(|x|\le\tfrac{\pi}{2}\text{.}\) Finally you can use the trig identity \(\sin(x)=\mp\cos(\tfrac{\pi}{2}\pm x))\) to reduce to \(|x|\le\tfrac{\pi}{4} \lt 1\text{.}\)
to evaluate sine and cosine at values of \(x\) outside this range.
If \(|x|\le 1\) radians 15
Recall that the derivative formulae that we used to derive the Taylor polynomials are valid only when \(x\) is in radians. The restriction \(-1 \leq x \leq 1\) radians translates to angles bounded by \(\tfrac{180}{\pi}\approx 57^\circ\text{.}\)
, then the magnitudes of the successive terms in the Taylor polynomials for \(\sin x\) are bounded by
From these inequalities, and the graphs on the previous pages, it certainly looks like, for \(x\) not too large, even relatively low order Taylor polynomials give very good approximations. In Section 3.4.9 we’ll see how to get rigorous error bounds on our Taylor polynomial approximations.
Subsection3.4.7Estimating Change and \(\De x\text{,}\)\(\De y\) Notation
Suppose that we have two variables \(x\) and \(y\) that are related by \(y=f(x)\text{,}\) for some function \(f\text{.}\) One of the most important applications of calculus is to help us understand what happens to \(y\) when we make a small change in \(x\text{.}\)
Definition3.4.18.
Let \(x,y\) be variables related by a function \(f\text{.}\) That is \(y = f(x)\text{.}\) Then we denote a small change in the variable \(x\) by \(\De x\) (read as “delta \(x\)”). The corresponding small change in the variable \(y\) is denoted \(\De y\) (read as “delta \(y\)”).
\begin{align*}
\De y &= f(x+\De x) - f(x)
\end{align*}
In many situations we do not need to compute \(\De y\) exactly and are instead happy with an approximation. Consider the following example.
Example3.4.19.Estimate the increase in cost for a given change in production.
Let \(x\) be the number of cars manufactured per week in some factory and let \(y\) the cost of manufacturing those \(x\) cars. Given that the factory currently produces \(a\) cars per week, we would like to estimate the increase in cost if we make a small change in the number of cars produced.
Solution We are told that \(a\) is the number of cars currently produced per week; the cost of production is then \(f(a)\text{.}\)
Say the number of cars produced is changed from \(a\) to \(a+\De x\) (where \(\De x\) is some small number.
As \(x\) undergoes this change, the costs change from \(y=f(a)\) to \(f(a+\De x)\text{.}\) Hence
\begin{align*}
\De y &= f(a+\De x) - f(a)
\end{align*}
We can estimate this change using a linear approximation. Substituting \(x=a+\De x\) into the equation 3.4.3 yields the approximation
simplifies to the following neat estimate of \(\De y\text{:}\)
Equation3.4.20.Linear approximation of \(\De y\).
\begin{gather*}
\De y\approx f'(a)\De x
\end{gather*}
In the automobile manufacturing example, when the production level is \(a\) cars per week, increasing the production level by \(\De x\) will cost approximately \(f'(a)\De x\text{.}\) The additional cost per additional car, \(f'(a)\text{,}\) is called the “marginal cost” of a car.
If we instead use the quadratic approximation (given by equation 3.4.6) then we estimate
Equation3.4.21.Quadratic approximation of \(\De y\).
\begin{align*}
\De y &\approx f'(a)\De x+\half f''(a)\De x^2
\end{align*}
Subsection3.4.8Further Examples
In this subsection we give further examples of computation and use of Taylor approximations.
Example3.4.22.Estimating \(\tan 46^\circ\).
Estimate \(\tan 46^\circ\text{,}\) using the constant-, linear- and quadratic-approximations (equations 3.4.1, 3.4.3 and 3.4.6).
Solution Note that we need to be careful to translate angles measured in degrees to radians.
Set \(f(x)=\tan x\text{,}\)\(x=46\tfrac{\pi}{180}\) radians and \(a=45\tfrac{\pi}{180}=\tfrac{\pi}{4}\) radians. This is a good choice for \(a\) because
\(a=45^\circ\) is close to \(x=46^\circ\text{.}\) As noted above, it is generally the case that the closer \(x\) is to \(a\text{,}\) the better various approximations will be.
We know the values of all trig functions at \(45^\circ\text{.}\)
Now we need to compute \(f\) and its first two derivatives at \(x=a\text{.}\) It is a good time to recall the special \(1:1:\sqrt{2}\) triangle
For comparison purposes, \(\tan 46^\circ\) really is \(1.035530\) to 6 decimal places.
Warning3.4.23.
All of our derivative formulae for trig functions were developed under the assumption that angles are measured in radians. Those derivatives appeared in the approximation formulae that we used in Example 3.4.22, so we were obliged to express \(x-a\) in radians.
Example3.4.24.Error inferring a height from an angle.
Suppose that you are ten meters from a vertical pole. You were contracted to measure the height of the pole. You can’t take it down or climb it. So you measure the angle subtended by the top of the pole. You measure \(\theta=30^\circ\text{,}\) which gives
This is just standard trigonometry — if we know the angle exactly then we know the height exactly.
However, in the “real world” angles are hard to measure with such precision. If the contract requires you the measurement of the pole to be accurate within \(10\) cm, how accurate does your measurement of the angle \(\theta\) need to be?
Solution For simplicity 16
Mathematicians love assumptions that let us tame the real world.
, we are going to assume that the pole is perfectly straight and perfectly vertical and that your distance from the pole was exactly 10 m.
Write \(\theta=\theta_0+\De\theta\) where \(\theta\) is the exact angle, \(\theta_0\) is the measured angle and \(\De \theta\) is the error.
Similarly write \(h=h_0+\De h\text{,}\) where \(h\) is the exact height and \(h_0=\tfrac{10}{\sqrt{3}}\) is the computed height. Their difference, \(\De h\text{,}\) is the error.
We could attempt to solve this equation for \(\De\theta\) in terms of \(\De h\) — but it is far simpler to approximate \(\De h\) using the linear approximation in equation 3.4.20.
To use equation 3.4.20, replace \(y\) with \(h\text{,}\)\(x\) with \(\theta\) and \(a\) with \(\theta_0\text{.}\) Our function \(f(\theta) = 10 \tan\theta\) and \(\theta_0 = 30^\circ =
\pi/6\) radians. Then
\begin{align*}
\De y &\approx f'(a) \De x & \text{ becomes }&&
\De h &\approx f'(\theta_0) \De \theta
\end{align*}
Since \(f(\theta)=10 \tan \theta\text{,}\)\(f'(\theta) = 10\sec^2\theta\) and
Suppose that you measure, approximately, some quantity. Suppose that the exact value of that quantity is \(Q_0\) and that your measurement yielded \(Q_0+\De Q\text{.}\) Then \(|\De Q|\) is called the absolute error of the measurement and \(100\frac{|\De Q|}{Q_0}\) is called the percentage error of the measurement. As an example, if the exact value is \(4\) and the measured value is \(5\text{,}\) then the absolute error is \(|5-4|=1\) and the percentage error is \(100\frac{|5-4|}{4}=25\text{.}\) That is, the error, \(1\text{,}\) was \(25\%\) of the exact value, \(4\text{.}\)
Example3.4.26.Error inferring the area and volume from the radius.
Suppose that the radius of a sphere has been measured with a percentage error of at most \(\varepsilon\)%. Find the corresponding approximate percentage errors in the surface area and volume of the sphere.
Solution We need to be careful in this problem to convert between absolute and percentage errors correctly.
Suppose that the exact radius is \(r_0\) and that the measured radius is \(r_0+\De r\text{.}\)
Then the absolute error in the measurement is \(|\De r|\) and, by definition, the percentage error is \(100\tfrac{|\De r|}{r_0}\text{.}\) We are told that \(100\tfrac{|\De
r|}{r_0}\le\varepsilon\text{.}\)
The surface area 17
We do not expect you to remember the surface areas of solids for this course.
of a sphere of radius \(r\) is \(A(r)=4\pi r^2\text{.}\) The error in the surface area computed with the measured radius is
\begin{align*}
\De A &=A(r_0+\De r)-A(r_0)\approx A'(r_0)\De r\\
&= 8\pi r_0 \Delta r
\end{align*}
where we have made use of the linear approximation, equation 3.4.20.
Thus the difference between the exact error and the linear approximation to the error is obtained by retaining only the last two terms in the square brackets. This has magnitude
Since \(\varepsilon\) is small, we can assume that \(1 + \frac{\varepsilon}{300} \approx 1\text{.}\) Hence the difference between the exact error and the linear approximation of the error is roughly a factor of \(\tfrac{\varepsilon}{100}\) smaller than the linear approximation \(3\varepsilon\text{.}\)
As an aside, notice that if we argue that \(\De r\) is very small and so we can ignore terms involving \((\De r)^2\) and \((\De r)^3\) as being really really small, then we obtain
\begin{align*}
V(r_0+\De r)-V(r_0)
&=\tfrac{4}{3}\pi[3r_0^2\De r \underbrace{+3r_0\,(\De r)^2+(\De
r)^3}_\text{really really small}]\\
&\approx \tfrac{4}{3}\pi \cdot 3r_0^2\De r = 4 \pi r_0^2 \De r
\end{align*}
which is precisely the result of our linear approximation above.
Example3.4.27.Percentage error inferring a height.
To compute the height \(h\) of a lamp post, the length \(s\) of the shadow of a two meter pole is measured. The pole is 6 m from the lamp post. If the length of the shadow was measured to be 4 m, with an error of at most one cm, find the height of the lamp post and estimate the percentage error in the height.
Solution We should first draw a picture 19
We get to reuse that nice lamp post picture from Example 3.2.4.
If the error in the measurement of the length of the shadow was \(\De s\text{,}\) then the exact shadow length was \(s=s_0+\De s\) and the exact lamp post height is \(h=f(s_0+\De s)\text{,}\) where \(f(s)=\tfrac{12}{s}+2\text{.}\) The error in the computed lamp post height is
Subsection3.4.9The Error in the Taylor Polynomial Approximations
Any time you make an approximation, it is desirable to have some idea of the size of the error you introduced. That is, we would like to know the difference \(R(x)\) between the original function \(f(x)\) and our approximation \(F(x)\text{:}\)
\begin{align*}
R(x) &= f(x)-F(x).
\end{align*}
Of course if we know \(R(x)\) exactly, then we could recover \(f(x) = F(x)+R(x)\) — so this is an unrealistic hope. In practice we would simply like to bound \(R(x)\text{:}\)
\begin{align*}
|R(x)| &= |f(x)-F(x)| \leq M
\end{align*}
where (hopefully) \(M\) is some small number. It is worth stressing that we do not need the tightest possible value of \(M\text{,}\) we just need a relatively easily computed \(M\) that isn’t too far off the true value of \(|f(x)-F(x)|\text{.}\)
We will now develop a formula for the error introduced by the constant approximation, equation 3.4.1 (developed back in Section 3.4.1)
\begin{align*}
f(x)&\approx f(a) = T_0(x) & \text{$0^\mathrm{th}$ Taylor polynomial}
\end{align*}
The resulting formula can be used to get an upper bound on the size of the error \(|R(x)|\text{.}\)
The main ingredient we will need is the Mean-Value Theorem (Theorem 2.13.5) — so we suggest you quickly revise it. Consider the following obvious statement:
The coefficient \(\dfrac{f(x)-f(a)}{x-a}\) of \((x-a)\) is the average slope of \(f(t)\) as \(t\) moves from \(t=a\) to \(t=x\text{.}\) We can picture this as the slope of the secant joining the points \((a,f(a))\) and \((x,f(x))\) in the sketch below.
As \(t\) moves from \(a\) to \(x\text{,}\) the instantaneous slope \(f'(t)\) keeps changing. Sometimes \(f'(t)\) might be larger than the average slope \(\tfrac{f(x)-f(a)}{x-a}\text{,}\) and sometimes \(f'(t)\) might be smaller than the average slope \(\tfrac{f(x)-f(a)}{x-a}\text{.}\) However, by the Mean-Value Theorem (Theorem 2.13.5), there must be some number \(c\text{,}\) strictly between \(a\) and \(x\text{,}\) for which \(f'(c)=\dfrac{f(x)-f(a)}{x-a}\) exactly.
\begin{align*}
f(x) &=T_0(x) +f'(c)(x-a) & \text{for some $c$ strictly between $a$ and $x$}
\end{align*}
Notice that this expression as it stands is not quite what we want. Let us massage this around a little more into a more useful form
Equation3.4.30.The error in constant approximation.
\begin{align*}
f(x) - T_0(x) &= f'(c) \cdot (x-a) & \text{for some $c$ strictly between
$a$ and $x$}
\end{align*}
Notice that the MVT doesn’t tell us the value of \(c\text{,}\) however we do know that it lies strictly between \(x\) and \(a\text{.}\) So if we can get a good bound on \(f'(c)\) on this interval then we can get a good bound on the error.
Example3.4.31.Error in the approximation in 3.4.2.
Let us return to Example 3.4.2, and we’ll try to bound the error in our approximation of \(e^{0.1}\text{.}\)
Recall that \(f(x) = e^x\text{,}\)\(a=0\) and \(T_0(x) = e^0 = 1\text{.}\)
And while this is true, it is rather circular. We have just bounded the error in our approximation of \(e^{0.1}\) by \(\frac{1}{10}e^{0.1}\) — if we actually knew \(e^{0.1}\) then we wouldn’t need to estimate it!
While we don’t know \(e^{0.1}\) exactly, we do know 20
Oops! Do we really know that \(e \lt 3\text{?}\) We haven’t proved it. We will do so soon.
that \(1 = e^0 \lt e^{0.1} \lt e^1 \lt
3\text{.}\) This gives us
That is — the error in our approximation of \(e^{0.1}\) is no greater than \(0.3\text{.}\) Recall that we don’t need the error exactly, we just need a good idea of how large it actually is.
So while the upper bound is weak, the lower bound is quite tight.
There are formulae similar to equation 3.4.29, that can be used to bound the error in our other approximations; all are based on generalisations of the MVT. The next one — for linear approximations — is
\begin{align*}
f(x) & =\underbrace{f(a)+f'(a)(x-a)}_{=T_1(x)}+\half f''(c)(x-a)^2 &
\text{for some } c \text{ strictly between } a \text{ and } x
\end{align*}
which we can rewrite in terms of \(T_1(x)\text{:}\)
Equation3.4.32.The error in linear approximation.
\begin{align*}
f(x)-T_1(x) &= \half f''(c)(x-a)^2 &
\text{for some } c \text{ strictly between } a \text{ and } x
\end{align*}
It implies that the error that we make when we approximate \(f(x)\) by \(T_1(x) = f(a)+f'(a)\,(x-a)\) is exactly \(\half f''(c)\,(x-a)^2\) for some \(c\) strictly between \(a\) and \(x\text{.}\)
for some \(c\) strictly between \(a\) and \(x\text{.}\) Again, rewriting this in terms of \(T_n(x)\) gives
Equation3.4.33.
\begin{align*}
f(x) - T_n(x) &= \frac{1}{(n+1)!}f^{(n+1)}(c)\cdot (x-a)^{n+1}
\quad \text{for some $c$ strictly between $a$ and $x$}
\end{align*}
That is, the error introduced when \(f(x)\) is approximated by its Taylor polynomial of order \(n\text{,}\) is precisely the last term of the Taylor polynomial of order \(n+1\text{,}\) but with the derivative evaluated at some point between \(a\) and \(x\text{,}\) rather than exactly at \(a\text{.}\) These error formulae are proven in the optional Section 3.4.10 later in this chapter.
Example3.4.34.Approximate \(\sin 46^\circ\) and estimate the error.
Approximate \(\sin 46^\circ\) using Taylor polynomials about \(a=45^\circ\text{,}\) and estimate the resulting error.
\begin{align*}
f(x)&=\sin x
&f(a)&=\frac{1}{\sqrt{2}}\\
f'(x)&=\cos x &\\
f'(a)&=\frac{1}{\sqrt{2}}\\
f''(x)&=-\sin x &\\
f''(a)&=-\frac{1}{\sqrt{2}}\\
f^{(3)}(x)&=-\cos x &
f^{(3)}(a)&=-\frac{1}{\sqrt{2}}
\end{align*}
The constant, linear and quadratic Taylor approximations for \(\sin(x)\) about \(\frac{\pi}{4}\) are
In each of these three cases \(c\) must lie somewhere between \(45^\circ\) and \(46^\circ\text{.}\)
Rather than carefully estimating \(\sin c\) and \(\cos c\) for \(c\) in that range, we make use of a simpler (but much easier bound). No matter what \(c\) is, we know that \(|\sin
c|\le 1\) and \(|\cos c|\le 1\text{.}\) Hence
While this procedure is fairly reliable, it did involve an approximation. So that you could not 100% guarantee to your client’s lawyer that an accuracy of 10 cm was achieved.
On the other hand, if we use the exact formula 3.4.29, with the replacements \(x\rightarrow \theta_0+\De\theta\) and \(a\rightarrow\theta_0\)
\begin{align*}
f(\theta_0+\De\theta)&=f(\theta_0)+f'(c)\De\theta
& \text{for some $c$ between $\theta_0$ and $\theta_0+\De\theta$}
\end{align*}
in place of the approximate formula 3.4.3, this legality is taken care of:
\begin{align*}
\De h &=f(\theta_0\!+\!\De\theta)-f(\theta_0) =f'(c)\De\theta
\quad \text{for some $c$ between $\theta_0$ and $\theta_0+\De\theta$}
\end{align*}
We can clean this up a little more since in our example \(f'(\theta) = 10\sec^2\theta\text{.}\) Thus for some \(c\) between \(\theta_0\) and \(\theta_0 + \De\theta\text{:}\)
Of course we do not know exactly what \(c\) is. But suppose that we know that the angle was somewhere between \(25^\circ\) and \(35^\circ\text{.}\) In other words suppose that, even though we don’t know precisely what our measurement error was, it was certainly no more than \(5^\circ\text{.}\)
Now on the range \(25^\circ \lt c \lt 35^\circ\text{,}\)\(\sec(c)\) is an increasing and positive function. Hence on this range
for some \(c\) strictly between \(a\) and \(x\text{,}\) and where \(T_n(x)\) is the \(n^\mathrm{th}\) order Taylor polynomial approximation of \(f(x)\) about \(x=a\text{:}\)
Recall that we have already proved a special case of this formula for the constant approximation using the Mean-Value Theorem (Theorem 2.13.5). To prove the general case we need the following generalisation 23
It is not a terribly creative name for the generalisation, but it is an accurate one.
of that theorem:
Theorem3.4.38.Generalised Mean-Value Theorem.
Let the functions \(F(x)\) and \(G(x)\) both be defined and continuous on \(a\le x\le b\) and both be differentiable on \(a \lt x \lt b\text{.}\) Furthermore, suppose that \(G'(x)\ne 0\) for all \(a \lt x \lt b\text{.}\) Then, there is a number \(c\) obeying \(a \lt c \lt b\) such that
Notice that setting \(G(x) = x\) recovers the original Mean-Value Theorem. It turns out that this theorem is not too difficult to prove from the MVT using some sneaky algebraic manipulations:
Proof.
First we construct a new function \(h(x)\) as a linear combination of \(F(x)\) and \(G(x)\) so that \(h(a)=h(b)=0\text{.}\) Some experimentation yields
Since \(h(a)=h(b)=0\text{,}\) the Mean-Value theorem (actually Rolle’s theorem) tells us that there is a number \(c\) obeying \(a \lt c \lt b\) such that \(h'(c)=0\text{:}\)
Consider the right-hand side of the above equation and set \(g(x) = f'(x)\text{.}\) Then we have the term \(\frac{g(q)-g(a)}{q-a}\) — this is exactly the form needed to apply the MVT. So now apply the standard MVT to the right-hand side of the above equation — there is some \(c\) between \(q\) and \(a\) so that
Oof! We have now proved the cases \(n=1\) (and we did \(n=0\) earlier).
To proceed — assume we have proved our result for \(n=1,2,\cdots, k\text{.}\) We realise that we haven’t done this yet, but bear with us. Using that assumption we will prove the result is true for \(n=k+1\text{.}\) Once we have done that, then
we have proved the result is true for \(n=1\text{,}\) and
we have shown if the result is true for \(n=k\) then it is true for \(n=k+1\)
Hence it must be true for all \(n \geq 1\text{.}\) This style of proof is called mathematical induction. You can think of the process as something like climbing a ladder:
prove that you can get onto the ladder (the result is true for \(n=1\)), and
if I can stand on the current rung, then I can step up to the next rung (if the result is true for \(n=k\) then it is also true for \(n=k+1\))
So \(F'(x)\) is then exactly the remainder formula but for an order \(k-1\) approximation to the function \(g(x) = f'(x)\text{.}\)
Hence the function \(F'(q)\) is the remainder when we approximate \(f'(q)\) with an order \(k-1\) Taylor polynomial. The remainder formula, equation 3.4.33, then tells us that there is a number \(c\) between \(a\) and \(q\) so that
if, for some \(k\text{,}\) the remainder formula (with \(n=k\)) is true for all \(k\) times differentiable functions,
then the remainder formula is true (with \(n=k+1\)) for all \(k+1\) times differentiable functions.
Repeatedly applying this for \(k=1,2,3,4,\cdots\) (and recalling that we have shown the remainder formula is true when \(n=0,1\)) gives equation 3.4.33 for all \(n=0,1,2,\cdots\text{.}\)
Subsection3.4.11Exercises
ExercisesExercises for § 3.4.1
Exercises — Stage 1
.
1.
The graph below shows three curves. The black curve is \(y=f(x)\text{,}\) the red curve is \(y=g(x)=1+2\sin(1+x)\text{,}\) and the blue curve is \(y=h(x)=0.7\text{.}\) If you want to estimate \(f(0)\text{,}\) what might cause you to use \(g(0)\text{?}\) What might cause you to use \(h(0)\text{?}\)
Exercises — Stage 2
.
In this and following sections, we will ask you to approximate the value of several constants, such as \(\log(0.93)\text{.}\) A valid question to consider is why we would ask for approximations of these constants that take lots of time, and are less accurate than what you get from a calculator.
One answer to this question is historical: people were approximating logarithms before they had calculators, and these are some of the ways they did that. Pretend you’re on a desert island without any of your usual devices and that you want to make a number of quick and dirty approximate evaluations.
Another reason to make these approximations is technical: how does the calculator get such a good approximation of \(\log(0.93)\text{?}\) The techniques you will learn later on in this chapter give very accurate formulas for approximating functions like \(\log x\) and \(\sin x\text{,}\) which are sometimes used in calculators.
A third reason to make simple approximations of expressions that a calculator could evaluate is to provide a reality check. If you have a ballpark guess for your answer, and your calculator gives you something wildly different, you know to double-check that you typed everything in correctly.
For now, questions like Question 3.4.11.2 through Question 3.4.11.4 are simply for you to practice the fundamental ideas we’re learning.
2.
Use a constant approximation to estimate the value of \(\log(x)\) when \(x=0.93\text{.}\) Sketch the curve \(y=f(x)\) and your constant approximation.
(Remember that in CLP-1 we use \(\log x\) to mean the natural logarithm of \(x\text{,}\)\(\log_e x\text{.}\))
3.
Use a constant approximation to estimate \(\arcsin(0.1)\text{.}\)
4.
Use a constant approximation to estimate \(\sqrt{3}\tan(1)\text{.}\)
Exercises — Stage 3
.
5.
Use a constant approximation to estimate the value of \(10.1^3\text{.}\) Your estimation should be something you can calculate in your head.
ExercisesExercises for § 3.4.2
Exercises — Stage 1
.
1.
Suppose \(f(x)\) is a function, and we calculated its linear approximation near \(x=5\) to be \(f(x) \approx 3x-9\text{.}\)
What is \(f(5)\text{?}\)
What is \(f'(5)\text{?}\)
What is \(f(0)\text{?}\)
2.
The curve \(y=f(x)\) is shown below. Sketch the linear approximation of \(f(x)\) about \(x=2\text{.}\)
3.
What is the linear approximation of the function \(f(x)=2x+5\) about \(x=a\text{?}\)
Exercises — Stage 2
.
4.
Use a linear approximation to estimate \(\log(x)\) when \(x=0.93\text{.}\) Sketch the curve \(y=f(x)\) and your linear approximation.
(Remember that in CLP-1 we use \(\log x\) to mean the natural logarithm of \(x\text{,}\)\(\log_e x\text{.}\))
5.
Use a linear approximation to estimate \(\sqrt{5}\text{.}\)
6.
Use a linear approximation to estimate \(\sqrt[5]{30}\)
Exercises — Stage 3
.
7.
Use a linear approximation to estimate \(10.1^3\text{,}\) then compare your estimation with the actual value.
8.
Imagine \(f(x)\) is some function, and you want to estimate \(f(b)\text{.}\) To do this, you choose a value \(a\) and take an approximation (linear or constant) of \(f(x)\) about \(a\text{.}\) Give an example of a function \(f(x)\text{,}\) and values \(a\) and \(b\text{,}\) where the constant approximation gives a more accurate estimation of \(f(b)\) than the linear approximation.
Give the 16th order Maclaurin polynomial for \(f(x)=\sin x+ \cos x\text{.}\)
2.
Give the 100th order Taylor polynomial for \(s(t)=4.9t^2-t+10\) about \(t=5\text{.}\)
3.
Write the \(n\)th order Taylor polynomial for \(f(x)=2^x\) about \(x=1\) in sigma notation.
4.
Find the 6th order Taylor polynomial of \(f(x)=x^2\log x+2x^2+5\) about \(x=1\text{,}\) remembering that \(\log x\) is the natural logarithm of \(x\text{,}\)\(\log_ex\text{.}\)
5.
Give the \(n\)th order Maclaurin polynomial for \(\dfrac{1}{1-x}\) in sigma notation.
Exercises — Stage 3
.
6.
Calculate the \(3\)rd order Taylor Polynomial for \(f(x)=x^x\) about \(x=1\text{.}\)
7.
Use a 5th order Maclaurin polynomial for \(6\arctan x\) to approximate \(\pi\text{.}\)
8.
Write the \(100\)th order Taylor polynomial for \(f(x)=x(\log x -1)\) about \(x=1\) in sigma notation.
9.
Write the \((2n)\)th order Taylor polynomial for \(f(x)=\sin x\) about \(x=\dfrac{\pi}{4}\) in sigma notation.
\begin{equation*}
f(x) \qquad f\left(x+\Delta x\right) \qquad \Delta x \qquad \Delta y
\end{equation*}
2.
At this point in the book, every homework problem takes you about 5 minutes. Use the terms you learned in this section to answer the question: if you spend 15 minutes more, how many more homework problems will you finish?
Exercises — Stage 2
.
3.
Let \(f(x)=\arctan x\text{.}\)
Use a linear approximation to estimate \(f(5.1)-f(5)\text{.}\)
Use a quadratic approximation to estimate \(f(5.1)-f(5)\text{.}\)
4.
When diving off a cliff from \(x\) metres above the water, your speed as you hit the water is given by
Use a linear approximation of \(\Delta y\) to estimate how much faster you will be falling when you hit the water if you jump from a height of 5 metres.
A diver makes three jumps: the first is from \(x\) metres, the second from \(x+\Delta x\) metres, and the third from \(x+2\Delta x\) metres, for some fixed positive values of \(x\) and \(\Delta x\text{.}\) Which is bigger: the increase in terminal speed from the first to the second jump, or the increase in terminal speed from the second to the third jump?
ExercisesExercises for § 3.4.7
Exercises — Stage 1
.
1.
Let \(f(x)=7x^2-3x+4\text{.}\) Suppose we measure \(x\) to be \(x_0 = 2\) but that the real value of \(x\) is \(x_0+\Delta x\text{.}\) Suppose further that the error in our measurement is \(\Delta x = 1\text{.}\) Let \(\Delta y\) be the change in \(f(x)\) corresponding to a change of \(\Delta x \) in \(x_0\text{.}\) That is, \(\Delta y = f\left(x_0+\Delta x\right)-f(x_0)\text{.}\)
True or false: \(\Delta y = f'(2)(1)=25\)
2.
Suppose the exact amount you are supposed to tip is $5.83, but you approximate and tip $6. What is the absolute error in your tip? What is the percent error in your tip?
3.
Suppose \(f(x)=3x^2-5\text{.}\) If you measure \(x\) to be \(10\text{,}\) but its actual value is \(11\text{,}\) estimate the resulting error in \(f(x)\) using the linear approximation, and then the quadratic approximation.
Exercises — Stage 2
.
4.
A circular pen is being built on a farm. The pen must contain \(A_0\) square metres, with an error of no more than 2%. Estimate the largest percentage error allowable on the radius.
5.
A circle with radius 3 has a sector cut out of it. It’s a smallish sector, no more than a quarter of the circle. You want to find out the area of the sector.
Suppose the angle of the sector is \(\theta\text{.}\) What is the area of the sector?
Unfortunately, you don’t have a protractor, only a ruler. So, you measure the chord made by the sector (marked \(d\) in the diagram above). What is \(\theta\) in terms of \(d\text{?}\)
Suppose you measured \(d=0.7\text{,}\) but actually \(d=0.68\text{.}\) Estimate the absolute error in your calculation of the area removed.
6.
A conical tank, standing on its pointy end, has height 2 metres and radius 0.5 metres. Estimate change in volume of the water in the tank associated to a change in the height of the water from 50 cm to 45 cm.
Exercises — Stage 3
.
7.
A sample begins with precisely 1 \(\mu\)g of a radioactive isotope, and after 3 years is measured to have 0.9 \(\mu\)g remaining. If this measurement is correct to within 0.05 \(\mu\)g, estimate the corresponding accuracy of the half-life calculated using it.
ExercisesExercises for § 3.4.8
Exercises — Stage 1
.
1.
Suppose \(f(x)\) is a function that we approximated by \(F(x)\text{.}\) Further, suppose \(f(10)=-3\text{,}\) while our approximation was \(F(10)=5\text{.}\) Let \(R(x)=f(x)-F(x)\text{.}\)
True or false: \(|R(10)| \leq 7\)
True or false: \(|R(10)| \leq 8\)
True or false: \(|R(10)| \leq 9\)
True or false: \(|R(10)| \leq 100\)
2.
Let \(f(x)=e^x\text{,}\) and let \(T_3(x)\) be the third order Maclaurin polynomial for \(f(x)\text{,}\)
Use Equation 3.4.33 to give a reasonable bound on the error \(|f(2)-T_3(2)|\text{.}\) Then, find the error \(|f(2)-T_3(2)|\) using a calculator.
3.
Let \(f(x)= 5x^3-24x^2+ex-\pi^4\text{,}\) and let \(T_5(x)\) be the fifth order Taylor polynomial for \(f(x)\) about \(x=1\text{.}\) Give the best bound you can on the error \(|f(37)-T(37)|\text{.}\)
4.
You and your friend both want to approximate \(\sin(33)\text{.}\) Your friend uses the first order Maclaurin polynomial for \(f(x)=\sin x\text{,}\) while you use the zeroth order (constant) Maclaurin polynomial for \(f(x)=\sin x\text{.}\) Who has a better approximation, you or your friend?
Let \(T_5(x)\) be the 5th order Taylor polynomial for \(f(x)\) about \(x=11\text{.}\)
Give a bound for the error \(|f(11.5)-T_5(11.5)|\text{.}\)
6.
Let \(f(x)= \tan x\text{,}\) and let \(T_2(x)\) be the second order Taylor polynomial for \(f(x)\) about \(x=0\text{.}\) Give a reasonable bound on the error \(|f(0.1)-T(0.1)|\) using Equation 3.4.33.
7.
Let \(f(x)=\log (1-x)\text{,}\) and let \(T_5(x)\) be the fifth order Maclaurin polynomial for \(f(x)\text{.}\) Use Equation 3.4.33 to give a bound on the error \(|f\left(-\frac{1}{4}\right)-T_5\left(-\frac{1}{4}\right)|\text{.}\)
(Remember \(\log x=\log_ex\text{,}\) the natural logarithm of \(x\text{.}\))
8.
Let \(f(x)=\sqrt[5]{x}\text{,}\) and let \(T_3(x)\) be the third order Taylor polynomial for \(f(x)\) about \(x=32\text{.}\) Give a bound on the error \(|f(30)-T_3(30)|\text{.}\)
and let \(T_1(x)\) be the first order Taylor polynomial for \(f(x)\) about \(x=\dfrac{1}{\pi}\text{.}\) Give a bound on the error \(|f(0.01)-T_1(0.01)|\text{,}\) using Equation 3.4.33. You may leave your answer in terms of \(\pi\text{.}\)
Then, give a reasonable bound on the error \(|f(0.01)-T_1(0.01)|\text{.}\)
10.
Let \(f(x)=\arcsin x\text{,}\) and let \(T_2(x)\) be the second order Maclaurin polynomial for \(f(x)\text{.}\) Give a reasonable bound on the error \(\left|f\left(\frac{1}{2}\right)-T_2\left(\frac{1}{2}\right)\right|\) using Equation 3.4.33. What is the exact value of the error \(\left|f\left(\frac{1}{2}\right)-T_2\left(\frac{1}{2}\right)\right|\text{?}\)
Exercises — Stage 3
.
11.
Let \(f(x)=\log(x)\text{,}\) and let \(T_n(x)\) be the \(n\)th order Taylor polynomial for \(f(x)\) about \(x=1\text{.}\) You use \(T_n(1.1)\) to estimate \(\log (1.1)\text{.}\) If your estimation needs to have an error of no more than \(10^{-4}\text{,}\) what is an acceptable value of \(n\) to use?
12.
Give an estimation of \(\sqrt[7]{2200}\) using a Taylor polynomial. Your estimation should have an error of less than 0.001.
In this question, we use the remainder of a Maclaurin polynomial to approximate \(e\text{.}\)
Write out the 4th order Maclaurin polynomial \(T_4(x)\) of the function \(e^x\text{.}\)
Compute \(T_4(1)\text{.}\)
Use your answer from 3.4.11.14.b to conclude \(\dfrac{326}{120} \lt e \lt \dfrac{325}{119}\text{.}\)
ExercisesFurther problems for § 3.4
Exercises — Stage 1
.
1.(✳).
Consider a function \(f(x)\) whose third order Maclaurin polynomial is \(4 +
3x^2 + \frac{1}{2}x^3\text{.}\) What is \(f'(0)\text{?}\) What is \(f''(0)\text{?}\)
2.(✳).
Consider a function \(h(x)\) whose third order Maclaurin polynomial is \(1+4x-\dfrac{1}{3}x^2 + \dfrac{2}{3}x^3\text{.}\) What is \(h^{(3)}(0)\text{?}\)
3.(✳).
The third order Taylor polynomial of \(h(x)\) about \(x=2\) is \(3 + \dfrac{1}{2}(x-2) + 2(x-2)^3\text{.}\)
What is \(h'(2)\text{?}\) What is \(h''(2)\text{?}\)
Exercises — Stage 2
.
4.(✳).
The function \(f(x)\) has the property that \(f(3)=2,\ f'(3)=4\) and \(f''(3)=-10\text{.}\)
Use the linear approximation to \(f(x)\) centred at \(x=3\) to approximate \(f(2.98)\text{.}\)
Use the quadratic approximation to \(f(x)\) centred at \(x=3\) to approximate \(f(2.98)\text{.}\)
5.(✳).
Use the tangent line to the graph of \(y = x^{1/3}\) at \(x = 8\) to find an approximate value for \(10^{1/3}\text{.}\) Is the approximation too large or too small?
6.(✳).
Estimate \(\sqrt{2}\) using a linear approximation.
7.(✳).
Estimate \(\sqrt[3]{26}\) using a linear approximation.
8.(✳).
Estimate \((10.1)^5\) using a linear approximation.
9.(✳).
Estimate \(\sin\left(\dfrac{101\pi}{100}\right)\) using a linear approximation. (Leave your answer in terms of \(\pi\text{.}\))
10.(✳).
Use a linear approximation to estimate \(\arctan(1.1)\text{,}\) using \(\arctan 1 = \dfrac{\pi}{4}\text{.}\)
11.(✳).
Use a linear approximation to estimate \((2.001)^3\text{.}\) Write your answer in the form \(n/1000\) where \(n\) is an integer.
12.(✳).
Using a suitable linear approximation, estimate \((8.06)^{2/3}\text{.}\) Give your answer as a fraction in which both the numerator and denominator are integers.
13.(✳).
Find the third--order Taylor polynomial for \(f(x)=(1 - 3x)^{-1/3}\) around \(x = 0\text{.}\)
14.(✳).
Consider a function \(f(x)\) which has \(f^{(3)}(x)=\dfrac{x}{22-x^2}\text{.}\) Show that when we approximate \(f(2)\) using its second order Taylor polynomial at \(a=1\text{,}\) the absolute value of the error is less than \(\frac{1}{50}=0.02\text{.}\)
15.(✳).
Consider a function \(f(x)\) which has \(f^{(4)}(x)=\dfrac{\cos(x^2)}{3-x}\text{.}\) Show that when we approximate \(f(0.5)\) using its third order Maclaurin polynomial, the absolute value of the error is less than \(\frac{1}{500}=0.002\text{.}\)
16.(✳).
Consider a function \(f(x)\) which has \(f^{(3)}(x)=\dfrac{e^{-x}}{8+x^2}\text{.}\) Show that when we approximate \(f(1)\) using its second order Maclaurin polynomial, the absolute value of the error is less than \(1/40\text{.}\)
17.(✳).
By using an appropriate linear approximation for \(f(x)=x^{1/3}\text{,}\) estimate \(5^{2/3}\text{.}\)
Improve your answer in 3.4.11.17.a by making a quadratic approximation.
Obtain an error estimate for your answer in 3.4.11.17.a (not just by comparing with your calculator’s answer for \(5^{2/3}\)).
Exercises — Stage 3
.
18.
The 4th order Maclaurin polynomial for \(f(x)\) is
\begin{equation*}
T_4(x)=5x^2-9
\end{equation*}
What is the third order Maclaurin polynomial for \(f(x)\text{?}\)
19.(✳).
The equation \(y^4+xy=x^2-1\) defines \(y\) implicitly as a function of \(x\) near the point \(x=2,\ y=1\text{.}\)
Use the tangent line approximation at the given point to estimate the value of \(y\) when \(x=2.1\text{.}\)
Use the quadratic approximation at the given point to estimate the value of \(y\) when \(x=2.1\text{.}\)
Make a sketch showing how the curve relates to the tangent line at the given point.
20.(✳).
The equation \(x^4+y+xy^4=1\) defines \(y\) implicitly as a function of \(x\) near the point \(x=-1, y=1\text{.}\)
Use the tangent line approximation at the given point to estimate the value of \(y\) when \(x=-0.9\text{.}\)
Use the quadratic approximation at the given point to get another estimate of \(y\) when \(x=-0.9\text{.}\)
Make a sketch showing how the curve relates to the tangent line at the given point.
21.(✳).
Given that \(\log 10\approx 2.30259\text{,}\) estimate \(\log 10.3\) using a suitable tangent line approximation. Give an upper and lower bound for the error in your approximation by using a suitable error estimate.
22.(✳).
Consider \(f(x)=e^{e^x}\text{.}\)
Give the linear approximation for \(f\) near \(x=0\) (call this \(L(x)\)).
Give the quadratic approximation for \(f\) near \(x=0\) (call this \(Q(x)\)).
Prove that \(L(x) \lt Q(x) \lt f(x)\) for all \(x \gt 0\text{.}\)
Find an interval of length at most \(0.01\) that is guaranteed to contain the number \(e^{0.1}\text{.}\)