Simple harmonic motion is a type of oscillatory motion where the restoring force is directly proportional to the displacement and acts in the direction opposite to that of the displacement (see Hooke's law ). This becomes the following differential equation :
F
→
=
m
a
→
=
m
x
→
″
=
−
k
x
→
{\displaystyle \vec{F} = m \vec{a} = m \vec{x}'' = -k\vec{x}}
which results in the following solution:
x
(
t
)
=
A
cos
(
ω
t
−
φ
)
,
{\displaystyle x(t) = A\cos\left(\omega t - \varphi\right),}
where A is the amplitude , ω is the angular frequency, equal to 2πf , and φ is the phase. ω is equal to
ω
=
k
m
{\displaystyle \omega = \sqrt{ \tfrac{k}{m} }}
From this equation, velocity and acceleration can easily be found.
The total energy of the system at any time is
E
t
o
t
=
1
2
k
A
2
{\displaystyle E_{tot} = \tfrac{1}{2} k A^2}
Derivation of formula [ ]
Hooke's law can be rewritten as a second-order differential equation .
F
=
−
k
x
=
m
d
2
x
d
t
2
{\displaystyle F = - kx = m \frac{d^2 x}{dt^2}}
d
2
x
d
t
2
+
k
m
x
=
0
{\displaystyle \frac{d^2 x}{dt^2} + \frac{k}{m} x = 0}
This equation will have the characteristic equation
r
2
+
k
m
=
0
{\displaystyle r^2 + \frac{k}{m} = 0}
r
=
±
−
k
m
=
±
k
m
i
=
±
ω
i
{\displaystyle r = \pm \sqrt{-\tfrac{k}{m}} = \pm \sqrt{\tfrac{k}{m}} i = \pm \omega i}
The solution to the differential equation is
x
(
t
)
=
C
1
e
r
1
t
+
C
2
e
r
2
t
=
C
1
e
ω
i
t
+
C
2
e
−
ω
i
t
{\displaystyle x(t) = C_1 e^{r_1 t} + C_2 e^{r_2 t} = C_1 e^{\omega i t} + C_2 e^{-\omega i t}}
By using Euler's formula this can be written in the form
x
(
t
)
=
C
1
(
cos
(
ω
t
)
+
i
sin
(
ω
t
)
)
+
C
2
(
cos
(
ω
t
)
−
i
sin
(
ω
t
)
)
{\displaystyle x(t) = C_1 (\cos (\omega t) + i \sin(\omega t)) + C_2 (\cos (\omega t) - i \sin(\omega t))}
x
(
t
)
=
(
C
1
+
C
2
)
cos
(
ω
t
)
+
(
C
1
−
C
2
)
sin
(
ω
t
)
{\displaystyle x(t) = (C_1 + C_2) \cos (\omega t) + (C_1 - C_2) \sin (\omega t)}
x
(
t
)
=
C
3
cos
(
ω
t
)
+
C
4
sin
(
ω
t
)
{\displaystyle x(t) = C_3 \cos (\omega t) + C_4 \sin (\omega t)}
which, by using trigonometric identities, can be written as
x
(
t
)
=
A
cos
(
ω
t
−
φ
)
{\displaystyle x(t) = A \cos (\omega t - \varphi)}
where
A
=
C
3
2
+
C
4
2
{\displaystyle A = \sqrt{C_3^{ \ 2} + C_4^{ \ 2}}}
and
tan
φ
=
C
4
C
3
{\displaystyle \tan \varphi = \tfrac{C_4}{C_3}}
.