Euler’s Formula From Taylor Series’

The Taylor Series

Taylor polynomials are used to approximate function behavior around some domain value, c. When a real or complex function is infinitely differentiable and equal to an infinite Taylor series, it is known as an analytic function.

f(x)=f(c)+f'(c)\frac{(x-c)^1}{1!}+f''(c)\frac{(x-c)^2}{2!}+...=\sum\limits_{n=0}^{\infty}f^{(n)}(c)\frac{(x-c)^n}{n!}

When the function is evaluated at c=0, it is called a Maclaurin series.

f(x)=f(0)+f'(0)\frac{x^1}{1!}+f''(0)\frac{x^2}{2!}+f'''(0)\frac{x^3}{3!}+...=\sum\limits_{n=0}^{\infty}f^{(n)}(0)\frac{x^n}{n!}

Maclaurin Series of Cosine

To find the Maclaurin series representations of a function, we’ll start taking some derivatives and evaluating them at x=0

f(0)f'(0)f''(0)f'''(0)f^{(4)}(0)f^{(5)}(0)f^{(6)}(0)
cos(0)=1-sin(0)=0-cos(0)=-1sin(0)=0cos(0)=1-sin(0)=0-cos(0)=-1
The cosine function and 6 of its derivatives evaluated at f(0), which repeats every 4 derivatives

cos(x)=1-0\cdot\frac{x^1}{1!}-1\cdot\frac{x^2}{2!}+0\cdot\frac{x^3}{3!}+1\cdot\frac{x^4}{4!}+0\cdot\frac{x^5}{5!}-1\cdot\frac{x^6}{6!}+...\\cos(x)=1-\frac{x^2}{2!}+\frac{x^4}{4!}-\frac{x^6}{6!}+...=\sum\limits_{n=0}^\infty(-1)^n\frac{x^{2n}}{(2n)!}

f(0)f'(0)f''(0)f'''(0)f^{(4)}(0)f^{(5)}(0)f^{(6)}(0)
a_1cos(0b_1)=a_1-a_1b_1sin(0b_1)=0-a_1b_1^2cos(0b_1)=-a_1b_1^2a_1b_1^3sin(0b_1)=0a_1b_1^4cos(0b_1)=a_1b_1^4-a_1b_1^5sin(0b_1)=0-a_1b_1^6cos(0b_1)=-a_1b_1^6
The general cosine function and 6 of its derivatives evaluated at f(0), with coefficients

a_1cos(b_1x)=a_1-a_1b_1^2\frac{x^2}{2!}+a_1b_1^4\frac{x^4}{4!}-a_1b_1^6\frac{x^6}{6!}+...\\a_1cos(b_1x)=\sum\limits_{n=0}^\infty(-1)^na_1\frac{(b_1x)^{2n}}{(2n)!}

Maclaurin Series of Sine

Naturally, we look to do the same with the sine function

f(0)f'(0)f''(0)f'''(0)f^{(4)}(0)f^{(5)}(0)f^{(6)}(0)
sin(0)=0cos(0)=1-sin(0)=0-cos(0)=-1sin(0)=0cos(0)=1-sin(0)=0
The sine function and 6 of its derivatives evaluated at f(0), which repeats every 4 derivatives

sin(x)=0+1\cdot\frac{x^1}{1!}+0\cdot\frac{x^2}{2!}-1\cdot\frac{x^3}{3!}+0\cdot\frac{x^4}{4!}+1\cdot\frac{x^5}{5!}+0\cdot\frac{x^6}{6!}+...\\sin(x)=\frac{x^1}{1!}-\frac{x^3}{3!}+\frac{x^5}{5!}+...=\sum\limits_{n=0}^\infty(-1)^{n}\frac{x^{2n+1}}{(2n+1)!}

f(0)f'(0)f''(0)f'''(0)f^{(4)}(0)f^{(5)}(0)f^{(6)}(0)
a_2sin(0b_2)=0a_2b_2cos(0b_2)=a_2b_2-a_2b_2^2sin(0b_2)=0-a_2b_2^3cos(0b_2)=-a_2b_2^3a_2b_2^4sin(0b_2)=0a_2b_2^5cos(0b_2)=a_2b_2^5-a_2b_2^6sin(0b_2)=0
The sine function and 6 of its derivatives evaluated at f(0), with coefficients

a_2sin(b_2x)=a_2b_2\frac{x^1}{1!}-a_2b_2^3\frac{x^3}{3!}+a_2b_2^5\frac{x^5}{5!}+...=\sum\limits_{n=0}^\infty(-1)^{n}a_2\frac{(b_2x)^{2n+1}}{(2n+1)!}

Maclaurin Series of the Exponential

