The Taylor series for sine and cosine are important examples. Centered at
\(x=0\text{,}\) the derivatives of
\(\sin x\) form a cycle:
\(\sin x\text{,}\) \(\cos x\text{,}\) \(-\sin x\text{,}\) and
\(-\cos x\text{.}\) Evaluated at
\(x=0\text{,}\) these gives values of
\(0\text{,}\) \(1\text{,}\) \(0\text{,}\) and
\(-1\text{.}\) Therefore, I get the following expressions for the coefficient of the Taylor series.Note I need to group the coefficients into odds and evens, writing
\(2n\) for evens and
\(2n+1\) for odds.
\begin{align*}
c_0 \amp = f(0) = 0 \amp
c_1 \amp = f^\prime(0) = 1 \\
c_2 \amp = \frac{f^{\prime\prime}(0)}{2!} = 0 \amp
c_3 \amp = \frac{f^{\prime\prime\prime}(0)}{3!}
= \frac{-1}{3!} \\
c_4 \amp = \frac{f^{(4)}(0)}{4!} = 0 \amp
c_5 \amp = \frac{f^{(5)}(0)}{5!} = \frac{1}{5!} \\
c_6 \amp = \frac{f^{(6)}(0)}{6!} = 0 \amp
c_7 \amp = \frac{f^{(7)}(0)}{7!} = \frac{-1}{7!} \\
c_8 \amp = \frac{f^{(8)}(0)}{8!} = 0 \amp
c_9 \amp = \frac{f^{(9)}(0)}{9!} = \frac{1}{9!} \\
c_{2k} \amp = 0 \amp
c_{2k+1} \amp = \frac{(-1)^k}{(2k+1)!}
\end{align*}
Using these coefficients, the Taylor series for sine centered at
\(\alpha = 0\) is the following series. I only write the odd terms, using
\((2n+1)\text{,}\) since the even coefficients are all zero.
\begin{equation*}
\sin x = \sum_{n=0}^\infty \frac{(-1)^n}{(2n+1)!} x^{2n+1}
\end{equation*}
The radius of convergence of this series is
\(R =
\infty\text{,}\) so it expresses
\(\sin x\) for all real numbers. I can use similar steps to find the Taylor the series for cosine, which produces the following series. For cosine, the odd terms are zero, so I only write the even terms, using
\((2n)\text{.}\)
\begin{equation*}
\cos x = \sum_{n=0}^\infty \frac{(-1)^n}{(2n)!} x^{2n}
\end{equation*}
The radius of convergence of this series is also
\(R =
\infty\text{.}\)