← Back to HeliosSTEMLab

Harmonic Motion

Exploring oscillation, restoring force, period, frequency, and vibration behaviour.

Available module · Mechanics · Port 8506

Learning objectives

By the end of this module, the learner should be able to:

First-principles explanation

Harmonic motion occurs when a system is displaced from equilibrium and experiences a restoring force that pulls it back. In an ideal spring-mass system, the restoring force is proportional to displacement and acts in the opposite direction.

The motion repeats because the system continually exchanges potential energy in the spring with kinetic energy in the moving mass.

Equations and units

F = -kx
ω = √(k / m)
T = 2π / ω
f = 1 / T
x(t) = A cos(ωt + φ)

Worked example

Problem: A 1 kg mass is attached to a spring with stiffness 10 N/m. Find the angular frequency and period.

Known values:

Calculation:

ω = √(k / m) = √(10 / 1) = 3.162 rad/s

T = 2π / ω = 2π / 3.162 = 1.987 s

Answer: The angular frequency is approximately 3.16 rad/s and the period is approximately 1.99 s.

Interactive simulator

The Harmonic Motion simulator lets the learner adjust amplitude, mass, and spring constant, then observe the effect on displacement, velocity, acceleration, period, frequency, and total energy.

Local launch command:

python -m streamlit run simulations/harmonic_motion/streamlit_web_app.py --server.port 8506

Launch local simulator

Engineering meaning

Harmonic motion appears in vehicle suspension, vibrating machinery, sensors, structures, and control systems. Engineers must understand oscillation because natural frequency, stiffness, and mass can determine whether a system behaves safely or dangerously.

Increasing stiffness raises the natural frequency. Increasing mass lowers it. This principle is central to vibration analysis and mechanical design.

Assumptions and limits

Challenge questions

  1. What happens to the period if the mass is increased?
  2. What happens to frequency if the spring constant is increased?
  3. Why is velocity zero at maximum displacement?
  4. Why is acceleration greatest when displacement is greatest?