Count the unknowns in a periodic return
Consider the autonomous planar oscillator \(\dot x=(\mu-r^2)x-\omega y,\ \dot y=(\mu-r^2)y+\omega x,\ r^2=x^2+y^2\), with \(\omega>0\). The example uses scaled amplitudes and seconds. Let \(\Phi_T(u)\) denote the state after integrating for time \(T\) from \(u=(x,y)\). A shooting residual is
Determine what could go wrong if a three-component unknown \((x,y,T)\) is handed to a root solver with only these two residuals.
Recover the orbit and identify spurious roots
Use polar variables away from the origin to predict which residual zeros correspond to a single nontrivial revolution.
Work through the solution
Taking \(x\dot x+y\dot y\) gives
The angular numerator \(x\dot y-y\dot x=\omega r^2\) gives
For \(\mu>0\), \(r_*=\sqrt\mu\) is stationary and the period is
Every phase on the circle gives the same periodic orbit, so there is one redundant physical direction. Furthermore \(T=0\) gives zero residual for every point; the origin gives zero residual for every \(T\); and each integer multiple of \(T_*\) solves the return condition on the nonzero circle. A physically informative solve needs an initial estimate in the basin of the desired one-turn branch, positive period and a section choosing a phase. A tiny residual alone discriminates none of these cases.
Explore the related calculation with adjustable inputs. Change the parameters in the experiment on this same project page and compare its output with this part of the derivation.
Differentiate through a complete return
Border the Newton equations with a transverse section
Take \(g(u)=y=0\) with \(x>0\). Derive a Newton matrix including period as an unknown. Why would fixing \(x=\sqrt\mu\) be a bad phase condition at this same starting point?
Work through the solution
Let \(M=D_u\Phi_T(u)\) be the fundamental matrix propagated along the trajectory. Its columns solve \(\dot M=Df(\Phi_t(u))M,\ M(0)=I\). The derivative with respect to final time is the vector field evaluated at the end of the integration. Thus the linearised return and section equations are
At a nontrivial periodic point the vector \(f(u)\) is an eigenvector of \(M\) with eigenvalue one, because starting a little later along the same orbit merely shifts the final point along it. This explains the singularity of \(M-I\) before bordering. At \(u=(\sqrt\mu,0)\) the tangent points along positive \(y\), so
A section fixing \(x=\sqrt\mu\) is tangent to the circle there; its gradient annihilates \(f\). The new row then fails to remove phase degeneracy to first order even though it seems geometrically to locate the rightmost point.
Explore the related calculation with adjustable inputs. Change the parameters in the experiment on this same project page and compare its output with this part of the derivation.
Check stability and conditioning with an exact return map
Compute the transverse multiplier without an eigensolver
Put \(q=1/r^2\) and solve its scalar initial-value problem for \(r_0>0,\mu>0\). Use the result to check one period of numerical propagation for \(\mu=0.1,\ \omega=2\pi\).
Work through the solution
Differentiating gives \(\dot q=2-2\mu q\), hence \(q(T)=1/\mu+(q_0-1/\mu)e^{-2\mu T}\). The return radius on the positive axis after \(T_*\) is therefore
At the fixed radius \(P'(r_*)=e^{-2\mu T_*}\). This also follows by linearising \(\dot r=\mu r-r^3\), whose derivative is \(-2\mu\) at \(r_*\). In the numerical case \(T_*=1.00\) s, \(r_*=0.31623\) and the transverse multiplier is \(0.81873\). The radial shooting residual has slope \(-0.18127\). A radial residual error of \(10^{-5}\) corresponds locally to a radius error of about \(5.52\times10^{-5}\). Near onset, the multiplier approaches unity and the phase condition alone cannot cure the true loss of transverse conditioning. For \(\mu\le0\) the positive finite-amplitude cycle ceases to exist, even though the origin remains an exact residual zero.
Explore the related calculation with adjustable inputs. Change the parameters in the experiment on this same project page and compare its output with this part of the derivation.
Separate time-integration error from the nonlinear residual
The experiment plots the signed one-revolution radial residual for many initial radii. One curve propagates the vector oscillator using classical fourth-order Runge–Kutta (RK4) in Cartesian coordinates. The other uses the analytical radial return. A sign change gives a candidate amplitude. The phase drift at that approximate root, reported separately, catches angular error that comparing final and initial radii alone would miss. Predict how both diagnostics should change when the time steps per turn double.
Choose a convergence test that excludes an equilibrium and a multiple turn
Describe a validation at \(\mu=0.1\) and design a check for a solver that accidentally reports \(T\simeq2\) seconds instead of one.
Work through the solution
Begin on a positive transverse section with radius near 0.316 and period near one second. Impose a positive radius floor only when selecting the intended branch, and check the integrated speed or path length to exclude a stationary solution. Resolve the radial residual with several integration meshes, testing that both return radius and phase error converge. A Newton iteration can drive the residual associated with a coarse integrator nearly to zero while its orbit is still inaccurate. Make integration error appreciably smaller than the desired orbit error after amplification by the near-singular transverse slope.
To check multiplicity, unwrap the trajectory angle or count positive-direction section crossings over the proposed orbit. The desired orbit accumulates \(2\pi\) and returns once; a two-turn solve accumulates \(4\pi\) and its nontrivial multiplier is \(e^{-4\mu T_*}=0.67032\) in this example. Stability can still appear physically sensible for a two-turn return. Counting turns or measuring a shorter repeated return tests something the residual and stability sign cannot. For systems without an analytic polar reduction, an event-defined Poincaré map and independently propagated variational equations provide the corresponding diagnostics.
Explore the related calculation with adjustable inputs. Change the parameters in the experiment on this same project page and compare its output with this part of the derivation.
Further reading
Notebook practice · Newton's method for an unknown covariance square root