Skip to content

Drawing No. EH–ME–014 // Mechanical Engineering

Spring / Hooke's Law / SHM Simulator

Reviewed August 2026

See how spring stiffness turns displacement into restoring force, why a mass–spring system oscillates, how gravity shifts vertical equilibrium, and how energy, damping and resonance shape the motion.

Scope: Ideal linear springs unless explicitly stated otherwise. Dynamic modes use one-dimensional lumped mass–spring models; coil mass, geometric nonlinearity, friction and material yield are neglected.

What this simulator teaches

Hooke's law connects force to displacement. Add inertia and that restoring force produces simple harmonic motion; add gravity, damping or periodic forcing and the same spring becomes a compact model of equilibrium, vibration and resonance.

hooke's lawstiffnesssimple harmonic motionenergyvertical equilibriumdampingresonancephase space
Select spring model6 animated learning modes

Hooke's law controls

Hooke's law
Restoring force is proportional to displacement

Hooke's law — force grows linearly with extension

Move the displacement control through compression and extension. The spring drawing and force–displacement graph update together.
F = −kx
Displacement / motionVelocity / comparisonEnergy / phaseForce / drive

Four ideas that explain spring motion

01 / Restoring forceFor an ideal linear spring, force is proportional to displacement and points toward the undeformed position: F = −kx.
02 / Natural frequencyCombining Hooke's law with Newton's second law gives ω₀ = √(k/m). More stiffness raises frequency; more mass lowers it.
03 / Energy exchangeIn undamped SHM, spring potential energy ½kx² and kinetic energy ½mv² exchange while total mechanical energy remains constant.
04 / Damping & resonanceDamping removes energy. Periodic forcing can replace it, producing a frequency-dependent steady response that peaks near resonance.

Model assumptions & limits

The simulator uses an ideal linear spring with constant stiffness over the displayed range. Real springs can depart from Hooke's law near coil contact, buckling, plasticity or geometric limits.

Background & FAQ