Mechanics

Simple Harmonic Motion

Analyze the kinematics and dynamics of oscillating systems, including pendulums and mass-spring systems.

V
Vectora Team
STEM Education
14 min read
2026-04-18

Try the interactive simulation for this topic

Explore this concept with our interactive 3D simulation.
Launch Simulator

What is Simple Harmonic Motion?

Simple Harmonic Motion (SHM) is a specific type of periodic motion where a restoring force is directly proportional to the displacement from the equilibrium position and acts in the opposite direction.

It is the mathematical foundation for understanding everything from pendulum clocks and car suspensions to the vibrations of atoms in a crystal lattice.

SHM Visualiser

Compare a pendulum and a mass-spring system side-by-side. View real-time graphs of displacement, velocity, and acceleration.
Launch Visualiser

Learning Goals: By the end of this guide, you should be able to:

  1. Define SHM and its defining conditions.
  2. Relate displacement, velocity, and acceleration during an oscillation.
  3. Calculate the period of a mass-spring system and a simple pendulum.

The Defining Condition of SHM

For an object to be undergoing Simple Harmonic Motion, its acceleration (aa) must be directly proportional to its displacement (xx) from equilibrium, and directed strictly toward the equilibrium point.

Mathematically, this is expressed as:

a=−ω2xa = -\omega^2 x

Where:

  • aa is the acceleration (m/s2\text{m/s}^2).
  • xx is the displacement from equilibrium (m\text{m}).
  • ω\omega is the angular frequency (rad/s\text{rad/s}), which is a constant for the system.
  • The negative sign indicates that acceleration is always opposite to the displacement (it's a restoring acceleration).

By Newton's Second Law (F=maF = ma), this also means the restoring force is proportional to displacement: F=−kxF = -kx (which is Hooke's Law for springs).


Kinematics of SHM

As an object oscillates, its position, velocity, and acceleration continuously change in a sinusoidal pattern.

Let's assume the object starts at maximum positive displacement (x=Ax = A) at t=0t = 0.

  1. Displacement (xx): x=Acos⁡(ωt)x = A \cos(\omega t)
  2. Velocity (vv): v=−Aωsin⁡(ωt)v = -A\omega \sin(\omega t)
    • Velocity is maximum at the equilibrium position (x=0x=0).
    • Velocity is zero at the maximum displacement (the turning points).
  3. Acceleration (aa): a=−Aω2cos⁡(ωt)a = -A\omega^2 \cos(\omega t)
    • Acceleration is maximum at the maximum displacement (where the restoring force is greatest).
    • Acceleration is zero at the equilibrium position.

Two Classic SHM Systems

1. The Mass-Spring System

A mass mm attached to a spring with spring constant kk. The period TT (time for one full oscillation) depends only on the mass and the stiffness of the spring. It does not depend on the amplitude.

T=2πmkT = 2\pi \sqrt{\frac{m}{k}}
  • A heavier mass means a longer period (slower oscillation).
  • A stiffer spring (larger kk) means a shorter period (faster oscillation).

2. The Simple Pendulum

A point mass on a string of length LL, swinging through a small angle (usually less than 10∘10^\circ). The period TT depends only on the length of the pendulum and the local gravity. It does not depend on the mass of the bob or the amplitude of the swing.

T=2πLgT = 2\pi \sqrt{\frac{L}{g}}
  • A longer string means a longer period.
  • Pendulums swing slightly slower on the Moon because gg is smaller.

Energy in SHM

In an ideal SHM system with no friction, the total mechanical energy is conserved. The energy continuously transforms between Kinetic Energy (KE) and Potential Energy (PE).

  • At maximum displacement (x=±Ax = \pm A): The object is momentarily stationary. KE=0\text{KE} = 0, and PE\text{PE} is at its maximum.
  • At equilibrium (x=0x = 0): The spring is un-stretched (or the pendulum is at its lowest point). PE=0\text{PE} = 0, and the object is moving at its maximum speed, so KE\text{KE} is at its maximum.
Etotal=KE+PE=12kA2(Constant)E_{\text{total}} = \text{KE} + \text{PE} = \frac{1}{2} k A^2 \quad \text{(Constant)}

Common Mistakes

  1. Assuming period depends on amplitude: A pendulum pulled back 5∘5^\circ takes exactly the same amount of time to swing as one pulled back 2∘2^\circ. Amplitude does not affect the period in ideal SHM.
  2. Confusing velocity and acceleration maxima: Many students think that because speed is highest at the center, acceleration must be highest there too. It's the exact opposite! At the center, the spring is relaxed, so force and acceleration are zero, even though speed is at its peak.
  3. Using large angles for pendulums: The formula T=2πL/gT = 2\pi\sqrt{L/g} is an approximation that only works for angles <10∘< 10^\circ. For larger swings, the motion is no longer purely "Simple" Harmonic.

  • Mechanical Waves — A wave is essentially energy propagating through a medium composed of countless coupled SHM oscillators.
  • Motion Graphs — The graphs of displacement, velocity, and acceleration in SHM are beautiful, interconnected sine and cosine waves.

References & Further Reading

This article was created by the Vectora Editorial Team and is reviewed for alignment with AP, IB, and A-Level curricula. Content is based on standard academic sources in chemistry, physics, biology, and mathematics.

Published: 2026-04-18

For corrections or suggestions, contact support@vectora.one.