Question
Question: How do you find the Maclaurin series of \[f\left( x \right) = \cos \left( x \right)\] ?...
How do you find the Maclaurin series of f(x)=cos(x) ?
Solution
The Maclaurin series is the Taylor series expansion of the function about 0. So, use Taylor’s series expansion about 0 for the function cosx and expand it by using the formula of Taylor’s series expansion.
Complete Step by Step Solution:
We have to find the Maclaurin series for the function cosx. So, first, we should know about the Maclaurin series and find its formula to expand.
Maclaurin series can be defined as Taylor’s series expansion about 0. Therefore, we must know about the Taylor series. So, the Taylor series of the function is an infinite sum of terms that are expressed in terms of the derivatives of the function at a single point.
The Taylor series of the real or complex – valued function f(x) that is infinitely differentiable at a real or complex number a is the power series
f(a)+1!f′(a)(x−a)+2!f′′(a)(x−a)2+3!f′′′(a)(x−a)3+….
In the more compact sigma edition, we can write the above series as –
n=0∑∞n!fn(a)(x−a)n
where, fn(a) denotes the nth derivative of f evaluated at point a.
When a=0, then the above-written series is termed as Maclaurin series.
So, putting a=0 in the above Taylor’s series, we get –
f(x)=f(0)+f′(0)x+2!f′′(0)x2+3!f′′′(0)x3+…+n!fn(0)xn+….
The function given in the question is f(x)=cos(x). So, using the Maclaurin’s series for the expansion of the given function.
Finding f(0),f′(0),f′′(0),f′′′(0) and f4(0) for the given function, we get –
⇒f(0)=cos0=1 ⇒f′(x)=−sin0=0 ⇒f′′(x)=−cos0=−1 ⇒f′′′(x)=sin0=0 ⇒f4(x)=cos0=1
Since, f(x)=f4(x) , the cycle of {1, 0, -1, 0} repeats itself.
Putting all these values in the Maclaurin series, we get –
⇒f(x)=1−2!x2+4!x4−… ⇒f(x)=n=0∑∞(−1)n(2n)!x2n
Hence, it is the expansion for the function cosx.
Note: Many students continue expanding the Maclaurin series for the function but the expansion of the series should be stopped when the cycle starts repeating itself. This series is the type of series expansion in which all terms are nonnegative integer powers of the variable.