Lite / Independent Engineering Research / Week 8
Linearising nonlinear models
A pendulum hanging down is stable; balanced upright it falls. One Jacobian matrix explains both. How?
Why should I care?
Most real systems are nonlinear, yet almost all controller design and much analysis uses linear models. Linearisation is the bridge, and knowing when it breaks is part of honest modelling.
- Find the equilibria of a nonlinear system x′ = f(x).
- Linearise about an equilibrium with the Jacobian matrix and classify it from the eigenvalues.
- State the range of validity of a linearised model.
Predict
A damped pendulum is linearised about the upright position. What type of equilibrium do you expect?
- Stable spiral
- Saddle
- Centre
Guess first, then reveal
Upright, gravity pushes it further away: the linearised matrix [[0, 1], [g/L, −b]] has det = −g/L < 0, a saddle with one unstable direction.
Discover
In 'Any 2×2 matrix' mode, enter the hanging-down linearisation [[0, 1], [−4, −0.5]], then the upright one [[0, 1], [4, −0.5]] (g/L = 4, b = 0.5). Compare the portraits and the classification.
What the interactive shows (text version)
In general mode the phase portrait is set to the pendulum's linearised matrices. Text reports trace, determinant, eigenvalues and the equilibrium type: stable spiral for hanging, saddle for upright.
Understand
The method
- Find equilibria by solving f(x*) = 0. 2. Compute the Jacobian J = ∂f/∂x. 3. Evaluate it at each equilibrium. 4. Classify with the eigenvalues (week 6). If no eigenvalue has zero real part, the nonlinear system behaves like its linearisation close to that point (the Hartman–Grobman theorem).
Validity
The linear model is accurate only for small deviations. For the pendulum, sin θ ≈ θ is within 1% for |θ| below about 14°. A centre in the linearisation (zero real parts) is inconclusive: the nonlinear terms decide. Always state the range over which you trust the linear model.
Why controllers love it
Linearise a balancing robot about upright, design a controller that moves the saddle's unstable eigenvalue into the left half-plane, then test the controller on the full nonlinear model to see how big a push it survives.
Explain it another way
Intuitive
Zoom in on a curved landscape: near the bottom of a valley it looks like a bowl, near the top of a hill like an upturned bowl. Linearisation is that zoomed-in shape.
Technical
Hartman–Grobman: near a hyperbolic equilibrium (no eigenvalues with zero real part), the nonlinear flow is topologically equivalent to its linearisation.
Applied
Aircraft flight dynamics are linearised about trimmed flight; the eigenvalues give the classic modes (phugoid, short period, Dutch roll).
Derivation: Linearising the pendulum
States θ and ω = θ′: θ′ = ω, ω′ = −(g/L) sin θ − bω. This is x′ = f(x), nonlinear because of sin θ.
Equilibria: f = 0 needs ω = 0 and sin θ = 0, so θ = 0 (hanging) or θ = π (upright).
Near an equilibrium x, write x = x + δ. Taylor: δ′ ≈ J(x*)·δ with J the Jacobian, Jᵢⱼ = ∂fᵢ/∂xⱼ.
Here J = [[0, 1], [−(g/L) cos θ, −b]].
θ = 0: J = [[0, 1], [−g/L, −b]], tr = −b < 0, det = g/L > 0: a stable spiral (for small b). θ = π: J = [[0, 1], [g/L, −b]], det = −g/L < 0: a saddle, unstable.
Worked example 1
Find and classify the equilibria of x′ = y, y′ = x − x³.
Equilibria: y = 0 and x(1 − x²) = 0, so x = 0, ±1. J = [[0, 1], [1 − 3x², 0]]. At x = 0: det = −1, a saddle. At x = ±1: J = [[0, 1], [−2, 0]], tr = 0, det = 2: a linear centre, inconclusive in general; here energy conservation shows they are genuine centres.
Common mix-ups
A linear model is wrong for a nonlinear system.
✓ It is accurate near the operating point; the skill is knowing how near.Linear stability guarantees stability for any disturbance.
✓ Only for small disturbances. A large push can leave the region where the linear model holds.
Practice
Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.
Apply it
Simulate the full nonlinear pendulum (RK4) and its linearisation from θ₀ = 5°, 30° and 90°. Plot both and report the angle at which the period error exceeds 5%.
Reflect
Which system in your own projects is usually treated as linear, and what range justifies it?
Write your answer on paper or in your own notes. Lite never stores what you write.