Professional Documents
Culture Documents
1 Discussion
We have discussed Taylor’s formula for the sine, and have learned a lot about it including the limit of the
expression cn /n! and the definition of accuracy which will be useful in this discussion about the cosine.
Let f (x) = cos x, a = 0, and b = x in Theorem 1.1. So, the first thing to do is to find a general ex-
pression for f (n) (0), then the general expression for the coefficients, then finally constructing the formula.
So, this is quite similar to the n-th derivatves of the sine function. That is, the nth derivative of f (x) is
alternating sines and cosines but the difference is that when n is odd, the nth derivatives of f taken at
the point 0 is equal to zero, because sin 0 = 0; and when n is even, it’s either 1 or -1. Let n = 2m with
m = {0, 1, 2, 3, ...}, then we have the general expression,
(−1)m
c2m =
2m!
x2 x4 x6 x2m
cos x = 1 − + − + ... + (−1)m + R2m+1
2! 4! 6! 2m!
1
where,
x2m+1
R2m+1 = f (2m+1) (c)
(2m + 1)
for a number c between 0 and x. we will now be giving an estimate for this remainder term since it is
impossible to know what c is.
2m+1
|x|
|R2m+1 | ≤
(2m + 1)!
Which is just the same estimate as what we have for the sine function.
Not being able to solve the indefinite integral means we cannot completely evaluate the definite integral. We
can, however, approximate it. Hence, we use the Taylor polynomial. Let n = 4 in Taylor’s formula. Then,
5
x2 x4 |x|
cos x = 1 − + + R5 where |R5 | ≤ ,
2! 4! 5!
and so,
x3 R5 |x|4
cos x − 1 x R5
=− + + and ≤ .
x 2! 4! x x 5!
Hence,
1 1
cos x − 1 x3
Z Z
x R5
dx = + − + dx
0 x 0 2! 4! x
Z 1
1 1 R5
=− + + dx
2 · 2! 4 · 4! 0 x
2
where
Z 1 Z 1 4
R5 |x| 1
dx ≤ dx =
0 x 0 5! 5 · 5!
1
= · 10−2
6
≤ 10−2 .
our computation is within the desired bounds of accuracy! Our final answer is
1
cos x − 1
Z
1 1
dx = − + +E
0 x 4 96
with Z 1
R5
dx ≤ 10−2
|E| =
0 x