US exams AP (Advanced Placement) AP Physics 1

Oscillations: Simple Harmonic Motion

Learn simple harmonic motion, mass-spring systems and pendulums, period and frequency, and energy in oscillations for AP Physics 1, with worked examples.

Reviewed by Independent AI model review on 2026-11-16

Watch the worked example

Simple Harmonic Motion: Mass on a Spring. Captions are available in the player.
Oscillations: Practice Problems Solved. Captions are available in the player.

Many things in nature repeat the same motion again and again: a mass on a spring, a swing, a vibrating string. When the restoring force grows in proportion to the displacement, the motion is called simple harmonic motion, and it is described by a few simple ideas.

Key ideas

  • An oscillation is a repeated motion about an equilibrium position.
  • Simple harmonic motion (SHM) happens when the net restoring force is proportional to the displacement and points back toward equilibrium: F = −kx.
  • Amplitude (A) is the maximum displacement from equilibrium. Period (T) is the time for one full cycle. Frequency (f) is the number of cycles per second, in hertz (Hz): f = 1/T.
  • At the maximum displacement the speed is zero and the acceleration is largest. At the equilibrium position the speed is largest and the acceleration is zero.
  • The total mechanical energy of an ideal oscillator is constant. It is converted back and forth between kinetic energy and potential energy.
  • For a mass on a spring the period depends on the mass and the spring constant, and not on the amplitude. For a pendulum at small angles it depends on the length and the gravitational field, and not on the mass or the amplitude.

Equations

Quantity Equation
Period and frequency T = 1/f
Spring restoring force F_s = −kx
Period of a mass on a spring T = 2π√(m/k)
Period of a simple pendulum (small angles) T = 2π√(L/g)
Energy of a mass-spring oscillator E = ½kA²

Check the College Board course page for the equation sheet you will be given on the exam.

Watching simple harmonic motion

A block oscillating on a horizontal springAn animation of a block on a horizontal spring moving back and forth between plus A and minus A either side of the equilibrium position. The block is momentarily at rest at each end, where the spring force is largest, and moves fastest at the center. The motion is slowed down, and is switched off if your device is set to reduce motion.−A0+AequilibriumSlowed down. The block stops at ±A, where the spring force is largest,and moves fastest as it passes through the equilibrium position.
Animation, slowed down: the block stops momentarily at ±A and moves fastest through the equilibrium position.

The graph of simple harmonic motion

Displacement-time graph of simple harmonic motionA cosine-shaped graph of displacement against time for a mass on a spring with amplitude 0.10 meters and period 0.31 seconds. The speed is zero at the maximum displacements, where the acceleration is largest. At the center the speed is largest and the acceleration is zero.time (s)displacement x (m)+0.10−0.100one period T = 0.31 sAt x = ±A: v = 0 and |a| is largest. At x = 0: |v| is largest and a = 0.Mass-spring system: m = 0.50 kg, k = 200 N/m, A = 0.10 m.
Displacement against time for a mass on a spring. The red dot follows the graph as the block moves (slowed down). The speed is greatest as the mass passes through x = 0.

The graph is a cosine curve (if timing starts at maximum displacement). The slope of the graph is the velocity, and it is zero at the top and bottom of each cycle. The graph is steepest, so the speed is greatest, when it crosses x = 0.

Energy in oscillations

At maximum displacement all the energy is potential energy: E = ½kA². At the equilibrium position all of it is kinetic: E = ½mv_max². Setting the two equal gives v_max = A√(k/m). In between, the kinetic and potential energies add to the same total.

Worked example 1: period and frequency

A 0.50 kg mass is attached to a spring with k = 200 N/m and oscillates. Find the period and the frequency.

T = 2π√(m/k) = 2π√(0.50 ÷ 200) = 2π√(0.0025) = 2π(0.050) ≈ 0.31 s.

f = 1/T = 1 ÷ 0.314 ≈ 3.2 Hz.

Worked example 2: speed and acceleration

The same oscillator has an amplitude of 0.10 m. Find the total energy, the maximum speed and the maximum acceleration.

E = ½kA² = ½(200)(0.10)² = 1.0 J.

All of this is kinetic at the equilibrium position: ½mv_max² = 1.0, so v_max = √(2 × 1.0 ÷ 0.50) = 2.0 m/s.

The largest force is at x = A, so a_max = kA/m = (200)(0.10) ÷ 0.50 = 40 m/s².

Worked example 3: a pendulum

A simple pendulum has a length of 1.0 m. Find its period on Earth (g = 9.8 m/s²) and on the Moon (g = 1.6 m/s²). Assume small angles.

