Find the Taylor expansion for f(x)=cosx about π2.
Solution To express f(x)=cosx as a Taylor expansion about π2, we evaluate f and its derivatives at π2. f(x)=cosxf(π2)=0f′(x)=−sinxf′(π2)=−1f′′(x)=−cosxf′′(π2)=0f′′′(x)=sinxf′′′(π2)=1
For derivatives of odd order, f(2n+1)(π2)=(−1)n+1. For derivatives of even order, f(2n)(π2)=0. The Taylor expansion for f(x)=cosx about π2 is
619
f(x)=cosx=f(π2)+f′(π2)(x−π2)+f′′(π2)2!(x−π2)2+f′′′(π2)3!(x−π2)3+⋯=−(x−π2)+13!(x−π2)3−15!(x−π2)5+ ⋯=∞∑k=0(−1)k+1(2k+1)!(x−π2)2k+1
The radius of convergence is ∞; the interval of convergence is (−∞,∞).