Equation of motion in Cartesian coordinates
Units are chosen so that the mass and gravity both equal one. The vertical coordinate points up, and the spring force always points along the line to the pivot.
M088 · One spring, two kinds of motion
Can a bounce lend its energy to a swing? Yes, when the bounce frequency is close to twice the swing frequency. Then a tiny sideways nudge grows: energy flows from stretching into swinging, then back again, over and over. The total energy stays nearly constant through the exchange.
Stretch the spring, give the bob a small nudge and let go. Tune the ratio of the two small-amplitude frequencies and watch energy pass back and forth between stretching and swinging. Add a sideways launch to see the bob move in three dimensions.
Physics tutorial
BackgroundA mass hanging on a spring can bounce along the spring and swing in two sideways directions. Once the displacement is no longer tiny, gravity couples these motions.
Why it mattersYou can watch energy move from one motion to another with no motor driving it and no damping.
Start with the essentials
Units are chosen so that the mass and gravity both equal one. The vertical coordinate points up, and the spring force always points along the line to the pivot.
The equilibrium length with the mass hanging is fixed at one. These frequencies come from the linearized equations; they are not measured from the nonlinear motion.
The spring potential is written about the loaded equilibrium, so it already includes the part of gravity that acts along the spring.
This split of the total energy is exact and never negative. The swing part holds the sideways kinetic energy and the gravity term that depends on the spring's direction. Neither part is conserved on its own.
It stays constant because the spring force is central and gravity exerts no torque about the vertical axis.
Typical misconceptionIf I release it exactly vertically, it will start swinging sooner or later.
Better mental modelA motion that starts exactly vertical stays exactly vertical, because nothing in it breaks the symmetry. Use the tilt or sideways control to give it a small sideways start.
Typical misconceptionWhen the swing grows, energy is being added to the system.
Better mental modelThe energy comes from the bounce. This model is free and conservative, with no motor and nothing that varies the stiffness in time.
Choose Resonant exchange and press Play. Scrub through the whole record.
What to observe: The orange stretch bar shrinks while the blue swing bar grows. Then the energy flows back.Choose Detune the spring. It starts with the same stretch and tilt.
What to observe: The sideways motion grows much less. The loaded equilibrium length stays the same.Choose Perfectly vertical.
What to observe: The bob bounces straight up and down in exact simple harmonic motion, and the swing energy stays at zero.Choose Spatial launch and compare the front and top views.
What to observe: The trail leaves the starting plane, and the angular momentum about the vertical axis stays constant.Turn on Use half timestep and compare the largest recorded energy error.
What to observe: The second-order integrator gives a smaller energy error, and the physical starting state does not change.