Physics Library
 An open source physics library
Encyclopedia | Forums | Docs | Random  

[parent] Wave Mechanics: Harmonic Motion, Euler's Formula, and Complex Exponentials

(Derivation)

Wave Mechanics: Harmonic Motion, Euler’s Formula, and Complex Exponentials

WM01 introduced oscillation at one point without assuming a particular mathematical shape. WM02 then introduced the sinusoid, angular frequency, and phase. This supplemental derivation asks a deeper question:

|----------------------------------------------------------------------------------------|
|Why  do  sine and cosine appear, and why  can they be replaced by complex  exponentials? |
-----------------------------------------------------------------------------------------
(1)

The answer links mechanics, differential equations, geometry, and wave analysis. A linear restoring force produces a second-order differential equation whose real solutions are sine and cosine. The same equation also admits complex exponential solutions. Euler’s formula then shows that these are not different physical models. They are different mathematical representations of the same harmonic motion [1, 2, 3, 4].

This connection is central to later wave mechanics, circuits, RF engineering, antennas, communications, and GNSS because differentiation, phase shifts, propagation, and superposition become much easier to manipulate in complex-exponential form.

1 Learning objectives

After working through this entry, the reader should be able to:

  1. derive the simple harmonic oscillator equation from a linear restoring force;
  2. verify why sine and cosine solve that equation;
  3. convert between the forms C cos ωt + D sin ωt and A cos(ωt + ϕ);
  4. derive Euler’s formula from the power series of the exponential;
  5. derive sine and cosine from the two exponentials ei𝜃 and e−i𝜃;
  6. interpret ei𝜃 geometrically as rotation on the complex plane;
  7. explain why differentiation of a complex sinusoid becomes multiplication by iω;
  8. connect one-point harmonic motion to the traveling-wave phase kx − ωt + ϕ0.

2 From restoring force to the harmonic differential equation

The simplest physical route to sinusoidal motion is a mass attached to an ideal spring. Let u(t) denote displacement from equilibrium. For sufficiently small deformation, Hooke’s law gives

F =  − κu,
(2)

where κ > 0 is the spring stiffness. The minus sign is the essential physical feature: when u > 0 the force points in the negative direction, and when u < 0 the force points in the positive direction. The force therefore tends to restore the mass toward u = 0.

Newton’s second law gives

m u¨=  F.
(3)

Using Equation (2),

m ¨u = − κu,
(4)

or

m ¨u + κu =  0.
(5)

Define the natural angular frequency by

|--------|
| 2   κ- |
ω 0 = m .|
----------
(6)

Then

|-----2------|
u¨+-ω-0u-=-0.-
(7)

This is the ideal simple harmonic oscillator equation.

PIC

Figure 1. A linear restoring force produces the simple harmonic oscillator equation. The force always points opposite the displacement.

Equation (7) contains the key mathematical requirement:

|----------|
u¨=  − ω20u.|
------------
(8)

The second derivative must reproduce the original function with a negative scale factor.

3 Why sine and cosine solve the equation

Differentiate a cosine twice:

 d
--
dt cos(ω0t) = −ω0 sin(ω0t), (9)
  2
-d-
dt2 cos(ω0t) = −ω02 cos(ω 0t). (10)

Therefore

d2
---cos(ω0t) + ω20 cos(ω0t) = 0.
dt2
(11)

Likewise,

d
--
dt sin(ω0t) = ω0 cos(ω0t), (12)
 2
d--
dt2 sin(ω0t) = −ω02 sin(ω 0t). (13)

Thus sine also satisfies Equation (7).

Because the differential equation is linear, any linear combination of two solutions is also a solution. Hence

|------------------------------|
|u(t) = C cos(ω0t ) + D sin(ω0t).|
--------------------------------
(14)

The two constants are not accidental. Equation (7) is second order, so two independent initial data are needed. Usually they are

u (0 ) = u0,    u˙(0) = v0.
(15)

From Equation (14),

u(0) = C,
(16)

and

u˙(t) = − C ω0sin(ω0t) + D ω0cos(ω0t),
(17)

so

˙u(0) = D ω0.
(18)

Therefore

|-----------------v---|
C  = u0,     D =  -0. |
------------------ω0---
(19)

This is already a complete real solution of the harmonic oscillator.

4 From two coefficients to amplitude and phase

The same motion can be written as a single shifted cosine:

|----------------------|
|u(t) = A cos(ω0t − ϕ).|
-----------------------
(20)

Use the angle-difference identity

cos(a − b) = cos acos b + sina sin b.
(21)

Then

