Energy in oscillatory motion
Watch a mass bouncing on a spring and you are watching energy change costume, not disappear. At the extremes of the swing the mass is momentarily still — all its energy is stored in the stretched or compressed spring. At the middle of the swing it is moving fastest — all that stored energy has converted into motion. Add the two forms together at any instant, kinetic plus potential, and the total never changes, however far the oscillator has travelled through its cycle. That constancy is not a coincidence; it is Newton's law of motion for a linear restoring force, rewritten in the language of energy. This article takes the simple harmonic motion (SHM) solution you already derived from and asks a new question of it — where does the energy live at each instant, and how much of it is there in total. The answer, , is one of the most reused numbers in the whole course: it resurfaces when damping drains energy away, and again when waves carry energy from place to place.
In undamped SHM, kinetic energy and potential energy continuously trade places but their sum stays constant and depends only on the amplitude.
The core idea
A mass on a spring of constant moves as , with fixed by the physical setup and fixed by how the motion was started. Differentiating gives the velocity , and from that the kinetic energy is
where: is the oscillating mass, the amplitude, the angular frequency, and the phase constant fixed by initial conditions. The potential energy stored in the spring comes from , valid because the restoring force is linear, :
Since , both expressions share the same prefactor , so and are just that constant amount split between and . Adding them and using removes the time dependence entirely — the two terms are always complementary shares of one fixed total. That total,
is the headline result: the total mechanical energy of an undamped oscillator is fixed the instant the amplitude is fixed, and it never depends on time, phase, or where in the cycle you happen to look. Two consequences are worth carrying forward. First, — doubling the amplitude quadruples the energy, the same scaling that reappears later as "intensity is proportional to amplitude squared" for waves. Second, and each oscillate at twice the frequency of itself, because and complete two full wobbles for every one cycle of . peaks (equal to ) at the equilibrium position , where the mass moves fastest; peaks (equal to ) at the turning points , where the mass is momentarily at rest.
There is one more useful number hiding in these formulas: the time-averaged kinetic and potential energies over a full cycle. Because and each average to over any whole number of periods, . So although and individually swing all the way from up to and back every half-period, on average each carries exactly half of the total energy — a distinction worth keeping straight when a question asks for an average value rather than the value at one particular instant.
The goal of this derivation is to show, starting only from the SHM solution and the two standard energy formulas and , that the sum collapses to a single constant with no leftover time dependence — a self-consistency check that Newton's law and energy conservation agree.
Step 1. Differentiate the position to get the velocity: gives . This is the standard SHM velocity, ninety degrees out of phase with the displacement, and its amplitude is .
Step 2. Substitute into the kinetic energy formula. . Since for this system, rewrite the prefactor as , so .
Step 3. Substitute the same into the potential energy formula. , which already carries the identical prefactor found in Step 2 — a sign that the algebra is on track, since both energies must be built from the same amplitude.
Step 4. Add the two results. . The bracket is the Pythagorean identity, always equal to regardless of the angle, so the entire time-dependent part cancels and — a fixed number set only by the amplitude and the spring–mass combination, never by or . Check: at such that , and (a turning point); at , and (equilibrium). Both extremes equal the same , confirming the sum is constant throughout.
Worked example
Problem. A kg mass on a spring with N/m oscillates with amplitude m. Find (a) the total energy, (b) the speed at m, (c) confirm there, and (d) the position where .
Step 1. Total energy from the amplitude alone: J. This number is fixed for the whole motion, regardless of where the mass currently is.
Step 2. At m, the potential energy is J. By conservation, the kinetic energy there must be J, and since , m/s.
Step 3. Check: J , confirming energy conservation at this arbitrary intermediate point, not just at the extremes.
Step 4. For , each must equal J. Setting gives , so m. The mass has speed m/s at m, and at m — always at , about of the amplitude, whatever the values of , , or .
Competitive stretch
Problem. For the same spring-mass system ( kg, N/m, m), find the maximum speed directly from the energy relation, and check it against .
Step 1. At the equilibrium position all the energy is kinetic, so J. From , m/s.
Step 2. Cross-check using rad/s, so m/s. Both routes agree: m/s, confirming that and describe the same total energy from two different vantage points in the cycle.
Common traps
- Treating and as each individually constant — only their sum is constant; both and oscillate with time, at twice the frequency of .
- Forgetting is measured from equilibrium, so at the energy is entirely kinetic, not half-and-half by some assumed symmetry.
- Double-counting energy — already equals ; they are the same total computed two ways, not two separate energies to add together.
- Guessing that happens at ; the correct crossing is , found by explicitly solving rather than assuming the midpoint.
Ask the tutor: if the kinetic-potential trade-off or the crossing point still feels shaky, ask the AI tutor to plot and together over one full period or to walk through another numerical energy-conservation example.
Why does U equal one half k x squared instead of something involving time directly?
Potential energy is defined through the force, not the clock: for a linear restoring force , integrating gives as a function of position alone. Time only enters indirectly, through — substitute that in and you get . The formula itself works at any instant, for any oscillator obeying Hooke's law, whether or not you know its phase.
Does the constant total energy mean the oscillator never loses speed or amplitude over many cycles?
Only in the idealised, undamped case treated here. Real oscillators lose a little energy each cycle to friction or air resistance, so slowly decreases and the amplitude shrinks — that is damped oscillation, and the rate of energy loss defines the quality factor you meet later. Everything in this article assumes no such loss; is the energy budget of the ideal, frictionless spring-mass system.
Is the energy result specific to a mass on a spring, or does it apply to any SHM system?
It applies to any system obeying with a well-defined effective spring constant. For a spring-mass system is literal; for other SHM systems (like a simple pendulum at small angles) an effective plays the same role, and still gives the total energy in terms of amplitude and angular frequency.