Sub topic 6
Kinetic, potential and total energy of an oscillator
This chapter assumes you know the SHM equation x = A sin(ωt + φ), the velocity relation v = ω√(A² − x²), and the work-energy ideas of kinetic and potential energy. You also need to read a sine or cosine graph. The goal is to treat an oscillator as an energy exchange between two stores, and to use that view to solve NEET problems quickly.
The core idea
An ideal oscillator has no friction and no driving force. Its total mechanical energy stays constant. The motion consists of energy moving back and forth between two forms:
- Kinetic energy (KE) is the energy of motion. It is largest at the mean position (x = 0), where the speed is greatest.
- Potential energy (PE) is the energy stored in the restoring mechanism, such as a stretched spring. It is largest at the extreme positions (x = ±A), where the object momentarily stops.
At each extreme all the energy is potential. At the mean position all of it is kinetic. In between, the energy is shared.
Deriving the three energies
Start with the restoring force F = −kx. The work needed to displace the oscillator from the mean position to x is stored as potential energy. Take PE = 0 at x = 0:
PE = ½kx²
Because k = mω², the same quantity can be written as:
PE = ½mω²x²
For kinetic energy, use v = ω√(A² − x²):
KE = ½mv² = ½mω²(A² − x²) = ½k(A² − x²)
Add the two:
E = KE + PE = ½k(A² − x²) + ½kx² = ½kA² = ½mω²A²
The x terms cancel, so the total does not depend on position. It depends only on the spring constant (or ω² times mass) and the square of the amplitude.
| Quantity | Formula in terms of x | Value at x = 0 | Value at x = ±A |
|---|---|---|---|
| Potential energy | ½kx² | 0 | ½kA² |
| Kinetic energy | ½k(A² − x²) | ½kA² | 0 |
| Total energy | ½kA² | ½kA² | ½kA² |
Energy as a fraction of the total
Dividing by E gives two results that you will use constantly:
- PE/E = x²/A²
- KE/E = 1 − x²/A²
At x = A/2, PE is ¼ of the total and KE is ¾. At x = A/√2 (about 0.707A), both are ½ of the total. In NEET problems that say "KE equals PE", this is the position they mean.
Variation with time
Take x = A sin(ωt) with φ = 0, so v = Aω cos(ωt). Then:
- PE = ½kA² sin²(ωt) = E sin²(ωt)
- KE = ½mA²ω² cos²(ωt) = E cos²(ωt)
Three facts follow from these expressions.
- Both energies are never negative, because they are squares.
- Each energy oscillates between 0 and E. Since sin² and cos² have period π in the argument ωt, the energies repeat every T/2. Their angular frequency is 2ω, twice the frequency of the displacement.
- KE and PE are always out of step. When one is at its maximum, the other is zero.
The displacement x changes sign over a full period T, but the energies never do. That is why their frequency is doubled.
KE and PE are equal when sin²(ωt) = cos²(ωt), which happens at ωt = 45°, 135°, and so on. That is every T/4, starting from the extreme position or the mean position. The oscillator passes through x = ±A/√2 four times per cycle.
Time averages and position averages
The average of sin² or cos² over a full cycle is ½, so:
- Time-average KE = time-average PE = E/2 = ¼kA²
Averaging over displacement gives a different answer. Taking x as uniformly distributed between −A and +A, the average of x² is A²/3, so:
- Position-average PE = E/3
- Position-average KE = 2E/3
Graph shapes
Two graphs appear often in NEET questions.
Energy against displacement. PE is an upward parabola, ½kx², with its minimum at x = 0. KE is a downward parabola, ½k(A² − x²), with its maximum at x = 0. Total energy is a horizontal line at ½kA². The parabolas cross the line at x = ±A, and they cross each other at x = ±A/√2.
Energy against time. KE and PE are sine-squared curves that sit between 0 and E. They are mirror images of each other and have period T/2. The total is again a horizontal line.
Worked example with the spring-mass system
A block of mass 0.5 kg is attached to a spring with k = 200 N/m and oscillates with amplitude 0.1 m. The code below follows the numbers from the energy relations.
import math
m = 0.5 # kg
k = 200.0 # N/m
A = 0.1 # m
omega = math.sqrt(k / m) # 20 rad/s
T = 2 * math.pi / omega # about 0.314 s
v_max = A * omega # 2.0 m/s
E_spring = 0.5 * k * A**2 # 1.0 J
E_kinetic = 0.5 * m * v_max**2 # 1.0 J
print(round(T, 3), v_max, E_spring, E_kinetic)The total energy ½kA² is 1.0 J, and the maximum kinetic energy ½mv_max² is also 1.0 J. This confirms that all the energy is kinetic at the mean position.
Now find the energies at x = 0.06 m.
- PE = ½ × 200 × (0.06)² = 0.36 J
- KE = E − PE = 1.0 − 0.36 = 0.64 J
Check using the speed: v = ω√(A² − x²) = 20 × √(0.01 − 0.0036) = 20 × 0.08 = 1.6 m/s. Then ½mv² = ½ × 0.5 × 2.56 = 0.64 J, which matches.
Checking conservation numerically
The next script samples one full cycle at eight equally spaced times. It prints x, KE, PE and their sum.
import math
m = 0.5
k = 200.0
A = 0.1
phi = 0.0
omega = math.sqrt(k / m)
T = 2 * math.pi / omega
print("t/T x(m) KE(J) PE(J) total(J)")
for i in range(9):
t = i * T / 8
x = A * math.sin(omega * t + phi)
v = A * omega * math.cos(omega * t + phi)
ke = 0.5 * m * v**2
pe = 0.5 * k * x**2
print(f"{i / 8:.3f} {x:8.4f} {ke:6.3f} {pe:6.3f} {ke + pe:7.3f}")The total column reads 1.000 in every row. KE and PE each reach 0.500 at t/T = 0.125, 0.375, 0.625 and 0.875, which are the T/4 spacings predicted above. They also repeat twice per cycle, so their period is T/2.
Energy in a simple pendulum
For a pendulum of length L displaced by an angle θ, the bob rises by h = L(1 − cos θ). For small angles, 1 − cos θ ≈ θ²/2, so h ≈ Lθ²/2. With arc displacement x = Lθ:
PE = mgh ≈ mg x²/(2L) = ½(mg/L)x²
This has the form ½keff x² with keff = mg/L. The same energy formulas then apply, with ω² = g/L. The total energy is ½mω²A², where A is the amplitude measured as arc length. The speed at the lowest point is vmax = Aω. Equivalently, vmax = √(2ghmax), where hmax is the maximum height gain of the bob. This follows from energy conservation without any small-angle assumption.
Edge cases that test the concept
Changing the mass at different points
Suppose a block on a horizontal spring is oscillating, and a lump of putty of mass m′ drops onto it and sticks.
- At the extreme position (v = 0). The putty adds mass but no momentum. The amplitude A stays the same, so the total energy ½kA² is unchanged. The period increases because T = 2π√((m + m′)/k).
- At the mean position (v = v_max). Momentum is conserved horizontally, so the speed drops to mv/(m + m′). The kinetic energy falls, and so does the total energy. The new amplitude is smaller: A′ = A√(m/(m + m′)).
The mass does not appear in E = ½kA². This is why the extreme-position case leaves the energy unchanged. In the mean-position case, the energy changes because the amplitude changes. The amplitude changes because the speed changed.
Changing the amplitude
If the amplitude doubles, the total energy becomes four times larger and the maximum speed doubles. If the amplitude is scaled by a factor n, then E scales by n² and v_max scales by n. The period does not change, because T does not depend on A in SHM.
Damping
In a real system, friction or air resistance removes energy. The amplitude falls, and E = ½kA² falls with the square of the amplitude. This chapter covers the ideal case where E is constant. Damped oscillations are treated in a later chapter.
Common errors
- Using PE = ½kA² at every position. That is the total energy. PE at displacement x is ½kx².
- Forgetting that the energy frequency is 2ω. A question asking how many times KE reaches its maximum in one period has the answer 2, not 1.
- Measuring x from the wrong point. The formulas need x from the equilibrium position.
- Mixing up time average and position average. Both are E/2 only for the time average of KE and PE.
- Assuming mass changes the total energy. E = ½kA² depends on k and A. Mass appears only through ω and v_max.
- Applying the SHM energy formulas to large-angle pendulum swings. Use conservation of mechanical energy instead.
Quick decision guide
| Given | Needed | Use |
|---|---|---|
| A and k | Total energy | E = ½kA² |
| x, A, k | PE | ½kx² |
| x, A, k | KE | ½k(A² − x²) |
| Fraction of energy | Position | x = A√(PE/E) |
| KE = PE | Position | x = ±A/√2 |
| A and ω, m | Maximum speed | v_max = Aω, or ½mv_max² = E |
Exercise
A particle of mass 0.2 kg performs SHM with amplitude 0.05 m and period 0.4 s. (a) Find the total energy. (b) At what displacement is the kinetic energy three times the potential energy? (c) What is the kinetic energy at that displacement? Use π² ≈ 9.87.
Show answer
(a) ω = 2π/T = 2π/0.4 = 5π rad/s, so ω² = 25π² ≈ 246.7. E = ½mω²A² = ½ × 0.2 × 246.7 × (0.05)² = 0.0617 J, about 0.062 J. (b) KE = 3PE means PE = E/4, so x²/A² = ¼ and x = ±A/2 = ±0.025 m. (c) KE = ¾E = 0.75 × 0.0617 ≈ 0.046 J.
Exercise
A block on a horizontal spring oscillates with amplitude A and total energy E. When the block passes through the mean position, a lump of putty with the same mass as the block lands on it and sticks. What are the new amplitude and total energy? How would your answers change if the putty landed at the extreme position instead?
Show answer
At the mean position, momentum is conserved. The mass doubles, so the speed halves. The new kinetic energy, and therefore the new total energy, is E/2, since ½(2m)(v/2)² = ¼mv². Using E = ½kA′², the amplitude becomes A′ = A/√2. If the putty lands at the extreme position, the speed is zero and no momentum is involved. The amplitude stays A and the energy stays E. Only the period changes, increasing by a factor of √2.
Exercise
A body in SHM has period T. What is the period of its kinetic energy as a function of time, and how many times in one period does the kinetic energy equal the potential energy?
Show answer
The kinetic energy is E cos²(ωt), which repeats every T/2. KE equals PE at ωt = 45°, 135°, 225° and 315° within one period, so four times per period, once every T/4.