Simple Harmonic Motion Calculator
Analyze simple harmonic motion for a spring-mass system. Enter amplitude, spring constant, and mass to find the period, frequency, and maximum velocity.
Fundamentals of Simple Harmonic Motion
Simple harmonic motion is the most basic type of periodic oscillation and appears throughout physics and engineering. It occurs whenever a system has a restoring force proportional to displacement from equilibrium. A mass on a spring is the canonical example: pull the mass to one side and release it, and it oscillates back and forth at a frequency determined entirely by the spring constant and mass.
The mathematical solution to the SHM equation of motion is x(t) = A cos(ωt + φ). The amplitude A sets the maximum displacement, the angular frequency ω = √(k/m) determines how fast the oscillation occurs, and the phase constant φ depends on initial conditions. Velocity varies as v(t) = -Aω sin(ωt + φ), reaching its maximum at the equilibrium point where displacement is zero.
Energy in SHM shifts continuously between kinetic and potential forms. At maximum displacement, all energy is potential (½kA²) and velocity is zero. At the equilibrium position, all energy is kinetic (½mv_max²) and displacement is zero. The total mechanical energy E = ½kA² remains constant throughout the motion, assuming no friction or damping.
Damped and Driven Oscillations
Real oscillating systems always experience some damping from friction or air resistance, causing the amplitude to decrease over time. Lightly damped systems oscillate many times before coming to rest, while heavily damped systems barely complete one oscillation. Critical damping is the boundary case where the system returns to equilibrium as quickly as possible without overshooting, which is the ideal behavior for door closers and shock absorbers.
When an external periodic force drives a damped oscillator, the system eventually oscillates at the driving frequency rather than its natural frequency. If the driving frequency matches the natural frequency, resonance occurs and the amplitude grows dramatically. Resonance explains why soldiers break step on bridges, why opera singers can shatter glasses, and why wind can destroy suspension bridges.
The mathematics of damped and driven oscillations extends far beyond springs and masses. Electrical circuits with inductors and capacitors undergo analogous oscillations, with current and voltage playing the roles of velocity and position. Radio receivers exploit electrical resonance to select specific broadcast frequencies from the jumble of signals reaching the antenna.
SHM in Science and Technology
Atomic force microscopes use SHM of a tiny cantilever to image surfaces at the nanometer scale. The cantilever oscillates near a surface, and changes in its frequency or amplitude reveal the surface topography with resolution fine enough to see individual atoms. This instrument has revolutionized surface science, biology, and nanotechnology.
Quartz crystal oscillators, found in every watch and electronic device, exploit the mechanical SHM of a piezoelectric crystal. An electric field causes the crystal to vibrate at its natural frequency, typically 32,768 Hz for watch crystals. This frequency is divided down electronically to produce accurate one-second pulses. The extreme stability of quartz SHM makes these oscillators accurate to within a few seconds per month.
Seismometers detect earthquakes by measuring the displacement of a mass on a spring relative to the ground. When the ground shakes, the mass tends to stay still due to inertia while the instrument housing moves with the ground. The relative motion, governed by the principles of driven oscillation, is recorded as a seismogram. Modern broadband seismometers can detect ground displacements smaller than a nanometer, sensing earthquakes occurring on the opposite side of the planet.
Frequently Asked Questions
What is simple harmonic motion?
Simple harmonic motion (SHM) is periodic oscillation where the restoring force is proportional to displacement: F = -kx. The motion is sinusoidal, meaning position varies as x(t) = A cos(ωt + φ), where A is amplitude, ω is angular frequency, and φ is phase.
What is the period of a spring-mass system?
T = 2π√(m/k), where m is the mass and k is the spring constant. A heavier mass oscillates more slowly (larger T), and a stiffer spring oscillates faster (smaller T). The period is independent of amplitude for ideal SHM.
What determines maximum velocity in SHM?
Maximum velocity occurs at the equilibrium position and equals v_max = Aω = A√(k/m), where A is amplitude. Larger amplitude or stiffer springs produce higher maximum velocity. At maximum velocity, all energy is kinetic and potential energy is zero.
Is SHM the same as circular motion?
SHM can be viewed as the projection of uniform circular motion onto a diameter. If you watch a point moving in a circle from the side, it appears to oscillate back and forth in SHM. This connection links angular frequency ω in SHM directly to the angular velocity of the associated circular motion.
What are real-world examples of SHM?
Approximate SHM occurs in vibrating guitar strings, atoms in crystals, clock pendulums (small angle), car suspensions over bumps, tuning forks, and playground swings. Any system with a linear restoring force exhibits SHM near its equilibrium position.