TExcelTAD
Home › Control Systems & Automation › Linearisation About an Operating Point

Linearisation About an Operating Point

Almost nothing real is linear. A tank drains with the square root of its level, a pendulum's restoring torque goes with sin⁡θ\sin\theta, a thermistor's resistance falls exponentially with temperature, a fan's thrust goes with speed squared. Yet every tool in this course (transfer functions, root locus, Bode plots, state-space design) needs a linear model. The bridge is linearisation: near the point where the system normally sits, a smooth nonlinear system behaves like a linear one, and a controller that keeps it near that point can be designed from the linear model. This lesson shows how, and how to tell when the approximation breaks.

Equilibrium, deviation, Taylor

Write the model as x˙=f(x,u)\dot x = f(x, u), y=g(x,u)y = g(x, u). An operating point (equilibrium) (x0,u0)(x_0, u_0) satisfies f(x0,u0)=0f(x_0, u_0) = 0: with the input held at u0u_0, the state stays at x0x_0. Define deviations δx=x−x0\delta x = x - x_0, δu=u−u0\delta u = u - u_0, δy=y−y0\delta y = y - y_0 and keep the first-order terms of the Taylor series:

δx˙≈∂f∂x∣0⏟A δx+∂f∂u∣0⏟B δu,δy≈∂g∂x∣0⏟C δx+∂g∂u∣0⏟D δu\dot{\delta x} \approx \underbrace{\frac{\partial f}{\partial x}\Big|_0}_{A}\,\delta x + \underbrace{\frac{\partial f}{\partial u}\Big|_0}_{B}\,\delta u, \qquad \delta y \approx \underbrace{\frac{\partial g}{\partial x}\Big|_0}_{C}\,\delta x + \underbrace{\frac{\partial g}{\partial u}\Big|_0}_{D}\,\delta u

For one state this is just the slope of each nonlinear term; for several states the partial derivatives form Jacobian matrices, the A,B,C,DA, B, C, D of a state-space model. The mathematics is in Critical Points and Linearization. Three things to remember:

  1. The linear model is in deviation variables. Its "zero" is the operating point, so a controller designed on it adds u0u_0 back (the feedforward or bias term) and compares yy with y0y_0.
  2. The coefficients depend on the operating point. A tank's time constant at h0=0.2 mh_0 = 0.2\ \text{m} differs from that at 0.5 m0.5\ \text{m}.
  3. The model is good for small deviations; how small depends on how curved ff is.

Worked example: a pendulum arm held at 30 degrees

Given: a light rod of length l=0.2 ml = 0.2\ \text{m} with a 0.1 kg0.1\ \text{kg} mass at the end, driven by a motor torque τ\tau, with viscous friction b=0.002 N⋅m⋅sb = 0.002\ \text{N} \cdot \text{m} \cdot \text{s}, g=9.81 m/s2g = 9.81\ \text{m/s}^2:

ml2θ¨+bθ˙+mglsin⁡θ=τm l^2\ddot\theta + b\dot\theta + m g l\sin\theta = \tau

Find: the holding torque at θ0=30∘\theta_0 = 30^\circ, the linear model there with its ωn\omega_n and ζ\zeta, and the final angle for torque steps of +10 %+10\,\% and +50 %+50\,\%, linear against exact.

Solve:

  • Equilibrium: τ0=mglsin⁡30∘=0.1×9.81×0.2×0.5=0.0981 N⋅m\tau_0 = mgl\sin 30^\circ = 0.1 \times 9.81 \times 0.2 \times 0.5 = 0.0981\ \text{N} \cdot \text{m}.
  • Slope of mglsin⁡θmgl\sin\theta at 30∘30^\circ: mglcos⁡30∘=0.1699 N⋅m/radmgl\cos 30^\circ = 0.1699\ \text{N} \cdot \text{m/rad}. Linear model: 0.004 δθ¨+0.002 δθ˙+0.1699 δθ=δτ0.004\,\ddot{\delta\theta} + 0.002\,\dot{\delta\theta} + 0.1699\,\delta\theta = \delta\tau, so δΘδT=10.004s2+0.002s+0.1699\frac{\delta\Theta}{\delta T} = \frac{1}{0.004 s^2 + 0.002 s + 0.1699} with ωn=0.1699/0.004=6.52 rad/s\omega_n = \sqrt{0.1699/0.004} = 6.52\ \text{rad/s} and ζ=0.00220.1699×0.004=0.038\zeta = \frac{0.002}{2\sqrt{0.1699 \times 0.004}} = 0.038, very lightly damped.
  • +10 %+10\,\% (δτ=0.00981\delta\tau = 0.00981): linear δθ=0.00981/0.1699=0.0577 rad=3.31∘\delta\theta = 0.00981/0.1699 = 0.0577\ \text{rad} = 3.31^\circ, so 33.31∘33.31^\circ; exact arcsin⁡(0.55)=33.37∘\arcsin(0.55) = 33.37^\circ.
  • +50 %+50\,\%: linear 30+16.54=46.54∘30 + 16.54 = 46.54^\circ; exact arcsin⁡(0.75)=48.59∘\arcsin(0.75) = 48.59^\circ. The error grew from 0.06∘0.06^\circ to 2.05∘2.05^\circ.

