School/✦ Research Engineer/Week 8
Linearising nonlinear models
A pendulum hanging down is stable; balanced upright it falls. One Jacobian matrix explains both. How?
About 45 min · 3 goals · Checked by automated tests
1.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.
2.Predict
A damped pendulum is linearised about the upright position. What type of equilibrium do you expect?
Guess first. Being wrong here is how the surprise works.
3.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.
Loading the interactive…
Can't use the interactive? Read a description instead
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.
4.Checkpoint: guided practice
Check what you just discovered before going on. Hints appear after a wrong answer.
Practice 1
Hanging pendulum, linearised: J = [[0, 1], [−9, −0.6]]. Classify.
5.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
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.
Hartman–Grobman: near a hyperbolic equilibrium (no eigenvalues with zero real part), the nonlinear flow is topologically equivalent to its linearisation.
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.
6.Practice on your own
Practice, not a test. Wrong answers get a hint and another try.
Practice 2 · a fresh version every time
A = [[-11, -8], [16, 13]]. Find its smaller eigenvalue.
Practice 3
Upright pendulum, undamped, g/L = 9 s⁻². What is the positive eigenvalue of J = [[0, 1], [9, 0]]?
Practice 4
For which angle is sin θ ≈ θ least trustworthy?
Practice 5
Linearisation gives a centre. What can you conclude about the nonlinear system?
7.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%.
8.Reflect
Concepts: Ordinary differential equations and state space · Mathematical modelling and validation · Eigenvalues and the stability of dynamic systems