Your Equation

Library / Foundations: Physics / FPH-54

Foundations: Physics

Potential energy of a simple harmonic oscillator

Energy stored in the restoring force when the oscillator is displaced by x, with zero taken at equilibrium.

Ref
FPH-54
Rev
v1
Field
Foundations: Physics
Result
Ep [J]

The potential energy stored in the restoring force at displacement x is Ep = ½kx² = ½mω²x², with zero taken at equilibrium. It rises with the square of the displacement and equals the total energy at the ends of the motion, where x = ±A. The sign of x does not matter.

Energy stored in the restoring force when the oscillator is displaced by x, with zero taken at equilibrium. It rises as the square of the displacement.

Calculator

Solve for
J
kg
0.0110
rad/s
1100
m
−11
  • Stiffness implied, k = mω²50 N/m
  • Restoring force at this displacement, kx1.5 N
  • Energy at twice this displacement0.09 J

What drives the result

Each variable is moved across its typical range while the others stay at the values above. The longest bar is the key driver.

Potential energy (J) current value 0.0225 J
xDisplacement from equilibriumKey driver
025
ωAngular frequency
2.25e-42.25
mOscillating mass
4.5e-40.45
  • At 3 cm from equilibrium the energy stored in the restoring force is 0.0225 J, for a stiffness of 50 N/m.
  • Compressing and stretching by the same amount stores the same energy, since only x² matters: the energy curve is a parabola with its minimum at equilibrium.
Chart data as tables

Ranked variables

VariableTypical rangeLowest resultHighest resultSwing (J)Local stepChange in result
x Displacement from equilibrium−1 to 1 m02525+0.04 m+444 %
ω Angular frequency1 to 100 rad/s2.25e-42.252.25+10%+21 %
m Oscillating mass0.01 to 10 kg4.5e-40.450.4495+10%+10 %

Sweep of Displacement from equilibrium

Displacement from equilibrium (m)Potential energy (J)
−125
−0.7514.06
−0.56.25
−0.251.563
00
0.251.563
0.56.25
0.7514.06
125

Sweep one variable

Potential energy (J)Hover, touch, or use the arrow keys on the chart
0510152025 −1−0.500.51 Displacement from equilibrium (m) now 0.0225

Variables and how each one contributes

Ep

Potential energy

Result · J

What the equation gives you. Everything else feeds it.

m

Oscillating mass

kg · typical 0.01 to 10

The oscillating mass, in kg. Raises the stored energy in direct proportion for a given ω and x. Raising it by 0.1 kg (to 0.6 kg) moves the result by +20 %, from 0.0225 to 0.027 J.

ω

Angular frequency

rad/s · typical 1 to 100

The angular frequency, in rad/s. Raises the stored energy with its square, because the stiffness is mω². Raising it by 5 rad/s (to 15 rad/s) moves the result by +125 %, from 0.0225 to 0.05062 J.

x

Displacement from equilibrium

m · typical −1 to 1

The displacement from equilibrium, in m. Positive and negative values give the same energy. Raises the stored energy with its square: doubling the displacement gives four times the energy. Raising it by 0.01 m (to 0.04 m) moves the result by +77.8 %, from 0.0225 to 0.04 J.

Worked example with the values above

  1. Stiffness: k = mω² = 0.5 × 100 = 50 N/m.
  2. Square the displacement: x² = 9×10−4 m².
  3. Ep = ½ × 50 × 9×10−4 = 0.0225 J.

Assumptions and limits

  • An undamped simple harmonic oscillator: a restoring force proportional to the displacement.
  • Constant amplitude and angular frequency; displacement is measured from the equilibrium position.

Common mistakes

  • Using the amplitude in place of the displacement at the instant considered.
  • Expecting a negative energy for a negative displacement.

Statistics and uncertainty

The energy depends on x², so a 1 % error in the displacement gives about a 2 % error in the energy. The stiffness mω² adds the same sensitivity to ω.

Where it is used

  • Energy stored in a spring or elastic mount at a given position.
  • Splitting the total energy into kinetic and potential parts.

Maths you need

  • Angular frequency: ω = 2π times the frequency, in rad/s
  • Amplitude: the largest displacement from equilibrium

Related formulas

Practise this formula