f(0)f'(0)f''(0)f'''(0)f^{(4)}(0)f^{(5)}(0)f^{(6)}(0)
e^0=1e^0=1e^0=1e^0=1e^0=1e^0=1e^0=1
The exponential function and its derivatives, evaluated at f(0)

e^x=1+\frac{x^1}{1!}+\frac{x^2}{2!}+\frac{x^3}{3!}+\frac{x^4}{4!}+\frac{x^5}{5!}+\frac{x^6}{6!}+...=\sum\limits_{n=0}^\infty\frac{x^{n}}{n!}

f(0)f'(0)f''(0)f'''(0)f^{(4)}(0)f^{(5)}(0)f^{(6)}(0)
a_3e^{b_30}=a_3a_3b_3e^{b_30}=a_3b_3a_3b_3^2e^{b_30}=a_3b_3^2a_3b_3^3e^{b_30}=a_3b_3^3a_3b_3^4e^{b_30}=a_3b_3^4a_3b_3^5e^{b_30}=a_3b_3^5a_3b_3^6e^{b_30}=a_3b_3^6
The exponential function and its derivatives, with coefficients

a_3e^{b_3x}=a_3+a_3b_3\frac{x^1}{1!}+a_3b_3^2\frac{x^2}{2!}+a_3b_3^3\frac{x^3}{3!}+a_3b_3^4\frac{x^4}{4!}=\sum\limits_{n=0}^\infty a_3\frac{(b_3x)^{n}}{n!}

Putting Them Together

The exponential function and cosine/sine series’ contain all of the same terms, though with differing alternating signs.

a_1cos(b_1x)=a_1-a_1b_1^2\frac{x^2}{2!}+a_1b_1^4\frac{x^4}{4!}-a_1b_1^6\frac{x^6}{6!}+...

a_2sin(b_2x)=a_2b_2\frac{x^1}{1!}-a_2b_2^3\frac{x^3}{3!}+a_2b_2^5\frac{x^5}{5!}+...

a_3e^{b_3x}=a_3+a_3b_3\frac{x^1}{1!}+a_3b_3^2\frac{x^2}{2!}+a_3b_3^3\frac{x^3}{3!}+a_3b_3^4\frac{x^4}{4!}+...

We can begin to match variables up with each other, firstly by seeing that a_1=a_3. Then, for simplicity, letting a_1=a_3=1.

cos(b_1x)=1-b_1^2\frac{x^2}{2!}+b_1^4\frac{x^4}{4!}-b_1^6\frac{x^6}{6!}+...

a_2sin(b_2x)=a_2b_2\frac{x^1}{1!}-a_2b_2^3\frac{x^3}{3!}+a_2b_2^5\frac{x^5}{5!}+...

e^{b_3x}=1+b_3\frac{x^1}{1!}+b_3^2\frac{x^2}{2!}+b_3^3\frac{x^3}{3!}+b_3^4\frac{x^4}{4!}+...

Next, we can look at the \frac{x^2}{2!} terms, -b_1^2=b_3^2. Then, letting b_1=1 yields b_3=\pm\sqrt{-1}=\pm i.

cos(x)=1-\frac{x^2}{2!}+\frac{x^4}{4!}-\frac{x^6}{6!}+...

a_2sin(b_2x)=a_2b_2\frac{x^1}{1!}-a_2b_2^3\frac{x^3}{3!}+a_2b_2^5\frac{x^5}{5!}+...

e^{ix}=1\pm i\frac{x^1}{1!}-\frac{x^2}{2!}\mp i\frac{x^3}{3!}+\frac{x^4}{4!}+...

Since there are now multiple options for a_2/b_2, we can compare a_2b_2=\pm i and -a_2b_2^3=\mp i. If a_2b_2=+i\implies -ib_2^2=-i\implies b_2^2=1\implies b_2=\pm 1. Similarly, if a_2b_2=-i\implies ib_2^2=i\implies b_2^2=1\implies b_2=\pm 1. Moving forward with the reference angle, let b_2=1 and with the principal solution, a_2=b_3=\pm i=i.

cos(x)=1-\frac{x^2}{2!}+\frac{x^4}{4!}-\frac{x^6}{6!}+...

isin(x)=i\frac{x^1}{1!}-i\frac{x^3}{3!}+i\frac{x^5}{5!}+...

e^{ix}=1+i\frac{x^1}{1!}-\frac{x^2}{2!}-i\frac{x^3}{3!}+\frac{x^4}{4!}+i\frac{x^5}{5!}-\frac{x^6}{6!}+...

e^{ix}=1-\frac{x^2}{2!}+\frac{x^4}{4!}+...+i\frac{x}{1!}-i\frac{x^3}{3!}+...=cosx+isinx\quad\square

Leave a comment