BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyThe High School: physics from the very first step

Oscillations and simple harmonic motion

A mass on a spring moves back and forth in a sine-shaped rhythm whose period depends only on the mass and the spring, not on how far you pull it.

You need this first

Full reading path (23 pages)
  1. Powers of ten and scientific notation (hs-0)
  2. Units and the SI system (hs-0)
  3. Solving and rearranging formulas (hs-0)
  4. Graphs, straight lines and slope (hs-0)
  5. Quadratics and power laws (hs-0)
  6. Angles, radians and trigonometry (hs-0)
  7. Vectors (hs-0)
  8. Distance and displacement (hs-1)
  9. Rates of change and area under a graph (hs-0)
  10. Speed and velocity (hs-1)
  11. Position–time graphs (hs-1)
  12. Acceleration (hs-1)
  13. Velocity–time graphs (hs-1)
  14. Equations for constant acceleration (hs-1)
  15. Free fall (hs-1)
  16. What is a force? (hs-2)
  17. Relative velocity (hs-1)
  18. Newton's first law: inertia (hs-2)
  19. Newton's second law (hs-2)
  20. Circular motion (hs-1)
  21. Newton's third law (hs-2)
  22. Weight, normal force and tension (hs-2)
  23. Springs and Hooke's law (hs-2)
On this page · 7 sections
  1. Equilibrium and a restoring force
  2. Describing the motion: amplitude, period, frequency
  3. The period of a mass on a spring
  4. Velocity and acceleration: the shadow of a circle
  5. Why it is everywhere
  6. Try it
  7. Summary

Pull a mass on a spring a little to one side and let go. It slides back, overshoots, stops, comes back again, and keeps going back and forth. A child on a swing, a guitar string, the air in an organ pipe and the atoms in a crystal all do something similar. This lesson describes the simplest and most important kind of back-and-forth motion.

Equilibrium and a restoring force#

A mass mm on a frictionless table is attached to a spring. Where the spring is neither stretched nor squeezed, there is no net force: that is the equilibrium position. Measure the position xx from there. By Hooke's law, the spring pulls the mass back with a force proportional to how far it is displaced:

Hooke's law
F=−kxF = -kx
In words

capital F equals minus k x

The minus sign is the whole story. Displace the mass to the right (x>0x > 0) and the force points left; displace it to the left and the force points right. A force that always points back towards equilibrium is called a restoring force.

Newton's second law, F=maF = ma, then gives the acceleration:

Acceleration under Hooke's law
a=−km xa = -\frac{k}{m}\,x
In words

a equals minus k over m, times x

When the acceleration is proportional to the displacement and points the opposite way, the motion is called simple harmonic motion (SHM). The notes call such a system a simple harmonic oscillator.

Describing the motion: amplitude, period, frequency#

Let the mass go from x=Ax = A at time t=0t = 0. It swings between x=+Ax = +A and x=−Ax = -A and repeats the same motion over and over.

  • The amplitude AA is the largest displacement from equilibrium.
  • The period TT is the time for one complete oscillation, there and back again.
  • The frequency ff is the number of oscillations per second. Its unit is the hertz (Hz): 1 Hz=1 s−11\ \text{Hz} = 1\ \text{s}^{-1}.
Frequency and period
f=1Tf = \frac{1}{T}
In words

f equals 1 over capital T

Source: Siyavula, Everything Science: Physical Sciences Grade 10, Chapter 8 Transverse waves, 8.6 Period and frequency, definitions of period and frequency, f = 1/T, Sec. 8.6, definitions of period and frequency

The position follows a cosine. One full cycle of a cosine is an angle of 2π2\pi radians, so the angle grows by 2π2\pi radians every period. That rate is the angular frequency ω\omega (omega), in radians per second:

Angular frequency
ω=2πT=2πf\omega = \frac{2\pi}{T} = 2\pi f
In words

omega equals 2 pi over capital T equals 2 pi f

Position in simple harmonic motion
x(t)=Acos⁡(ωt)x(t) = A\cos(\omega t)
In words

x(t) equals capital A cos ( omega t)

Change the amplitude and the period below and watch the curve stretch.

Position against time computed from x=Acos⁡(2πt/T)x = A\cos(2\pi t/T). The curve repeats every period TT and stays between +A+A and −A-A.

The period of a mass on a spring#

Compare two formulas for the acceleration. The cosine motion has acceleration a=−ω2xa = -\omega^2 x (shown in the next section with a circle), and Hooke's law gives a=−(k/m)xa = -(k/m)x. They agree when ω2=k/m\omega^2 = k/m:

Angular frequency of a mass on a spring
ω=km\omega = \sqrt{\frac{k}{m}}
In words

omega equals the square root of k over m, end of root

Period of a mass on a spring
T=2πmkT = 2\pi\sqrt{\frac{m}{k}}
In words

capital T equals 2 pi the square root of m over k, end of root

A heavier mass oscillates more slowly, and a stiffer spring makes it faster. The amplitude does not appear at all. Pull the mass twice as far and it has twice as far to go, but the spring pulls twice as hard, so it moves twice as fast and each oscillation takes exactly as long. This is why a spring, like the pendulum in the next lesson, can keep time.

