Simple harmonic motion, or SHM, happens when an object is pulled back toward equilibrium by a restoring force that is proportional to its displacement. That is the defining condition. For an ideal linear system such as a mass on a spring, this gives sinusoidal motion with a constant period.

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

F=kxF = -kx

The minus sign means the force points opposite the displacement xx. Using Newton's second law, F=maF = ma, gives

md2xdt2=kxm\frac{d^2x}{dt^2} = -kx

or

d2xdt2=kmx\frac{d^2x}{dt^2} = -\frac{k}{m}x

That is the standard SHM model for a mass-spring system.

What makes motion simple harmonic

Not every back-and-forth motion is SHM. To call a motion SHM, all of these must be true:

  • the motion is about an equilibrium position
  • the restoring force points toward equilibrium
  • the restoring force is proportional to displacement, at least over the range you are modeling

If one of those conditions fails, the motion may still oscillate, but it is not SHM in the strict sense.

Key simple harmonic motion formulas

For the mass-spring model, the angular frequency is

ω=km\omega = \sqrt{\frac{k}{m}}

The period and ordinary frequency are then

T=2πω=2πmkT = \frac{2\pi}{\omega} = 2\pi\sqrt{\frac{m}{k}} f=1Tf = \frac{1}{T}

The displacement is often written as

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

where AA is amplitude and ϕ\phi is the phase constant. The exact sine-or-cosine form depends on the starting conditions.

Why SHM repeats

When the mass is far from equilibrium, the restoring force is larger, so the acceleration back toward the center is larger. As the mass moves inward, the force gets smaller, but the speed increases because the mass has already been accelerated toward the center.

After it passes equilibrium, the force reverses direction and slows the mass down until it stops at the other side. Then the same process repeats. That is why SHM keeps cycling between two turning points.

Worked example: period of a spring-mass system

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

First compute the angular frequency:

ω=km=2000.50=400=20 rad/s\omega = \sqrt{\frac{k}{m}} = \sqrt{\frac{200}{0.50}} = \sqrt{400} = 20\ \mathrm{rad/s}

Now compute the period:

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.

This example shows what controls the timing. A stiffer spring makes the oscillation faster, while a larger mass makes it slower.

Common mistakes in SHM

  • Calling any oscillation SHM. Oscillation alone is not enough; the restoring force must be proportional to displacement.
  • Forgetting the minus sign in F=kxF = -kx. Without it, the force would point away from equilibrium instead of toward it.
  • Mixing up amplitude and period. Amplitude tells you how far the object moves from equilibrium. Period tells you how long one cycle takes.
  • 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 stable equilibrium. It is also a useful approximation when a more complicated system behaves linearly near its equilibrium point.

That condition matters. Real systems often include damping, driving forces, or nonlinear effects, so the motion stops being ideal SHM once those effects become important.

Try a similar SHM problem

Change the example to a 1.0 kg1.0\ \mathrm{kg} mass on the same 200 N/m200\ \mathrm{N/m} spring and solve for TT again. That one change makes it clear how the period depends on mass.

If you want to explore another case after that, compare SHM with Newton's second law. SHM is one of the cleanest examples of how a force law creates a specific kind of motion.

Need help with a problem?

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

Open GPAI Solver →