Algorithm Search⌘K

Techniquecore

Feedback linearization

Also called exact feedback linearization.

Cancels the nonlinearities of a system with a state feedback and a change of coordinates, so the closed loop is exactly linear in the new coordinates and a linear design finishes the job.

Feedback linearization turns a nonlinear system into a linear one by two operations: a change of state coordinates z=T(x)z = T(x) and a state feedback u=α(x)+β(x)vu = \alpha(x) + \beta(x) v. In the new coordinates and with the new input vv, the closed loop is exactly linear, usually a chain of integrators. A linear design, for example pole placement, then finishes the job. Unlike the Jacobian linearization, nothing is neglected: the linear model is exact on the whole region where the transformation is valid. The price is that the feedback must know the nonlinear terms in order to cancel them. This page is about full-state (input-state) linearization, where the whole state becomes linear. When only the map from vv to an output is made linear, the method is input-output linearization, and the rest of the state is left to the zero dynamics.

In plain words

Many machines are nonlinear only in a way you can undo. A pendulum has a gravity torque that depends on the sine of its angle. If your motor knows the angle, it can push against exactly that torque, and what is left behaves like a mass with no gravity. That is easy to control. Feedback linearization makes this idea general. You look for a way to measure the state, sometimes with new variables, so that the input can remove every nonlinear effect at once. Then you control what is left with the usual linear methods. It works only when such variables exist, when the model is good, and when the input is strong enough to cancel what it must.

When it applies

  • The model is x˙=f(x)+g(x)u\dot x = f(x) + g(x) u with smooth ff, gg, so solutions exist and are unique by the Picard-Lindelöf theorem, and the model is accurate.
  • The nonlinear terms enter in the same places as the input, or can be moved there by a change of coordinates. For one input this happens if and only if some output has relative degree nn. The conditions for feedback linearizability test this with Lie brackets: g,adfg,…,adfn−1gg, \mathrm{ad}_f g, \dots, \mathrm{ad}_f^{n-1} g must be linearly independent, and span{g,…,adfn−2g}\mathrm{span}\{g, \dots, \mathrm{ad}_f^{n-2} g\} must be involutive.
  • A physical output often has relative degree nn by itself: a position in a mechanical system with one force or torque per degree of freedom.
  • The input has enough authority to cancel the nonlinear terms over the operating region.

The template

  1. FEEDBACK-LINEARIZE(f, g, x0)
  2. 1h ← FIND-OUTPUT(f, g, x0) ▷ any h with relative degree n at x0
  3. 2z ← T(x) = (h, L_f h, ..., L_f^(n-1) h) ▷ new coordinates
  4. 3a(x) ← L_g L_f^(n-1) h; b(x) ← L_f^n h
  5. 4u ← (v - b(x)) / a(x) ▷ now z' = A_c z + B_c v, a chain of n integrators
  6. 5v ← LINEAR-DESIGN(z) ▷ for example v = -K z
  7. 6REGION ← the set where T is one to one and a(x) ≠ 0

FIND-OUTPUT (line L1). This is the hard step. Often the physics gives hh: the position of the mass, the angle of the arm. In general hh must solve the partial differential equations LgLfkh=0L_g L_f^k h = 0 for k=0,…,n−2k = 0, \dots, n - 2 with LgLfn−1h(x0)≠0L_g L_f^{n-1} h(x_0) \neq 0, which is the same as dh⋅adfkg=0dh \cdot \mathrm{ad}_f^k g = 0 for k≤n−2k \le n - 2. The theorem of Frobenius says that such an hh exists exactly when the bracket conditions hold. For a linear controllable system, h(x)=wTxh(x) = w^T x with wTw^T the last row of the inverse of the controllability matrix.

The coordinates (line L2). The derivatives h,Lfh,…,Lfn−1hh, L_f h, \dots, L_f^{n-1} h have independent differentials at x0x_0, so TT is a local change of coordinates. In these coordinates z˙i=zi+1\dot z_i = z_{i+1} for i<ni < n and z˙n=b(x)+a(x)u\dot z_n = b(x) + a(x) u.

The feedback (lines L3 and L4). With u=(v−b)/au = (v - b)/a, the last equation becomes z˙n=v\dot z_n = v. The closed loop is the controllable canonical form with all coefficients zero, the Brunovsky form.

