arXiv:2609.05337cs.LGSep 2026

Manuscript Offprint

arXiv:2609.05337

Variational Continuation for Double Pendulum Periodic Orbits

Leo Yao, Ziming Liu, Max Tegmark

Leo Yao,* Ziming Liu,† and Max Tegmark‡

Department of Physics, Massachusetts Institute of Technology, Cambridge, Massachusetts and The NSF AI Institute for Artificial Intelligence and Fundamental Interactions (Dated: September 7, 2026)

We present a Hessian-based approach to numerically continue periodic orbits in dynamical systems. A loop (periodic orbit candidate) is parametrized as a Fourier series; a loss function is defined based on the deviation of the loop from the physical differential equations. Unlike previous work relying on hand-derived Jacobians, our method automates the process by leveraging automatic differentiation, a common machine learning technique. The continuation direction can be determined by the flat directions of the loss landscapes (directions with zero eigenvalues), making the search of periodic orbits efficient and guided. Our method is integrator-free, precisely initializes oscillations around unstable fixed points, and efficiently detects orbit family intersections and subharmonic bifurcations. As a demonstration, we present full continuations of periodic double pendulum oscillations from fixed points, showing bifurcations along orbit families and categorizing branches of periodic orbits. In particular, we find periodic orbits where both pendulum masses are never simultaneously at rest, which to our knowledge has been missing in the literature.

I. INTRODUCTION

Finding and analyzing periodic orbits plays a key role in understanding dynamical systems [1–3]. Periodic orbits can not only facilitate calculations of statistical properties of trajectories (e.g., via cycle expansions) [4–6] but also are important due to the inherent simplicity of recurring trajectories. Through both statistical methods and intuition, periodic orbits offer a window through which we can start to understand the dynamics of otherwise difficult-to-interpret physical systems.

Although various numerical methods have been developed to search for periodic orbits [7–10], there does not exist an efficient method to map out the full orbit space. Our contribution is a continuation method that leverages automatic differentiation and Hessian eigendecompositions to efficiently navigate through the space of periodic orbit solutions.

We use the double pendulum to demonstrate our method, as shown in Figure 1. Although the double pendulum is one of the most elementary systems in physics, to the best of our knowledge, we are the first to survey bifurcations in the periodic orbit manifold and visualize them on a Poincaré section. This diagram not only shows bifurcation structures, but also reveals more complicated orbits, particularly those without a moment when both masses are at rest. This simple fact, albeit easily understood, has been missing from the literature.

We briefly review the two basic numerical methods for finding periodic orbits. The shooting method first extracts close recurrences from integrated initial conditions and then converges a periodic orbit via Newton-Raphson descent or other methods [11]. However, a fundamental property of chaotic systems is the exponential diver-

gence of close trajectories, requiring an increasingly precise initial guess for longer orbits or higher-dimensional systems, even close to fixed points. Converging longer orbits becomes exponentially more difficult, or even impossible due to accumulating numerical precision errors. Variations, such as multiple shooting [12], alleviate the convergence issue partially but not fully, and introduce additional complexities of their own.

Another orbit-finding method that avoids convergence issues is the variational method. Instead of varying initial conditions and evolving until obtaining a closed orbit, the initialization is a closed loop that does not necessarily satisfy the equations of motion. The loop is then varied until satisfying the evolution equations, resulting in a periodic orbit. As the loop is adapted to the equations of motion locally, no integration of conditions and subsequent exponential divergences occurs. Variations on this method include choice of loop representation, method of optimization, and method of loop initialization. When introduced by Lan and Cvitanović, the orbit was represented as evenly spaced points in time, with the first derivative given by a four-point approximation [13]. Representations with different spacings, such as a weighting between phase space and time spacing [14], and representations involving Fourier coefficients in time have also been implemented since. Methods of optimization range from Newton descent and other Jacobian-based methods to adjoint-free and other linear algebra methods [15].

