Simple Harmonic Motion Simulator — Spring and Oscillation
Simple harmonic motion (SHM) is the most fundamental type of oscillation in physics. It occurs whenever a system is displaced from equilibrium and experiences a restoring force proportional to the displacement. Springs, pendulums (for small angles), sound waves, and even atoms vibrating in a crystal lattice all exhibit SHM.
Understanding SHM is essential for waves, optics, quantum mechanics, and electrical circuits — because oscillation is everywhere.
Period
1.99 s
The Physics of SHM
Equation of Motion
For a mass on a spring with spring constant , Newton's second law gives:
where the natural angular frequency is:
The solution is sinusoidal:
where is the amplitude and is the initial phase.
Key Quantities
| Quantity | Formula | Unit |
|---|---|---|
| Angular frequency | rad/s | |
| Period | s | |
| Frequency | Hz | |
| Max velocity | m/s | |
| Max acceleration | m/s² |
Damping
Real oscillators lose energy over time. Adding a damping term gives:
The damping ratio characterises the decay:
- : undamped — oscillates forever
- : underdamped — decays but oscillates
- : critically damped — fastest return to zero without oscillation
Worked Examples
Worked Example
Example 1 — Period of a spring-mass system
A mass of 0.5 kg is attached to a spring with constant k = 20 N/m. What is the period of oscillation?
The mass completes one full oscillation roughly every second.
Worked Example
Example 2 — Maximum velocity and acceleration
For the same system (k = 20 N/m, m = 0.5 kg) with amplitude A = 0.1 m, find the maximum speed and maximum acceleration.
Both maxima occur at different points: at the equilibrium position (), at the turning points ().
Frequently Asked Questions
Related Concepts
Coupled Oscillators →
Two SHM systems connected by a spring — discover normal modes and energy transfer.
Wave Speed, Frequency, Wavelength →
Waves are propagating oscillations — SHM is the building block of every wave.
Newton's Laws of Motion →
SHM is Newton's second law with a restoring force — F = -kx = ma.
Explore more simulations
Every concept on PhysicStuff has an interactive visualisation — no login, no setup required.