The linear design (line L5). Any linear method applies to z˙=Acz+Bcv\dot z = A_c z + B_c v. With v=−k0z1−⋯−kn−1znv = -k_0 z_1 - \dots - k_{n-1} z_n, the closed-loop polynomial is sn+kn−1sn−1+⋯+k0s^n + k_{n-1} s^{n-1} + \dots + k_0, so the poles can be placed anywhere. For tracking, use v=yd(n)−∑iki(zi+1−yd(i))v = y_d^{(n)} - \sum_i k_i (z_{i+1} - y_d^{(i)}).

The region (line L6). All of this holds only where TT is a diffeomorphism and a≠0a \neq 0. A result on that region becomes a global result only if the region is the whole state space and TT is onto Rn\mathbb{R}^n.

Classic examples

A pendulum with a torque. Let x˙1=x2\dot x_1 = x_2, x˙2=−asin⁡x1−bx2+cu\dot x_2 = -a \sin x_1 - b x_2 + c u with c≠0c \neq 0. The angle h=x1h = x_1 has relative degree 22, the coordinates are z=xz = x, and u=(asin⁡x1+bx2+v)/cu = (a \sin x_1 + b x_2 + v)/c gives x¨1=v\ddot x_1 = v. The region is the whole plane. This is the simplest case: the nonlinear terms are already in the equation of the input.

A system that needs new coordinates. Let x˙1=asin⁡x2\dot x_1 = a \sin x_2, x˙2=−x12+u\dot x_2 = -x_1^2 + u with a>0a > 0. The input does not enter the first equation, and the nonlinearity sin⁡x2\sin x_2 does not enter the second. The output h=x1h = x_1 gives Lgh=0L_g h = 0 and LgLfh=acos⁡x2L_g L_f h = a \cos x_2, so z=(x1,asin⁡x2)z = (x_1, a \sin x_2), z˙1=z2\dot z_1 = z_2 and z˙2=acos⁡x2(−x12+u)\dot z_2 = a \cos x_2 (-x_1^2 + u). The feedback u=x12+v/(acos⁡x2)u = x_1^2 + v / (a \cos x_2) gives z˙2=v\dot z_2 = v. The region is ∣x2∣<π/2|x_2| < \pi/2, where cos⁡x2>0\cos x_2 > 0 and x2↦asin⁡x2x_2 \mapsto a \sin x_2 is one to one. Textbooks use this kind of system to show that the region can be a strict part of the state space.

Robot arms. For a rigid arm M(q)q¨+C(q,q˙)q˙+G(q)=τM(q) \ddot q + C(q, \dot q) \dot q + G(q) = \tau, the joint positions qq form an output with relative degree 22 in each joint, and the feedback τ=M(q)v+C(q,q˙)q˙+G(q)\tau = M(q) v + C(q, \dot q) \dot q + G(q) gives q¨=v\ddot q = v. This is the computed torque method, and its region is the whole state space, because the inertia matrix M(q)M(q) is always invertible.

Linear systems. A controllable system x˙=Ax+Bu\dot x = A x + B u is linearizable in this sense. The output h=wTxh = w^T x above gives the coordinates of the controllable canonical form, and the feedback cancels the coefficients of the characteristic polynomial. The pole placement theorem is this case followed by a choice of vv.

Output tracking with internal states. When the chosen output has relative degree r<nr < n, the same steps give input-output linearization. The first rr coordinates become linear, and the other n−rn - r follow the internal dynamics.

Variations

  • Several inputs. With mm inputs, the target is mm chains of integrators with lengths given by the controllability indices. The conditions use one distribution for each bracket level (see the conditions page).
  • Input-output linearization. Make only the output linear. This needs much weaker conditions, but the zero dynamics must be stable.
  • Dynamic feedback linearization. Add integrators (states of the controller) before the inputs, and linearize the extended system. Systems that become linearizable this way are differentially flat. For one input, static and dynamic linearizability coincide.
  • Partial feedback linearization. For underactuated mechanical systems, linearize the actuated or the unactuated coordinates only, and treat the rest separately.
  • Approximate linearization. When the conditions fail by small terms, drop those terms and linearize the rest, accepting a small residual.