u(t) = A cos(ω0t) cos ϕ + A sin(ω0t) sin ϕ. (22)

Compare this with Equation (14). The coefficients must satisfy

C =  A cosϕ,     D  = A sinϕ.
(23)

Squaring and adding gives

C2 + D2 = A2 cos 2ϕ + A2 sin 2ϕ (24)
= A2. (25)

Hence

|----------------|
|     √--2-----2 |
-A-=---C---+-D--.
(26)

The phase must retain quadrant information, so the robust expression is

|-----------------|
ϕ-=--atan2(D,-C-).--
(27)

Thus

|----------------------------------------|
C  cos(ω0t ) + D sin(ω0t) = A cos(ω0t − ϕ).|
------------------------------------------
(28)

The sine form is equally valid because

          (      )
cos𝜃 = sin  𝜃 + π- .
                2
(29)

There is no physical preference for sine or cosine. Choosing one rather than the other only changes the phase convention.

5 Reading the general sinusoid

Write a general one-point harmonic signal as

|----------------------|
|u(t) = A cos(ωt + ϕ0).|
-----------------------
(30)

Its instantaneous phase is

|--------------|
𝜃(t) = ωt + ϕ0.|
----------------
(31)

The important quantities are

SymbolMeaning Typical unit



A amplitude same as u
T period s
f frequency Hz
ω angular frequencyrad/s
ϕ0 initial phase rad

The period and frequency satisfy

T =  1-,
     f
(32)

while one complete cycle is 2π radians, so

|---------------|
|           2π  |
ω =  2πf =  --. |
------------T----
(33)

PIC

Figure 2. Amplitude, period, and phase shift in a harmonic time history. Phase describes position within the repeating cycle.

The equation is easiest to interpret as uniform phase accumulation. Since

𝜃(t) = ωt + ϕ ,
             0
(34)

we have

|--------|
|d𝜃      |
|---= ω. |
-dt-------
(35)

Angular frequency is therefore the rate at which phase advances.

6 The unit circle: the geometry behind sine and cosine

Consider a point moving around a circle of radius A. Let its angle be 𝜃. Its Cartesian coordinates are

x = A cos 𝜃,    y = A sin 𝜃.
(36)

If the angle increases uniformly,

𝜃(t) = ωt + ϕ0,
(37)

then the horizontal projection is a cosine in time and the vertical projection is a sine in time.

PIC

Figure 3. Cosine and sine are the orthogonal projections of uniform circular motion. Euler’s formula packages both projections into one rotating complex number.

This geometric picture explains why sine and cosine occur as a natural pair. They are not unrelated functions that happen to solve the same equation. They are the two orthogonal coordinates of rotation.

7 A second route: the exponential trial solution

For constant-coefficient linear differential equations, exponentials are especially useful because differentiating an exponential reproduces the same exponential.

Try

u(t) = ert.
(38)

Then

       rt           2 rt
u˙=  re ,     ¨u = r e .
(39)

Substitute into Equation (7):

 2 rt    2 rt
r e  + ω 0e  = 0.
(40)

Since ert is never zero,

 2    2
r + ω 0 = 0.
(41)

Thus

|----------|
-r-=-±iω0,-|
(42)

where

i2 = − 1.
(43)

The two exponential solutions are therefore

|----------------|
|eiω0t,    e− iω0t.|
-----------------
(44)

In electrical engineering the symbol j is often used instead of i so that i remains available for electric current. The mathematics is identical.

At first these complex solutions may seem to have introduced something unphysical. The next section shows that they are simply a compact representation of sine and cosine.

8 Deriving Euler’s formula from power series

The exponential function has the Maclaurin expansion

              2     3    4
ez = 1 + z + z--+  z-+  z--+ ⋅⋅⋅ .
             2!    3!   4!
(45)

Set

z = i𝜃.
(46)

Then

ei𝜃 = 1 + i𝜃 + (i𝜃)2-
 2! + (i𝜃)3
  3! + (i𝜃)4
  4! + ⋅⋅⋅. (47)

The powers of i repeat in a four-step cycle:

i0 = 1,  i1 = i,   i2 = − 1,  i3 = − i,  i4 = 1.
(48)

Therefore

ei𝜃 = 1 + i𝜃 −  2
𝜃--
 2! − i  3
𝜃--
 3! +  4
𝜃--
4! + i 5
𝜃--
5! −⋅⋅⋅. (49)

Group the real terms and the imaginary terms:

ei𝜃 = (                   )
      𝜃2-  𝜃4-
  1 − 2! +  4! − ⋅ ⋅⋅ (50)
