Skip to content
Tutorials Center
My learning

Topics

Lesson 6 of 38 · Oscillations and Simple Harmonic Motion

Simple Harmonic Motion: The Equations

Learn the equations of simple harmonic motion: displacement, velocity and acceleration as functions of time, angular frequency and the maximum values.

Simple harmonic motion (SHM) is oscillation where the acceleration is proportional to the displacement and always points toward equilibrium. It is the most important model of vibration in physics, and its equations are short enough to learn completely. This lesson gives you the equations for position, velocity and acceleration, and shows how they fit together.

The defining condition

An object undergoes SHM if

Text
a = −ω² x

where ω (omega) is a positive constant called the angular frequency. The acceleration is proportional to displacement and opposite in direction. Compare with Newton's second law and Hooke's law: for a spring, ma = −kx, so a = −(k/m) x, which means ω² = k/m.

Angular frequency

Angular frequency measures how fast the oscillation progresses in radians per second:

Text
ω = 2π f = 2π / T

Unit: radian per second (rad/s). A cycle corresponds to 2π radians, so ω converts the cycle count into angle. For f = 5 Hz, ω = 2π × 5 ≈ 31.4 rad/s.

Displacement equation

If the motion starts at maximum displacement A at t = 0, then:

Text
x = A cos(ω t)

If it starts at the centre (x = 0) moving in the positive direction, then:

Text
x = A sin(ω t)

Both are SHM; they differ only in the starting moment (the phase). A general form is x = A cos(ωt + φ).

Velocity and acceleration

For x = A cos(ωt):

Text
v = −A ω sin(ω t)
a = −A ω² cos(ω t) = −ω² x

(These come from differentiating x with respect to time: velocity is the rate of change of displacement, and acceleration is the rate of change of velocity. If you have not met calculus yet, you can treat these as given.)

The maximum values occur when the sine or cosine factor is ±1:

Quantity Maximum Where it happens
Displacement A at the ends of the motion
Speed v_max = Aω passing through equilibrium
Acceleration a_max = Aω² at the ends of the motion

At the ends, the object is momentarily at rest (v = 0) but has the greatest acceleration. At the centre, the acceleration is zero but the speed is greatest.

Speed at any displacement

Without time, you can use:

Text
v = ± ω √(A² − x²)

Check: at x = 0, v = ±ωA (maximum); at x = ±A, v = 0.

Worked example

A particle oscillates with amplitude A = 0.10 m and frequency f = 2.0 Hz. Find ω, v_max, a_max, and its speed at x = 0.06 m.

  • ω = 2π × 2.0 = 12.57 rad/s
  • v_max = Aω = 0.10 × 12.57 = 1.26 m/s
  • a_max = Aω² = 0.10 × 157.9 = 15.8 m/s²
  • v = ω√(A² − x²) = 12.57 × √(0.0100 − 0.0036) = 12.57 × 0.08 = 1.00 m/s
Python SHM calculator

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Seeing x, v and a together

The three graphs have the same period but are shifted in phase. Velocity is a quarter cycle ahead of displacement, and acceleration is exactly opposite to displacement.

Python Displacement, velocity and acceleration graphs

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Look at t = 0: displacement is at its maximum, velocity is zero, acceleration is most negative.

flowchart LR
    X["Displacement x"] -->|"slope gives"| V["Velocity v"]
    V -->|"slope gives"| A["Acceleration a"]

Each graph is the slope (rate of change) of the one before it.

Period does not depend on amplitude

Notice that T = 2π/ω and ω depends only on the system (for a spring, k and m). The period of SHM does not depend on the amplitude. A bigger swing takes the same time, because the object travels faster. This property is why pendulum clocks work, at least for small swings.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. A particle in SHM has f = 5.0 Hz. What is its angular frequency ω?

    ω = 2πf = 2π × 5.0 ≈ 31.4 rad/s.
  2. 2. Where in SHM is the speed greatest?

    Speed is v_max = Aω as the object passes through equilibrium; it is zero at the ends.
  3. 3. An oscillator has A = 0.20 m and ω = 10 rad/s. What is its maximum acceleration?

    a_max = Aω² = 0.20 × 100 = 20 m/s².
  4. 4. If the amplitude of a simple harmonic oscillator is doubled, what happens to its period?

    In SHM the period depends only on the system (T = 2π/ω), not on the amplitude.

Summary

  • SHM means a = −ω²x, with ω = 2πf = 2π/T.
  • x = A cos(ωt) (starting at the maximum), v = −Aω sin(ωt), a = −Aω² cos(ωt).
  • v_max = Aω at equilibrium; a_max = Aω² at the ends; v = ±ω√(A²−x²).
  • The period is independent of amplitude.

Next: The Mass-Spring System