How this calculation works
Compute local input-output relative degree and a polynomial feedback-linearization law, with an exact decoupling and coordinate-rank check.
y^(r) = L_f^r h + (L_g L_f^(r−1) h) u; u=(v−L_f^r h)/(L_g L_f^(r−1) h)A worked example
For xprime=y, yprime=u and output h=x, the output derivatives are y and u. Relative degree is two, the decoupling coefficient is one, and the feedback is simply u=v.
Good to know
Two or three states, rational polynomial f,g,h of input degree≤3, a rational evaluation point and bounded symbolic monomial/degree growth. Establish earlier input-coupling expressions as polynomial identities; find relative degree≤state dimension and a nonzero decoupling coefficient at the point. Output u=(v−L_f^r h)/(L_g L_f^(r−1) h), output coordinates and their Jacobian. Report partial relative degree without claiming stable internal dynamics; full-degree transformation requires a full-rank coordinate Jacobian. No saturation, global feedback law or stability guarantee.
Reference: Caltech Murray: real-time trajectory generation and feedback linearization (opens in a new tab) ↗
Differentiate the output along dynamics
The model has drift f, one input vector field g and scalar output h. The input-output question asks how many time derivatives of h are required before the input appears explicitly. Lie derivatives provide the algebraic language for computing those derivatives from the entered polynomial fields and output.
This differs from linearizing the entire state equation by a first-order Taylor approximation. Feedback linearization seeks an exact local input-output derivative relation for the nonlinear model. Its validity depends on identities among the Lie derivatives and on a nonzero decoupling coefficient, rather than merely on the eigenvalues of a Jacobian at one equilibrium.
Compare this with the Finite horizon linear quadratic control calculator with terminal cost. Derive a local input transformation from Lie derivatives of a supplied polynomial control-affine SISO model and output. This is a structural nonlinear input-output transformation, rather than minimizing a linear-system quadratic control cost.
Why earlier coupling terms must vanish identically
Before relative degree r, the terms L_g h, L_g L_f h and their successors must vanish as polynomial expressions on the relevant neighborhood. Evaluating one of these terms as zero at a single point is not sufficient: it may become nonzero immediately nearby, changing the differentiation structure.
The calculator therefore distinguishes symbolic polynomial identity from point evaluation. It computes earlier coupling expressions exactly and only accepts a relative-degree chain when the required identities hold. The first nonzero candidate decoupling expression must then be nonzero at the chosen point. A zero value there indicates a singular location for that proposed local feedback law.
Constructing the feedback law
At the first valid order, the output derivative equals a drift term plus a scalar decoupling coefficient times u. Solving this equation for u gives the displayed feedback law in terms of a new input v. Substitution should recover the target derivative y to the r equal to v exactly, within the supported symbolic grammar.
Division by the decoupling coefficient defines only a region where that coefficient stays nonzero. The expression is not automatically a global law. Near a coefficient zero it can require very large input, even if symbolic cancellation is correct elsewhere. No actuator saturation, bandwidth limit or robustness margin is added by the algebraic calculation.
The double-integrator example
The default drift is (y,0), the input vector is (0,1) and the output is x. The first drift derivative of h is y. Differentiating along the input before that stage gives zero, while the input derivative of y is one. Thus the input first appears at the second output derivative.
The second drift derivative of h is zero. Consequently, the decoupling coefficient is one and the required feedback is u equal to v. The output coordinates (h,L_f h) are (x,y), whose Jacobian is the identity. This simple example independently checks relative degree, the symbolic derivative chain, the feedback formula and the coordinate-rank test.
Full and partial relative degree
If the relative degree equals the number of states, the output derivative chain can furnish local state coordinates when its Jacobian is full rank. Verify that condition at the evaluation point rather than assuming it from the derivative count. The inverse-function theorem then gives a local coordinate interpretation under the appropriate smoothness assumptions.
When relative degree is smaller than the state dimension, internal dynamics remain. The calculation does not establish that those internal dynamics are stable. An input-output chain that looks linear can coexist with unstable zero dynamics, so a partial relative-degree result must not be presented as complete stable-state feedback linearization.
Polynomial growth and exact checks
The input fields and output are low-degree polynomials in a small number of variables, but repeated Lie differentiation can increase degree and monomial count. Explicit symbolic caps make that growth visible. A cap is an unresolved derivative calculation, not proof that the system has no relative degree or cannot be feedback linearized by another method.
Each derivative should be checked against the gradient-dot-vector-field definition. Retain the earlier input-coupling identities, final coefficient and output-coordinate Jacobian so another implementation can reproduce the conclusion. A numerical finite-difference trajectory check can supplement those expressions, but it should not replace the exact identities that justify the derivative chain.
What the local certificate does not promise
The result is a local algebraic statement for the entered f, g, h and point. It does not choose a stabilizing new input v, guarantee global coordinate invertibility or prove safe behavior under uncertain parameters. Those design and robustness questions require additional assumptions beyond the existence of the feedback formula.
Use the derivative chain to understand where input influence reaches the output and where singularities obstruct the proposed coordinates. If the decoupling coefficient approaches zero along an intended trajectory, reassess the controller rather than extrapolate the local formula blindly. The calculator separates a valid local transformation from the larger engineering problem of implementing a useful feedback controller.
A few questions, answered
Is this ordinary Jacobian linearization?
No. It computes exact local input-output derivative relations using Lie derivatives.
Can earlier coupling vanish only at my point?
That is insufficient for the declared relative-degree chain; the required earlier polynomial expressions must vanish identically.
Does partial relative degree imply stable internal dynamics?
No. The remaining zero dynamics require a separate analysis.
Is the feedback globally valid?
No. It is local to a region with nonzero decoupling coefficient and appropriate coordinate rank.