Home / Topics / Oscillations & SHM
Oscillations & SHM
Springs, pendulums, resonance and the mathematics of vibration. 48 topics, from beginner to advanced. Open the interactive version with labs and quizzes
Oscillations are repeated back-and-forth motions, such as a mass on a spring or a swinging pendulum. Simple harmonic motion is the idealised case where the restoring force is proportional to displacement, and it gives simple expressions for period, frequency, displacement, velocity and energy. These ideas also underpin waves, resonance and many electrical circuits.
How the topics connect
Oscillations describe motion that repeats around an equilibrium, such as springs, pendulums and vibrating strings. Simple harmonic motion is the key model, with its sinusoidal motion and constant period. Damping, forcing and resonance build on it to explain real systems and why some vibrations grow dangerously large.
Real-world uses
Use the period of a pendulum or a balance spring to keep time accurately, the principle behind mechanical watches and early clocks.
Design springs and dampers so a car settles quickly after a bump without bouncing excessively.
Check that a structure's natural frequency does not match wind or footfall frequencies, which could cause dangerous resonance.
Relate the vibration frequency of a string or air column to the pitch you hear.
Pendulums and quartz crystals keep time because their periods are set by simple physical properties.
Engineers avoid resonance in bridges, buildings and machines by making sure their natural frequencies differ from driving frequencies.
Periodic motion
Motion that repeats at regular intervals.
Motion that repeats exactly after equal time intervals T, called the period. Examples: planets, a pendulum, a heartbeat, an alternating current.
The Earth's rotation has period 24 h.
Periodic is not always oscillatory.
Oscillatory motion
Back-and-forth motion about an equilibrium.
Back-and-forth motion around an equilibrium position, caused by a restoring force. Energy continually converts between kinetic and potential.
A swing, a guitar string.
Oscillation requires both a restoring force and inertia.
Period, frequency, amplitude
Basic descriptors of an oscillation.
T = 1/fPeriod T is time per cycle, frequency f = 1/T cycles per second (Hz), amplitude A is the maximum displacement. Energy depends on amplitude, not period, for SHM.
A mass vibrating 5 times per second: f = 5 Hz, T = 0.2 s.
Peak-to-peak is 2A.
Simple harmonic motion
Restoring force proportional to displacement.
F = −kxSHM occurs when the restoring force is proportional and opposite to displacement, F = −kx. The motion is sinusoidal, and its period doesn't depend on amplitude.
A mass on a spring, small-angle pendulum.
F ∝ −x is the key test.
SHM displacement
Sinusoidal displacement in time.
x = A cos(ωt+φ)x = A cos(ωt + φ), with φ fixed by the initial conditions. It's the projection of uniform circular motion.
x₀ = A at t = 0 gives φ = 0.
Be careful with sine or cosine form; they differ by phase π/2.
SHM velocity
Velocity leads displacement by 90°.
v = −Aω sin(ωt+φ)v = −Aω sin(ωt + φ), maximum Aω at the equilibrium and zero at the extremes. Also v = ω√(A² − x²).
A = 0.1 m, ω = 10: v_max = 1 m/s.
Velocity peaks when the displacement is zero.
SHM acceleration
Proportional and opposite to displacement.
a = −ω²xa = −ω²x, maximal at the ends (ω²A), zero at the centre, always directed to the centre.
A = 0.05 m, ω = 20: a_max = 20 m/s².
Same sign as −x.
Angular frequency
Rate of phase advance.
ω = 2πfω = 2πf = 2π/T in rad/s; for a spring ω = √(k/m), for a pendulum √(g/L). It's not the same as the speed of the particle.
f = 2 Hz means ω = 12.6 rad/s.
Don't mix Hz and rad/s.
Phase and phase constant
Starting point of the oscillation cycle.
The phase ωt + φ gives the stage in the cycle; φ tells where it starts. Two oscillations with the same ω but different φ are shifted in time.
Starting at the centre moving up: φ = −π/2 in the cos form.
Phase is in radians.
Phase difference
Relative shift between two oscillations.
Phase difference Δφ tells how far one oscillation is ahead of another. 0 = in phase, π = antiphase, π/2 = quadrature (like velocity and displacement).
AC current in an inductor lags voltage by 90°.
Δφ matters when combining waves.
Phasor representation
Project a rotating vector to get SHM.
Represent x = A cos(ωt + φ) as a rotating arrow of length A at angle ωt + φ. Adding oscillations of the same frequency means adding arrows.
Two SHMs of amplitude 3 and 4 in quadrature give 5.
Only the projection is physical.
Mass–spring system
Mass on a spring oscillates with period set by m and k.
T = 2π√(m/k)T = 2π√(m/k). Heavier mass or softer spring gives a longer period. It doesn't depend on amplitude (within Hooke's law).
m = 0.5 kg, k = 50 N/m: T = 0.63 s.
Spring's own mass is ignored.
Vertical spring
Gravity only shifts the equilibrium, not the period.
springGravity only shifts the equilibrium by mg/k; oscillations about that new point have the same period 2π√(m/k).
m = 1 kg, k = 100 N/m: sag 9.8 cm, T = 0.63 s.
Measure x from the new equilibrium.
Springs in series/parallel oscillations
Equivalent stiffness changes the frequency.
Effective stiffness changes the frequency: parallel k = k₁ + k₂ (higher f), series 1/k = 1/k₁ + 1/k₂ (lower f).
Two 20 N/m springs in parallel: ω rises by √2.
Check how the springs are connected to the mass.
Simple pendulum
A small mass on a light string.
T = 2π√(L/g)A mass m on a light string of length L: T = 2π√(L/g) for small angles. The period is independent of the mass.
L = 1 m: T = 2.0 s.
Do not use for large angles or physical pendulums.
Small-angle approximation
Pendulum is nearly SHM for angles below about 15°.
sinθ ≈ θFor θ ≲ 15°, sinθ ≈ θ (in rad) and the pendulum equation becomes θ̈ = −(g/L)θ, which is SHM.
At 10°, the error is 0.5%.
Use radians.
Pendulum at large amplitude
Period increases with amplitude.
T ≈ T₀(1+θ₀²/16)For large θ₀ the period increases: T ≈ T₀(1 + θ₀²/16 + ...). At 60° it's 7% longer, and the motion isn't sinusoidal.
At 90° T = 1.18 T₀.
Period isn't amplitude-independent for large swings.
Physical pendulum
A rigid body swinging about a pivot.
T = 2π√(I/mgd)A rigid body pivoted at distance d from its centre of mass has T = 2π√(I/mgd) with I about the pivot. The equivalent length is I/md.
A uniform rod pivoted at its end: T = 2π√(2L/3g).
Use I about the pivot.
Torsional pendulum
Oscillation from twisting of a wire.
T = 2π√(I/κ)A body on a twisting wire has restoring torque −κθ, so T = 2π√(I/κ). It's used in clocks and the Cavendish experiment.
I = 0.01 kg·m², κ = 0.04 N·m/rad: T = 3.1 s.
κ is the torsion constant.
Second's pendulum
A pendulum with a two-second period, about one metre long.
A pendulum with T = 2 s has L = gT²/4π² ≈ 0.994 m. Used for timekeeping and for finding g.
At the equator L is slightly shorter.
Don't assume 1 m exactly.
Simple pendulum in elevator
Effective gravity changes with acceleration of the support.
In an elevator accelerating up with a, the effective gravity is g + a; so T = 2π√(L/(g + a)). In free fall the pendulum doesn't swing.
a = 2 m/s²: T is 9% shorter.
Use g_eff.
Energy in SHM
Total energy is constant, swapping between kinetic and potential.
E = ½kA²Total energy E = ½kA² = ½mω²A² is constant, shared between kinetic ½mv² and potential ½kx². Energy doesn't depend on frequency alone.
k = 40, A = 0.1: E = 0.2 J.
Doubling the amplitude quadruples the energy.
Kinetic and potential energy in SHM
Variation with displacement and time.
K = ½k(A² − x²), U = ½kx². K is maximum at the centre; U at the ends. They are equal at x = ±A/√2.
At A/√2, speed is 0.71 v_max.
Each oscillates at twice the SHM frequency.
Average energy over a cycle
Average kinetic equals average potential energy, each half the total.
Over a full period the average kinetic and potential energy are each E/2. This is the equipartition used in thermal physics.
Time-average of cos² = ½.
Not equal at every instant.
Differential equation of SHM
The standard second-order equation.
ẍ + ω²x = 0ẍ + ω²x = 0, with general solution x = A cos ωt + B sin ωt. Any system with this equation oscillates sinusoidally.
LC circuit: q̈ + q/(LC) = 0.
Initial conditions fix A and B.
Damped oscillations
Friction gradually reduces amplitude.
x = Ae^{−bt/2m}cos(ω't)With damping force −bv the amplitude decays as e^{−bt/2m}. The frequency ω' = √(ω₀² − (b/2m)²) is slightly lower than the natural frequency.
A swing coming gradually to rest.
The envelope decays exponentially, not linearly.
Underdamped, critical, overdamped
Three damping regimes with different return behaviour.
Light damping oscillates with decaying amplitude; critical damping returns to equilibrium fastest without overshoot; heavy damping returns slowly. Car suspensions are close to critical.
Door closers use critical damping.
Overdamped isn't faster than critical.
Quality factor
Number of radians over which energy decays by 1/e.
Q = ω₀m/bQ = ω₀m/b measures how weakly an oscillator is damped: it's about 2π times the energy stored over energy lost per cycle. High Q means sharp resonance and long ringing.
A tuning fork has Q of a few thousand.
Q has no unit.
Forced oscillations
System driven by an external periodic force.
A system driven at frequency ω_d settles to oscillate at ω_d (after transients) with amplitude depending on the closeness to its natural frequency. Maximum at resonance.
A child being pushed on a swing.
Steady-state frequency follows the driver, not the natural one.
Resonance
Large amplitude when driving frequency matches natural frequency.
ω_d ≈ ω₀When ω_d ≈ ω₀, amplitude peaks and energy transfers efficiently. The peak height is limited by damping.
Radio tuner selects a station by resonance.
Can cause destructive effects.
Resonance examples
Swings, radio tuning, bridges and glasses shattering.
Radio tuning circuits, MRI nuclear resonance, swing pushing, glass-breaking sound, and the Tacoma Narrows bridge (actually aeroelastic flutter).
Opera singer shattering a wine glass.
Not all failures are simple resonance.
Amplitude vs frequency curve
Resonance peak sharpens with lower damping.
The response curve peaks near ω₀ with width ≈ ω₀/Q. Less damping gives a taller and narrower peak.
Radio tuning with high Q has better selectivity.
Peak shifts slightly below ω₀ for heavy damping.
LC oscillations
Charge in an LC circuit oscillates like a mass on a spring.
ω = 1/√(LC)In an LC circuit charge oscillates at ω = 1/√(LC), swapping energy between the capacitor's electric field and the inductor's magnetic field.
L = 1 mH, C = 1 μF: f ≈ 5 kHz.
Resistance damps it.
Analogy between mechanical and electrical oscillators
m↔L, k↔1/C, b↔R.
m ↔ L, k ↔ 1/C, b ↔ R, x ↔ q, v ↔ I. Results for one apply to the other.
RLC circuit mirrors damped spring.
Use analogies to transfer intuition.
Coupled oscillators
Two linked oscillators share energy and have normal modes.
Two oscillators with a connecting spring exchange energy back and forth, producing beats. Their motion can be split into normal modes.
Two pendulums connected by a spring.
Energy exchange rate depends on the coupling.
Normal modes
Collective patterns where all parts oscillate at the same frequency.
Patterns of motion where all parts oscillate at a single frequency. Any motion is a superposition of them. N coupled masses have N normal modes.
Two masses: in-phase and out-of-phase modes.
Each mode has its own frequency.
Beats in oscillators
Two close frequencies produce periodic amplitude variation.
f_beat = ∣f₁−f₂∣Two oscillations with nearby frequencies f₁ and f₂ interfere to give an amplitude that varies at the beat frequency |f₁ − f₂|.
440 Hz and 444 Hz: 4 beats per second.
Beat frequency is the difference, not the average.
Superposition of SHMs
Combine oscillations along the same line or at right angles.
Collinear SHMs of the same frequency add into one SHM with a new amplitude and phase. SHMs at right angles give ellipses or Lissajous figures.
x = 3 sin ωt + 4 cos ωt has amplitude 5.
Different frequencies give non-sinusoidal results.
Lissajous figures
Paths from perpendicular SHMs with different frequencies.
Perpendicular oscillations with frequency ratio p:q trace closed curves. Equal frequencies give ellipses, circles or lines depending on phase difference.
An oscilloscope in XY mode displays them.
Used for comparing frequencies.
Anharmonic oscillation
Real potentials deviate from parabolic at large amplitude.
Real potentials are not exactly parabolic; for larger amplitudes the period depends on amplitude and harmonics appear.
A pendulum at large angles, molecular vibrations.
Always examine whether SHM is valid.
Nonlinear oscillators
Duffing and van der Pol oscillators show chaos and limit cycles.
With nonlinear restoring forces or driving, systems show amplitude-dependent frequency, jumps (Duffing), limit cycles (van der Pol) and chaos.
Heartbeats modelled by limit cycles.
No superposition principle.
Chaos and the double pendulum
Small changes in start give very different motion.
A double pendulum is deterministic but chaotic: tiny differences in start grow exponentially, so long-term prediction is impossible.
Release two nearly identical double pendulums to see them diverge.
Chaotic doesn't mean random.
Parametric resonance
Oscillation driven by varying a parameter, like pumping a swing.
Varying a parameter (e.g., length) at twice the natural frequency pumps energy into the oscillator. A child pumping a swing by standing and crouching.
Used in parametric amplifiers.
Different from a driven force at ω₀.
Oscillation of a floating body
A buoyant object bobbing in liquid is SHM.
A floating cylinder displaced vertically by y feels a restoring force −ρAgy, so it performs SHM with T = 2π√(m/ρAg).
A cork bobbing in water.
Neglects water motion and drag.
Liquid in a U-tube
Oscillates with period set by column length.
T = 2π√(L/2g)A liquid column of total length L oscillates with T = 2π√(L/2g) when disturbed, because the restoring force is the weight of the extra liquid column.
L = 0.5 m: T ≈ 1.4 s.
Independent of density.
Tunnel through the Earth
A mass falling through a tunnel executes SHM with a period of about 84 minutes.
Inside a uniform Earth, g ∝ r, so a body falling through a tunnel executes SHM with T = 2π√(R/g) ≈ 84 minutes, the same as a low orbit.
Travel through the planet in 42 minutes.
Neglects friction and Earth's rotation.
Molecular vibrations
Atoms in molecules behave as springs, giving infrared spectra.
Atoms in a molecule oscillate like masses on springs, with frequencies in the infrared (10¹³ Hz). Absorption spectra reveal bond strengths.
CO₂ absorbs infrared strongly, causing the greenhouse effect.
At high energy the potential is anharmonic.
Quantum harmonic oscillator
Energy levels are equally spaced.
E_n = (n+½)ħωA quantum oscillator has equally spaced energy levels E_n = (n + ½)ħω and a non-zero ground-state energy. It models phonons, photons and molecular vibrations.
Vibration levels of H₂.
Energy cannot be zero due to uncertainty.
Frequently asked questions
Does the period of a simple pendulum depend on its mass?
No, for small swings the period depends only on its length and the local value of g. It does not depend on the mass or, for small angles, the amplitude.
What is the difference between frequency and angular frequency?
Frequency is the number of cycles per second, in hertz. Angular frequency is 2 pi times the frequency, measured in radians per second, and it appears in the equations of motion.
What is resonance?
Resonance happens when a system is driven at its natural frequency. The amplitude then becomes large, which can be useful, as in tuning a radio, or destructive, as in a bridge.
Why does a pendulum period not depend on its mass?
The restoring force grows in proportion to mass as well as the inertia, so the mass cancels out. Only the length and gravity matter for a simple pendulum.
What is resonance in simple words?
Resonance happens when you push a system at its natural frequency, so each push adds energy to the motion and the amplitude builds up.
Other areas
Measurement & Math Tools · Kinematics · Newton's Laws & Forces · Work, Energy & Power · Momentum & Collisions · Rotational Motion · Gravitation & Orbits · Waves & Sound · Fluids & Elasticity · Heat & Thermodynamics · Kinetic Theory & Statistical Physics · Electrostatics · Current Electricity & Circuits · Magnetism & Induction · AC Circuits & EM Waves · Optics · Quantum Mechanics · Atomic & Nuclear Physics · Relativity · Particle Physics & Cosmology