📘 CodingMarble Learn

Simple Harmonic Motion (SHM)

A motion that repeats after a fixed time is periodic. If the object goes to and fro about a middle point and the force pulling it back is proportional to its distance from the middle (F = −kx), the motion is simple harmonic. Its position is x = A sin(ωt + φ), with ω = 2π/T = 2πf. Speed is largest in the middle, acceleration is largest at the ends, and total energy ½kA² stays constant.

🎬 Step-by-step story

  1. A ball goes to and fro on a rail. It comes back to the same place again and again. Time for one full trip is the period T. Trips per second is the frequency f = 1/T.
  2. We plot the ball’s position x against time. The curve is a smooth sine wave: x = A sin(ωt). A is the amplitude, the biggest distance from the middle.
  3. A ball going round a circle at steady speed casts a shadow. The shadow does SHM. The pull on it always points to the middle and grows with distance: F = −kx.
  4. Two balls with the same A and T, one a little behind. That lag is the phase difference φ. Phase tells where in its cycle a ball is.
  5. In the middle the ball is fastest, so kinetic energy is full. At the ends it stops, so potential energy is full. The total ½kA² stays the same.
  6. Free play: change amplitude, period and phase, and watch the graph and energy bars change.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Is every periodic motion SHM?

No. It must also be to and fro, with a pull back to the middle that grows in step with the distance (F = −kx).

Why does a sine curve appear?

Because the shadow of steady circular motion is A sin(ωt). The graph in the 3D is traced from the moving ball.

What does the minus sign in F = −kx mean?

The force always points opposite to the displacement, so back towards the middle. Watch the red arrow flip sides.

Why does the ball not stop at the middle where the force is zero?

It arrives there with its highest speed. Zero force means zero acceleration, not zero speed, so it overshoots.

What exactly is phase?

The angle (ωt + φ). It tells both where the body is and which way it moves. The yellow ball in step 4 has the same motion but a different phase.

Where does the energy go at the ends?

All of it is stored as potential energy in the spring. It turns back into kinetic energy as the body returns.

Periodic and oscillatory motion

A motion that repeats itself after equal time gaps is periodic. The Earth going round the Sun and the hands of a clock are periodic.

If the object also moves to and fro about a middle point (the mean or equilibrium position), the motion is oscillatory. Every oscillation is periodic, but not every periodic motion is an oscillation (a clock hand goes round, not to and fro).

Displacement as a function of time

Displacement x is how far the object is from the middle, with a sign (+ on one side, − on the other). In SHM, x changes with time like a sine (or cosine) wave:

x(t) = A sin(ωt + φ)

A sine and a cosine are the same curve, just shifted, so x = A cos(ωt + φ′) is equally correct with a different φ′.

SHM, its equation and the reference circle

Simple harmonic motion is a to-and-fro motion in which the restoring force (the pull back to the middle) is proportional to the displacement and points opposite to it:

F = −kx  so  a = −ω²x, with ω = √(k/m).

The minus sign means the force always points back towards the middle. Differential form: d²x/dt² + ω²x = 0.

Reference circle: if a point moves round a circle of radius A at steady angular speed ω, its shadow on a diameter does SHM. This is why the same ω appears in circular motion and SHM.

Velocity and acceleration

Phase and phase difference

The whole angle (ωt + φ) is called the phase. It tells the state of the motion: where the object is and which way it is moving.

Two SHMs with the same ω have a phase difference Δφ. If Δφ = 0 they move together (in phase); if Δφ = π they always move opposite (out of phase). Velocity leads displacement by π/2, and acceleration is π out of phase with displacement.

Energy in SHM

An oscillator swaps energy between two forms and keeps the total fixed (no friction):

At x = 0: K = E, U = 0. At x = ±A: K = 0, U = E. K = U when x = A/√2. K and U each repeat twice in one period, so they vary with period T/2.

Try it: a home pendulum clock

Tie a key or a small stone to a 1 m thread and let it swing a little. Use a phone stopwatch to time 20 full swings. Divide by 20 to get T. Then find f = 1/T. Now start it with a bigger swing (still small): T hardly changes. That is a sign of SHM. In the 3D above, move the A slider and check that T stays the same too.

