Maclaurin Expansion of sin(x)

Previous: Maclaurin Expansion of ex

Next: The Maclaurin Expansion of cos(x)




Example

Find the Taylor series expansion for sin(x) at x = 0, and determine its radius of convergence.

Complete Solution

Again, before starting this problem, we note that the Taylor series expansion at x = 0 is equal to the Maclaurin series expansion.

Step 1: Find Coefficients

Let f(x) = sin(x). To find the Maclaurin series coefficients, we must evaluate

\Bigg(\frac{d^{k}}{dx^{k}}\sin(x)\Bigg)\Bigg|_{x=0}

for k = 0, 1, 2, 3, 4, ...

Calculating the first few coefficients, a pattern emerges:

\begin{align}
f(0) &= \sin(0) = 0  \\
f'(0) &= \cos(0) = 1 \\
f''(0) &= -\sin(0) = 0 \\
f'''(0) &= -\cos(0) = -1 \\
f^{(4)}(0) &= \sin(0) = 0 \\
f^{(5)}(0) &= \cos(0) = 1 
\end{align}

The coefficients alternate between 0, 1, and -1. You should be able to, for the nth derivative, determine whether the nth coefficient is 0, 1, or -1.

Step 2: Substitute Coefficients into Expansion

Thus, the Maclaurin series for sin(x) is

\begin{align}
\sum_{k=0}^{\infty} \frac{f^{(k)}(0)}{k!} (x-0)^k 
&= f(0) + \frac{f'(0)}{1!}x+\frac{f''(0)}{2!}x^2 + \frac{f'''(0)}{3!}x^3 + \ldots \\
&= 0+ \Big( \frac{1}{1!}x\Big) + 0 + \Big( \frac{-1}{3!}x^3\Big)+0+\Big( \frac{1}{5!}x^5 \Big)+ \ldots \\
&= x -\frac{x^3}{3!}+\frac{x^5}{5!} - \ldots
\end{align}

Step 3: Write the Expansion in Sigma Notation

From the first few terms that we have calculated, we can see a pattern that allows us to derive an expansion for the nth term in the series, which is

\frac{(-1)^n}{(2n+1)!}x^{2n+1},\quad n=0,1,2,3,\ldots

Substituting this into the formula for the Taylor series expansion, we obtain

\sin(x) =\sum_{k=0}^{\infty} \frac{(-1)^k}{(2k+1)!}x^{2k+1} = x -\frac{x^3}{3!}+\frac{x^5}{5!} - \ldots

Radius of Convergence

The ratio test gives us:

\begin{align}
\lim_{k \rightarrow \infty} \Big| \frac{(-1)^{k+1}}{(2(k+1)+1)!}x^{2(k+1)+1} \Bigg/\frac{(-1)^k}{(2k+1)!}x^{2k+1} \Big | 
&= \lim_{k \rightarrow \infty} \frac{(2k+1)!}{(2k+3)!} |x|^2 \\
&= \lim_{k \rightarrow \infty} \frac{1}{(2k+3)(2k+2)} |x|^2 \\
&= 0
\end{align}

Because this limit is zero for all real values of x, the radius of convergence of the expansion is the set of all real numbers.

Explanation of Each Step

Step 1

Maclaurin series coefficients, ak can be calculated using the formula (that comes from the definition of a Taylor series)

a_k = \frac{f^{(k)}(0)}{k!}

where f is the given function, and in this case is sin(x). In step 1, we are only using this formula to calculate the first few coefficients. We can calculate as many as we need, and in this case were able to stop calculating coefficients when we found a pattern to write a general formula for the expansion.

Step 2

Step 2 was a simple substitution of our coefficients into the expression of the Taylor series.

Step 3

A helpful step to find a compact expression for the nth term in the series, is to write out more explicitly the terms in the series that we have found:


\sum_{k=0}^{\infty} \frac{f^{(k)}(0)}{k!} (x-0)^k = (+1)\cdot \frac{x^1}{1!} + (-1)\cdot \frac{x^3}{3!}+(+1)\cdot \frac{x^5}{5!} + \ldots

We have discovered the sequence 1, 3, 5, ... in the exponents and in the denominator of each term. We may then find a way to convert this sequence that we have discovered, into the sequence k=0, 1, 2, ... that appears in the final summation. The simple transform 2k+1 performs this transformation for us.

Step 4

This step was nothing more than substitution of our formula into the formula for the ratio test. Because we found that the series converges for all x, we did not need to test the endpoints of our interval. If however we did find that the series only converged on an interval with a finite width, then we may need to take extra steps to determine the convergence at the boundary points of the interval.

An Alternate Explanation

The following Patrick JMT video provides a similar derivation of the Maclaurin expansion for sin(x) that you may find helpful.

Sine Taylor Series at 0
Derivation of the Maclaurin series expansion for sin(x).
This video can be found on the Kahn Academy website, and carries a Creative Commons copyright (CC BY-NC-SA 3.0).

Possible Challenges

What if we Need the Taylor Series of sin(x) at Some Other Point?

The Maclaurin series of sin(x) is only the Taylor series of sin(x) at x = 0. If we wish to calculate the Taylor series at any other value of x, we can consider a variety of approaches.

Suppose we wish to find the Taylor series of sin(x) at x = c, where c is any real number that is not zero. We could find the associated Taylor series by applying the same steps we took here to find the Macluarin series. That is, calculate the series coefficients, substitute the coefficients into the formula for a Taylor series, and if needed, derive a general representation for the infinite sum.

Another approach could be to use a trigonometric identity. Consider this approach

\begin{align}
\sin(x) &= \sin(x + c - c) \\
&= \sin(x+c)\cos(c) - \cos(x+c)\sin(c) \\
&= \sin(u)\cos(c) - \cos(u)\sin(c), \quad u = x+c
\end{align}

The functions cos(u) and sin(u) can be expanded in with a Maclaurin series, and cos(c) and sin(c) are constants. We will see the Maclaurin expansion for cosine on the next page.

How Many Terms do I Need to Calculate?

It can be difficult to find an expression for the nth term in the series that allows us to write out a compact expression for an infinite sum. In our example here, we only calculated three terms. It may be helpful in other problems to write out a few more terms to find a useful pattern.

Summary

To summarize, we found the Macluarin expansion of the sine function.

The Maclaurin Expansion of sin(x)
The Maclaurin series expansion for sin(x) is given by

\sin(x) =\sum_{k=0}^{\infty} \frac{(-1)^k}{(2k+1)!}x^{2k+1} = x -\frac{x^3}{3!}+\frac{x^5}{5!} - \ldots

This formula is valid for all real values of x.


Previous: Maclaurin Expansion of ex

Next: The Maclaurin Expansion of cos(x)





Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>