Skip to content

Oscillations simulation

Mass–Spring Oscillator Simulation

Try this: Press Play, then press Pause just as the glider crosses the dashed equilibrium line. Which energy bar is full? Play on and pause again at the far end of the swing.

Loading simulation…

A glider on a frictionless air track oscillates on the end of a spring while a pen draws its displacement against time. Change the mass, the spring constant and the pull-out distance to find what sets the period, and add damping to watch the swings die away.

In short

What affects the period of a mass on a spring?

The period of a mass on a spring depends only on the mass and the spring constant: a heavier mass or a weaker spring gives a longer period, while the pull-out distance makes no difference. For a spring that obeys Hooke's law, T = 2π√(m/k), so four times the mass doubles the period. Here you time a glider's oscillations, watch energy swap between kinetic and elastic stores and add damping.

Show symbols for

Predict first

Question 1 of 4

  1. Predict
  2. Run
  3. Check

A glider on a level air track is joined to a spring. It is pulled 10 cm out and let go, so it oscillates to and fro. Where along its path is it moving fastest?

Try this

  1. Press Play, then press Pause just as the glider crosses the dashed equilibrium line. Which energy bar is full? Play on and pause again at the far end of the swing.
  2. Note the values under Timed oscillations. Then set Glider mass to 2.0 kg, four times the starting 0.5 kg, and press Play. How many times longer does each oscillation take?
  3. Put the mass back to 0.5 kg and raise Spring constant from 50 N/m to 100 N/m. Is the period now longer or shorter, and by roughly what factor?
  4. Set Pull-out distance to 2 cm and press Play, then try 15 cm. Does the Period card change, even though the glider travels much further?
  5. Choose Damping: Light, press Reset, then Play. Watch the trace on the paper strip narrow, and compare the timed oscillations with the undamped ones.

What this simulation shows

A glider rests on a level air track, held up on a cushion of air so that friction is negligible. A spring joins it to a fixed block. When the spring is at its natural length the glider sits at the equilibrium position, marked by the dashed line. Pull it out and let go, and it oscillates: out past the line, back, and round again. A pen on the glider marks a paper strip that runs downwards beneath it, so the trace is a displacement–time graph with the most recent moment at the top.

The sim times every complete oscillation for you, from one end of the swing back to the same end, and lists the results under Timed oscillations. The Period card shows the latest of them and the Frequency card shows how many oscillations that rate gives per second.

Energy moving between stores

At the end of a swing the glider is still for an instant and the stretched spring holds all of the energy. As the spring pulls it back towards the middle, that energy moves into the glider's kinetic store. Crossing the dashed line, the spring is neither stretched nor squashed, so it stores nothing and the glider moves at its top speed. Beyond the line the spring is compressed and slows the glider until it stops at the other end with the energy back in the spring. This exchange happens twice in each oscillation. Without damping the kinetic and elastic bars always add up to the energy you gave the spring when you pulled the glider out.

What sets the period

Change the mass and the period changes, but not in proportion: four times the mass doubles it. A heavier glider responds more sluggishly to the same pull, so it takes longer to get anywhere. A stiffer spring pulls harder at every displacement and shortens the period. When the spring follows Hooke's law, the period works out as

T=2πmkT = 2\pi\sqrt{\frac{m}{k}}

What does not appear is just as useful. The pull-out distance has no effect: twice as far out means twice the force, twice the speed and twice the distance, and the timing comes out the same. Gravity is missing too, since the track supports the glider's weight.

Damping

Choose a damping setting and a vane on the glider dips into a trough of liquid. The drag on the vane takes some energy away on every swing and passes it to the liquid, so the thermal bar grows while the other two shrink. The trace narrows as the amplitude falls, yet the timed oscillations barely change. With the starting glider and spring, strong damping makes each one only about one per cent longer, and the motion dies away within a handful of oscillations.

Simplifications and course notes

The spring has no mass, never passes its limit of proportionality and acts only along the track. The air track is treated as perfectly frictionless, and the drag in the liquid is taken to be proportional to speed. The motion is calculated from Newton's second law exactly rather than in small steps.

Punjab Class 9, Cambridge IGCSE and AQA GCSE all cover Hooke's law, kinetic energy and the elastic store, and AQA adds ½ke² for the energy a stretched spring holds. Period and frequency come up with waves, in AQA GCSE and in Punjab Class 10. The formula for the period and the idea of damping go beyond all three courses; the formula usually comes later, for example at A-level.

Formula sheet

Equations

Quiz

Check your understanding

7 questions

  1. 1.A glider on a horizontal spring is passing through its equilibrium position. Which statement is correct?
  2. 2.Extension: a 0.80 kg glider is attached to a spring of spring constant 20 N/m. Using T = 2π√(m/k), what is its period?
  3. 3.The spring on an oscillating glider is replaced by one with four times the spring constant. The mass stays the same. What happens to the period?
  4. 4.A glider is pulled out twice as far before it is let go. Assuming the spring obeys Hooke's law, what happens to its period?
  5. 5.A glider makes 20 complete oscillations in 12.0 s. What are its period and frequency?
  6. 6.A 0.40 kg glider is pulled 5.0 cm from equilibrium on a spring with k = 40 N/m, then let go. With no damping, how fast is it moving as it passes equilibrium?
  7. 7.Which describes what light damping does to an oscillating glider?

For teachers

Embed it in your site or open it full-screen for the projector.

Next step

Simple pendulum

The next simulation in oscillations.