Pendulum & SHM Simulator
Explore simple harmonic motion with an interactive pendulum and spring-mass system. Observe how length, mass, damping, and gravity affect period, frequency, and energy in real time.
Controls
Values
| Mode | Pendulum |
| Parameter | L = 1.0 m |
| Period (T) | — |
| Frequency (f) | — |
| Amplitude | 30° |
| Current θ/x | — |
| Current ω/v | — |
| KE | — |
| PE | — |
The Physics of Simple Harmonic Motion
Pendulum Equations
- Period: T = 2π√(L/g) (small angle approximation)
- Angular displacement: θ(t) = θ0 cos(ωt + φ)
- Angular frequency: ω = √(g/L)
- For large angles, the period increases beyond the small-angle approximation
Spring-Mass Equations
- Period: T = 2π√(m/k)
- Displacement: x(t) = A cos(ωt + φ)
- Angular frequency: ω = √(k/m)
Energy in SHM
- Total energy: E = ½kA² (constant if undamped)
- Kinetic energy: KE = ½mv²
- Potential energy (spring): PE = ½kx²
- Potential energy (pendulum): PE = mgL(1 - cosθ)
- Energy oscillates between KE and PE while total E stays constant
Try This
- Set a small angle and compare the period to T = 2π√(L/g)
- Switch to Large Angle preset and observe the period increase
- Add damping and watch the amplitude decay exponentially
- Switch to Moon gravity and see the pendulum slow down
You're crushing it!