Navigation

Taylor Polynomials

9.6 Error in Taylor polynomials

14 problems · hints, answers and solutions shown beside each one

1Stage 1Conceptual

Do you understand the idea? Usually little or no calculation.

Q1Stage 1

Suppose f(x)f(x) is a function that we approximated by F(x)F(x). Further, suppose f(10)=−3f(10)=-3, while our approximation was F(10)=5F(10)=5. Let R(x)=f(x)−F(x)R(x)=f(x)-F(x).

  1. True or false: ∣R(10)∣≤7|R(10)| \leq 7

  2. True or false: ∣R(10)∣≤8|R(10)| \leq 8

  3. True or false: ∣R(10)∣≤9|R(10)| \leq 9

  4. True or false: ∣R(10)∣≤100|R(10)| \leq 100

Hint

R(10)=f(10)−F(10)=−3−5R(10)=f(10)-F(10)=-3-5

Answer

(a) False (b) True (c) True (d) True

Full solution
Q2Stage 1

Let f(x)=exf(x)=e^x, and let T3(x)T_3(x) be the third-degree Maclaurin polynomial for f(x)f(x),

T3(x)=1+x+12x2+13!x3T_3(x)=1+x+\frac{1}{2}x^2+\frac{1}{3!}x^3

Use Equation 9.6.5 to give a reasonable bound on the error ∣f(2)−T3(2)∣|f(2)-T_3(2)|. Then, find the error ∣f(2)−T3(2)∣|f(2)-T_3(2)| using a calculator.

Hint

Equation 9.6.5 tells us

∣f(2)−T3(2)∣=∣f(4)(c)4!(2−0)4∣|f(2)-T_3(2)| = \left|\frac{f^{(4)}(c)}{4!}(2-0)^4\right|

for some cc strictly between 0 and 2.

Answer

Equation 9.6.5 gives us the bound ∣f(2)−T3(2)∣<6|f(2)-T_3(2)|<6. A calculator tells us actually ∣f(2)−T3(2)∣≈1.056|f(2)-T_3(2)|\approx 1.056.

Full solution
Q3Stage 1

Let f(x)=5x3−24x2+ex−π4f(x)= 5x^3-24x^2+ex-\pi^4, and let T5(x)T_5(x) be the fifth-degree Taylor polynomial for f(x)f(x) about x=1x=1. Give the best bound you can on the error ∣f(37)−T(37)∣|f(37)-T(37)|.

Hint

You are approximating a third-degree polynomial with a fifth-degree Taylor polynomial. You should be able to tell how good your approximation will be without a long calculation.

Answer

∣f(37)−T(37)∣=0|f(37)-T(37)|=0

Full solution
Q4Stage 1

You and your friend both want to approximate sin⁡(33)\sin(33). Your friend uses the first-degree Maclaurin polynomial for f(x)=sin⁡xf(x)=\sin x, while you use the zeroth-degree (constant) Maclaurin polynomial for f(x)=sin⁡xf(x)=\sin x. Who has a better approximation, you or your friend?

Hint

Draw a picture–it should be clear how the two approximations behave.

Answer

You do, you clever goose!

Full solution

2Stage 2Procedural

Practising the skill itself, until applying it is automatic.

Q5Stage 2

Suppose a function f(x)f(x) has sixth derivative

f(6)(x)=6!(2x−5)x+3.f^{(6)}(x)=\dfrac{6!(2x-5)}{x+3}.

Let T5(x)T_5(x) be the 5th-degree Taylor polynomial for f(x)f(x) about x=11x=11.

Give a bound for the error ∣f(11.5)−T5(11.5)∣|f(11.5)-T_5(11.5)|.

Hint

In this case, Equation 9.6.5 tells us that

∣f(11.5)−T5(11.5)∣=∣f(6)(c)6!(11.5−11)6∣\left|f(11.5)-T_5(11.5)\right| = \left|\dfrac{f^{(6)}(c)}{6!}(11.5-11)^{6}\right|