On Earth: T = 2π√(L/g) = 2π√(1.0 ÷ 9.8) ≈ 2.0 s.

On the Moon: T = 2π√(1.0 ÷ 1.6) ≈ 5.0 s. The weaker gravity makes the pendulum swing more slowly.

A swinging simple pendulumAn animation of a simple pendulum swinging back and forth through small angles about the vertical. The period depends on the length and on g, not on the mass. The motion is slowed down, and is switched off if your device is set to reduce motion.A simple pendulum, slowed down. It swings through small angles.T = 2π√(L/g): the period depends on L and g, not on the mass.
Animation, slowed down: a simple pendulum swinging through small angles.

Worked example 4: a hanging spring

The 0.50 kg mass is hung from the same spring (k = 200 N/m) so that it oscillates vertically. Find the equilibrium stretch and the period.

At equilibrium the spring force balances the weight: kx = mg, so x = mg/k = (0.50)(9.8) ÷ 200 = 0.0245 m ≈ 2.5 cm.

The period is still T = 2π√(m/k) ≈ 0.31 s. Gravity only moves the equilibrium position. It does not change the period.

Worked example 5: changing the mass

The 0.50 kg mass is replaced by a 2.0 kg mass on the same spring. Find the new period.

T = 2π√(2.0 ÷ 200) = 2π(0.10) ≈ 0.63 s.

The mass was multiplied by 4, so the period was multiplied by √4 = 2: 2 × 0.31 s ≈ 0.63 s. ✓

More worked problems

These three exam-style problems are worked out step by step in the video "Oscillations: Practice Problems Solved" at the top of this page. Each solution is written out below, after the three problems. Use g = 9.8 m/s². You can try new problems in "Try it yourself" afterward.

Problem 1: timing a spring. A 0.40 kg block oscillates on a horizontal spring with an amplitude of 5.0 cm. It completes 10 oscillations in 6.3 s. Find (a) the period and the frequency, (b) the spring constant and (c) the maximum speed of the block.

A block oscillating on a horizontal springA 0.40 kilogram block on a horizontal spring oscillates between 5.0 centimeters either side of the equilibrium position. It completes 10 oscillations in 6.3 seconds. The diagram is not to scale.0.40 kgA = 5.0 cmequilibriumThe block completes 10 oscillations in 6.3 s.Find T, f, the spring constant and the maximum speed. Not to scale.
Problem 1: the period comes from the timing, and the spring constant comes from the period. The diagram is not to scale.

Problem 2: energy at half the amplitude. A 0.60 kg mass oscillates on a horizontal spring with spring constant 150 N/m and an amplitude of 0.20 m. When the mass is 0.10 m from the equilibrium position, find (a) the total energy, (b) the potential energy, (c) the kinetic energy and (d) the speed.

A mass on a spring at half its amplitudeA 0.60 kilogram block on a horizontal spring of spring constant 150 newtons per meter. The amplitude is 0.20 meters and the block is shown at a displacement of 0.10 meters from the equilibrium position. The diagram is not to scale.0.60 kgk = 150 N/mx = 0.10 mA = 0.20 mequilibriumA mass-spring oscillator, shown at x = 0.10 m.Find the energies and the speed there. Not to scale.
Problem 2: the total energy is fixed, and it is shared between the spring and the moving mass. The diagram is not to scale.

Problem 3: a pendulum. A simple pendulum swings through small angles on Earth with a period of 1.5 s. Find (a) its length, (b) the length needed for a period of 3.0 s and (c) the period if the mass of the bob is doubled.

A simple pendulum with a period of 1.5 secondsA simple pendulum swings through small angles with a period of 1.5 seconds. Its length L is unknown. The diagram is not to scale.length L = ?period T = 1.5 sA simple pendulum swinging through small angles.Find its length and see how changes affect the period. Not to scale.
Problem 3: the period depends on the length and on g, but not on the mass. The diagram is not to scale.

Solutions to the worked problems

Problem 1.

(a) The period is the time for one oscillation: T = 6.3 ÷ 10 = 0.63 s. The frequency is f = 1/T = 1 ÷ 0.63 = 1.6 Hz, which is about 1.6 Hz.

(b) Start with T = 2π√(m/k). Squaring both sides gives T² = 4π²m/k, so k = 4π²m/T² = 4π²(0.40) ÷ (0.63)² = 15.8 ÷ 0.397 = 39.8 N/m, which is about 40 N/m.