+ i(      3    5      )
  𝜃 − 𝜃-+  𝜃--− ⋅⋅⋅
      3!   5!. (51)

But the Maclaurin series of cosine and sine are

cos 𝜃 = 1 − 2
𝜃--
2! +  4
𝜃--
4! −⋅⋅⋅, (52)
sin 𝜃 = 𝜃 −𝜃3-
3! + 𝜃5-
5! −⋅⋅⋅. (53)

Hence

|-------------------|
ei𝜃 =-cos𝜃-+-isin𝜃.--
(54)

This is Euler’s formula.

The result is algebraic, but its geometry is equally important. Equation (54) places the point ei𝜃 at coordinates

(cos𝜃,sin𝜃)
(55)

on the unit circle. Its magnitude is

  i𝜃    ∘ ---2-------2--
|e | =   cos 𝜃 + sin 𝜃 = 1.
(56)

Changing 𝜃 rotates the complex number without changing its magnitude.

9 Recovering cosine and sine from exponentials

Euler’s formula gives

ei𝜃 = cos 𝜃 + i sin 𝜃, (57)
e−i𝜃 = cos 𝜃 − i sin 𝜃. (58)

Add the two equations:

ei𝜃 + e−i𝜃 = 2 cos𝜃.
(59)

Therefore

|------------------|
|         i𝜃    −i𝜃 |
|cos𝜃 =  e--+-e---.|
------------2------
(60)

Subtract the equations:

ei𝜃 − e− i𝜃 = 2isin𝜃,
(61)

so

|------------------|
|       ei𝜃 −-e−i𝜃 |
|sin 𝜃 =     2i    .|
-------------------
(62)

PIC

Figure 4. A real cosine can be viewed as the sum of two equal counter-rotating complex exponentials. Their imaginary parts cancel while their real parts add.

This is an important conceptual result. A real sinusoid contains a conjugate pair of complex exponentials. Later, Fourier analysis will interpret those exponentials as positive- and negative-frequency components.

10 Why the complex exponential solves the oscillator equation

Consider

z(t) = Aei(ω0t+ϕ0).
(63)

Differentiate once:

z˙= iω0z.
(64)

Differentiate again:

¨z = (iω0 )2z = − ω20z.
(65)

Therefore

|------------|
|¨z + ω2 z = 0.
------0-------
(66)

Taking the real part gives

ℜ{z(t)} = A cos(ω t + ϕ ),
                 0     0
(67)

and taking the imaginary part gives

ℑ{z (t)} = A sin(ω0t + ϕ0).
(68)

Thus the physical real-valued sinusoid is contained inside the complex solution.

The complex number is a mathematical bookkeeping device. It simultaneously stores amplitude and phase:

Aeiϕ0
(69)

has magnitude A and argument ϕ0.

11 The general real solution as a conjugate pair

The two characteristic roots in Equation (44) give the general complex solution

z(t) = C+eiω0t + C − e− iω0t.
(70)

For the result to be real for every t, choose conjugate coefficients:

C− =  C+∗.
(71)

Let

       A- iϕ0            A- −iϕ0
C+  =  2 e  ,    C − =  2 e   .
(72)

Then

z(t) = A
--
2[                     ]
 ei(ω0t+ϕ0) + e−i(ω0t+ϕ0) (73)
= A cos(ω0t + ϕ0). (74)

The sine/cosine basis and the complex-exponential basis therefore span the same two-dimensional solution space.

12 Why complex exponentials simplify differentiation

This is one of the most important practical reasons for using the complex representation. For

z (t) = Zeiωt,
(75)

where Z is independent of time,

dz-= iωZei ωt = iωz.
dt
(76)

Thus

|--------------|
|d             |
|--   ← →    iω |
-dt-------------
(77)

for a single-frequency complex sinusoid.

Similarly,

|------------------|
|d2              2 |
|--2   ← →    − ω .|
-dt-----------------
(78)

A differential operation has become algebraic multiplication. This is why complex exponentials are so effective in oscillation theory, AC circuits, linear systems, Electromagnetism, and signal processing [5, 4].

12.1 Multiplication by i is a quarter-cycle rotation

From Euler’s formula,

     iπ∕2
i = e   .
(79)

If

z = Aei 𝜃,
(80)

then

iz = Aei(𝜃+π∕2).
(81)

Therefore multiplying by i rotates a complex phasor by 90∘ counterclockwise without changing its magnitude. Differentiation of eiωt both scales the magnitude by ω and advances the phase by π∕2.

13 Phasor notation

For a single fixed angular frequency ω, write