for some cc strictly between 11 and 11.5.

Answer

∣f(11.5)−T5(11.5)∣<97⋅26<0.02|f(11.5)-T_5(11.5)|<\dfrac{9}{7\cdot 2^6}<0.02

Full solution
Q6Stage 2

Let f(x)=tan⁡xf(x)= \tan x, and let T2(x)T_2(x) be the second-degree Taylor polynomial for f(x)f(x) about x=0x=0. Give a reasonable bound on the error ∣f(0.1)−T(0.1)∣|f(0.1)-T(0.1)| using Equation 9.6.5.

Hint

In this case, Equation 9.6.5 tells us that ∣f(0.1)−T2(0.1)∣=∣f(3)(c)3!(0.1−0)3∣\left|f(0.1)-T_2(0.1)\right| = \left|\dfrac{f^{(3)}(c)}{3!}(0.1-0)^{3}\right| for some cc strictly between 0 and 0.1.

Answer

∣f(0.1)−T2(0.1)∣<11125\left|f(0.1)-T_2(0.1)\right| < \dfrac{1}{1125}

Full solution
Q7Stage 2

Let f(x)=log⁡(1−x)f(x)=\log (1-x), and let T5(x)T_5(x) be the fifth-degree Maclaurin polynomial for f(x)f(x). Use Equation 9.6.5 to give a bound on the error ∣f(−14)−T5(−14)∣|f\left(-\frac{1}{4}\right)-T_5\left(-\frac{1}{4}\right)|.

(Remember log⁡x=log⁡ex\log x=\log_ex, the natural logarithm of xx.)

Hint

In our case, Equation 9.6.5 tells us

∣f(−14)−T5(−14)∣=∣f(6)(c)6!(−14−0)6∣\left|f\left(-\dfrac{1}{4}\right)-T_5\left(-\dfrac{1}{4}\right)\right| = \left|\dfrac{f^{(6)}(c)}{6!}\left(-\dfrac{1}{4}-0\right)^6\right|

for some cc between −14-\dfrac{1}{4} and 0.

Answer

∣f(−14)−T5(−14)∣<16⋅46<0.00004\left|f\left(-\dfrac{1}{4}\right)-T_5\left(-\dfrac{1}{4}\right)\right| < \dfrac{1}{6\cdot 4^6}<0.00004

Full solution
Q8Stage 2

Let f(x)=x5f(x)=\sqrt[5]{x}, and let T3(x)T_3(x) be the third-degree Taylor polynomial for f(x)f(x) about x=32x=32. Give a bound on the error ∣f(30)−T3(30)∣|f(30)-T_3(30)|.

Hint

In this case, Equation 9.6.5 tells us that ∣f(30)−T3(30)∣=∣f(4)(c)4!(30−32)4∣\left|f(30)-T_3(30)\right| = \left|\dfrac{f^{(4)}(c)}{4!}(30-32)^{4}\right| for some cc strictly between 30 and 32.

Answer

Your answer may vary. One reasonable answer is
∣f(30)−T3(30)∣<1457⋅9⋅15<0.000002\left|f(30)-T_3(30)\right|<\dfrac{14}{5^7\cdot9\cdot15}<0.000002. Another reasonable answer is
∣f(30)−T3(30)∣<1457⋅9<0.00002\left|f(30)-T_3(30)\right|<\dfrac{14}{5^7\cdot9}<0.00002.

Full solution
Q9Stage 2

Let

f(x)=sin⁡(1x)f(x)= \sin\left(\dfrac{1}{x}\right)

and let T1(x)T_1(x) be the first-degree Taylor polynomial for f(x)f(x) about x=1πx=\dfrac{1}{\pi}. Give a bound on the error ∣f(0.01)−T1(0.01)∣|f(0.01)-T_1(0.01)|, using Equation 9.6.5. You may leave your answer in terms of π\pi.

