we define the remainder, denoted \(R_k(x)\text{,}\) to be the difference between the function \(f(x)\) and its \(k\)th degree Taylor polynomial \(T_k(x)\text{.}\) That is,
Let \(f(x)\) be an \((k+1)\) times differentiable function on an interval \(I\) of \(c\text{,}\) and let \(T_k(x)\) be its \(k\)th degree Taylor polynomial centered at \(x=c\text{.}\) Then for any \(x\) in the interval \(I\text{,}\) there exists \(p\) between \(c\) and \(x\) such that
If there exists \(M_k\) such that \(|f^{(k+1)}(x)|\leq M_k\) for all \(x\) in \(I\text{,}\) then the error in the approximation \(f(x)\approx T_k(x)\) has an upper bound:
The trickiest part to using Taylor’s Theorem is calculating \(M_k\) to get a bound for the error \(|R_k(x)|\) for the approximation \(f(x)\approx T_k(x)\text{.}\)
Activity9.5.7.
Consider the function \(f(x)=1/x\) defined on the interval \(I=[1,2]\text{.}\)
(a)
Calculate the derivatives \(f'(x)\text{,}\)\(f''(x)\text{,}\)\(f'''(x)\text{,}\) and \(f^{(4)}(x)\text{.}\)
Which of the following can we say above the values of \(|f^{(k)}(x)|\) on \(I\) for \(k=1,2,3,4\text{?}\)
\(|f'(x)|\) and \(|f'''(x)|\) are increasing, while \(|f''(x)|\) and \(|f^{(4)}(x)|\) are decreasing.
All are decreasing.
All are increasing.
\(|f'(x)|\) and \(|f'''(x)|\) are decreasing, while \(|f''(x)|\) and \(|f^{(4)}(x)|\) are decreasing.
Answer.
B.
(c)
Calculate \(M_k\) for each \(k=1,2,3,4\) using your results from part (b).
Answer.
\(M_1=1, M_2=2, M_3=6, M_4=24\)
(d)
Use Taylor’s Theorem to calculate \(|R_k(1.5)|\) for each \(k=1,2,3,4\) to 3 decimal places. Use \(a=1\) as the center of the approximation.
Answer.
\(0.125, 0.042, 0.016, 0.006\)
(e)
Are the errors decreasing? Explain why or why not.
Activity9.5.8.
Let \(f(x)=e^x\text{.}\) Your goal is to approximate \(f(1)=e\text{.}\)
(a)
Explain and demonstrate how to determine the upper bound \(M_k\) from Taylor’s Theorem for \(f(x)=e^x\text{.}\)
(b)
Use your value for \(M_k\) in part (a) to find an upper bound for the error \(|R_4(1)|\text{.}\)
(c)
Use your value for \(M_k\) in part (a) to find an upper bound for the error \(|R_8(1)|\text{.}\)
Subsection9.5.2Sample Problem
Example9.5.9.
Here you are tasked with approximating the value of \(\cos(1)\text{.}\)
(a)
Calculate the 4th degree Taylor polynomial for \(f(x)=\cos x\) centered at \(\pi\text{,}\) then use it to approximate the value of \(\cos(1)\) to three decimal places.
(b)
Apply Taylor’s Theorem to find an upper bound for the error in this approximation.
(c)
Use technology to calculate \(|R_4(1)|\text{.}\) Is the error within the upper bound found in part (b)?
(d)
Explain whether the approximation error \(|R_{k}(1)|\) increases or decreases as \(k\rightarrow\infty\text{.}\)