Check: the program derives the Jacobian with SymPy, then simulates both models.

python · try it yourself
import numpy as np
import sympy as sp
from scipy.integrate import solve_ivp

m, l, b, g = 0.1, 0.2, 0.002, 9.81
th, om, tau = sp.symbols("theta omega tau")
f = sp.Matrix([om, (tau - b * om - m * g * l * sp.sin(th)) / (m * l**2)])
th0 = sp.pi / 6
tau0 = m * g * l * sp.sin(th0)
A = f.jacobian([th, om]).subs({th: th0, om: 0, tau: tau0})
B = f.jacobian([tau]).subs({th: th0, om: 0, tau: tau0})
A = np.array(A.evalf(), dtype=float)
B = np.array(B.evalf(), dtype=float)
print("A =", np.round(A, 3).tolist(), " B =", np.round(B, 1).ravel().tolist())
print("eigenvalues of A:", np.round(np.linalg.eigvals(A), 3))

tau0 = float(tau0)
for step in (0.10, 0.50):
    T = tau0 * (1 + step)
    nl = solve_ivp(lambda t, x: [x[1], (T - b * x[1] - m * g * l * np.sin(x[0])) / (m * l**2)],
                   (0, 300), [np.pi / 6, 0], rtol=1e-9, atol=1e-12)
    li = solve_ivp(lambda t, d: A @ d + B.ravel() * (T - tau0), (0, 300), [0, 0], rtol=1e-9, atol=1e-12)
    print(f"torque +{100 * step:.0f} %: exact {np.degrees(nl.y[0][-1]):.2f} deg, linear {30 + np.degrees(li.y[0][-1]):.2f} deg")
A = [[0.0, 1.0], [-42.479, -0.5]]  B = [0.0, 250.0]
eigenvalues of A: [-0.25+6.513j -0.25-6.513j]
torque +10 %: exact 33.37 deg, linear 33.31 deg
torque +50 %: exact 48.59 deg, linear 46.54 deg

The eigenvalues −0.25±j6.51-0.25 \pm j6.51 are the poles of the linear model: σ=ζωn=0.25 s−1\sigma = \zeta\omega_n = 0.25\ \text{s}^{-1} and ωd=6.51 rad/s\omega_d = 6.51\ \text{rad/s}. Repeat the calculation at θ0=150∘\theta_0 = 150^\circ and the slope mglcos⁡θ0mgl\cos\theta_0 turns negative: a pendulum held above the horizontal is unstable, one eigenvalue moves into the right half-plane, and only feedback can hold it there. That is the classic inverted-pendulum problem; state feedback stabilises it (Pole Placement, practice 3).

In the lab: the small-angle pendulum

The physics pendulum lab draws the linearised solution θ=θ0cos⁡ωt\theta = \theta_0\cos\omega t, with sin⁡θ≈θ\sin\theta \approx \theta about the hanging equilibrium. For L=0.25 mL = 0.25\ \text{m} (its shortest setting) it shows a period of 1.004 s1.004\ \text{s} (2πL/g2\pi\sqrt{L/g} with g=9.8g = 9.8), the same at every amplitude. The exact period at 15∘15^\circ is only 0.43 %0.43\,\% longer, which is why the linear model is trusted up to there; at 90∘90^\circ it would be 18 %18\,\% longer.

θmgEkEpθt15°−15°T = 1.00 s

Linearising a sensor: the NTC thermistor

Sensors need the same treatment. An NTC thermistor follows R(T)=R25 eB(1/T−1/T25)R(T) = R_{25}\,e^{B(1/T - 1/T_{25})} (temperatures in kelvin). Its sensitivity at an operating temperature is the slope dRdT=−BT2R\frac{dR}{dT} = -\frac{B}{T^2}R. For R25=10 kΩR_{25} = 10\ \text{k}\Omega and B=3950 KB = 3950\ \text{K} at 50 ∘C50\,^\circ\text{C} (323.15 K323.15\ \text{K}): R=3.59 kΩR = 3.59\ \text{k}\Omega and dRdT=−136 Ω/K\frac{dR}{dT} = -136\ \Omega/\text{K}, i.e. −3.8 %/K-3.8\,\%/\text{K}. A loop tuned at room temperature (where the slope is −4.4 %/K-4.4\,\%/\text{K}) has a slightly lower loop gain at 50 ∘C50\,^\circ\text{C}, and a much lower one at 100 ∘C100\,^\circ\text{C}. The cure is to linearise in software (a lookup table or the Steinhart–Hart equation, see Temperature Sensors) so the controller sees kelvin, not ohms.

