Foundations to Frontier
Tests
A. Mathematical Foundations › A9 Differential Equations and Dynamical Systems

Phase Portraits, Fixed Points and Stability

For nonlinear systems we rarely have formulas, but we can still understand everything qualitatively by drawing the phase portrait: the flow of all trajectories in state space. This topic shows how to find fixed points, linearize with the Jacobian, classify each point (node, spiral, saddle, center), and when that classification is trustworthy (Hartman–Grobman). It also covers nullclines, conserved quantities, basins of attraction and limit cycles. You will analyse the pendulum and predator–prey models, then explain the intermediate-axis theorem: why a spinning spacecraft or wing nut is stable about two axes but flips about the third.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Maps of motion

A pendulum can hang still at the bottom or balance perfectly at the top. Both are resting points, but the top one is fragile: the slightest nudge and it falls. A phase portrait is a map that shows, from every starting state, where the system goes next. Resting points show up as special dots. Some pull everything in (stable), some push things away (unstable), and some do both from different directions (saddles).

Phase portraits: click to launch trajectories
(-6.28, 0.00): stable spiral(-3.14, 0.00): saddle(0.00, 0.00): stable spiral(3.14, 0.00): saddle(6.28, 0.00): stable spiral
Hanging equilibria (multiples of 2π) are stable spirals for b > 0 and centers for b = 0; inverted ones are saddles. With b = 0 the big orbits that go over the top are full rotations.
Why engineers care

Before designing a controller you need to know which states are naturally stable and which need active help: a hovering quadrotor, a balancing legged robot, a spinning satellite. In 1958 Explorer 1, the first US satellite, began tumbling within hours because energy loss in its flexible antennas destabilized its spin. That was a lesson in stability analysis learned in orbit.

📝 Quick check (Level 0)
0/3 answered
  1. 1. A pendulum balanced upside down is…
  2. 2. A phase portrait shows…
  3. 3. A stable fixed point…

Level 1: Beginner

★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.

Fixed points and nullclines

For x˙=f(x)\dot x = f(x), a fixed point satisfies f(x∗)=0f(x^*) = 0. In 2-D, the nullclines x˙1=0\dot x_1 = 0 and x˙2=0\dot x_2 = 0 are curves where the flow is purely vertical or horizontal. Fixed points sit where they cross.

Stability

  • Lyapunov stable: nearby solutions stay nearby.
  • Asymptotically stable: they also converge to the fixed point.
  • Unstable: some nearby solutions leave.

Example: the pendulum

θ¨=−sin⁡θ−bθ˙\ddot\theta = -\sin\theta - b\dot\theta. The fixed points are θ=kπ\theta = k\pi. Hanging down (θ=0\theta = 0) is stable. Inverted (θ=π\theta = \pi) is unstable.

📝 Quick check (Level 1)
0/3 answered
  1. 1. Fixed points are where…
  2. 2. Nullclines intersect at…
  3. 3. The pendulum's fixed points are θ =

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.

Linearization

Near x∗x^*, ξ˙≈Jξ\dot\xi\approx J\xi with J=∂f/∂x (x∗)J = \partial f/\partial x\,(x^*). Classify by the eigenvalues of JJ, exactly as in a9-2.

Hartman–Grobman: if x∗x^* is hyperbolic (no eigenvalue with zero real part), the nonlinear flow near x∗x^* is topologically equivalent to the linear one. Centers (purely imaginary eigenvalues) are not decided by linearization. Nonlinear terms may turn them into spirals, unless a conserved quantity keeps orbits closed.

Conserved quantities

If H(x)H(x) satisfies H˙=∇H⋅f=0\dot H = \nabla H\cdot f = 0, trajectories lie on level sets of H. The undamped pendulum has energy 12θ˙2−cos⁡θ\frac12\dot\theta^2 - \cos\theta. Lotka–Volterra has H=dx−cln⁡x+by−aln⁡yH = dx - c\ln x + by - a\ln y, so its orbits are closed.

Limit cycles and basins

A limit cycle is an isolated closed orbit, e.g. the Van der Pol oscillator. Poincaré–Bendixson says a bounded 2-D trajectory with no fixed points in its limit set approaches a closed orbit. The basin of attraction of a stable point is everything that flows to it. Saddle stable manifolds form the boundaries.

🐍 Exercise 1: fixed points, Jacobians and classification
Find fixed points with Newton's method and compute Jacobians numerically. Classify the damped pendulum's equilibria, confirm decay near the stable one and escape along the unstable eigenvector, and verify that the Lotka–Volterra center is held closed by a conserved quantity.
📝 Quick check (Level 2)
0/3 answered
  1. 1. Hartman–Grobman applies when the fixed point is…
  2. 2. Lotka–Volterra orbits are closed because…
  3. 3. The Van der Pol oscillator's closed orbit is a…

