Pendulum Phase Portrait

Drag the initial angle to see how the nonlinear pendulum differs from the linear approximation. The phase portrait reveals the system's topology.

Loading interactive simulation...

The one swing that takes forever 🖖

The separatrix is the one trajectory that never quite closes: it's the path a pendulum traces if released from exactly θ = 180° with zero velocity, teetering on the inverted equilibrium forever before finally swinging down. Because the restoring force vanishes exactly at the top, the pendulum needs infinite time to leave it — which is why the exact period computed here (via the elliptic integral K(m)) diverges as θ0 approaches 180°, even though the linear small-angle formula T = 2π√(L/g) stays perfectly finite. Every trajectory inside the separatrix oscillates back and forth; every trajectory outside it — given enough energy — just keeps rotating over the top instead of swinging.

A map of every possible swing 🖖

Instead of watching a pendulum sway over time, a phase portrait plots its angle against its angular velocity. Each point captures the pendulum's complete state at one instant, and following that point traces a single closed loop — one swing repeating forever. The whole diagram shows every possible motion at once, so a gentle wobble and a wide sweep sit as nested loops on the same picture. The bigger the loop, the more energy the pendulum carries.

The period hides Gauss's fastest average 🖖

The exact period equals 2π√(L/g) / M(1, cos(θ₀/2)), where M is the arithmetic-geometric mean — a number Gauss found by repeatedly replacing two values with their ordinary average and their square-root (geometric) average. The two averages rush together with the digit count doubling each step, so three rounds already nail the period. At θ₀ = 90° this yields T = 1.18 × Tlinear, the same 18% stretch the elliptic integral gives.

Problem solved in full

  1. The period of a 1 m pendulum released from rest at 30° 11 steps

    A 1 m pendulum is released from rest at 30°. Find its period exactly — the textbook formula is not the answer — and then find how close to vertical you would have to release it to stretch one full swing to 10 s. Take g = 9.81 m/s², no damping.

    1. Two quantities fix the natural frequency, and the mass is not one of them: it multiplies every term of the equation of motion and cancels before anything else happens.

    2. Replace sin θ by θ and what remains is a harmonic oscillator, whose period is 2π/ω0. Read what dropped out: θ0. Amplitude-independence is a property of that replacement, not of the pendulum.

    3. Now do it without the replacement. Energy conservation needs no small angle — the kinetic energy at angle θ is exactly the potential energy given up in falling from θ0 — so solve it for the angular velocity instead.

    4. Time is distance over speed, integrated, and a quarter period is the swing from 0 out to θ0. The release angle is back, sitting in the integrand and in the upper limit at once, so the period cannot be independent of it.

    5. The integrand blows up at θ = θ0, and the identity cos θ = 1 − 2sin²(θ/2) shows the blow-up is only a square root of a simple zero: the difference of cosines is a difference of squares. Write k for the sine of half the amplitude, and let φ sweep 0 to π/2 while θ sweeps out to θ0.

    6. The awkward root now cancels against dθ, and what is left is the complete elliptic integral of the first kind — the formula the panel above displays, which writes its argument as sin²(θ0/2), that is k², not k.

    7. K has no elementary closed form, but its integrand does: a binomial series in u = k²sin²φ, whose coefficients are the central binomial ones.

    8. Integrate that series term by term and Wallis' integral hands back the very same cn the binomial expansion just produced. That coincidence is the whole trick.

    9. Each term therefore picks cn up twice, so every coefficient of the period series is a binomial coefficient squared: 1/4, 9/64 and 25/256 are the squares of 1/2, 3/8 and 5/16.

    10. At 30° the half-amplitude is 15°, so k² is only 0.067 and each term is more than 20 times smaller than the one before it. Stop at 3 terms and you get 1.017378, which multiplies out to 2.0409 s; the 4th term is what moves the final digit.

    11. Multiply. This is the exact period the panel prints, and 1.0174 is the ratio printed beside it — both of them reached without evaluating K numerically once.

    Answer

    2.0410 s, where the small-angle formula promised 2.0061 s. The series that got you there has a short reach: its terms carry k2n with k = sin(θ0/2), so as the release angle approaches vertical they stop shrinking and the integral has to be faced on its own terms. There K(k) grows like ln(4/cos(θ0/2)) — the period does diverge at 180°, but only logarithmically, and a logarithm is a cruel thing to have to invert. A 10 s period, about 5 times the small-angle value, demands a release within 0.182° of vertical. Doubling it to 20 s squares the demand: 7.2×10⁻⁵ degrees, roughly 2500 times tighter. The pendulum does not buy that time by drifting slowly around the whole orbit — it spends almost all of it inside that last fraction of a degree.

References (2)

Example problems