u(t) = A cos(ωt + ϕ0).
(82)

Define the complex amplitude, or phasor,

|----------|
U--=-Aeiϕ0.-
(83)

Then

|------------------|
|         {   iωt}  |
-u(t) =-ℜ--U-e----.
(84)

The common time factor eiωt can often be suppressed while performing algebra. The constant complex number U carries the amplitude and phase.

This notation is powerful only when all quantities under comparison share the same angular frequency. A phasor is not a replacement for an arbitrary time-dependent signal.

14 From one-point oscillation to a traveling wave

The next conceptual step is to allow phase to depend on position as well as time. A one-dimensional traveling sinusoid can be written

|------------------------------|
-ψ(x,-t)-=-A-cos(kx-−--ωt +-ϕ0).|
(85)

The total phase is

|-----------------------|
Φ-(x,t) =-kx-−-ωt-+-ϕ0.-|
(86)

The spatial phase rate is the Wavenumber

|--------|
|k = 2π-,|
------λ---
(87)

and the temporal phase rate is the angular frequency

|---------|
ω-=--2πf.--
(88)

At fixed time, moving by Δx changes the phase by

|------------|
-Δ-Φ-=-k-Δx.-|
(89)

At fixed position, waiting for a time Δt changes the phase by

|------------|
Δ Φ  = − ωΔt |
--------------
(90)

for the sign convention in Equation (85).

PIC

Figure 5. In a traveling wave, phase advances in space as well as time. A spatial separation Δx corresponds to phase separation Δϕ = kΔx.

The complex representation is

|----------------------------|
|           {   i(kx− ωt+ϕ0)}  |
-ψ(x,-t)-=-ℜ---Ae------------.
(91)

This is the direct bridge from elementary harmonic motion to wave mechanics and RF signal representation.

15 Phase velocity from constant phase

A recognizable crest or trough corresponds to a fixed value of phase. Set

kx −  ωt + ϕ0 = constant.
(92)

Differentiate with respect to time:

k dx-− ω = 0.
  dt
(93)

Hence the phase velocity is

|--------------|
|     dx    ω  |
|vp = ---=  --.|
------dt----k--
(94)

Using ω = 2πf and k = 2π∕λ,

|--------|
vp-=-f-λ.-
(95)

The familiar wave-speed relation is therefore also a statement about the ratio of temporal phase accumulation to spatial phase accumulation.

16 Sign conventions

Two common complex traveling-wave conventions are

 i(kx−ωt)
e
(96)

and

ei(ωt− kx).
(97)

They are complex conjugates. Either convention is valid if used consistently. The observable real cosine is unchanged by a consistent switch of convention, but signs in derivatives, propagation factors, Fourier transforms, and phasor formulas may change.

Before comparing formulas from two sources, identify the assumed time convention.

17 Worked example: initial displacement and velocity

Consider

u¨+ 25u  = 0,
(98)

with

u (0 ) = 3,    ˙u(0) = 4.
(99)

The natural angular frequency is

ω0 = 5 rad/s.
(100)

Write

u(t) = C cos5t + D sin 5t.
(101)

From u(0) = 3,

C  = 3.
(102)

Differentiate:

u˙=  − 5C sin 5t + 5D cos5t.
(103)

At t = 0,

4 = 5D,
(104)

so

D  = 0.8.
(105)

Thus

---------------------------
|                          |
-u(t) =-3cos-5t +-0.8-sin-5t.
(106)

The amplitude is

    √ -2------2
A =   3  + 0.8 =  3.105,
(107)

and

ϕ = atan2 (0.8, 3) = 0.261 rad.
(108)

Therefore

|----------------------------|
-u(t) =-3.105-cos(5t −-0.261).|
(109)

The two expressions are exactly the same motion.

18 Worked example: from a traveling wave to its parameters

Suppose

ψ(x,t) = 2cos(8x − 40t + 0.3).
(110)

Comparison with Equation (85) gives

k = 8 rad/m,      ω = 40 rad/s.
(111)

Then

     2π    2π
λ =  ---=  ---=  0.785 m,
      k     8
(112)

and

      ω
f =  ---=  6.37 Hz.
     2π
(113)

The phase velocity is

vp = ω- = 5.00 m/s.
     k
(114)

A displacement of

Δx  = 0.10 m
(115)

corresponds to

ΔΦ  = kΔx  = (8)(0.10) = 0.80 rad.
(116)

This example links the one-point harmonic language of WM02 directly to the spatial phase language used in later wave and RF articles.

19 Common conceptual errors

19.1 The imaginary part is not an imaginary physical displacement