Then, give a reasonable bound on the error ∣f(0.01)−T1(0.01)∣|f(0.01)-T_1(0.01)|.

Hint

In our case, Equation 9.6.5 tells us
∣f(0.01)−T1(0.01)∣=∣f(2)(c)2!(0.01−1π)2∣\left|f\left(0.01\right)-T_1\left(0.01\right)\right| = \left|\dfrac{f^{(2)}(c)}{2!}\left(0.01-\frac{1}{\pi}\right)^2\right| for some cc between 0.01 and 1π\dfrac{1}{\pi}.

Answer

Equation 9.6.5 gives the bound ∣f(0.01)−Tn(0.01)∣≤1002(100π−1)2|f(0.01)-T_n(0.01)| \leq 100^2\left(\frac{100}{\pi}-1\right)^2.

A more reasonable bound on the error is that it is less than 5.

Full solution
Q10Stage 2

Let f(x)=arcsin⁡xf(x)=\arcsin x, and let T2(x)T_2(x) be the second-degree Maclaurin polynomial for f(x)f(x). Give a reasonable bound on the error ∣f(12)−T2(12)∣\left|f\left(\frac{1}{2}\right)-T_2\left(\frac{1}{2}\right)\right| using Equation 9.6.5. What is the exact value of the error ∣f(12)−T2(12)∣\left|f\left(\frac{1}{2}\right)-T_2\left(\frac{1}{2}\right)\right|?

Hint

Using Equation 9.6.5, ∣f(12)−T2(12)∣=∣f(3)(c)3!(12−0)3∣\left|f\left(\dfrac{1}{2}\right)-T_2\left(\dfrac{1}{2}\right)\right| = \left|\dfrac{f^{(3)}(c)}{3!}\left(\dfrac{1}{2}-0\right)^{3}\right| for some cc in (0,12)\left(0,\dfrac{1}{2}\right).

Answer

Using Equation 9.6.5,

∣f(12)−T2(12)∣<110.\begin{align*}\left|f\left(\frac{1}{2}\right)-T_2\left(\frac{1}{2}\right)\right|&<\frac{1}{10}.\end{align*}

The actual error is

∣f(12)−T2(12)∣=π6−12\begin{align*}\left|f\left(\frac{1}{2}\right)-T_2\left(\frac{1}{2}\right)\right|&= \frac{\pi}{6}-\frac{1}{2}\end{align*}

which is about 0.02.

Full solution

3Stage 3Application

Further than practice: several ideas at once, or an unfamiliar situation.

Q11Stage 3

Let f(x)=log⁡(x)f(x)=\log(x), and let Tn(x)T_n(x) be the nnth-degree Taylor polynomial for f(x)f(x) about x=1x=1. You use Tn(1.1)T_n(1.1) to estimate log⁡(1.1)\log (1.1). If your estimation needs to have an error of no more than 10−410^{-4}, what is an acceptable value of nn to use?

Hint

It helps to have a formula for f(n)(x)f^{(n)}(x). You can figure it out by taking several derivatives and noticing the pattern, but also this has been given previously in the text.

Answer

Any nn greater than or equal to 3.

Full solution
Q12Stage 3

Give an estimation of 22007\sqrt[7]{2200} using a Taylor polynomial. Your estimation should have an error of less than 0.001.

Hint

You can approximate the function f(x)=x17f(x)=x^{\tfrac{1}{7}}.
It's a good bit of trivia to know 37=21873^7=2187.
A low-degree Taylor approximation will give you a good enough estimation. If you guess a degree, and take that Taylor polynomial, the error will probably be less than 0.001 (but you still need to check).

Answer

22007≈3+137⋅36≈3.00255\sqrt[7]{2200}\approx3+\dfrac{13}{7\cdot 3^6} \approx 3.00255

Full solution
Q13Stage 3

Use Equation 9.6.5 to show that

