Simple Harmonic Motion
Simple harmonic motion (SHM) is the foundation of oscillations and waves. It describes the back-and-forth movement you see in swinging pendulums or vibrating guitar strings, where the restoring force is always proportional to displacement from equilibrium. Understanding SHM is essential for grasping more complex wave phenomena, since it introduces concepts like amplitude, frequency, and period that apply to every type of wave.
Definition and Key Characteristics
Simple harmonic motion is periodic motion where the restoring force is proportional to displacement from equilibrium and always directed back toward it. Mathematically, this means , where the negative sign tells you the force opposes the displacement.
Several properties define SHM:
- The motion follows a sinusoidal pattern described by sine or cosine functions.
- Acceleration is always directed toward equilibrium and proportional to displacement: .
- Total mechanical energy stays constant in an ideal (frictionless) oscillator, continuously converting between kinetic and potential energy.
- Velocity is maximum at the equilibrium position and zero at the extremes of motion. Acceleration behaves in the opposite way: maximum at the extremes, zero at equilibrium.
- SHM exhibits isochronism for small oscillations, meaning the period doesn't depend on amplitude. A pendulum swinging through a small arc takes the same time per cycle regardless of how far it swings.
Common examples include a mass on a spring, a vibrating tuning fork, and a pendulum swinging through small angles.
Energy and Force Considerations
The restoring force always acts opposite to displacement, pulling the system back toward equilibrium. The farther the system moves from equilibrium, the stronger this force becomes.
Energy trades back and forth between two forms during SHM:
- At maximum displacement, all energy is potential ( is at its peak) and kinetic energy is zero.
- At equilibrium, all energy is kinetic ( is at its peak) and potential energy is zero.
- At every point in between, the total energy remains constant.
In real systems, non-conservative forces like friction and air resistance drain energy over time, causing the amplitude to gradually decrease. This is called damped oscillation.
Mass-Spring Systems and Pendulums
Mass-Spring Systems
A mass-spring system is the most straightforward example of SHM. The restoring force comes from the spring, which obeys Hooke's Law:
where is the spring constant (stiffness) and is displacement from equilibrium.
Combining Hooke's Law with Newton's Second Law gives the equation of motion:
The period of oscillation is:
Notice that the period depends on mass and spring constant, but not on amplitude. A stiffer spring (larger ) gives a shorter period, while a heavier mass (larger ) gives a longer one. Applications include vehicle suspension systems and seismographs.

Simple Pendulums
For a simple pendulum, the restoring force is the component of gravity tangent to the arc of motion. For small angles (roughly ), you can use the small-angle approximation , which gives a restoring force proportional to displacement:
This makes the motion approximately simple harmonic, with period:
Here is the pendulum length and is gravitational acceleration. The period depends on length and gravity, but not on mass or amplitude (for small swings). Pendulums are used in grandfather clocks and as tuned mass dampers to reduce building sway.
Similarities and Limitations
Both systems exhibit true SHM only for small amplitudes. At larger amplitudes, nonlinear effects appear: a spring may stretch beyond its elastic limit, and a pendulum's restoring force deviates from proportionality as diverges from .
A phase space plot (position vs. velocity) for an ideal SHM system traces out an ellipse, which is a visual signature of energy conservation. Real-world systems experience damping, so the ellipse spirals inward over time.
Amplitude, Period, and Frequency
Fundamental Parameters
These four quantities describe any SHM system:
- Amplitude (): Maximum displacement from equilibrium. For a playground swing, this is the highest point reached on either side.
- Period (): Time for one complete oscillation (one full back-and-forth cycle). Measured in seconds.
- Frequency (): Number of complete oscillations per second. Related to period by . Measured in hertz (Hz).
- Angular frequency (): Frequency expressed in radians per second. Related to the other quantities by .
As a quick example: if a swing completes one full cycle in 2 seconds, then , , and .

Mathematical Representations
The displacement, velocity, and acceleration of an SHM system are all sinusoidal, but shifted in phase relative to each other:
- Displacement:
- Velocity:
- Acceleration:
Here is the phase constant, which depends on where in the cycle the motion starts (i.e., the initial conditions).
The maximum velocity is (at equilibrium), and the maximum acceleration magnitude is (at the extremes).
Equations of Motion for Oscillators
General Solutions and Derivatives
The general solution to the SHM differential equation is:
The constants and are set by initial conditions (where the object starts and how fast it's moving at ).
Each successive derivative introduces a phase shift of radians:
- Displacement:
- Velocity: (leads displacement by )
- Acceleration: (leads velocity by another , so it's out of phase with displacement)
That last relation, , is the hallmark of SHM. If you can show that acceleration is proportional to displacement and opposite in sign, you've confirmed the system undergoes SHM.
Energy and System-Specific Equations
The total energy of a simple harmonic oscillator can be written in several equivalent forms:
where . This makes sense: total energy equals the maximum potential energy (at full displacement) or the maximum kinetic energy (at equilibrium).
For a mass-spring system, you can rearrange the period formula to solve for the spring constant:
This is useful in lab settings where you measure and to determine experimentally.
For pendulums, the small-angle approximation (with in radians) is what makes the math reduce to SHM. Without it, the pendulum equation is nonlinear and much harder to solve.
Problem-Solving Techniques
When tackling SHM problems, a systematic approach helps:
- Identify the type of oscillator (mass-spring, pendulum, etc.) and write down the relevant period/frequency formula.
- Determine initial conditions to find and . If the object starts at maximum displacement with zero velocity, then and .
- Use phase relationships between , , and . Remember: velocity leads displacement by , and acceleration is ahead of displacement (or equivalently, ).
- Apply energy conservation when you need to relate speed at one position to displacement at another, without worrying about time. Set .
- Account for damping in real-world problems. Damped systems lose energy over time, and amplitude decays exponentially.