Pitfalls

  • Cancelling useful terms. For x˙=−x3+u\dot x = -x^3 + u, the cancelling law u=x3−xu = x^3 - x gives x˙=−x\dot x = -x, but it removes the damping −x3-x^3, which helps, and it needs a large input for large ∣x∣|x|. The law u=−xu = -x gives x˙=−x−x3\dot x = -x - x^3, which is better in both ways. Backstepping and passivity-based designs keep such terms.
  • Model errors. The feedback at line L4 cancels b(x)b(x) only if bb is known. With an error Δ(x)\Delta(x), the closed loop is z˙=(Ac−BcK)z+BcΔ\dot z = (A_c - B_c K) z + B_c \Delta. A small Δ\Delta is usually tolerated, but there is no margin built in. Robust methods such as sliding mode control are designed for this.
  • Leaving the region. In the second example, if x2x_2 comes close to ±π/2\pm \pi/2, cos⁡x2\cos x_2 goes to zero and the input grows without bound. Line L6 must be checked along the closed-loop motion, not only at the start.
  • Trusting the Jacobian linearization. A controllable linearization does not make the system linearizable. For x˙1=x2+x32\dot x_1 = x_2 + x_3^2, x˙2=x3\dot x_2 = x_3, x˙3=u\dot x_3 = u, the linearization at 00 is a chain of integrators, but [g,adfg]=(−2,0,0)[g, \mathrm{ad}_f g] = (-2, 0, 0) is not in span{g,adfg}\mathrm{span}\{g, \mathrm{ad}_f g\}, so no output has relative degree 3 and the system is not feedback linearizable.
  • Saturation. The cancelling input can be large. With limits on uu, line L4 cannot be applied exactly, and the linear closed loop is lost.

Exercises

  1. For x˙1=x2\dot x_1 = x_2, x˙2=−sin⁡x1+u\dot x_2 = -\sin x_1 + u, find the feedback that puts both closed-loop poles at −2-2. Answer: u=sin⁡x1−4x1−4x2u = \sin x_1 - 4 x_1 - 4 x_2, from v=−4z1−4z2v = -4 z_1 - 4 z_2 and (s+2)2=s2+4s+4(s + 2)^2 = s^2 + 4 s + 4.
  2. Show that h(x)=wTxh(x) = w^T x, with wTw^T the last row of C−1\mathcal{C}^{-1} and C=[B,AB,…,An−1B]\mathcal{C} = [B, A B, \dots, A^{n-1} B], has relative degree nn. Answer: wTAkBw^T A^k B is the entry nn of C−1Cek+1=ek+1\mathcal{C}^{-1} \mathcal{C} e_{k+1} = e_{k+1}, which is 00 for k<n−1k < n - 1 and 11 for k=n−1k = n - 1.
  3. Show that x˙1=x2+x32\dot x_1 = x_2 + x_3^2, x˙2=x3\dot x_2 = x_3, x˙3=u\dot x_3 = u is not feedback linearizable near 00. Answer: adfg=(−2x3,−1,0)\mathrm{ad}_f g = (-2 x_3, -1, 0) and [g,adfg]=(−2,0,0)[g, \mathrm{ad}_f g] = (-2, 0, 0), which is not a combination of g=(0,0,1)g = (0, 0, 1) and adfg\mathrm{ad}_f g at any point.

References

  1. Hassan K. Khalil, Nonlinear Systems, third edition, Prentice Hall, 2002, Chapter 13, Feedback Linearization; Section 13.1 (Motivation), Section 13.3 (Full-State Linearization) and Section 13.4 (State Feedback Control)
  2. Alberto Isidori, Nonlinear Control Systems, third edition, Springer, 1995, Chapter 4 (Nonlinear feedback for single-input single-output systems), exact linearization by state feedback and change of coordinates
  3. Jean-Jacques E. Slotine and Weiping Li, Applied Nonlinear Control, Prentice Hall, 1991, Section 6.1.2 (input-state linearization) and Section 6.3 (input-state linearization of SISO systems)
  4. L. R. Hunt, R. Su and G. Meyer, Global transformations of nonlinear systems, IEEE Transactions on Automatic Control 28(1), 24-31, 1983, the conditions for linearization by feedback and change of coordinates, and the construction of the transformation

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