Pull a mass on a spring to one side and let go, and it does not just drift back and stop. It overshoots equilibrium, swings to the other side, and returns, repeating with a steady rhythm. That clean, repeating swing is simple harmonic motion (SHM): the motion you get whenever the restoring force grows in direct proportion to how far the object is displaced.

The formulas and what each symbol means

For a mass on an ideal spring, the restoring force is

F=kxF = -kx

where xx is the displacement from equilibrium and kk is the spring constant. The minus sign means the force points opposite the displacement. Feeding this into Newton's second law F=maF = ma gives the defining equation of SHM:

md2xdt2=kxd2xdt2=kmxm\frac{d^2x}{dt^2} = -kx \qquad\Longrightarrow\qquad \frac{d^2x}{dt^2} = -\frac{k}{m}x

The motion that solves it has angular frequency, period, and frequency

ω=km,T=2πω=2πmk,f=1T\omega = \sqrt{\frac{k}{m}}, \qquad T = \frac{2\pi}{\omega} = 2\pi\sqrt{\frac{m}{k}}, \qquad f = \frac{1}{T}

and displacement written as

x(t)=Acos(ωt+ϕ)x(t) = A\cos(\omega t + \phi)

where AA is the amplitude and ϕ\phi is the phase constant set by the starting conditions.

Why SHM repeats: the force-acceleration loop

The equation d2xdt2=kmx\frac{d^2x}{dt^2} = -\frac{k}{m}x already contains the whole story. When the mass is far from equilibrium, the restoring force is large, so it accelerates hard back toward the center. As it moves inward the force shrinks, but the mass keeps speeding up because it has already been accelerated. It blows through equilibrium at maximum speed, the force then reverses and decelerates it, and it stops at the far turning point before the cycle restarts. Because acceleration is always proportional to and opposite the displacement, the timing never changes, which is why the period stays constant no matter the amplitude.

This also tells you what counts as genuine SHM. All three of these must hold: the motion is about an equilibrium position, the restoring force points toward equilibrium, and the restoring force is proportional to displacement over the range you model. If one fails, the motion may still oscillate, but it is not SHM in the strict sense.

Worked example: period of a spring-mass system

A mass of 0.50 kg0.50\ \mathrm{kg} is attached to an ideal spring with k=200 N/mk = 200\ \mathrm{N/m}. Find the angular frequency and the period.

ω=km=2000.50=400=20 rad/s\omega = \sqrt{\frac{k}{m}} = \sqrt{\frac{200}{0.50}} = \sqrt{400} = 20\ \mathrm{rad/s} T=2πω=2π20=π10 s0.314 sT = \frac{2\pi}{\omega} = \frac{2\pi}{20} = \frac{\pi}{10}\ \mathrm{s} \approx 0.314\ \mathrm{s}

So this system completes one full oscillation every 0.3140.314 seconds. A stiffer spring makes the oscillation faster, while a larger mass makes it slower.

Practice it yourself

Keep the same 200 N/m200\ \mathrm{N/m} spring but double the mass to 1.0 kg1.0\ \mathrm{kg} and solve for TT again. You should get ω=20014.1 rad/s\omega = \sqrt{200} \approx 14.1\ \mathrm{rad/s} and T0.444 sT \approx 0.444\ \mathrm{s}. Notice the period did not double: it grew by a factor of 2\sqrt{2}, because TmT \propto \sqrt{m}. That single change makes the mass dependence of the period concrete. For a deeper look at how a force law fixes a motion, compare this with Newton's second law.

Calculation traps to avoid

  • Calling any oscillation SHM. Oscillation alone is not enough; the restoring force must be proportional to displacement.
  • Dropping the minus sign in F=kxF = -kx. Without it the force would point away from equilibrium.
  • Mixing up amplitude and period. Amplitude is how far the object moves; period is how long one cycle takes. Note that the period is independent of amplitude.
  • Assuming a pendulum is always SHM. A simple pendulum is only approximately SHM for small angular displacements.

Where simple harmonic motion is used

SHM is the standard starting model for springs, vibrating molecules, electrical oscillators, and small oscillations near any stable equilibrium. It is also a useful approximation whenever a more complicated system behaves linearly near its equilibrium point. Real systems often add damping, driving forces, or nonlinear effects, so the motion stops being ideal SHM once those grow important.

Frequently Asked Questions

What makes a motion simple harmonic?
Three conditions must all hold: the motion is about an equilibrium position, the restoring force points toward equilibrium, and the restoring force is proportional to displacement over the range you are modeling. Oscillation alone is not enough. If one of those conditions fails, the motion may still oscillate, but it is not simple harmonic motion in the strict sense.
How do you calculate the period of a mass on a spring?
For an ideal mass-spring system, the angular frequency is the square root of the spring constant divided by the mass, and the period is two pi divided by that angular frequency. For example, a 0.50 kilogram mass on a spring with constant 200 newtons per meter gives an angular frequency of 20 radians per second and a period of about 0.314 seconds.
Why does the minus sign matter in F equals minus kx?
The minus sign means the force points opposite the displacement, so it always pulls the object back toward equilibrium. Without it, the force would point away from equilibrium and the motion would not oscillate. Forgetting this sign is one of the most common mistakes in simple harmonic motion problems.
Why does simple harmonic motion keep repeating?
Far from equilibrium the restoring force is larger, so acceleration back toward the center is larger. As the mass moves inward the force shrinks but the speed grows, because the mass has already been accelerated. After passing equilibrium, the force reverses and slows the mass until it stops at the other side, and the cycle repeats between the two turning points.
What changes the speed of a spring oscillation?
A stiffer spring makes the oscillation faster, while a larger mass makes it slower, because the angular frequency equals the square root of the spring constant over the mass. Amplitude is a separate quantity that tells you how far the object moves from equilibrium, and students often mix it up with the period, which measures the time for one full cycle.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →