Example 1: Find the Taylor series for f(x)=cosx centered at the given value of a=π. [Assume that f has a power series expansion. Do not show that Rn(x)→0.] Also find the associated radius of convergence.
Solution: (1) f(x)=cosx and f(π)=−1; (2) f′(x)=−sinx and f′(π)=0; (3) f′′(x)=−cosx and f′′(π)=1; (4) f′′′(x)=sinx and f′′′(x)=0; and this pattern repeats indefinitely. Therefore the Taylor series at π is