Theoremintro
Variation of constants formula
Also called Lagrange formula for linear systems, convolution solution of the state equation.
The state of x' = Ax + Bu is e^(At)x(0) plus the integral of e^(A(t-s))Bu(s), the free response plus the forced response.
The variation of constants formula gives the solution of the linear state equation in closed form: . The first term is the free response to the initial state, and the second is the forced response to the input, a convolution of the input with . The formula holds for every locally integrable input, and with the state-transition matrix in place of it also holds for time-varying systems. Most results on linear systems start from it: the impulse response, the transfer matrix, the zero-order hold discretization and the controllability gramian.
Statement
Theorem (time-invariant). Let , , and . Let be locally integrable, for example piecewise continuous. Then for every the initial value problem
has exactly one solution in the sense of Carathéodory (an absolutely continuous that satisfies the equation for almost every ), and it is
The output is
If is continuous, is and satisfies the equation at every .
Theorem (time-varying). Let and be continuous on an interval that contains , let be the state-transition matrix of , and let be locally integrable on . Then the unique solution of , , is
Discrete time. For , . This follows by induction on .
In plain words
A linear system responds to two things: where it starts and how it is pushed. Because the system is linear, these two effects simply add. The start fades or grows on its own, as the free motion of the system dictates. Each small push at an earlier moment also sets off its own free motion, which by now has run for the time since that push. The present state is the free motion from the start plus the sum of the free motions from all earlier pushes. The name comes from the method of proof: take the solution without input, and let its constants vary in time so that it also fits the input.
Proof
Time-invariant case. Recall that , and that is the inverse of (see matrix exponential).
Existence. Define by the formula. Write it as with . This is the "variation of the constant" : without the integral, and is the free solution. Since is locally integrable and is continuous, is absolutely continuous, and by the Lebesgue differentiation theorem for almost every . The product rule gives, for almost every ,
and . If is continuous, is by the fundamental theorem of calculus, and the equation holds at every .
Uniqueness. Let be any Carathéodory solution and put . Then is absolutely continuous and, for almost every ,
because commutes with . An absolutely continuous function is the integral of its derivative, so . Multiplying by and using gives the formula. So every solution equals it.
The output formula follows by substitution into .
Time-varying case. The same two steps work with in place of . The needed facts are , and ; they are on the state-transition matrix page. With one gets , and the rest is the same.
Consequences
- Superposition. The free response is linear in , and the forced response is linear in . The response to is the sum of the response to and to . Each is a theorem, not an approximation.
- Impulse response and transfer matrix. With and , with for , plus the direct term . So the impulse response of the state model is , and the forced response is a convolution. The Laplace transform of is , the transfer function matrix. The coefficients of its expansion are the Markov parameters.
- Zero-order hold. If is constant on , the formula on one interval gives . This is the exact discrete model of zero-order hold discretization.
- Reachable states and the gramian. From , . The input gives with , the controllability gramian. This is the start of the proof that is controllable if and only if is invertible.
- Bounds. If is Hurwitz with , then . So a bounded input gives a bounded state, and the effect of the initial state decays exponentially. This is the linear case of input-to-state stability.
- Perturbed systems. For , the formula with replaced by turns the equation into an integral equation, . With the Grönwall inequality this gives the proof of Lyapunov's indirect method when for small and is small enough. It is also the starting point of exponential integrators in numerical analysis.
- Step response. For constant and invertible , . For a Hurwitz this tends to , and the static gain is .
Example. Take the scalar system with and . The formula gives . Check: and . At , : the free response plus the forced response .
Tightness
- Linearity is needed. For a nonlinear the free and forced responses do not add, and the integral form above is an equation in , not a formula. For with and , the solution stays at . The free response from with is , which is at . The forced response from with is at (RK4 with step 0.001). Their sum is , not 1.
- The input must be locally integrable. For with on and , the integral diverges, and no solution starts at . The formula has no meaning there, and none is expected.
- The time-varying formula needs . Replacing by is wrong unless commutes with its integrals; the state-transition matrix page gives a counterexample.
- Impulses. If contains a Dirac impulse , the solution jumps at by times the weight. The formula still holds if the integral starts at , which is the 0- convention of the Laplace transform pages.
History
The method of variation of constants comes from celestial mechanics. Euler used the idea in his 1748 study of the mutual perturbation of Jupiter and Saturn, where the constants of a two-body orbit are allowed to change in time. Lagrange developed it in memoirs from the 1770s to 1810 into a general method for the variation of arbitrary constants, and in this way it became a standard method for linear differential equations with a forcing term. The matrix form with entered control with the state-space methods of Kalman and others around 1960, and it is the basic formula of the linear system theory books by Chen and by Rugh.
References
- Chi-Tsong Chen, Linear System Theory and Design, third edition, Oxford University Press, 1999, Chapter 4 (solution of the time-invariant and the time-varying state equations)
- Wilson J. Rugh, Linear System Theory, second edition, Prentice Hall, 1996, Chapter 3, State Equation Solution (the complete solution with an input, for time-varying systems)
- 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 (the matrix exponential and the convolution equation)
- Hassan K. Khalil, Nonlinear Systems, third edition, Prentice Hall, 2002, Section 4.3, Linear Systems and Linearization (stability of x' = Ax through e^(At), and the linearization of a nonlinear system)
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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 8NKZ49 Edit this page History Report an error Markdown