TactivergeLite

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?

About 45 min · 3 goals · Checked by automated tests · Full interactive version

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.

Predict

A damped pendulum is linearised about the upright position. What type of equilibrium do you expect?

  1. Stable spiral
  2. Saddle
  3. 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.

You can also open the interactive on the full site when you have a faster connection.

Understand

The method

  1. 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
  1. States θ and ω = θ′: θ′ = ω, ω′ = −(g/L) sin θ − bω. This is x′ = f(x), nonlinear because of sin θ.

  2. Equilibria: f = 0 needs ω = 0 and sin θ = 0, so θ = 0 (hanging) or θ = π (upright).

  3. Near an equilibrium x, write x = x + δ. Taylor: δ′ ≈ J(x*)·δ with J the Jacobian, Jᵢⱼ = ∂fᵢ/∂xⱼ.

  4. Here J = [[0, 1], [−(g/L) cos θ, −b]].

  5. θ = 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

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

Practice 1. Hanging pendulum, linearised: J = [[0, 1], [−9, −0.6]]. Classify.

Practice 4. For which angle is sin θ ≈ θ least trustworthy?
Practice 5. Linearisation gives a centre. What can you conclude about the nonlinear system?

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.

← Fitting and validating a model against dataDesigning a modal and numerical investigation →