Guided lab: measure a gain that depends on the operating point

Hand calculation. A small fan driven by PWM has thrust roughly proportional to speed squared, and speed roughly proportional to the average voltage: F≈c v2F \approx c\,v^2. The local gain dF/dv=2cvdF/dv = 2cv doubles from v=4 Vv = 4\ \text{V} to v=8 Vv = 8\ \text{V}.

Simulation. In the program, change θ0\theta_0 to 10∘10^\circ, 60∘60^\circ and 80∘80^\circ and watch ωn\omega_n fall as cos⁡θ0\cos\theta_0 shrinks; that is the same effect: one plant, different linear models.

What you would measure. A 12 V12\ \text{V} PC fan on a kitchen scale (blowing upward so the scale reads the thrust as a weight loss), bench supply current-limited to 0.5 A0.5\ \text{A}, voltage stepped from 44 to 12 V12\ \text{V} in 1 V1\ \text{V} steps. Plot thrust against voltage, then the slope at each point. Expect the small-signal gain at 10 V10\ \text{V} to be roughly 2.52.5 times that at 4 V4\ \text{V}, with ±10 %\pm 10\,\% scatter from airflow turbulence and the scale's resolution.

Hazards and safe setup. Finger guard on the fan, current-limited supply, nothing loose near the blades. The pendulum part is simulation only; if you build one, use a light arm, a low-voltage motor and a mechanical stop.

Pitfalls

  • Linearising about a point that is not an equilibrium: the constant term f(x0,u0)f(x_0, u_0) is then not zero and the "linear" model drifts.
  • Forgetting the bias: the linear controller outputs δu\delta u, the actuator needs u0+δuu_0 + \delta u.
  • Designing at one operating point and running at another: check the linear model at the extremes (gain scheduling switches controllers between points).
  • Linearising discontinuous nonlinearities (saturation, dead zone, relay, dry friction): they have no slope at the corner; see Nonlinearities.

Practice

  1. Linearise h˙=(q−0.002h)/0.05\dot h = (q - 0.002\sqrt{h})/0.05 at h0=0.25 mh_0 = 0.25\ \text{m}. What inflow holds that level, and what is the time constant?
  2. Linearise y=5u2y = 5u^2 about u0=2u_0 = 2.
  3. At what angle does the pendulum arm's linear model have zero stiffness?
Answer
  1. q0=0.0020.25=0.001 m3/sq_0 = 0.002\sqrt{0.25} = 0.001\ \text{m}^3/\text{s}. Slope of the outflow: 0.002/(2h0)=0.002 m2/s0.002/(2\sqrt{h_0}) = 0.002\ \text{m}^2/\text{s}, so δh˙=(δq−0.002 δh)/0.05\dot{\delta h} = (\delta q - 0.002\,\delta h)/0.05 and τ=0.05/0.002=25 s\tau = 0.05/0.002 = 25\ \text{s}.
  2. y0=20y_0 = 20, δy=20 δu\delta y = 20\,\delta u.
  3. At 90∘90^\circ, where cos⁡θ0=0\cos\theta_0 = 0: the arm is horizontal and gravity's torque has no slope.

Test yourself

An operating point (x0,u0)(x_0, u_0) for linearisation must satisfy

  1. x0=0x_0 = 0
  2. f(x0,u0)=0f(x_0, u_0) = 0
  3. u0=0u_0 = 0
  4. ∂f/∂x=0\partial f/\partial x = 0

The linearised pendulum at θ0=30∘\theta_0 = 30^\circ has stiffness mglcos⁡30∘mgl\cos 30^\circ. At θ0=150∘\theta_0 = 150^\circ the stiffness is

  1. the same
  2. zero
  3. negative, so the equilibrium is unstable
  4. infinite

For the pendulum, a +10 %+10\,\% torque step gave linear 33.31∘33.31^\circ against exact 33.37∘33.37^\circ, a +50 %+50\,\% step 46.54∘46.54^\circ against 48.59∘48.59^\circ. What does this show?

  1. the linear model is wrong
  2. the linear model is accurate for small deviations and degrades as they grow
  3. friction was neglected
  4. the exact model is unstable

A linear controller designed on a deviation model must

  1. be retuned every second
  2. add the operating-point input u0u_0 to its output
  3. use the same units as the sensor
  4. contain an integrator