Try it yourself · Class 11 Physics · Oscillations

Energy in SHM: kinetic and potential energy of a spring-block against x

This simulation shows a block on a spring sliding to and fro on a smooth floor, and below it the energies against the position . The potential energy is a parabola, the kinetic energy is an upside-down parabola, and their sum, the total energy , is a flat line. Three dots ride on the curves at the block’s position.

stays flat. and trade places. They cross at . The motion is slowed down; the period shown is real.

The simulation needs JavaScript; everything it shows is explained below.

What to change

  • Slide the spring constant from 10 to 200 N/m. A stiffer spring stores more energy for the same stretch and swings faster.
  • Slide the mass from 0.1 to 2 kg. The energies do not change; only the period does.
  • Slide the amplitude from 2 cm to 10 cm. Doubling makes the total energy four times as large.

What to watch

  • The gold line stays flat: with no friction the total energy is the same at every .
  • At the ends () all the energy is potential and the block is at rest; at the centre all of it is kinetic and the block is fastest.
  • The two curves cross at , where the energy is shared half and half: about 3.54 cm when cm.
  • With N/m, kg and cm the readout gives J and s. The block is drawn slowed down so the eye can follow; the period shown is the real one.

The formula

is the spring constant, the amplitude and the displacement from the equilibrium position. The period is .

Try these questions

Work each one out with the simulation, tap to see the answer, then try the chapter quiz.

  1. CBSE

    Find the displacement of a simple harmonic oscillator at which its P.E. is half of the maximum energy of the oscillator.
    Show the answer
  2. JEE Main 2026

    The kinetic energy of a simple harmonic oscillator is oscillating with angular frequency of 176 rad/s. The frequency of this simple harmonic oscillator is __________ Hz. [take ]
    1. 176
    2. 28
    3. 14
    4. 88
    Show the answer
    (C) 14
  3. CBSE

    A mass of kg is attached to the spring of spring constant N m⁻¹. The block is pulled to a distance of cm from its equilibrium position at on a horizontal frictionless surface from rest at . Write the expression for its displacement at anytime .
    Show the answer
    cm (that is, m)

More to try in Oscillations

Every simulation in the Lab