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.
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.
Watch a stretched spring turn its bounce into a swing. Drag its release point and tune the frequency ratio to see energy exchange in three dimensions.
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.
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.
A relative phase that stays in a bounded range indicates two-to-one phase locking during this record. These geometric oscillator phases are undefined when a mode vanishes; rotations over the pivot are excluded.
An initially horizontal unit tangent follows the derivative of the same Verlet map and is normalized every half time unit. Its finite-time growth depends on the observation window. A perfectly vertical periodic orbit can also be transversely unstable.
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 Two beats for one swing, then Sensitive motion. Open the diagnostics and compare the relative phase, section and growth as you change the frequency ratio.
What to observe: The locked example revisits two section points and keeps a bounded phase. The sensitive example scatters across the section and keeps appreciable growth over a longer window. These are finite-window observations.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.Primary sources: Lynch & Houghton · swinging spring · Boscolo et al. · spring modes · Skokos · tangent growth