4.4. TAYLOR SERIES 163
for f .x/ D sin.x/ on the interval 2 x 2, then the estimate of maximum error drops to
jR
7
.x/j
1
8Š
2
8
D
256
40320
Š 0:0063
e factorial in the denominator lets the error drop really quickly.
˙
e hard part of using Taylor’s inequality is finding the constant M . Standard practice is to
simply find the largest value of f
nC1
.x/ in the interval and live with it. e fact that both sine
and cosine are bounded in absolute value by 1 make them especially easy functions to work with.
Let’s do an example with an exponential function.
Example 4.84 Suppose we are approximating f .x/ D e
x
in the interval 3 x 3 with
T
n
.x/. What value of n makes the Taylor’s inequality estimate of error at most 0.1?
Solution:
If f .x/ D e
x
then f
.nC1/
D e
x
, which is very convenient. We again have that a D 0. So, it is
pretty easy to see that
jf
.nC1/
.x/j e
3
everywhere on the interval. So, we set M D e
3
. e largest value of jx a j on the interval is 3,
so we need to find the smallest value of n that makes
e
3
.n C1/Š
3
nC1
< 0:1
e simplest way to do this is to tabulate.
n jR
n
.x/j j
e
3
.nC1/Š
3
nC1
j n jR
n
.x/j j
e
3
.nC1/Š
3
nC1
j
1 90.3849161543 6 8.7156883435
2 90.3849161543 7 3.2683831288
3 67.7886871158 8 1.0894610429
4 40.6732122695 9 0.3268383129
5 20.3366061347 10 0.0891377217