Algorithm Search⌘K

Techniqueintro

Linearization about an equilibrium

Also called Jacobian linearization, small-signal linearization.

Replaces a nonlinear system near an equilibrium by the linear system given by the Jacobians of the vector field and the output map.

Linearization about an equilibrium replaces a nonlinear system x˙=f(x,u)\dot x = f(x, u), y=h(x,u)y = h(x, u) near a rest point (x∗,u∗)(x^*, u^*) by the linear system δx˙=A δx+B δu\dot{\delta x} = A\, \delta x + B\, \delta u, δy=C δx+D δu\delta y = C\, \delta x + D\, \delta u, where AA, BB, CC and DD are the Jacobian matrices of first partial derivatives of ff and hh at that point, and δx=x−x∗\delta x = x - x^*, δu=u−u∗\delta u = u - u^*, δy=y−y∗\delta y = y - y^* are the small deviations. It is the first-order Taylor expansion of the equations, the same idea as the small-signal model of a circuit in AC small-signal analysis. The linear model is accurate to second order in the deviation, and at a hyperbolic equilibrium it decides local stability (Lyapunov's indirect method). It differs from feedback linearization, which cancels the nonlinearity exactly by a change of coordinates and feedback, and is valid in a large region.

In plain words

Most real systems are nonlinear, but most of the tools of control work only for linear systems. If the system works near one operating condition, small changes around that condition behave almost linearly, in the same way that a smooth curve looks like a straight line under a microscope. The method finds the operating condition, measures how sensitive each rate of change is to each state and each input at that point, and keeps only these sensitivities. The result is a linear model of the small deviations from the operating condition. It is reliable for small deviations and for questions about what happens very close to the operating point. It can mislead for large deviations, or when the linear model is on the edge between growth and decay.

When it applies

  • The point is an equilibrium. f(x∗,u∗)=0f(x^*, u^*) = 0 (see equilibrium point). At a point that is not an equilibrium, the expansion has a constant term f(x∗,u∗)f(x^*, u^*), and the result is an affine model, not a linear one. For a moving reference, linearize along the trajectory instead (see Variations).
  • ff and hh are differentiable at the point. C1C^1 near (x∗,u∗)(x^*, u^*) gives the Jacobians and a remainder that is o(∥(δx,δu)∥)o(\|(\delta x, \delta u)\|). C2C^2 gives a remainder of order ∥(δx,δu)∥2\|(\delta x, \delta u)\|^2. A saturation, a dead zone, Coulomb friction or ∣x∣|x| at its corner has no Jacobian there, and the method does not apply at such a point.
  • The question is local. The linear model answers questions about small deviations: local stability, local controllability, the response to small inputs, and the design of a controller that keeps the deviations small. It gives no information on the size of the region where these answers hold.
  • The equilibrium is hyperbolic, for stability questions. If some eigenvalue of AA has zero real part, the linear model does not decide stability.

The template

  1. Find the operating point. Solve f(x∗,u∗)=0f(x^*, u^*) = 0 for the desired x∗x^* or the desired output y∗=h(x∗,u∗)y^* = h(x^*, u^*). In general there are many solutions, often an mm-dimensional family parametrized by the input.

  2. Compute the Jacobians.

    A=∂f∂x(x∗,u∗),B=∂f∂u(x∗,u∗),C=∂h∂x(x∗,u∗),D=∂h∂u(x∗,u∗).A = \frac{\partial f}{\partial x}(x^*, u^*), \quad B = \frac{\partial f}{\partial u}(x^*, u^*), \quad C = \frac{\partial h}{\partial x}(x^*, u^*), \quad D = \frac{\partial h}{\partial u}(x^*, u^*).

    Entry (i,j)(i, j) of AA is ∂fi/∂xj\partial f_i / \partial x_j. Use the formulas when ff is known in closed form, automatic differentiation when ff is a program, or finite differences as a last resort.

  3. Write the deviation model. With δx=x−x∗\delta x = x - x^*, δu=u−u∗\delta u = u - u^* and δy=y−y∗\delta y = y - y^*, Taylor's theorem gives

    δx˙=A δx+B δu+r(δx,δu),∥r(δx,δu)∥≤L ∥(δx,δu)∥2\dot{\delta x} = A\, \delta x + B\, \delta u + r(\delta x, \delta u), \qquad \|r(\delta x, \delta u)\| \le L\, \|(\delta x, \delta u)\|^2

    near the point, if ff is C2C^2 and LL bounds half the second derivatives there. Drop rr.

  4. Analyze or design on the linear model. Eigenvalues, controllability, a state feedback δu=−Kδx\delta u = -K \delta x, an observer. The theorem behind step 4 for stability: if AA is Hurwitz, x∗x^* is locally exponentially stable for the nonlinear system; if AA has an eigenvalue with positive real part, x∗x^* is unstable (Khalil 2002, Section 4.3). At a hyperbolic equilibrium of a C1C^1 system, the Hartman-Grobman theorem says more: the nonlinear flow near x∗x^* is a continuous deformation of the linear flow (Hartman 1960; Grobman 1959).

  5. Map back and check. Apply u=u∗+δuu = u^* + \delta u to the real system, not δu\delta u alone. Check the design by simulation of the nonlinear model from initial deviations of increasing size, or estimate the region of attraction with a Lyapunov function (region of attraction estimation). The linear analysis gives no region by itself.

Accuracy on finite time. If ff is C2C^2, and the deviations start with size ε\varepsilon with an input deviation of size O(ε)O(\varepsilon), then on a fixed interval [0,T][0, T] the nonlinear and the linear deviation trajectories differ by O(ε2)O(\varepsilon^2). The proof writes the nonlinear deviation with the variation of constants formula and the remainder rr as an input, and bounds the difference with the Grönwall inequality. If AA is Hurwitz, the bound holds uniformly on [0,∞)[0, \infty) for small ε\varepsilon.

Classic examples

Pendulum, hanging and upright. With x=(θ,θ˙)x = (\theta, \dot\theta), x˙1=x2\dot x_1 = x_2, x˙2=−sin⁡x1−0.5x2+u\dot x_2 = -\sin x_1 - 0.5 x_2 + u (normalized so that g/ℓ=1g / \ell = 1). The Jacobians are

A=[01−cos⁡x1∗−0.5],B=[01].A = \begin{bmatrix} 0 & 1 \\ -\cos x_1^* & -0.5 \end{bmatrix}, \qquad B = \begin{bmatrix} 0 \\ 1 \end{bmatrix}.

At x∗=(0,0)x^* = (0, 0), AA has eigenvalues −0.25±0.9682i-0.25 \pm 0.9682 i, a stable focus. At x∗=(π,0)x^* = (\pi, 0), A=[011−0.5]A = \begin{bmatrix} 0 & 1 \\ 1 & -0.5 \end{bmatrix} with eigenvalues 0.78080.7808 and −1.2808-1.2808, a saddle. For the upright point, the feedback δu=−3 δθ−2.5 δθ˙\delta u = -3\, \delta\theta - 2.5\, \delta\dot\theta gives the linear closed loop the characteristic polynomial s2+3s+2s^2 + 3s + 2, with poles −1-1 and −2-2.

To see the accuracy, start the hanging pendulum at θ(0)=ε\theta(0) = \varepsilon, θ˙(0)=0\dot\theta(0) = 0, and compare the nonlinear state at t=5t = 5 (RK4, step 0.001) with e5A(ε,0)e^{5A}(\varepsilon, 0). The largest error is 4.76×10−54.76 \times 10^{-5} for ε=0.1\varepsilon = 0.1, 3.81×10−43.81 \times 10^{-4} for ε=0.2\varepsilon = 0.2, and 0.0470.047 for ε=1\varepsilon = 1. Doubling ε\varepsilon multiplies the error by 8, not 4: here the second-order term is zero, because sin⁡θ=θ−θ3/6+⋯\sin \theta = \theta - \theta^3 / 6 + \cdots, and the error is of third order.

A tank with an outflow. The level xx of a tank with inflow uu and outflow through a hole obeys x˙=u−x\dot x = u - \sqrt{x} (in scaled units, by Torricelli's law). The equilibria are x∗=(u∗)2x^* = (u^*)^2, and A=−1/(2x∗)=−1/(2u∗)A = -1 / (2\sqrt{x^*}) = -1 / (2 u^*), B=1B = 1. At u∗=1u^* = 1 the linear model has time constant 2; at u∗=0.5u^* = 0.5 it has time constant 1. The linear model depends on the operating point, which is the reason for gain scheduling.

A diode, small-signal. The current of a diode is i=Is(ev/VT−1)i = I_s (e^{v / V_T} - 1). At an operating point with current I∗I^*, the small-signal conductance is di/dv=(I∗+Is)/VTdi/dv = (I^* + I_s)/V_T. For I∗=1I^* = 1 mA and VT=25.85V_T = 25.85 mV, this is about 0.03870.0387 S, a resistance of about 25.825.8 ohm. A circuit simulator does this for every device at the DC operating point and then solves the linear circuit at each frequency; see AC small-signal analysis.

Where it fails: a zero eigenvalue. x˙=−x3\dot x = -x^3 and x˙=x3\dot x = x^3 both have the linearization δx˙=0\dot{\delta x} = 0 at 0. The first equilibrium is asymptotically stable (but not exponentially stable), and the second is unstable. The linear model cannot tell them apart.

Where it fails: lost controllability. A wheeled robot with position (p1,p2)(p_1, p_2), heading ϕ\phi, forward speed vv and turn rate ω\omega obeys p˙1=vcos⁡ϕ\dot p_1 = v \cos\phi, p˙2=vsin⁡ϕ\dot p_2 = v \sin\phi, ϕ˙=ω\dot\phi = \omega. At rest at the origin, A=0A = 0 and B=[100001]B = \begin{bmatrix} 1 & 0 \\ 0 & 0 \\ 0 & 1 \end{bmatrix}, so the linear model cannot move sideways and is not controllable. The nonlinear robot can park sideways by a sequence of moves, which the Lie bracket of the two input fields shows. By the Brockett condition, no continuous static feedback stabilizes it at the origin.

Variations

  • Linearization along a trajectory. For a nominal solution (xˉ(t),uˉ(t))(\bar x(t), \bar u(t)), the Jacobians evaluated along it give a linear time-varying system δx˙=A(t) δx+B(t) δu\dot{\delta x} = A(t)\, \delta x + B(t)\, \delta u. This is used for trajectory tracking and in the extended Kalman filter.
  • Discrete time. For xk+1=F(xk,uk)x_{k+1} = F(x_k, u_k) with a fixed point F(x∗,u∗)=x∗F(x^*, u^*) = x^*, the linear model is δxk+1=A δxk+B δuk\delta x_{k+1} = A\, \delta x_k + B\, \delta u_k with A=∂F/∂xA = \partial F / \partial x. Stability needs the eigenvalues of AA inside the unit circle.
  • Linearization of a sampled plant. Linearize first and then apply zero-order hold discretization. If instead the exact sampled map of the nonlinear system (the flow over one period with the input held constant) is linearized at the equilibrium, the result is the same pair of matrices, because along a constant solution the variational equation is the linear model itself.
  • Families of linearizations. Linearize at many operating points and interpolate the controllers: gain scheduling, or an LPV system model.
  • Exact linearization. Feedback linearization and input-output linearization make the closed loop exactly linear in new coordinates, in a whole region, under conditions on Lie brackets. They are different techniques with the same word in the name.
  • Numerical Jacobians. With central differences, ∂f/∂xj≈(f(x+ηej)−f(x−ηej))/(2η)\partial f / \partial x_j \approx (f(x + \eta e_j) - f(x - \eta e_j)) / (2\eta), the truncation error is O(η2)O(\eta^2) and the rounding error is about ϵmach∥f∥/η\epsilon_{\text{mach}} \|f\| / \eta; a step η\eta near ϵmach1/3\epsilon_{\text{mach}}^{1/3} times the scale of xx balances them. Automatic differentiation gives the Jacobian to rounding accuracy.

Pitfalls

  • Forgetting the offsets. The linear model is in deviations. A controller designed as δu=−Kδx\delta u = -K \delta x must be applied as u=u∗−K(x−x∗)u = u^* - K (x - x^*). Applying u=−Kxu = -K x to the real plant is a different controller.
  • Linearizing at a point that is not an equilibrium. The neglected constant term f(x∗,u∗)f(x^*, u^*) makes the state drift, and the linear model predicts no drift.
  • Trusting it at large deviations. The pendulum example shows the error growing like ε3\varepsilon^3; at ε=1\varepsilon = 1 rad it is already visible. Input saturation makes the region where a linear design works smaller still.
  • Non-hyperbolic points. Eigenvalues on the imaginary axis leave stability undecided. Use a Lyapunov function, center manifold arguments or simulation.
  • Hidden non-smoothness. Friction, backlash, quantization and saturation are not differentiable at their corners. Their effects, such as limit cycles in a loop with backlash, are absent from the Jacobian model.
  • Coordinates. The eigenvalues of AA do not depend on the coordinates, but the size of the region of validity does. A badly scaled state makes "small deviation" mean very different things in different components.

Exercises

  1. Linearize the logistic equation x˙=x(1−x)−u\dot x = x(1 - x) - u at the equilibrium with u∗=0.16u^* = 0.16 and x∗>0.5x^* > 0.5. Is it stable?
  2. For the pendulum above, compute the linear model at the equilibrium of a constant torque u∗=0.5u^* = 0.5, and its eigenvalues.
  3. Show that x˙1=−x1+x22\dot x_1 = -x_1 + x_2^2, x˙2=−x2\dot x_2 = -x_2 has the linearization δx˙=−δx\dot{\delta x} = -\delta x, and that the difference between the solutions of the two models from (0,ε)(0, \varepsilon) is of order ε2\varepsilon^2.
  4. Find a system x˙=f(x)\dot x = f(x) with an equilibrium whose linearization has an eigenvalue with positive real part, and show directly that it is unstable.
  5. For the wheeled robot, find the linearization along the trajectory vˉ=1\bar v = 1, ωˉ=0\bar\omega = 0, ϕˉ=0\bar\phi = 0, and check that this linear model, which here has constant matrices, is controllable.

References

  1. Hassan K. Khalil, Nonlinear Systems, third edition, Prentice Hall, 2002, Section 2.3, Qualitative Behavior Near Equilibrium Points; Section 4.3, Linear Systems and Linearization (the indirect method); Section 4.6, Linear Time-Varying Systems and Linearization
  2. Wilson J. Rugh, Linear System Theory, second edition, Prentice Hall, 1996, Chapter 2, State Equation Representation (linearization about a nominal solution)
  3. Philip Hartman, A lemma in the theory of structural stability of differential equations, Proceedings of the American Mathematical Society 11(4), 610-620, 1960, the local topological equivalence of a flow and its linearization at a hyperbolic equilibrium
  4. D. M. Grobman, Homeomorphism of systems of differential equations, Doklady Akademii Nauk SSSR 128, 880-881, 1959, the same equivalence, found independently
  5. Karl J. Åström and Richard M. Murray, Feedback Systems, An Introduction for Scientists and Engineers, second edition, Princeton University Press, 2021, the chapter on linear systems (linearization of nonlinear models about an equilibrium)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • three classic examples