Euler equations

From practical experience we know that the solution f(θ), which describes the movement of a harmonic oscillator, behaves as a real sinusoidal function. So the question is how the general complex exponential solution, as introduced here, relates to the expected real sinusoidal solution. In order to show this first the Taylor series is introduced.



Taylor expansion

Every function can be approximated by a polynomial function. This approximation is also known as a Taylor series or Taylor expansion. The Taylor expansion of any differentiable function f(x) in the point x=α is given as f(x)f(α)+f(α)1!(xα)+f(α)2!(xα)2+f(α)3!(xα)3+ where n! denotes the factorial of n is calculated as n(n1)21, so as an example 3!=321=6 and f(n)(x) is the nth derivative of the function f(x).

When α=0 the approximation simplifies to f(x)f(0)+f(0)1!x+f(0)2!x2+f(0)3!x3+=n=0f(n)(0)n!xn, which is also known as the Maclaurin series. This series can be calculated for all functions. The series of several frequently used functions are

ex=1+x+x22!+x33!+x44!+x55!,

cos(x)=1x22!+x44! and sin(x)=xx33!+x55!.

Visualisation of the Taylor expansion.
Visualisation of the Taylor expansion for different functions and changing orders. In the case of the sin and cosine function, the even and odd components equal 0, therefore the Taylor expansion does not seem to update every other step.



Euler equations

When returning to the example of the harmonic oscillator we found that the solution was given as f(θ)=ejθ. This function is often called a complex exponential, since a complex number is the exponent. In order to show the link between this function and a sinusoidal function, as is observed in practice, the Maclaurin series of this function needs to be determined as ejθ=1+jθ+(jθ)22!+(jθ)33!+(jθ)44!+(jθ)55!+. This equation can be simplified by using the definition of the complex unit j=1, which can be used in determining the following terms: j2=1,j3=j,j4=1,j5=j Rewriting the Maclaurin expansion now gives us ejθ=1+jθθ22!jθ33!+θ44!+jθ55!+. Upon closer inspection this representation allows us to split the expression in a real and imaginary part as ejθ=(1θ22!+θ44!)+j(θθ33!+jθ55!). Now recall the Maclaurin series of the sine and cosine function and substitution will give rise to the Euler equation ejθ=cos(θ)+jsin(θ)

Representation of sin(x) and cos(x)

Now we can use the Euler equation to find alternative expressions for the sine and cosine functions. For this we first evaluate the Euler equation for θ, which results in ejθ=cos(θ)+jsin(θ)=cos(θ)jsin(θ). Now by adding or subtracting this equation to the Euler equation we obtain the following two equations: ejθ+ejθ=(cos(θ)+jsin(θ))+(cos(θ)jsin(θ))=2cos(θ) ejθejθ=(cos(θ)+jsin(θ))(cos(θ)jsin(θ))=2jsin(θ)

From this we obtain the following alternative expressions for the sine and cosine functions as sums of complex exponentials: cos(θ)=ejθ+ejθ2sin(θ)=ejθejθ2j

As is the case with differential equations, all linear combinations of the complex exponential are also valid solutions of the second order differential equation of the harmonic oscillator. As a result it follows from the alternative representations of the sine and cosine function that the sinusoidal functions are the real solutions of the second order differential equation and we can generalize these real solutions to a complex exponential solution.

Example


Prove the following identity: ejπ+1=0
By using Euler's equation for θ=π, the identity results in: ejπ+1=cos(π)+jsin(π)+1=1+0+1=0