Skip to content
Tutorials Center
My learning

Topics

Lesson 9 of 38 · Oscillations and Simple Harmonic Motion

Energy in Simple Harmonic Motion

Follow energy in simple harmonic motion: kinetic and potential energy swap back and forth while the total stays ½kA². Worked examples and energy graphs.

An oscillating object is constantly trading one kind of energy for another. A swing is fastest at the bottom, where it has the most kinetic energy, and stops for an instant at the top, where it has the most potential energy. This lesson shows how that exchange works in simple harmonic motion and gives you a formula for the total energy that you can use in calculations.

Two kinds of energy

For a mass m on a spring with spring constant k:

  • Kinetic energy (energy of motion): KE = ½ m v²
  • Elastic potential energy (energy stored in the spring): PE = ½ k x²

Both are always zero or positive and are measured in joules (J). Here x is the displacement from equilibrium.

The total energy is constant

With no friction, the total mechanical energy E = KE + PE does not change. At the ends of the motion (x = ±A), the mass is momentarily at rest, so all the energy is potential:

Text
E = ½ k A²

At the equilibrium position (x = 0) all the energy is kinetic:

Text
E = ½ m v_max²

Set them equal: ½ m v_max² = ½ k A², so v_max = A√(k/m) = Aω, the same result as before. Energy methods and force methods agree.

At any other displacement:

Text
½ m v² + ½ k x² = ½ k A²

Solving for v gives v = ω√(A² − x²), the speed formula from the earlier lesson.

The total energy is proportional to the square of the amplitude. Double the amplitude and the energy quadruples. This is a general feature of oscillations and waves.

Worked example 1

A 0.50 kg mass on a spring (k = 200 N/m) is pulled 6.0 cm and released. Find its total energy, its maximum speed, and its kinetic energy when x = 3.0 cm.

  • E = ½ k A² = ½ × 200 × 0.060² = 0.36 J
  • v_max = A√(k/m) = 0.060 × √(200/0.50) = 0.060 × 20 = 1.2 m/s
  • At x = 0.030 m: PE = ½ × 200 × 0.030² = 0.090 J, so KE = 0.36 − 0.090 = 0.27 J.
Python Energy calculator for a mass on a spring

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.

The "total" column is the same in every row: that is the conservation of energy.

Energy graphs

Plot energy against displacement. The potential energy is a parabola ½kx²; the kinetic energy is an upside-down parabola; their sum is a horizontal line at ½kA². The object can only be where the total line is above the potential curve, and it turns around where they meet, at x = ±A.

Python Energy against displacement

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.

Energy against time

Because x = A cos ωt, PE = ½kA² cos²(ωt) and KE = ½kA² sin²(ωt). Each completes two cycles for every one cycle of the motion: the object reaches equal-and-opposite ends twice per period, and passes the centre twice.

Python Energy against time

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.

Energy in a pendulum

A pendulum swaps gravitational potential energy and kinetic energy. At the bottom, KE = ½mv² is largest; at the top of the swing, the bob rises by a height h above its lowest point and PE = mgh. Equating them gives the speed at the bottom: v = √(2gh), the same speed as a free fall from height h.

For a 1.0 m pendulum raised so the bob is 0.10 m above the bottom: v = √(2 × 9.81 × 0.10) = 1.40 m/s.

Where does the energy go in real life?

Real oscillators lose energy to friction and air resistance, so the amplitude slowly shrinks. That is damping, the subject of the next lesson. A source that keeps supplying energy (like a person pushing a swing) can keep the amplitude constant.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Where is the kinetic energy of a mass on a spring greatest?

    At equilibrium the spring is unstretched (PE = 0) and the speed is greatest, so all the energy is kinetic.
  2. 2. A spring with k = 100 N/m has amplitude 0.10 m. What is the total energy?

    E = ½kA² = ½ × 100 × 0.10² = 0.50 J.
  3. 3. If the amplitude is doubled, the total energy of the SHM becomes...

    E = ½kA², so energy is proportional to A². Doubling A multiplies E by 4.
  4. 4. At x = ±A, which statement is true?

    At the ends the object is momentarily at rest, so all the energy is stored as potential energy.

Summary

  • KE = ½mv² and PE = ½kx² for a spring; their sum E = ½kA² is constant without friction.
  • Energy is all potential at the ends and all kinetic at equilibrium.
  • Total energy is proportional to A².
  • KE and PE each go through two cycles per oscillation.

Next: Damping and Resonance