How this calculation works
Find the largest output-hidden subspace preserved by a suitable state-feedback law and check exact disturbance decoupling.
V₀=ker C; Vₖ₊₁=ker C ∩ A⁻¹(Vₖ+im B); (A+BF)V*⊆V*.A worked example
For A=[[0,1],[0,0]], B=[[1],[1]], C=[[1,0]], E=[[0],[1]], V*=span(e2). One friend is F=[0,−1], keeping disturbances hidden from y=x1.
Good to know
Rational continuous-time systems with up to 6 states, 3 inputs, 3 outputs and 3 disturbances. Iterate V0=ker C, Vnext=ker C intersect A inverse(V+im B), then solve for a friend F with (A+BF)V contained in V. Test im E contained in V. No claim of stabilizing feedback or input constraints.
Reference: Trentelman, Stoorvogel and Hautus, Control Theory for Linear Systems (opens in a new tab) ↗
What exact disturbance decoupling asks
Consider xdot=Ax+Bu+Ed and output y=Cx. A disturbance is decoupled when its effect on y is identically zero under a chosen state-feedback law, for arbitrary disturbance histories within this linear model. This is stronger than making a plotted response look small at a few times. It is also different from reaching a bounded target set at a selected horizon.
The calculator asks whether disturbance directions can remain inside a subspace hidden by C. The initial condition for the disturbance-to-output transfer is zero; arbitrary initial output offsets are not automatically removed. The feedback sign on this page is u=Fx, so the closed-loop matrix is A+BF. Keep that plus sign when comparing this result with a pole-placement page using u=−Kx.
Compare this with the Finite horizon backward reachable polytope calculator with bounded controls. Compute the largest controlled invariant subspace inside the output kernel and a state-feedback friend; determine whether disturbances can be exactly hidden from the output. Existing bounded polytope reachability is a different finite-horizon constrained-set problem.
Start with directions the output cannot see
The kernel of C contains state vectors that produce zero instantaneous output. Merely placing Ed inside that kernel is not enough. The state dynamics A may immediately rotate a hidden direction into one visible at the output. Feedback through B must be capable of correcting that escape while preserving the hidden state trajectory.
A subspace V is controlled invariant if AV is contained in V+im B. Equivalently, some state-feedback matrix F makes (A+BF)V a subset of V. The calculator seeks the largest such V contained in ker C. A basis describes an entire linear space, not a sampled collection of safe points or a guarantee under bounded actuator magnitude.
Follow the descending subspace iteration
Begin with V0=ker C. At each step retain only vectors in ker C whose A-image lies in the current subspace plus the control image. The sequence descends, so its dimension cannot increase. In a finite-dimensional state space, a stabilized dimension together with the containment construction identifies the fixed subspace V*.
The returned dimension history makes this elimination visible. A sudden drop indicates that some output-hidden directions cannot be maintained by the available controls. All intersections and preimages are solved with bounded rational row reduction. This avoids tolerance-dependent decisions about whether a nearly zero singular value should count as an independent state direction.
Construct a feedback friend
Once a basis matrix V for V* is available, solve AV+BFV=VH for the entries of F and a reduced internal matrix H. Such an F is called a friend of the controlled invariant subspace. Its defining property concerns the action on V*, so it usually does not determine every possible feedback coefficient uniquely.
The calculator selects one exact solution. It does not optimize gain magnitude or choose a stabilizing friend. Different valid friends can produce different internal motions while preserving output hiding. A physically useful design may need further pole assignment or an internal-stability analysis; the existence of a geometric friend alone does not settle those requirements.
Check the two-state worked example
In the default model y=x1, so ker C is the x2-axis. For v=e2, Av=e1. Since B=e1+e2, subtracting one unit of the control direction gives Av−B=−e2, which remains hidden. Thus the full x2-axis survives the iteration, and the disturbance column E=e2 is contained in V*.
The chosen friend F=[0,−1] gives A+BF=[[0,0],[0,−1]]. A disturbance injected into x2 therefore stays in x2 and never changes x1 from its zero initial value. Directly, CE=0 and C(A+BF)E=0. The example demonstrates how feedback can cancel visible coupling even though A alone would reveal the disturbance.
Read the transfer certificate correctly
The inclusion im E⊆V* determines whether every entered disturbance column can be decoupled. The output also lists C(A+BF)^kE for k from zero through n−1. When these matrices vanish, Cayley–Hamilton extends the zero Markov-parameter condition to all higher powers, establishing zero disturbance-to-output transfer for the entered finite-dimensional model.
If the inclusion fails, the reported friend still preserves the largest hidden subspace, but it cannot hide every supplied disturbance direction. Do not interpret a few zero entries as partial proof for the whole E matrix. Inspect each matrix and the final boolean, particularly when several disturbance channels are entered in different columns.
Separate geometry from stability and constraints
An output can remain exactly zero while hidden internal states grow without bound. This is why disturbance decoupling is not the same as internal stability. The calculator makes no claim about a stable friend, robustness to uncertain coupling or performance with saturated inputs. Exact cancellation is often sensitive to errors in the model coefficients.
For a practical follow-up, analyze the closed-loop dynamics and the required input on the disturbance range you expect. Check whether all state components remain acceptable, including those absent from y. The geometric result is valuable precisely because it isolates an exact structural question; preserve that interpretation rather than treating it as a complete disturbance-rejection controller.
A few questions, answered
Why is CE=0 insufficient?
It checks only instantaneous hiding. A may move a disturbance direction into the output later; controlled invariance accounts for that dynamics and the available feedback.
What is a feedback friend?
It is a matrix F that preserves the computed subspace under A+BF. The term does not imply stability or an optimal gain.
Can output stay zero with unstable states?
Yes. Hidden internal states may grow while Cx remains zero. Internal stability needs a separate check.
Are actuator limits included?
No. This is a linear subspace calculation with unrestricted state feedback, not a bounded-control reachable-set analysis.