Velocity and acceleration: the shadow of a circle#

The velocity is the slope of the position graph. The cosine is steepest where it crosses zero, so the mass moves fastest as it passes through equilibrium, and it is momentarily at rest at the turning points x=±Ax = \pm A.

To find how fast, picture a point going round a circle of radius AA at constant angular speed ω\omega, as in uniform circular motion. After a time tt it has turned through the angle ωt\omega t, so its xx coordinate is Acos⁡(ωt)A\cos(\omega t): exactly the position of the oscillating mass. Simple harmonic motion is the shadow of uniform circular motion on a line. That gives the velocity and acceleration at once:

  • The point on the circle moves at speed ωA\omega A along the circle. Its shadow moves fastest when the point's velocity is parallel to the line, which happens as the shadow passes the centre: there the shadow's speed is the full ωA\omega A.
  • The point's acceleration has size ω2A\omega^2 A and always points to the centre of the circle. Its part along the line is −ω2Acos⁡(ωt)=−ω2x-\omega^2 A\cos(\omega t) = -\omega^2 x.
Largest speed
vmax=ωAv_\text{max} = \omega A
In words

v sub max equals omega capital A

Acceleration in simple harmonic motion
a=−ω2x,amax=ω2Aa = -\omega^2 x, \qquad a_\text{max} = \omega^2 A
In words

a equals minus omega squared x, a max equals omega squared capital A

The acceleration is largest at the turning points, where the spring is stretched or squeezed most, and zero at equilibrium.

Worked example

A block on a spring

A 0.40 kg0.40\ \text{kg} block on a frictionless track is attached to a spring with k=25 N/mk = 25\ \text{N/m}. It is pulled 5.0 cm5.0\ \text{cm} from equilibrium and released. Find the period, the frequency, the largest speed and the largest acceleration.

Angular frequency

ω=k/m=25/0.40=62.5=7.91 rad/s\omega = \sqrt{k/m} = \sqrt{25/0.40} = \sqrt{62.5} = 7.91\ \text{rad/s}.

Period and frequency

T=2π/ω=2π/7.91=0.79 sT = 2\pi/\omega = 2\pi/7.91 = 0.79\ \text{s}, and f=ω/2π=1.26 Hzf = \omega/2\pi = 1.26\ \text{Hz} (dividing 1 by the rounded period, 0.79 s, would give 1.27 Hz: round only at the end).

Largest speed

The amplitude is A=0.050 mA = 0.050\ \text{m}, so vmax=ωA=7.91×0.050=0.40 m/sv_\text{max} = \omega A = 7.91 \times 0.050 = 0.40\ \text{m/s}, reached as the block passes equilibrium.

Largest acceleration

amax=ω2A=62.5×0.050=3.1 m/s2a_\text{max} = \omega^2 A = 62.5 \times 0.050 = 3.1\ \text{m/s}^2, at the turning points.

Worked example

Measuring a spring constant with a stopwatch

A 2.0 kg2.0\ \text{kg} mass hangs from a spring and bounces up and down. Ten oscillations take 5.0 s5.0\ \text{s}. What is the spring constant?

Period

T=5.0/10=0.50 sT = 5.0/10 = 0.50\ \text{s}. Timing ten oscillations and dividing makes the result ten times less sensitive to your reaction time.

Rearrange the period formula

Square T=2πm/kT = 2\pi\sqrt{m/k} to get T2=4π2m/kT^2 = 4\pi^2 m/k, so k=4π2m/T2k = 4\pi^2 m/T^2.

Calculate

k=4π2×2.0/0.502=316 N/mk = 4\pi^2 \times 2.0/0.50^2 = 316\ \text{N/m}, about 3.2×102 N/m3.2 \times 10^2\ \text{N/m}.

A hanging spring oscillates about its new, stretched equilibrium position with the same period as on a table. Gravity adds the same constant force everywhere, so it only moves the point where the forces balance; measured from that new point, the net force is still −kx-kx.

Why it is everywhere#

The MIT notes end with a striking result: almost any system that is pushed a little away from a stable equilibrium, a position it returns to when disturbed, feels a restoring force that is close to proportional to the displacement. So for small disturbances it oscillates in simple harmonic motion. A ball rolling in a bowl, a pendulum, a molecule whose atoms vibrate: all are simple harmonic oscillators as long as the swings stay small. That is why this one motion matters so much in physics.

Try it#

Hang different masses on the springs, change the spring constant, and time the oscillations. Check that the period does not change when you pull further, and that it grows with the square root of the mass.

