A flight simulator integrates nonlinear equations, but nearly everything we can prove about stability is linear: eigenvalues, and , the factor . In 7.3 Phase Portraits & the Trace–Determinant Plane we classified completely. This lesson is the bridge back to the real equations. Near an equilibrium a smooth system looks linear (the zoom-in idea of 2.2 Linearization, the Chain Rule & the Jacobian), so the Jacobian there is a matrix and the whole plane applies. We find where it works, where it fails (centers), and how to compute it: Newton’s method finds the equilibria and an eigenvalue test classifies them.
Transcript
- Two competing species: x prime equals x times three minus x minus two y, and y prime equals y times two minus x minus y. The nullclines are x equals zero, x plus two y equals three, y equals zero, and x plus y equals two. They meet at four equilibria: zero zero, zero two, three zero, one one.
- Between nullclines each sign is fixed. Below both lines, x prime and y prime are positive: arrows point up and right. Above both, both are negative. Between the lines the arrows point up-left or down-right.
- Write x equals x star plus u and expand in a Taylor series. Drop the remainder, of order size squared, and u prime equals J u, with J the Jacobian. Zoom in on the saddle, and the nonlinear flow merges with the linear one.
- At zero zero, T is five, D is six, eigenvalues three and two: an unstable node. At three zero, minus four, three: a stable node. At zero two, minus three, two: a stable node. At one one, minus two, minus one, eigenvalues minus one plus or minus root two: a saddle.
- The story is bistable. Either species alone is stable; coexistence at one one is a saddle. From two two the flow ends at zero two; from two, one point five, at three zero. The saddle's stable curve divides the basins, a global fact.
- Hartman Grobman, stated, not proved. Near a hyperbolic equilibrium, with no eigenvalue of real part zero, a continuous change of coordinates carries nonlinear orbits onto those of u prime equals J u. Saddles stay saddles; sinks and sources stay. It can bend angles. A center, or a zero eigenvalue, is where linearization is silent.
- Add cubic terms with coefficient a. At the origin the Jacobian is the same for every a: T zero, D one, a center. But r prime equals a r cubed. From one, zero to t equals four, r is 0.74536 for a minus 0.1, one for a zero, 2.23607 for a plus 0.1.
- The pendulum has equilibria at n pi, zero, with trace zero and determinant cosine x star. At the origin the eigenvalues are plus or minus i: the linearization cannot tell. But the energy, y squared over two minus cosine x, is conserved, so level sets are closed ovals: a true center.
- At pi, zero the eigenvalues are plus and minus one: a saddle. Its energy is one, and E equals one separates oscillation from rotation. Start on it at zero, two and the orbit creeps toward pi: RK4 gives pi minus x of ten equals 1.82 times ten to the minus four.
- Halving the offset d divides the species error at t equals one by 3.86, 3.92, 3.96, tending to four: order two. The pendulum error drops by 8.00 each time: order three, since sine x minus x has no quadratic term.
- Newton's method: x n plus one equals x n minus J inverse F. From one point five, point five, the errors against one one are 1.77 times ten to the minus one, then minus two, 2.16 times ten to the minus four, 3.29 times ten to the minus eight, and 7.1 times ten to the minus sixteen: digits double.
- Newton fails if J is singular, and finds roots, not stable roots; the eigenvalues of J decide stability. A real part of zero is inconclusive, opposite signs a saddle, equal signs a sink or source. Aircraft stability linearizes about a trim state; the fluid form is from memory.
- Recap. Solve f equals g equals zero, take the Jacobian, classify by T and D. Hartman Grobman covers hyperbolic points; centers can lie, as r prime equals a r cubed shows. Errors shrink like d squared, d cubed for the pendulum. Next: conservative systems and Lyapunov functions.
Equilibria and nullclines
An autonomous planar system is , . An equilibrium satisfies : the velocity vanishes and the state sits still. The nullclines are the curves (where , so arrows are vertical) and (where , arrows horizontal). Equilibria are exactly the points where an -nullcline meets a -nullcline, and between nullclines each of and keeps one sign, so the arrows keep one quadrant of direction.
Example: two competing species. Take
Each species limits itself and hurts the other. The -nullclines are and the line ; the -nullclines are and . Intersect them in pairs:
- with : ; with : ;
- with : ; the two lines with each other: .
Four equilibria. In the first quadrant the two lines cross at and cut it into four regions. Below both lines both and are positive (arrows point up and right); above both, both are negative; between them the arrows point up-left or down-right. Block A of the lab cell prints these sign patterns and the sim draws both nullclines (one color for , another for ) over the arrows.
Linearization: the Jacobian
Let be an equilibrium and write , . Since is constant, . Expand in a two-variable Taylor series about the equilibrium, where :
with the partial derivatives evaluated at and the remainders made of terms of order and higher. Dropping them gives the linearization
is the Jacobian of the vector field, the matrix of its tangent map from 2.2 Linearization, the Chain Rule & the Jacobian. The one-variable version, 3.8 Autonomous Equations, Equilibria & Stability, is the same statement: , stable if . Now the eigenvalues, and of give the portrait from the last lesson.
For the competing species, . At each equilibrium (block A, and the sim’s readout):
| Equilibrium | Type | ||||
|---|---|---|---|---|---|
| unstable node | |||||
| stable node | |||||
| stable node | |||||
| saddle |
The story is bistable. Either species alone is a stable state, and coexistence is a saddle, so it is unstable. Which species wins depends on which side of the saddle’s stable curve you start: the sim’s default seed ends at , while ends at (click it). Linearization decides local questions only; the basins are a global fact it cannot see.
When the linearization is right, and when it lies
An equilibrium is hyperbolic if no eigenvalue of has real part zero.
The change of coordinates is only continuous, so it can bend angles: it preserves “everything flows in”, not exactly how it winds. When the eigenvalues are real and distinct, or genuinely complex, smooth terms also keep node versus spiral (from memory). The borderline (star or degenerate node) is where the finer shape can change (from memory), and the real failures are the non-hyperbolic cases: a center (, ) and a zero eigenvalue (), where the linearization is silent.
Why it fails there is a competition of sizes. The remainder is of order or , tiny next to unless has no net radial push. With the linear part grows or shrinks the radius at a rate proportional to and wins near the equilibrium. With it contributes nothing to , and the nonlinear term decides.
A center that is not a center. Consider
At the origin for every : , , , a center. But with we get , so
(The angle moves at the constant rate .) The sign of chooses the fate. Starting from and integrating with RK4 to (block B; the sim’s readout shows the same):
| measured | formula | |
|---|---|---|
For the origin is a stable spiral, for an unstable one, and is the true center. The linearization is identical in all three. The center lies on the line , and the nonlinear terms act like a perturbation of unknown sign.
The nonlinear pendulum
Write as , . Equilibria: and , so . The Jacobian is , always, .
- : , . Non-hyperbolic: the linearization cannot tell. But the energy satisfies , and near the origin , so its level sets are closed ovals. So it is a true center, thanks to conservation and not to the linearization (energy methods are the subject of 7.8 Conservative Systems & Lyapunov Functions).
- : , with eigenvectors and . A saddle, and hyperbolic, so it persists.
The saddle sits at energy . Orbits with oscillate, orbits with rotate all the way round, and separates them: , i.e. , the separatrices. Start exactly on one, , where . The orbit creeps toward along the stable direction and never reaches it in finite time: with on this curve, , so (the eigenvalue ). RK4 gives (block C), consistent with from the exact solution . In the sim the default seed is this orbit; click just below and just above it and the readout flips between oscillation and rotation, with printed. Because is an angle, the picture repeats every (the true phase space is a cylinder).
How good is the linearization?
Compare the nonlinear solution from with the linear solution from at , with the offset in the direction (block D; the sim’s inset prints this error, so set and select the equilibrium):
| error, species at | error, pendulum at | |
|---|---|---|
Halving divides the species error by (tending to ) and the pendulum error by each time. So the observed orders are and . The mechanism is the remainder: the species equations contain and terms, so and over a fixed time the error is . The pendulum has , odd in , so no quadratic term exists and . So the error vanishes faster than the distance, but at it is already visible in the third digit.
Numerics: Newton’s method and the classifier
To find equilibria we solve with . Linearize at the current guess: , set it to zero, and step:
(In code, solve the system; never form the inverse.) It is the same Jacobian that classifies the equilibrium. For the species from the errors against are (block E):
| step | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| error |
Correct digits go : they roughly double each step, which is quadratic convergence, with (step 5 is at rounding level). Two cautions. It fails when is singular, e.g. from , where . And it finds roots, not stable roots: stability is a separate question answered by the eigenvalues of at the answer. The sim does exactly this: Newton from a grid of starts, remove duplicates, classify each. For the classifier: compute ; if some tol the answer is “inconclusive”; otherwise opposite signs mean saddle, and equal signs mean a sink or source, a spiral when the imaginary part is nonzero.
What to try. (1) Competing species: the readout lists four equilibria; select and see , , saddle. Click then . (2) Set and compare the inset error with the table. (3) Pendulum: select for the saddle, and , flagged non-hyperbolic. (4) Center that is not a center: , , and read .
Computing it
Now build the whole pipeline: a numerical Jacobian, Newton, and the classifier.
Concept checks
Problems
Classify the equilibria of , .
Show worked solution
gives and . . At : , a saddle. At : , , , : inconclusive. The invariant is conserved (the sim shows it unchanged along the orbit), and has a minimum at , so it is a true center. (The conservation of is checked in the sim; the algebra is by hand.)
Show that , has a stable spiral at the origin although its linearization is a center.
Show worked solution
(the cubic terms have zero derivative at ), so . Then . Since (equality on the diagonals), : the radius strictly decreases while the angle turns, so it spirals in. (By hand; not in the sim, which does the and versions.)
For the competing-species system take . Compute , and the Newton step.
Show worked solution
. . Solve : subtracting the rows, , so , and gives . So . Block E prints the next ones, converging to the saddle with errors , , , in order (step 5: ). Note that Newton from lands on the unstable equilibrium, although the flow from goes to .
Key Takeaways
- Equilibria solve ; the nullclines and cut the plane into regions with a fixed sign pattern of . For the species system they meet at .
- The linearization is , from the Taylor expansion with remainder ; classify by , exactly as in the last lesson. The species types: two stable nodes, one unstable node, and the saddle with .
- Hartman–Grobman: at a hyperbolic equilibrium (no ) the topology of the flow matches the linearization. Centers and are non-hyperbolic: the linearization is silent.
- With the same center gives : after the radius is for and for .
- Pendulum: is a center because of energy conservation, is a saddle with , and separates oscillation from rotation (the separatrix orbit reaches ).
- Measured, not assumed: the linearization error at falls by about per halving of for the species (quadratic terms) and by for the pendulum (cubic terms).
- Newton’s method doubles the correct digits each step (errors ) and uses the same that classifies the equilibrium.
- Linearization about a base state is how aircraft and flow stability are analyzed; next, 7.8 Conservative Systems & Lyapunov Functions proves stability with energy-like functions where linearization fails.