Definition · Energy of the oscillatorFor the mass on a spring with position x and velocity v = x′, the energy is E = ½m·v² + ½k·x²: kinetic energy plus the energy stored in the spring.
Its starting value is E₀ = ½m·v₀² + ½k·x₀², an exact fraction when the mass, the spring constant and the start are fractions.
The factor ½ appears in both terms and it is the first thing to check in any answer. Without it the two terms are still in the right ratio, but the number is twice the true energy.
Theorem · Energy is conserved without dampingIf m·x″ + k·x = 0, then E = ½m·v² + ½k·x² is constant along every solution: E(t) = E₀ for all t.
With v = x′, the derivative of ½m·v² is m·v·v′ = m·v·x″ by the chain rule, and the derivative of ½k·x² is k·x·x′ = k·x·v.
So E′ = v·(m·x″ + k·x). By the equation the bracket is 0, so E′ = 0 and E does not change. With a damper the bracket is −c·x′ and E′ = −c·v², which is never positive: the energy only falls, and it is the subject of the next module.
□
The ellipse
Divide ½m·v² + ½k·x² = E₀ by E₀. The result is x²/(2E₀/k) + v²/(2E₀/m) = 1. The first denominator is exactly A², because A² = 2E₀/k, and the second is A²·k/m = (A·ω₀)². So the path is
x²/A² + v²/(A·ω₀)² = 1
semi-axis in x: A semi-axis in v: A·ω₀
The mass goes round it clockwise: where v > 0, at the top, x is increasing, so the point moves to the right. The shape of the ellipse is set by ω₀ alone, and its size by the start.
Example · The first startWith m = 1, k = 4, start (3, 8): E₀ = ½·64 + ½·4·9 = 32 + 18 = 50. The semi-axes are A = 5 and A·ω₀ = 10.
Check the ends: at x = 5 and v = 0 the energy is ½·4·25 = 50, and at x = 0 and v = 10 it is ½·100 = 50. Both are E₀, so both points are on the ellipse.
Example · A heavier mass, released from restWith m = 2, k = 5, start (1, 0): E₀ = ½·2·0 + ½·5·1 = 5/2. The amplitude squared is A² = 2E₀/k = 1, which is x₀² as it should be for a release from rest. The ellipse is tall and thin or short and wide according to ω₀.
The mass does not appear in E₀ for a start at rest. It appears only in how fast the energy is exchanged.
Everything the previous lesson computed about a swing can now be read off the ellipse. The amplitude is where it crosses the position axis, the peak speed is where it crosses the velocity axis, and the area it encloses, π·A·(A·ω₀) = 2π·E₀/√(mk), is fixed by the energy, the mass and the spring.