In most periodic orbit studies, initializations are made either by perturbing from known fixed points or by extracting close recurrences from a grid of initial conditions. These methods do not incorporate the underlying orbit structure into additional initializations as it is probed, finding solutions first and classifying families of solutions later with human input. Numerical continuation methods have been previously applied in periodic orbit searches, but the majority of attempts have used older integrator methods. Computing the tangent vector in pseudo-arclength continuation has involved integrat-

Figure

FIG. 1. Converged double pendulum periodic orbits in the Poincaré section with θ˙1=0\dot{\theta}_1 = 0; bifurcating branches intersect and extend off continuous orbit families between fixed points. Fixed points circled in black. In-Phase, Out-Phase, Down-Up, and Up-Down start from fixed points and run to period divergences. Bifurcation branches abbreviated with II and OO for base branch, BB for branching at same period, DD for period-doubling, and numbered for uniqueness.

ing the Jacobian [16], a computationally expensive and numerically unstable task for longer orbits, and there has not been recent development on other propagation techniques. It is our motivation to revisit this continuation problem, given great recent advancement of computational tools, especially the technique of automatic differentiation.

The ability to map out the whole periodic orbit spectrum can shed great light on the properties of dynamical systems. The two simplest physical systems demonstrating chaotic behavior and a rich periodic orbit spectrum are the double pendulum and plane-circular restricted three-body problem (PCR3BP). Two Hamiltonian systems each with a four-dimensional state space, both have multiple known fixed points, stable and unstable, and small perturbations from them forming periodic orbits. From periodic orbit family theory [17–20], we expect periodic orbits to be organized into continuous, single-

parameter families. An individual family of orbits cannot bifurcate or arbitrarily conclude; orbit families can only terminate at fixed points, or if the period or a phase space coordinate diverges. Bifurcations in the orbit spectrum are caused by crossings of families at the same and higher multiples of periods, and these crossings also correspond to changes in orbit stability. These connected, one-dimensional families of orbits make dimension-four Hamiltonian systems the perfect application for numerical continuation techniques.

While orbits in the PCR3BP have been extensively studied, most work on the double pendulum has focused on systems with external driving and damping forces. These are studied to model various real-world applications, but lead to non-Hamiltonian systems with perturbed steady states and limit cycles [21–24]. For the pure double pendulum, fixed points (with the pendulum bobs vertically up or down) and small angle peri-

Figure

FIG. 2. An example of a periodic orbit spectrum consisting of multiple orbit families. At period T1T_1, a crossing orbit family creates a bifurcation in the orbit spectrum, shown in purple. At period T2T_2, a period-doubling bifurcation occurs due to a crossing of an orbit family with twice the period, shown in dashed blue.

odic orbits are known, as well as basic numerical investigations, such as the Lyapunov exponent and autocorrelation function [25, 26]. Periodic orbits are occasionally found as a byproduct of other explorations, such as auto-discovering conserved quantities [27], but no systematic search has been conducted. More recently, there has been some research on homoclinic and heteroclinic orbits, which has also yielded orbits around unstable fixed points [28]. However, a full numerical survey of double pendulum periodic orbits has not been conducted in the literature. Orbits are theoretically predicted to form continuous families, but extensions of small angle oscillations to higher amplitudes has not yet been attempted. While individual examples of more complicated periodic orbits exist, no methodical investigations of the orbit spectrum and bifurcations leading to non-stationary periodic orbits have been conducted.

In this paper, we introduce a novel Hessian-based variational continuation method for periodic orbits. In Section II, we represent a periodic orbit loop under a Fourier parametrization and study Hessian eigenvectors of the variational loss. In Section III, we demonstrate the automatic discovery of small oscillations around unstable fixed points, continuation of orbit families with precise loop initializations, and detection of bifurcations in the orbit spectrum. We present full extensions of symmetric periodic orbits from small oscillations to period divergence, examples of orbit family crossings and spectrum bifurcations, and discuss integrating the Hessian method with other orbit-finding techniques. We summarize our conclusions in Section IV.