Masses and Springs. Simulation by PhET Interactive Simulations, University of Colorado Boulder, licensed under CC BY-NC 4.0 (https://phet.colorado.edu). Open full screen

Summary#

Symbols on this page

Show the 19 symbols used here
π\pi pi.
The ratio of a circle's circumference to its diameter, π ≈ 3.14159. Say it: “pi”.
ω\omega omega.
Angular frequency, ω = 2πf = 2π/T. Unit: rad/s. Say it: “omega”.
±\pm plus or minus.
Plus or minus: both signs, or an uncertainty (67.3 ± 1.2). Say it: “plus or minus”.
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
aa a.
Acceleration of the oscillating mass. Unit: m/s². Say it: “a”.
kk k.
The spring constant. Unit: N/m. Say it: “k”.
TT T.
Period: the time for one complete oscillation. Unit: s. Say it: “capital T”.
xx x.
Displacement from the equilibrium position, x(t). Unit: m. Say it: “x”.
tt t.
Time. Unit: s. Say it: “t”.
mm m.
Mass of the oscillating object. Unit: kg. Say it: “m”.
ff f.
Frequency: the number of oscillations per second, f = 1/T. Unit: Hz. Say it: “f”.
gg g.
The gravitational acceleration near the Earth's surface, about 9.81 m/s². Unit: m/s². Say it: “g”.
FF F.
Force; here the spring's restoring force, F = −kx. Unit: N. Say it: “capital F”.
AA A.
Amplitude: the largest displacement from equilibrium. Unit: m. Say it: “capital A”.
CC C.
Spring constant, as Dutch textbooks write it (this site writes k). Unit: N/m. Say it: “C”.
uu u.
Displacement, as Dutch textbooks write it (this site writes x). Unit: m. Say it: “u”.
vmaxv_{\text{max}} maximum speed.
The largest speed of the oscillation, reached at equilibrium: v_max = ωA. Unit: m/s. Say it: “v sub max”.
amaxa_{\text{max}} a max.
The largest acceleration of the oscillation, at the turning points: a_max = ω²A. Unit: m/s². Say it: “a max”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 24 words used here

New here

amplitude.
The size of an oscillation or wave: the largest distance from its middle position, or the number multiplying the sine.
angular frequency.
The rate of a repeating motion measured in radians per second: 2π times the number of cycles per second.
stable equilibrium.
A resting position that a body returns to when nudged, like a ball at the bottom of a bowl.

Also used

frictionless.
Having no friction: an idealisation for surfaces or pulleys so smooth that friction can be ignored. Explained in Pulleys and constraint conditions.
net force.
The sum of all the forces acting on a body, added as vectors; it alone decides the body's acceleration. Explained in What is a force?.
equilibrium.
A state that does not change by itself, because the influences acting on it balance. Explained in Newton's first law: inertia.
Hooke's law.
A spring pulls or pushes back with a force proportional to how far it is stretched or squeezed: F = −kx. Explained in Springs and Hooke's law.
proportional.
Of two quantities: always in the same ratio, so that doubling one doubles the other. Explained in Graphs, straight lines and slope.
restoring force.
A force that pushes a body back towards its resting position whenever it is moved away. Explained in Springs and Hooke's law.
Newton's second law.
The net force on a body equals its mass times its acceleration, F = ma; more generally, force is the rate of change of momentum. Explained in Newton's second law.
acceleration.
How fast velocity changes: the change in velocity in each unit of time. Explained in Rates of change and area under a graph.
displacement.
The change in position from start to finish: how far and in which direction, ignoring the route in between. Explained in Vectors.
simple harmonic motion.
Back-and-forth motion in which the push towards the middle is proportional to the distance from it, so the position follows a sine curve in time. Explained in Springs and Hooke's law.
harmonic oscillator.
Anything that swings back and forth about a balance point with a restoring force proportional to how far it is pulled away, like a spring. Explained in The harmonic oscillator.
frequency.
How often something repeats: the number of cycles, turns or waves each second, measured in hertz. Explained in Circular motion.
hertz.
The unit of frequency: one cycle each second. Explained in Circular motion.
radian.
The natural unit of angle: the angle whose arc on a circle is as long as the radius. A full turn is 2π radians. Explained in Angles, radians and trigonometry.
spring constant.
The stiffness k of a spring: the force it gives per metre of stretch, in newtons per metre. Explained in Springs and Hooke's law.
velocity.
How fast and in which direction something moves: the change in position in each unit of time. Explained in Speed and velocity.
graph.
The picture of a function: the curve y = f(x) for one variable, or the surface z = f(x, y) for two. Explained in Graphs, straight lines and slope.
turning point.
A place where a moving body stops for an instant and turns back, because there all its energy is potential energy. Explained in Quadratics and power laws.
angular speed.
The size of the angular velocity: how many radians a turning body sweeps through each second. Explained in Circular motion.
uniform circular motion.
Motion round a circle at constant speed; the direction keeps turning, so there is an acceleration towards the centre. Explained in Circular motion.
MIT.
Massachusetts Institute of Technology: the university in Cambridge, USA, whose free courses this site rewrites.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Where this leads

In cosmology

Pages that build on this

Practise

Check your understanding

  1. A mass on a spring makes 20 complete oscillations in 8.0 s8.0\ \text{s}. What is its frequency?
  2. You pull a mass on a spring twice as far from equilibrium before letting go. What happens to the period?
  3. Which change makes a mass-spring oscillator twice as fast (half the period)?
  4. Where in the motion is the speed of the oscillating mass largest?
  5. At the moment the mass is at its largest positive displacement x=+Ax = +A, its acceleration is…
0 of 5 answered

Flashcards

1 / 4