Learning Outcomes Determine an upper bound for the error in an approximation of a function via a Taylor polynomial.🔗
Activity 9.5.1. Recall that we can use a Taylor series for a function to approximate that function by using an kth degree Taylor polynomial.🔗 (a) Which of the following is the 3rd degree Taylor polynomial for f(x)=sinx centered at 0.🔗 1−x22 x−x33! x+x33! x−x33!+x55!−x77! 🔗(b) Use the 3rd degree Taylor polynomial for f(x)=sinx to approximate .sin(1). 🔗🔗(c) Use technology to approximate .sin(1). 🔗🔗🔗
(a) Which of the following is the 3rd degree Taylor polynomial for f(x)=sinx centered at 0.🔗 1−x22 x−x33! x+x33! x−x33!+x55!−x77! 🔗
Definition 9.5.2. Given a infinitely differentiable function🔗 ,f(x)=∑n=0∞f(n)(c)n!(x−c)n, we define the remainder, denoted ,Rk(x), to be the difference between the function f(x) and its kth degree Taylor polynomial .Tk(x). That is,🔗 Rk(x)=f(x)−Tk(x). 🔗 The error in the approximation f(x)≈Tk(x) is given by .|Rk(x)|. 🔗🔗
Activity 9.5.3. We saw in Fact 9.4.6, the Maclaurin series for f(x)=ex is🔗 ex=∑n=0∞1n!xn. 🔗 (a) Compute R2(4) using technology.🔗🔗(b) Compute R3(4) using technology.🔗🔗(c) What do you expect from ?R4(4)? 🔗 There is not enough information. It will be greater than both R2(4) and .R3(4). It will be between R2(4) and .R3(4). It will be less than both R2(4) and .R3(4). 🔗🔗
(c) What do you expect from ?R4(4)? 🔗 There is not enough information. It will be greater than both R2(4) and .R3(4). It will be between R2(4) and .R3(4). It will be less than both R2(4) and .R3(4). 🔗
Fact 9.5.4. Let f(x) be a function represented by a power series centered at x=c 🔗 f(x)=∑n=0∞an(x−c)n with an interval of convergence .I. Then for all x in ,I, 🔗 limk→∞Rk(x)=0. 🔗🔗
Theorem 9.5.5. Taylor’s Theorem. Let f(x) be an (k+1) times differentiable function on an interval I of ,c, and let Tk(x) be its kth degree Taylor polynomial centered at .x=c. Then for any x in the interval ,I, there exists p between c and x such that🔗 Rk(x)=f(k+1)(p)(k+1)!(x−c)k+1. If there exists Mk such that |f(k+1)(x)|≤Mk for all x in ,I, then the error in the approximation f(x)≈Tk(x) has an upper bound:🔗 |Rk(x)|≤Mk(k+1)!|x−c|k+1. 🔗🔗
Remark 9.5.6. Using Taylor’s Theorem. The trickiest part to using Taylor’s Theorem is calculating Mk to get a bound for the error |Rk(x)| for the approximation .f(x)≈Tk(x). 🔗🔗
Activity 9.5.7. Consider the function f(x)=1/x defined on the interval .I=[1,2]. 🔗 (a) Calculate the derivatives ,f′(x), ,f″(x), ,f‴(x), and .f(4)(x). 🔗 Answer. ,f′(x)=−1/x2, ,f″(x)=2/x3, ,f‴(x)=−6/x4, f(4)(x)=24/x5 🔗(b) Which of the following can we say above the values of |f(k)(x)| on I for ?k=1,2,3,4? 🔗 |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 Mk for each k=1,2,3,4 using your results from part (b).🔗 Answer.M1=1,M2=2,M3=6,M4=24🔗(d) Use Taylor’s Theorem to calculate |Rk(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.🔗🔗🔗
(a) Calculate the derivatives ,f′(x), ,f″(x), ,f‴(x), and .f(4)(x). 🔗 Answer. ,f′(x)=−1/x2, ,f″(x)=2/x3, ,f‴(x)=−6/x4, f(4)(x)=24/x5 🔗
(b) Which of the following can we say above the values of |f(k)(x)| on I for ?k=1,2,3,4? 🔗 |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.🔗
(d) Use Taylor’s Theorem to calculate |Rk(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🔗
Activity 9.5.8. Let .f(x)=ex. Your goal is to approximate .f(1)=e. 🔗 (a) Explain and demonstrate how to determine the upper bound Mk from Taylor’s Theorem for .f(x)=ex. 🔗🔗(b) Use your value for Mk in part (a) to find an upper bound for the error .|R4(1)|. 🔗🔗(c) Use your value for Mk in part (a) to find an upper bound for the error .|R8(1)|. 🔗🔗🔗
(a) Explain and demonstrate how to determine the upper bound Mk from Taylor’s Theorem for .f(x)=ex. 🔗🔗
Example 9.5.9. Here you are tasked with approximating the value of .cos(1). 🔗 (a) Calculate the 4th degree Taylor polynomial for f(x)=cosx centered at ,π, 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 .|R4(1)|. Is the error within the upper bound found in part (b)?🔗🔗(d) Explain whether the approximation error |Rk(1)| increases or decreases as .k→∞. 🔗🔗🔗
(a) Calculate the 4th degree Taylor polynomial for f(x)=cosx centered at ,π, then use it to approximate the value of cos(1) to three decimal places.🔗🔗