Simple Harmonic Motion
Simple harmonic motion is the motion generated by a linear restoring acceleration:
Equivalently,
The displacement
is measured from equilibrium.
The constant
is the angular frequency.
The defining physical feature is that acceleration is:
- proportional to displacement,
- opposite in direction to displacement.
The solution is sinusoidal, but the deeper structure is broader than a sine wave.
Because the equation of motion is second order, the complete instantaneous state requires both
position and velocity:
Once
and
are specified, the equation of motion determines the complete future and past motion.
Figure 1. A mass attached to an ideal spring provides the standard model of simple harmonic
motion. Displacement from equilibrium produces a restoring force directed back toward
equilibrium.
1 Spring-mass derivation
For an ideal spring,
where
is the spring constant.
Newton’s second law gives
Therefore
Define
Then
The angular frequency has dimensions
2 Why the force is called restoring
If
then
If
then
In either case, the force points toward
The equilibrium is therefore stable.
Figure 3. The Hooke-law force is a straight line through the origin with negative slope. Positive
displacement produces negative force, and negative displacement produces positive force.
3 Solving the differential equation
Consider
A general real solution is
Differentiate:
Differentiate again:
Thus
as required.
4 Position, velocity, and acceleration phase relations
For the special form
the velocity is
and the acceleration is
Therefore:
- velocity is shifted by one-quarter cycle relative to displacement,
- acceleration is opposite displacement,
- velocity is largest in magnitude at equilibrium,
- acceleration is largest in magnitude at the turning points.
Figure 2. Position, velocity divided by ω, and acceleration divided by ω2 are sinusoidal functions
with fixed phase offsets.
5 Period and frequency
The motion repeats when the phase increases by
Thus
Therefore
The ordinary frequency is
so
For the spring-mass oscillator,
The ideal linear oscillator period is independent of amplitude.
6 Initial conditions determine the motion
Let
Start with
At
From
we obtain
Therefore
The initial-value solution is
The corresponding velocity is
The factor
is required both by the initial condition and by dimensional consistency.
7 Amplitude from initial position and velocity
Write the solution in the form
Use the angle-addition identity:
| x(t) | = A sin ωt cos ϕ + A cos ωt sin ϕ. | (45) |
Compare with
Therefore
and
Square and add:
Hence
Thus the amplitude is determined by the complete initial state, not by initial position
alone.
8 Dimensional check
The two terms under the square root must have the same dimensions.
Because
and
Therefore
has dimensions
as required for
Dimensional analysis provides a fast check on initial-condition formulas.
9 Phase from the initial state
From
and
the phase can be obtained with the quadrant-aware function
Using a one-argument inverse tangent can lose quadrant information.
Different sine or cosine phase conventions produce equivalent formulas with correspondingly shifted
phase constants.
10 Example 1: amplitude and phase from an initial state
Let
with
Then
The amplitude is
| A | =  | (63)
|
| =  | (64)
|
| ≈ 0.361 m. | (65) |
For the sine convention,
Thus
11 The state of the oscillator
The equation
is second order.
Define
Then it becomes two first-order equations:
| ẋ = v, | | (70)
|
| v = −ω2x. | | (71) |
The pair
is therefore a complete state description.
At a given position, velocity distinguishes whether the oscillator is:
- moving toward increasing x,
- moving toward decreasing x,
- instantaneously at rest.
Position alone is not enough to specify the state.
12 State-space matrix form
Define the state vector
Then
The exact state evolution is
Thus the initial state uniquely determines the state at every later time.
13 The phase plane
Eliminate time using the amplitude relation.
For any time,
and
Therefore
Equivalently,
The trajectory in the
phase plane is an ellipse.
Figure 4. The SHO state moves around an ellipse in the position-velocity phase plane. Each point
(x,v) specifies the complete instantaneous state.
14 Scaled phase plane
Define a scaled velocity coordinate
Then
The phase-space ellipse becomes a circle.
The amplitude is simply the radius:
In particular, at
Figure 5. In the scaled phase plane (x,v∕ω), the state moves on a circle. The amplitude is the
distance from the origin to the state point, and the phase specifies its angular position on that
circle.
15 Direction of motion in phase space
At
the acceleration is
Therefore the state begins moving toward negative velocity.
In an
horizontal,
vertical phase plane, the standard SHO trajectory is traversed clockwise.
The direction matters: the same position coordinate can occur twice per cycle with opposite
velocities.
16 Mechanical energy
For a spring-mass oscillator,
and
The total mechanical energy is
Use
Then
Since
Since
Therefore
Amplitude is therefore a direct measure of the conserved energy.
17 Energy from initial conditions
At
Set this equal to
Then
Since
This gives an independent energy derivation of the amplitude formula.
18 Exchange of kinetic and potential energy
Using
and
Therefore
Energy continually transfers between kinetic and potential forms while the total remains
constant.
Figure 6. Kinetic and potential energy exchange during an SHO cycle. Their sum remains
constant for the ideal undamped oscillator.
19 Maximum speed and acceleration
At equilibrium,
so all the energy is kinetic:
Thus
At a turning point,
so
Therefore
20 Example 2: speed from displacement
A spring-mass oscillator has
Find the speed when
From the phase-plane equation,
Thus
| v2 | = ω2(A2 − x2) | (120)
|
| = 25![[ 2 2]
(0.20 ) − (0.12)](https://images.physicslibrary.org/cache/objects/1488/make4ht/M0601SimpleHarmonicMotion117x.png) | (121)
|
| = 0.64. | (122) |
Therefore
The sign of
depends on which half of the phase-plane ellipse the oscillator occupies.
21 Superposition and linearity
The SHO equation
is linear.
If
and
are solutions, then
is also a solution for constants
That is why
and
can serve as a basis for all real SHO solutions.
Linearity is also the foundation for normal modes, Fourier methods, and wave mechanics.
22 Complex exponential representation
Euler’s identity gives
Therefore a convenient complex trial solution is
Then
so
The physical displacement can be taken as the real part:
Complex notation becomes especially valuable for driven oscillators and waves.
23 Simple harmonic motion near a stable equilibrium
The harmonic oscillator is much more general than an ideal spring.
Suppose a one-dimensional system has potential energy
with a stable equilibrium at
At equilibrium,
For stability,
Let
Expand the potential near equilibrium:
Then
For mass
Therefore small motion near any smooth stable equilibrium is approximately simple harmonic,
with
Figure 8. Near a smooth stable equilibrium, a general potential is approximately quadratic. The
resulting restoring force is approximately linear, producing simple harmonic motion for
sufficiently small displacement.
24 Small-angle pendulum
A pendulum of length
obeys
For small angles measured in radians,
Then
Therefore
and
The pendulum is therefore approximately a simple harmonic oscillator only in the small-angle
regime.
Figure 7. For sufficiently small angular displacement, the tangential gravitational restoring term is
linear in 𝜃, and the pendulum approaches simple harmonic motion.
25 Vertical spring and shifted equilibrium
For a vertical spring, gravity changes the equilibrium position but not the angular frequency of
small ideal oscillations about that equilibrium.
Let downward displacement from the spring’s natural length be
Newton’s law is
The equilibrium extension satisfies
Define displacement from equilibrium:
Then
so
Gravity shifts the equilibrium but does not change the ideal linear frequency.
26 Canonical phase space
The state
is a useful mechanical state-space description.
In Hamiltonian mechanics the canonical momentum is
The canonical phase-space state is
The Hamiltonian is
Hamilton’s equations are
| ẋ | = = , | (163)
|
| ṗ | = − = −kx. | (164) |
Combining them gives
Thus the elementary SHO is also one of the simplest examples of Hamiltonian phase-space
dynamics.
27 What amplitude and phase really represent
The constants
and
are another way to encode the same two pieces of state information carried by
and
In the scaled phase plane:
- amplitude is the radius of the orbit,
- phase is the angular position of the state on that orbit.
For the ideal conservative oscillator:
- amplitude remains constant,
- phase advances uniformly at rate ω.
This geometric interpretation becomes useful when damping, forcing, coupled oscillators, and
nonlinear oscillations are introduced.
28 Common mistakes
- Treating any periodic motion as simple harmonic motion.
- Forgetting that SHM requires acceleration proportional to negative displacement.
- Measuring displacement from the wrong equilibrium point.
- Confusing angular frequency ω with ordinary frequency f.
- Writing T = 1∕ω instead of T = 2π∕ω.
- Forgetting the factor 1∕ω multiplying initial velocity in the initial-value solution.
- Adding x02 directly to v
02 when computing amplitude.
- Using a one-argument inverse tangent and losing the correct phase quadrant.
- Assuming position alone completely specifies the oscillator state.
- Forgetting the sign of velocity when using the phase-plane ellipse.
- Assuming the phase-plane orbit is a circle in unscaled (x,v) coordinates.
- Forgetting that kinetic and potential energies vary while total energy remains constant.
- Applying the small-angle pendulum formula at large amplitude.
- Assuming gravity changes the ideal vertical spring frequency instead of shifting
equilibrium.
- Confusing the mechanical state plane (x,v) with canonical phase space (x,p) without
noting that p = mv.
29 Practice exercises
- Starting from Hooke’s law and Newton’s second law, derive the SHO equation and
identify ω.
- Verify directly that x = C cos ωt + D sin ωt solves the SHO equation.
- Starting from x(0) = x0 and v(0) = v0, derive the initial-value solution.
- Derive A =
by comparing sine and cosine coefficients.
- Derive the same amplitude formula using conservation of energy.
- Explain why x02 + v
02 is not a valid expression for A2 if v
0 is a velocity.
- Derive the state-transition matrix for (x,v).
- Eliminate time between x(t) and v(t) to derive the phase-plane ellipse.
- Show that the scaled variables (x,v∕ω) move on a circle of radius A.
- Derive vmax = ωA and amax = ω2A.
- For A = 0.20 m, ω = 5 rad/s, and x = 0.12 m, reproduce the speed in Example 2.
- Show that K and U oscillate at twice the displacement angular frequency while their
sum is constant.
- Derive the SHO approximation for motion near a smooth stable equilibrium U(q).
- Derive the small-angle pendulum angular frequency.
- Derive Hamilton’s equations for the harmonic oscillator and recover the Newtonian
equation of motion.
30 Summary
Simple harmonic motion is defined by
For a spring-mass system,
The initial state
determines the entire motion:
The amplitude is
The phase-plane orbit is
The total mechanical energy is
The same mathematics appears approximately near any smooth stable equilibrium.
This makes the harmonic oscillator one of the central local models of classical physics and the
starting point for the broader study of oscillations.
References
References
[1] PhysicsLibrary, simple harmonic oscillator, canonical object
SimpleHarmonicOscillator.
[2] A. P. French, Vibrations and Waves, W. W. Norton, 1971.
[3] J. R. Taylor, Classical Mechanics, University Science Books, 2005.
[4] D. Kleppner and R. Kolenkow, An Introduction to Mechanics, 2nd ed., Cambridge
University Press, 2014.