Level 3: Advanced

★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.

Pendulum Jacobian

J=(01−cos⁡θ∗−b)J = \begin{pmatrix}0 & 1\\-\cos\theta^* & -b\end{pmatrix}. At θ∗=0\theta^* = 0, det⁡=1\det = 1 and tr⁡=−b\operatorname{tr} = -b, so it’s a stable spiral for 0<b<20 < b < 2. At θ∗=π\theta^* = \pi, det⁡=−1\det = -1, so it’s a saddle. ∎

Lotka–Volterra conservation

H˙=(d−c/x)x˙+(b−a/y)y˙=(d−c/x)x(a−by)+(b−a/y)y(dx−c)=0\dot H = (d - c/x)\dot x + (b - a/y)\dot y = (d - c/x)x(a - by) + (b - a/y)y(dx - c) = 0. ∎

Intermediate-axis theorem

Euler’s equations for a torque-free body: I1ω˙1=(I2−I3)ω2ω3I_1\dot\omega_1 = (I_2 - I_3)\omega_2\omega_3 and cyclic. Linearize about spin Ω\Omega about axis kk. The transverse components obey ξ¨=−c ξ\ddot\xi = -c\,\xi with

c=(Ik−Ii)(Ik−Ij)IiIjΩ2c = \frac{(I_k - I_i)(I_k - I_j)}{I_iI_j}\Omega^2

If IkI_k is the largest or smallest, c>0c > 0 (center). If IkI_k is intermediate, c<0c < 0 (saddle, exponential growth). ∎ With energy dissipation, only the maximum-inertia axis is truly stable (the major-axis rule). That explains Explorer 1.

Exercise 3.1: Lotka–Volterra coexistence point for a = 1, b = 0.5, c = 0.75, d = 0.25

(c/d,a/b)=(3,2)(c/d, a/b) = (3, 2). The Jacobian there has eigenvalues ±iac=±0.866i\pm i\sqrt{ac} = \pm0.866i.

📝 Quick check (Level 3)
0/3 answered
  1. 1. At θ = π, the damped pendulum Jacobian has det =
  2. 2. Spin about the intermediate principal axis is…
  3. 3. With energy dissipation, the only stable spin axis is…

Level 4: Expert

★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.

The tumbling spacecraft (Dzhanibekov effect)

In 1985 cosmonaut Vladimir Dzhanibekov noticed a wing nut flipping periodically as it spun in microgravity. It was spinning about its intermediate principal axis. With principal moments (1, 2, 3) kg·m² and spin 2 rad/s, the linearized perturbation about the intermediate axis grows at 1.15 s⁻¹. A 0.001 rad/s disturbance flips the spin direction within about 8 s, and keeps flipping. Spins about the major or minor axis stay put. RK4 conserves angular momentum and energy to 1e−9, so the flips are physics, not numerical error. Spacecraft designers keep spin-stabilized vehicles spinning about the major axis, and add dampers to make it attracting.

🐍 Exercise 2 (research): intermediate-axis instability
Implement Euler's rigid-body equations. Derive the perturbation constant c for spin about each principal axis. Simulate the intermediate-axis flips and the stable major and minor axes, and check conservation of |L| and energy.

Phase-space analysis in AI, robotics and aerospace

  • Spacecraft attitude: spin stability, nutation dampers and the major-axis rule (Explorer 1 lesson; Kaplan, 1976).
  • Legged robots: limit cycles of passive dynamic walkers (McGeer, 1990) and Poincaré-map stability of gaits.
  • Control design: linearize at fixed points for LQR, and use basins of attraction to judge controller validity regions (Tedrake, Underactuated Robotics).
  • Neural networks: fixed points and attractors of RNNs; analysing trained RNNs by linearizing around slow points (Sussillo and Barak, 2013).

References

  1. S. Strogatz (2015). Nonlinear Dynamics and Chaos, 2nd ed. Westview. Ch. 5–7.
  2. M. Hirsch, S. Smale, R. Devaney (2013). Differential Equations, Dynamical Systems, and an Introduction to Chaos, 3rd ed. Academic Press.
  3. P. Hartman (1960). “A lemma in the theory of structural stability of differential equations.” Proc. AMS, 11(4).
  4. M. Kaplan (1976). Modern Spacecraft Dynamics and Control. Wiley.
  5. M. Ashbaugh, C. Chicone, R. Cushman (1991). “The twisting tennis racket.” J. Dynamics and Differential Equations, 3(1).
  6. T. McGeer (1990). “Passive dynamic walking.” IJRR, 9(2).
  7. R. Tedrake (2023). Underactuated Robotics. MIT course notes, underactuated.mit.edu.
  8. D. Sussillo, O. Barak (2013). “Opening the black box: low-dimensional dynamics in high-dimensional recurrent neural networks.” Neural Computation, 25(3).