Alex C. answered  02/25/23
University Math Professor and Experienced Private Tutor
Hi Hanas,
First we compute the Taylor series using the derivatives of f(x) = cos(x)
f(1)(x) = -sin(x)
f(2)(x) = -cos(x)
f(3)(x) = sin(x)
f(4)(x) = cox(x)
f(5)(x) = -sin(x)
and find that T5(x) = 1 - (1/2)x2 + (1/24)x4
so we have T5(0.2) = 0.980067. Now, we use Taylor's approximation theorem to find that the bound on the remainder. The Taylor approximation theorem states that for any value of n, if the (n+1)th derivative of f is continuous, and | f(n+1)(t) | ≤ M for all t between 0 and x (for us, x = 0.2) then
| f(x) - Tn(x) | ≤ M/(n+1)! |x|n+1
so in our case we have f(6)(x) = -cos(x). Notice that the largest value that |-cos(x)| takes between 0 and 0.2 is 1 (at x=0), so we have |f(6)(t)| ≤ 1 for all t between 0 and 0.2. Now,
| f(0.2) - T5(.2) | ≤ 1/(5+1)! |0.2|5+1
= (1/720) (0.2)6
which gives the maximum error (approximately .88 × 10-7).
I hope that helps!