Skip to content
Systems Theory

Matrix exponential, Lagrange's formula and natural modes

Definition and properties of the matrix exponential, Lagrange's formula proved, free and forced response, modes for real, complex and repeated eigenvalues, computation with Laplace, a complete example.

A linear time-invariant system \dot{x} = Ax + Bu can be solved exactly, for any input. The solution is written with the matrix exponential, and its structure reveals the natural modes of the system: the elementary forms of motion of which every evolution is a combination. In this lesson we define the matrix exponential, prove Lagrange’s formula, look at the modes for real, complex and repeated eigenvalues, the computation with the Laplace transform and a complete example.

The matrix exponential

For a scalar, \dot{x} = ax has solution x(t) = e^{at}x_0. For matrices it is defined in the same way, with the series

    \[ e^{At} = I + At + \frac{(At)^2}{2!} + \frac{(At)^3}{3!} + \dots \]

which converges for every square matrix and every t. Differentiating term by term gives \frac{d}{dt}e^{At} = Ae^{At}, and moreover e^{A\cdot 0} = I and e^{A(t+s)} = e^{At}e^{As}. Beware: e^{A+B} = e^A e^B holds only if A and B commute.

Lagrange’s formula

Theorem. The solution of \dot{x} = Ax + Bu with x(0) = x_0 is

    \[ x(t) = e^{At}x_0 + \int_0^t e^{A(t-\tau)}B\,u(\tau)\,d\tau \]

Proof. Multiply the equation on the left by e^{-At}: e^{-At}\dot{x} - e^{-At}Ax = e^{-At}Bu. The left-hand side is the derivative of e^{-At}x(t), because \frac{d}{dt}e^{-At} = -Ae^{-At} = -e^{-At}A (A commutes with its own exponential). Integrating from 0 to t:

    \[ e^{-At}x(t) - x_0 = \int_0^t e^{-A\tau}B\,u(\tau)\,d\tau \]

and multiplying on the left by e^{At} gives the formula. The solution is unique because the equation is linear with constant coefficients. ∎

The first term is the free response, due to the initial condition alone; the second the forced response, due to the input alone, and it is a convolution integral with the state impulse response e^{At}B. The output is obtained by multiplying by C and adding Du. It is the same structure as the convolution seen in the Signal Theory lesson on LTI systems.

Natural modes

If A is diagonalisable, A = V\Lambda V^{-1} with \Lambda the diagonal matrix of eigenvalues and V the matrix of eigenvectors. Then A^k = V\Lambda^k V^{-1} and, summing the series,

    \[ e^{At} = V\,e^{\Lambda t}\,V^{-1},\qquad e^{\Lambda t} = \mathrm{diag}\left(e^{\lambda_1 t}, \dots, e^{\lambda_n t}\right) \]

Every element of e^{At} is therefore a combination of the functions e^{\lambda_i t}: the modes of the system. If the initial state is an eigenvector v_i, the free response always stays along that direction, x(t) = e^{\lambda_i t}v_i.

Natural modes of a linear system for different kinds of eigenvalues
A negative real eigenvalue gives a decaying exponential; a complex pair with negative real part a damped oscillation; a double eigenvalue without enough eigenvectors the mode t times exponential; a positive eigenvalue a growing exponential.

The possible cases are:

  • real eigenvalue \lambda: mode e^{\lambda t}, which decays if \lambda \lt  0 and diverges if \lambda \gt  0;
  • complex pair \sigma \pm j\omega: two complex conjugate modes which, combined, give the real functions e^{\sigma t}\cos\omega t and e^{\sigma t}\sin\omega t: an oscillation of angular frequency \omega, damped or amplified according to the sign of \sigma;
  • repeated eigenvalue with fewer independent eigenvectors than its multiplicity: A is not diagonalisable, the Jordan form is used, and the modes t\,e^{\lambda t}, t^2e^{\lambda t}, and so on appear. For \lambda \lt  0 they decay anyway, because the exponential beats the power; for \lambda = 0 they give ramps, as in the double integrator.

Computation with the Laplace transform

Transforming \dot{x} = Ax + Bu gives sX - x_0 = AX + BU, i.e. X(s) = (sI - A)^{-1}x_0 + (sI - A)^{-1}BU(s). Comparing with Lagrange’s formula:

    \[ e^{At} = \mathcal{L}^{-1}\left\{(sI - A)^{-1}\right\},\qquad G(s) = C(sI - A)^{-1}B + D \]

where G(s) is the transfer function. Since (sI - A)^{-1} = \mathrm{adj}(sI - A)/\det(sI - A), the poles of G(s) are among the eigenvalues of A: they are all of them, unless there are cancellations (lesson on observability).

A complete example

Let A = \begin{pmatrix} 0 & 1 \\ -2 & -3 \end{pmatrix}. The characteristic polynomial is \det(sI - A) = s^2 + 3s + 2 = (s + 1)(s + 2), with eigenvalues -1 and -2. One computes

    \[ (sI - A)^{-1} = \frac{1}{(s+1)(s+2)}\begin{pmatrix} s + 3 & 1 \\ -2 & s \end{pmatrix} \]

and splits each element into partial fractions: for instance (s + 3)/((s+1)(s+2)) = 2/(s+1) - 1/(s+2). Inverting:

    \[ e^{At} = \begin{pmatrix} 2e^{-t} - e^{-2t} & e^{-t} - e^{-2t} \\ -2e^{-t} + 2e^{-2t} & -e^{-t} + 2e^{-2t} \end{pmatrix} \]

One checks at once that t = 0 gives the identity. Every element contains only the modes e^{-t} and e^{-2t}: any initial condition dies out with two decaying exponentials, the slower of which has time constant 1. The dominant mode is the one with the least negative real part, which survives longest and sets the settling time.

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x