Physlets run in a Java-enabled browser on the latest Windows & Mac operating systems.
If Physlets do not run, click here for help on updating Java and setting Java security.
Section 12.1: The Classical Harmonic Oscillator
Please wait for the animation to completely load.
We begin by considering the classical simple harmonic motion of a mass on a spring. We have chosen the mass of the ball on the spring to be 0.5 kg and the spring constant to be 2 N/m (position is given in meters and time is given in seconds). Given Hooke's law, we can write the force as Fx = −kx in one dimension. This also allows us to write
Fx = max = m d2x/dt2 = −kx,
which using ω = (k/m)1/2, can be written as
d2x/dt2 = −ω 2x . (12.1)
This equation has the general solution x(t) = Acos(ωt) + Bsin(ωt), where the coefficients A and B are determined by the initial conditions (x0 and v0).
Animation 1 shows the graphs of kinetic and potential energy versus time. They have the form of cos2 (the potential energy) and the form of sin2 (the kinetic energy). We know from simple harmonic motion that if the object is initially displaced from equilibrium with no initial velocity that the solution to the above equation is
x = x0cos(ωt) and v = dx/dt = −ωx0sin(ωt). (12.2)
Given the form of the kinetic energy (T) and the potential energy (V), we have that
T(t) = (kx02/2) sin2(ωt) and V(t) = (kx02/2) cos2(ωt).
Animation 2 shows the graphs of kinetic and potential energy vs. position. The potential energy can be found from
V = −∫ F dx = (1/2)kx2 = (1/2)mω2x2.
Since the total energy is the sum of the kinetic and the potential energies, we have that
E = p2(t)/2m + mω2x2(t)/2. (12.3)
In the animation, the energy starts out all potential, at the equilibrium position the energy is all kinetic, and at maximum compression the energy is all potential again. The classical particle on a spring is never allowed beyond the point where all of its energy is potential (otherwise its kinetic energy would be negative), as it is classically forbidden.
Original script authored by Morten Brydensholt, Wolfgang Christian, and Mario Belloni.