(c) The block is fastest at the equilibrium position, where all of the energy is kinetic: ½kA² = ½mv_max². Convert the amplitude to meters: 5.0 cm = 0.050 m. So v_max = A√(k/m) = (0.050)√(40 ÷ 0.40) = (0.050)(10) = 0.50 m/s.

Problem 2.

(a) The total energy is constant and equals the energy at the amplitude, where the mass is momentarily at rest: E = ½kA² = ½(150)(0.20)² = 3.0 J.

(b) At x = 0.10 m the potential energy stored in the spring is U = ½kx² = ½(150)(0.10)² = 0.75 J.

(c) The kinetic energy is what is left: K = E − U = 3.0 − 0.75 = 2.25 J.

(d) K = ½mv², so v = √(2K/m) = √(2 × 2.25 ÷ 0.60) = √7.5 = 2.74 m/s, which is about 2.7 m/s.

At half the amplitude, the potential energy is only one quarter of the total, because U is proportional to x².

Problem 3.

(a) T = 2π√(L/g). Squaring both sides and solving for L gives L = gT²/(4π²) = (9.8)(1.5)² ÷ (4π²) = 22.05 ÷ 39.5 = 0.559 m, which is about 0.56 m.

(b) T is proportional to √L. To double the period, the length must be multiplied by 2² = 4. The new length is 4 × 0.56 = 2.2 m, which is about 2.2 m.

(c) The mass does not appear in T = 2π√(L/g), so doubling the mass of the bob has no effect. The period stays at 1.5 s.

Try it yourself

These problems are not worked out in the videos. Use g = 9.8 m/s² where it is needed.

Problem A. A 0.20 kg mass hangs from a vertical spring and stretches it by 4.0 cm at equilibrium. The mass is then pulled down a little and released. Find (a) the spring constant and (b) the period of the oscillation. Hint: use the equilibrium stretch to find k.

Problem B. A mass on a spring oscillates with a period of 1.2 s. Find the new period if (a) the mass is multiplied by 9, (b) the amplitude is doubled and (c) the spring constant is multiplied by 4. Change only one thing each time, and keep everything else the same.

Problem C. A 0.25 kg mass on a horizontal spring oscillates with an amplitude of 0.080 m and a period of 0.50 s. Find (a) the maximum speed and (b) the maximum acceleration of the mass. Hint: find the spring constant first.

Check your answers. A: (a) 49 N/m; (b) 0.40 s. B: (a) 3.6 s; (b) 1.2 s (no change); (c) 0.60 s. C: (a) 1.0 m/s; (b) 13 m/s² (the spring constant is about 39.5 N/m).

Common mistakes

  • Thinking the speed is largest at the ends. At the ends the mass stops momentarily. The speed is largest at equilibrium.
  • Saying the acceleration is zero at the ends. It is largest there, because the restoring force is largest.
  • Using amplitude in the period formula. For SHM the period does not depend on the amplitude.
  • Using a pendulum formula for large angles. T = 2π√(L/g) works only for small angles.
  • Mixing up frequency and period. T = 1/f. A frequency of 3.2 Hz means a period of about 0.31 s.

Exam approach

AP Physics 1 questions often ask you to compare two oscillators, or to explain how the period changes. Start from T = 2π√(m/k) or T = 2π√(L/g), say what changes and what does not, and give the factor. Check the College Board course page for the current exam format.

Practice questions

Choose an answer to see whether you are right and why.

1. A 0.50 kg mass on a spring with k = 200 N/m oscillates. What is the period?

2. Where is the speed of a mass-spring oscillator greatest?

3. A simple pendulum of length 1.0 m swings through small angles on Earth. What is its period?

4. The mass on a spring is increased by a factor of four. By what factor does the period change?

5. The amplitude of a mass-spring oscillator is doubled. What happens to its period?

6. A mass-spring system has k = 200 N/m and an amplitude of 0.10 m. What is the total mechanical energy?

Make your own study set

Upload your class notes, a PDF or a revision video and CampusBadge builds notes, flashcards and quizzes for you to practise with.

This lesson is a study guide, not the syllabus. Check what is examined in the official AP Physics 1 syllabus for your exam year.

All AP Physics 1 lessons

Upload Documents for Study Materials

We'll generate notes, flashcards and quizzes from your document.

Drop your document here

PDF, Word (.docx), or Text files

Processing your document...

Generating study materials

Process YouTube Video

Paste a link to a revision video.

How it works

We'll extract the transcript from the YouTube video and generate study notes, flashcards, and quizzes.

Processing YouTube video...

Extracting transcript and generating study materials

Add New Badge

Create a badge to mark an achievement.

Are you sure?