Complex notation is a mathematical representation. If the physical quantity is real, the measurable signal is usually obtained by taking the real part after the complex algebra has been completed.

19.2 Amplitude and phase are different pieces of information

The complex number

Aei ϕ
(117)

contains both. Its magnitude is A; its angle is ϕ.

19.3 Sine and cosine are not physically different kinds of motion

They differ by a phase shift of π∕2. Choosing sine or cosine as the reference form is a convention.

19.4 Angular frequency is not ordinary frequency

The two are related by

ω =  2πf.
(118)

The factor 2π converts cycles to radians.

19.5 A phasor is not an arbitrary time signal

The compact replacement d∕dt ↔ iω assumes a single harmonic time dependence. General non-sinusoidal signals require superposition or Fourier methods.

20 Why this matters for RF and GNSS

An RF carrier is commonly represented physically as

s(t) = A cos(2πf t + ϕ ).
                c    0
(119)

Its complex representation is

          i(2πfct+ϕ0)
sc(t) = Ae          .
(120)

The real waveform is recovered through

s(t) = ℜ {sc(t)}.
(121)

If propagation changes the path length by Δr, the carrier phase changes by

             2π
Δ ϕ = kΔr  = ---Δr.
              λ
(122)

This is why Euler’s representation, phase, wavenumber, path length, I/Q processing, antenna arrays, and GNSS carrier tracking all become tightly connected. The complex exponential is not an RF-specific trick. It is the natural algebraic language of harmonic waves.

21 Summary

The central chain is

F = −κu = ⇒mü + κu = 0 (123)
= ⇒ü + ω02u = 0 (124)
= ⇒u = C cos ω0t + D sin ω0t (125)
⇔u = A cos(ω0t + ϕ0) (126)
⇔u = ℜ{   i(ω0t+ϕ0)}
  Ae. (127)

Euler’s formula provides the bridge:

|i𝜃-----------------|
e--=--cos𝜃-+-isin𝜃.--
(128)

For a traveling wave, the phase acquires spatial dependence:

|--------------------------------------------------|
|                                  {   i(kx−ωt+ ϕ0)}  |
-ψ(x,t)-=-A-cos(kx-−-ωt-+-ϕ0-) =-ℜ--Ae------------.-
(129)

The temporal phase rate is ω, the spatial phase rate is k, and their ratio gives the phase velocity:

|--------------|
|vp = ω- = fλ. |
------k--------|
(130)

WM03 can now treat phase difference as a physical comparison between two oscillations or two points on a wave, rather than as an isolated trigonometric parameter.

References

References

[1]   A. P. French, Vibrations and Waves, W. W. Norton, 1971.

[2]   Frank S. Crawford, Waves, Berkeley Physics Course, Vol. 3, McGraw-Hill, 1968.

[3]   Mary L. Boas, Mathematical Methods in the Physical Sciences, 3rd ed., Wiley, 2006.

[4]   Erwin Kreyszig, Advanced Engineering Mathematics, 10th ed., Wiley, 2011.

[5]   Alan V. Oppenheim, Alan S. Willsky, and S. Hamid Nawab, Signals and Systems, 2nd ed., Prentice Hall, 1997.


"Wave Mechanics: Harmonic Motion, Euler's Formula, and Complex Exponentials" is owned by bloftin.
(view preamble)
View style:
Other names:  WM02E2
Keywords:  wave mechanics, harmonic motion, simple harmonic oscillator, sinusoid, cosine, sine, angular frequency, phase, Euler formula, complex exponential, phasor, complex plane, traveling wave, wavenumber, RF

This object's parent.

Cross-references: parameter, WM03, physical quantity, Fourier transforms, observable, relation, velocity, Wavenumber, Electromagnetism, systems, operation, two-dimensional, magnitude, algebraic, Maclaurin series, powers, section, uniform circular motion, Cartesian coordinates, position, unit, identity, function, Hooke's law, deformation, equilibrium, displacement, mass, power series, simple harmonic oscillator, representations, formula, second-order differential equation, force, differential equations, mechanics, WM02, oscillation, WM01

This is version 1 of Wave Mechanics: Harmonic Motion, Euler's Formula, and Complex Exponentials, born on 2026-10-09.
Object id is 1440, canonical name is WaveMechanicsHarmonicMotionEulersFormulaAndComplexExponentials.
Accessed 20 times total.

Classification:
Physics Classification: 46.40.-f (Vibrations and mechanical waves )
 45.20.Dd (Newtonian mechanics)

Pending Errata and Addenda

None.

Discussion

No messages.

Interact