This article is available in: 日本語
Introduction
In the last issue, I wrote an article about Taylor development.
I’ll just repost the Taylor expansion,
In particular, Taylor development around the origin is called “Maclaurin Expansion”.
As a concrete example of this, we will calculate the Maclaurin expansion of \(\mathrm{e}^x,\ \sin{x},\ \cos{x}\). We will write the result first.
\mathrm{e}^{x} &=& 1+x+\frac{x^{2}}{2!}+\frac{x^{3}}{3!}+\cdots = \sum_{k=0}^{\infty} \frac{x^{k}}{k !} \\
\\
\sin x &=& x-\frac{x^{3}}{3!} + \frac{x^5}{5!}\, – \frac{x^7}{7!} + \cdots = \sum_{k=0}^{\infty}(-1)^{k}\frac{x^{2 k+1}}{(2 k+1) !} \\
\\
\cos x &=& 1-\frac{x^{2}}{2!} + \frac{x^4}{4!}\, – \frac{x^6}{6!} + \cdots = \sum_{k=0}^{\infty}(-1)^{k} \frac{x^{2 k}}{(2 k) !}
\end{eqnarray*}
Let’s verify these by actually doing the calculations.
Maclaurin expansion of \(\mathrm{e}^x\)
Calculate the derivative of \(f(x) = \mathrm{e}^x\) to compute the Maclaurin expansion.
From the properties of the exponential function \(\mathrm{e}^x\),
f^{\prime}(x) &=& \mathrm{e}^x \\
\\
f^{\prime\prime}(x) &=& \mathrm{e}^x \\
\\
f^{(3)}(x) &=& \mathrm{e}^x \\
\\
&\vdots&
\end{eqnarray*}
f^{\prime}(0) = f^{\prime\prime}(0) = f^{(3)}(0) = \cdots = 1.
\end{eqnarray*}
\mathrm{e}^{x} &=& 1+x+\frac{x^{2}}{2!}+\frac{x^{3}}{3!}+\cdots \\
&=& \sum_{k=0}^{\infty} \frac{x^{k}}{k!}
\end{eqnarray*}
Maclaurin expansion of \(\sin{x}\)
Calculate the derivative of \(f(x) = \sin{x}\).
f^{\prime}(x) &=& \cos{x} \\
\\
f^{\prime\prime}(x) &=& -\sin{x} \\
\\
f^{(3)}(x) &=& -\cos{x} \\
\\
f^{(4)}(x) &=& \sin{x}\\
\\
&\vdots&
\end{eqnarray*}
f^{(k)}(x) &=& \left\{
\begin{array}{ll}
\cos{x}\ \ &(k = 1, 5, 9, \dots) \\
-\sin{x}\ \ &(k = 2, 6, 10, \dots) \\
-\cos{x}\ \ &(k = 3, 7, 11, \dots) \\
\sin{x}\ \ &(k = 4, 8, 12, \dots) \\
\end{array}
\right. \\
\\
&=& \sin{\left(x + \frac{k\pi}{2} \right)}\ \ (k = 1, 2, 3, \dots)
\end{eqnarray*}
f^{(k)}(0) &=& \left\{
\begin{array}{ll}
1\ \ &(k = 1, 5, 9, \dots) \\
0\ \ &(k = 2, 6, 10, \dots) \\
-1\ \ &(k = 3, 7, 11, \dots) \\
0\ \ &(k = 4, 8, 12, \dots) \\
\end{array}
\right.
\end{eqnarray*}
\sin x &=& x-\frac{x^{3}}{3!} + \frac{x^5}{5!}\, – \frac{x^7}{7!} + \cdots \\
&=& \sum_{k=0}^{\infty}(-1)^{k}\frac{x^{2 k+1}}{(2 k+1) !}
\end{eqnarray*}
Maclaurin expansion of \(\cos{x}\)
Calculate also the derivative of \(f(x) = \cos{x}\).
f^{\prime}(x) &=& -\sin{x} \\
\\
f^{\prime\prime}(x) &=& -\cos{x} \\
\\
f^{(3)}(x) &=& \sin{x} \\
\\
f^{(4)}(x) &=& \cos{x}\\
\\
&\vdots&
\end{eqnarray*}
f^{(k)}(x) &=& \left\{
\begin{array}{ll}
-\sin{x}\ \ &(k = 1, 5, 9, \dots) \\
-\cos{x}\ \ &(k = 2, 6, 10, \dots) \\
\sin{x}\ \ &(k = 3, 7, 11, \dots) \\
\cos{x}\ \ &(k = 4, 8, 12, \dots) \\
\end{array}
\right. \\
\\
&=& \cos{\left(x + \frac{k\pi}{2} \right)}\ \ (k = 1, 2, 3, \dots)
\end{eqnarray*}
f^{(k)}(0) &=& \left\{
\begin{array}{ll}
0\ \ &(k = 1, 5, 9, \dots) \\
-1\ \ &(k = 2, 6, 10, \dots) \\
0\ \ &(k = 3, 7, 11, \dots) \\
1\ \ &(k = 4, 8, 12, \dots) \\
\end{array}
\right.
\end{eqnarray*}
\cos x &=& 1-\frac{x^{2}}{2!} + \frac{x^4}{4!}\, – \frac{x^6}{6!} + \cdots \\
&=& \sum_{k=0}^{\infty}(-1)^{k} \frac{x^{2 k}}{(2 k) !}
\end{eqnarray*}
Euler’s formula
Finally, use the Maclaurin expansion of \(\mathrm{e}^x, \sin{x}, \cos{x}\) to derive Euler’s formula.
Maclaurin expansion of \(\mathrm{e}^{x}\)
\mathrm{e}^{x} &=& 1+x+\frac{x^{2}}{2!}+\frac{x^{3}}{3!}+\frac{x^{4}}{4!}+\frac{x^{5}}{5!}\cdots
\end{eqnarray*} Let’s change it to \(x \to \mathrm{i}x\)(\(\mathrm{i}^2 = -1\)). Therefore,