Key formulas and definitions

Worked examples

1. A pendulum makes 40 oscillations in 20 s. Find its period, frequency and angular frequency.

T = 20/40 = 0.5 s. f = 1/T = 2 Hz. ω = 2πf = 4π ≈ 12.6 rad/s.

2. x = 0.05 sin(10πt + π/6) m. Find amplitude, frequency, period and initial phase.

Compare with x = A sin(ωt + φ): A = 0.05 m, ω = 10π rad/s, so f = ω/2π = 5 Hz, T = 0.2 s, φ = π/6.

3. A body in SHM has A = 4 cm and T = 2 s. Find the maximum speed and maximum acceleration.

ω = 2π/T = π rad/s. v_max = Aω = 0.04 × π ≈ 0.126 m/s. a_max = Aω² = 0.04 × π² ≈ 0.395 m/s².

4. For the body in the last example, find the speed when x = 2 cm.

v = ω√(A² − x²) = π√(0.04² − 0.02²) = π√(0.0012) ≈ π × 0.0346 ≈ 0.109 m/s.

5. A 0.2 kg mass does SHM with ω = 5 rad/s and A = 0.1 m. Find the total energy and the kinetic energy at x = 0.06 m.

k = mω² = 0.2 × 25 = 5 N/m. E = ½kA² = ½ × 5 × 0.01 = 0.025 J. U = ½ × 5 × 0.0036 = 0.009 J, so K = 0.025 − 0.009 = 0.016 J.

6. At what displacement is the kinetic energy equal to the potential energy?

K = U means ½k(A² − x²) = ½kx², so A² = 2x² and x = ±A/√2 ≈ ±0.71A.

7. Two SHMs: x₁ = 3 sin(ωt) and x₂ = 3 cos(ωt). Find the phase difference.

cos(ωt) = sin(ωt + π/2), so x₂ leads x₁ by π/2 (90°). When one is at the middle the other is at an end.

8. Which of these is SHM: (a) a = −9x, (b) a = −9x², (c) a = 9x?

Only (a): acceleration is proportional to x and opposite to it; ω = √9 = 3 rad/s, T = 2π/3 s. (b) is not proportional to x, (c) points away from the middle.

Common mistakes

Practice quiz

1. In SHM the restoring force is:
2. If T = 0.25 s, the frequency is:
3. Speed in SHM is maximum at:
4. Total energy of a spring oscillator is:
5. Phase difference between displacement and acceleration in SHM is:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is simple harmonic motion in simple words?

A to-and-fro motion in which the pull back to the middle grows in proportion to the distance from the middle: F = −kx.

What is the equation of SHM?

x = A sin(ωt + φ), or a = −ω²x in terms of acceleration.

Is energy conserved in SHM?

Yes, without friction the total energy ½kA² stays constant while kinetic and potential energy swap.

Where this is taught

PolandSzkoła podstawowa, klasa VIIIOscillations and waves
PolandLiceum ogólnokształcące, klasa IIOscillations
PolandLiceum ogólnokształcące, klasa IIOscillations
RomaniaClasa a XI-aMechanical oscillations and waves
RomaniaClasa a XI-aMechanical oscillations and waves
Ukraine10 класMechanics
Ukraine10 класMechanics
CBSE (India)Class 11Oscillations and Waves
England (GCSE, A level)Year 133.6 Further mechanics and thermal physics
USA (Common Core, NGSS, AP)Grade 11Oscillations
USA (Common Core, NGSS, AP)Grade 12Oscillations
Japan高校2年Various motions
South Korea고등학교 2학년Elastic waves and sound
Germany (Bavaria)Jahrgangsstufe 11Oscillations and waves
FranceTerminaleLab sciences: Waves
Russia11 классMechanical oscillations
Russia11 классOscillations and waves
China高二Selective 1 Ch.2 Oscillations

Learn first

Learn next

Related lessons

All Physics lessons