Question
Question: How do you find the Taylor series for \(f\left( x \right)=\cos x\) centered at \(a=\pi \) ?...
How do you find the Taylor series for f(x)=cosx centered at a=π ?
Solution
To find the Taylor series for f(x)=cosx centered at a=π , we will use the formula for Taylor series of a function which is given by f(x)=n=0∑Nn!f(n)(a)(x−a)n ., where f(n)(a) is the nth derivative of f(x) at x=a . Then, we will differentiate the given function once, twice, thrice, and so on at x=a and substitute these values in the given formula. Then, we will use the given condition a=π and simplify further.
Complete step-by-step solution:
We have to find the Taylor series for f(x)=cosx centered at a=π . We know that Taylor series of a function is given by
f(x)=n=0∑Nn!f(n)(a)(x−a)n
where f(n)(a) is the nth derivative of f(x) at x=a .
Let us expand the series.
f(x)=f(a)+f′(a)1!x−a+f′′(a)2!(x−a)2+f′′′(a)3!(x−a)3+...+fn(a)n!(x−a)n
We are given that f(x)=cosx . Let us differentiate this function with respect to x at x=a .
f′(x)∣x=a=−sina
Now, let us again differentiate the above function.
f′′(x)∣x=a=−cosa
We have to find the third derivative of the given function at x=a .
f′′′(x)∣x=a=sina
We have to find the fourth derivative of the given function at x=a .
f′′′′(x)x=a=cosa
Now, let us substitute these values in the Taylor series.
cosx=cosa+−sina1!x−a+−cosa2!(x−a)2+sina3!(x−a)3+cosa4!(x−a)4+...
We are given that a=π . Therefore, the above form becomes
⇒cosx=cosπ+−sinπ1!x−π+−cosπ2!(x−π)2+sinπ3!(x−π)3+cosπ4!(x−π)4+...
We know that sinπ=0 . Therefore, all the off terms will be 0.
⇒cosx=cosπ+−cosπ2!(x−π)2+cosπ4!(x−π)4+...
We know that cosπ=−1 .
⇒cosx=−1+2!(x−π)2−4!(x−π)4+...
Therefore, the Taylor series for f(x)=cosx centered at a=π is −1+2!(x−π)2−4!(x−π)4+....
Note: Students must know the Taylor series and to expand them.They must note that Taylor series is a series which is the reason we did not get a finite result. They must know different functions. Students must be thorough with the values of trigonometric functions at basic angles.