42415040≤sin⁡(1)≤42435040\frac{4241}{5040}\leq\sin(1) \leq\frac{4243}{5040}
Hint

Use the 6th-degree Maclaurin approximation for f(x)=sin⁡xf(x)=\sin x.

Answer

If we're going to use Equation 9.6.5, then we'll probably be taking a Taylor polynomial. Using Example 9.5.5, the 6th-degree Maclaurin polynomial for sin⁡x\sin x is

T6(x)=T5(x)=x−x33!+x55!T_6(x)=T_5(x)=x-\frac{x^3}{3!}+\frac{x^5}{5!}

so let's play with this a bit. Equation 9.6.5 tells us that the error will depend on the seventh derivative of f(x)f(x), which is −cos⁡x-\cos x:

f(1)−T6(1)=f(7)(c)177!sin⁡(1)−(1−13!+15!)=−cos⁡c7!sin⁡(1)−1015!=−cos⁡c7!sin⁡(1)=4242−cos⁡c7!\begin{align*}f(1)-T_6(1)&=f^{(7)}(c)\frac{1^7}{7!}\\ \sin(1)-\left(1-\frac{1}{3!}+\frac{1}{5!}\right)&=\frac{-\cos c}{7!}\\ \sin(1)-\frac{101}{5!}&=\frac{-\cos c}{7!}\\ \sin(1)&=\frac{4242-\cos c}{7!}\end{align*}

for some cc between 0 and 1. Since −1≤cos⁡c≤1-1 \leq \cos c \leq 1,

4242−17!≤sin⁡(1)≤4242+17!42417!≤sin⁡(1)≤42437!42415040≤sin⁡(1)≤42435040\begin{align*}\frac{4242-1}{7!}\leq \sin(1)&\leq \frac{4242+1}{7!}\\ \frac{4241}{7!}\leq \sin(1)&\leq \frac{4243}{7!}\\ \frac{4241}{5040}\leq \sin(1)&\leq \frac{4243}{5040}\end{align*}

Remark: there are lots of ways to play with this idea to get better estimates. One way is to take a higher-degree Maclaurin polynomial. Another is to note that, since 0<c<1<π30<c<1<\dfrac{\pi}{3}, then 12<cos⁡c<1\dfrac{1}{2}<\cos c < 1, so

4242−17!<sin⁡(1)<4242−127!42415040<sin⁡(1)<848310080<42435040\begin{align*} \dfrac{4242-1}{7!}<\sin(1)<\dfrac{4242-\frac{1}{2}}{7!}\\ \dfrac{4241}{5040}<\sin(1)<\dfrac{8483}{10080}<\frac{4243}{5040} \end{align*}

If you got tighter bounds than asked for in the problem, congratulations!

Full solution
Q14Stage 3

In this question, we use the remainder of a Maclaurin polynomial to approximate ee.

  1. Write out the 4th degree Maclaurin polynomial T4(x)T_4(x) of the function exe^x.

  2. Compute T4(1)T_4(1).

  3. Use your answer from (b) to conclude 326120<e<325119\dfrac{326}{120}<e<\dfrac{325}{119}.

Hint

For part (c), after you plug in the appropriate values to Equation 9.6.5, simplify the upper and lower bounds for ee separately. In particular, for the upper bound, you'll have to solve for ee.

Answer

(a) T4(x)=∑n=04xnn!T_4(x)=\sum_{n=0}^4\frac{x^n}{n!} (b) T4(1)=6524T_4(1)=\frac{65}{24} (c) See the solution.

Full solution

My list

nothing marked yet

Loading…

Open the whole list →

Your tutor can open this list with you. It follows your account, so it is there on whichever device you study on.

From the UBC Math 100 open textbook project, © Joel Feldman, Andrew Rechnitzer, Elyse Yeager and others. Licensed CC BY-NC-SA 4.0; this HTML adaptation is released under the same licence. Full attribution.