Explore the behavior of a mass-spring system in real time
Simple Harmonic Motion (SHM) is a type of oscillatory motion where the restoring force is directly proportional to the displacement from the equilibrium position. A classic example is a mass attached to a spring.
The spring exerts a restoring force described by Hooke's Law: F = -kx
F is the force exerted by the spring,k is the spring constant,x is the displacement from equilibrium.SHM follows: a = -(k/m)x → x(t) = A cos(ωt + φ) where ω = √(k/m)