"

Chapter Seven – Taylor Series Remainder Test

A formal way to test the accuracy of a Taylor polynomial approximation is to employ the Taylor Remainder test. By adding a remainder term to our Taylor polynomial approximation, we in effect convert it into an equation,

Our function f(x)=p(x)+remainderterm.  Written more compactly we have  fn(x)=pn(x)+rn(x) . This remainder term becomes the difference between f(x) at a particular point and p(x) at that same value of x.

In the above example we ran our polynomial out to the ninth-degree term.

rn(x) actually looks like the next higher degree term:

rn(x)=f(n+1)(c)(n+1)!(xa)n+1 where c is between a and x

The question we ask is what value for c should we use. The answer in this case is to solve the remainder twice for the endpoints of the range we are interested in. In this case we want to know how accurate c will be between 0 and π10.

 

This will provide a range of possible values between 0 and π10

f(10)(c)=sin(c)

For c=0 r9(0)=sin(0)(10)!(00)10=0

For c=π10  r9(π10)=sin(π10)(10)!(π100)10=0.000000000000797 we drop the negative as it’s a matter of distance, not direction.

This bounds the possible error of our approximation: 0r100.000000000000797 (7.971013)

License

Icon for the Creative Commons Attribution-NonCommercial 4.0 International License

The Art of Polynomial Interpolation Copyright © 2022 by Stuart Murphy is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License, except where otherwise noted.

Feedback/Errata

Comments are closed.