Skip to content

Diagonalizable Matrix LTI differential equations

Coupled LTI Differential Equations

In this lecture we will consider coupled LTI differential equations. Below is the three equations in three unknowns:

\[
\begin{aligned}
Dy_1(t)+y_1(t)+5y_2(t)-4D^2y_3(t) &= 0\\
2y_1(t)+5Dy_2(t)-Dy_3(t) &= 0\\
D^3y_1(t)-4Dy_3(t) &= 0
\end{aligned}
\]

The unknowns are $y_1(t)$, $y_2(t)$ and $y_3(t)$.

The unknowns in the copuled LTI differential equations can be of any degree. In the above example, . y_1 is of degree 3, y_2 is of degree 1, y_3 is of degree 2. By introducing unknowns and equations, we can always reduce these degrees to 1. And after that, the coupled equations can be converted into a matrix equation.

Example: Convert the above system into a matrix equation.

Solution: As mentioned before, y_1 is of degree 3, y_2 is of degree 1, y_3 is of degree 2. We define the auxiliary variables y_4, y_5, and y_6 with three new equations:

\[
\begin{aligned}
y_4 &= Dy_1\\
y_5 &= Dy_4=D^2y_1\\
y_6 &= Dy_3
\end{aligned}
\]

Then the coupled equation system becomes

\[
\begin{aligned}
y_4 &= Dy_1\\
y_5 &= Dy_4\\
y_6 &= Dy_3\\
y_4+y_1+5y_2-4Dy_6 &=0\\
2y_1+5Dy_2-y_6 &= 0\\
Dy_5-4y_6 &=0
\end{aligned}
\]

Taking derivatives to the left hand side

\[
\begin{aligned}
Dy_1 &= y_4\\
5Dy_2 &= -2y_1+y_6\\
Dy_3 &= y_6\\
Dy_4 &= y_5\\
Dy_5 &= 4y_6\\
4Dy_6 &= y_1+5y_2+y_4
\end{aligned}
\]

Example:

\[
\begin{aligned}
Dy_1(t)+y_1(t)+5y_2(t)-4D^2y_3(t) &= 0\\
2y_1(t)+5Dy_2(t)-Dy_3(t) &= 0\\
D^3y_1(t)-4Dy_3(t) &= 0
\end{aligned}
\]

Now we have to solve the matrix LTI differential equations. Before doing this, it will be useful to review our knowledge about matrix exponentials:

Matrix Exponentials

 

Calculating $e^{At}$

We have found that the solution of $\mathbf{x}’=A\mathbf{x}$ with initial condition $\mathbf{x}(0)=\mathbf{x}_0$ is

\[
\mathbf{x}(t)=e^{At}\mathbf{x}_0.
\]

However, this expression is not yet a practical solution: we still need to calculate $e^{At}$. Its power-series definition involves infinitely many matrix powers,

\[
e^{At}=I+tA+\frac{t^2A^2}{2!}+\cdots,
\]

and although truncating this series can provide an approximation, it does not immediately give us an explicit expression for the solution.

For a diagonal matrix, the calculation is much simpler: its powers can be calculated by taking powers of its diagonal entries. This suggests a strategy: can we transform $A$ into a diagonal matrix, calculate the exponential there, and then transform back?

When $A$ has $n$ linearly independent eigenvectors, this is possible. Such a matrix is called diagonalizable. Placing these eigenvectors in the columns of a matrix $P$, and their corresponding eigenvalues on the diagonal of a matrix $\Lambda$, we have

\[
AP=P\Lambda.
\]

Since the columns of $P$ are linearly independent, $P$ is invertible. Multiplying both sides on the right by $P^{-1}$ gives

\[
A=P\Lambda P^{-1}.
\]

We will now use this relation to calculate $e^{At}$. Rememmber the power-series definition of the exponential:

\[
e^{at}=1+at+\frac{a^2t^2}{2!}+\frac{a^3t^3}{3!}+\cdots.
\]

Every term still makes sense when $a$ is replaced by a square matrix $A$, provided we replace $1$ with the identity matrix:

\[
\boxed{
e^{At}=I+tA+\frac{t^2A^2}{2!}+\frac{t^3A^3}{3!}+\cdots.
}
\]

This series converges for every finite $t$. Differentiating term by term gives

\[
\begin{aligned}
\frac{d}{dt}e^{At}
&=A+tA^2+\frac{t^2A^3}{2!}+\cdots\\
&=A\left(I+tA+\frac{t^2A^2}{2!}+\cdots\right)\\
&=Ae^{At}.
\end{aligned}
\]

Now we are ready to find the solution of LTI matrix differential equations.

Solving LTI Matrix differential equations

Now define $\mathbf{x}(t)=e^{At}\mathbf{x}_0$. It satisfies both the differential equation,

\[
\mathbf{x}'(t)=Ae^{At}\mathbf{x}_0=A\mathbf{x}(t),
\]

and the initial condition,

\[
\mathbf{x}(0)=e^{A0}\mathbf{x}_0=I\mathbf{x}_0=\mathbf{x}_0.
\]

By uniqueness of the initial-value problem, this is the solution.

 

Calculating $e^{At}$

If $A$ is diagonalizable, we can write

\[
A=P\Lambda P^{-1},
\]

where the columns of $P$ are linearly independent eigenvectors of $A$, and $\Lambda$ is the diagonal matrix of the corresponding eigenvalues.

Consider the powers of $A$. Since $P^{-1}P=I$, we have

\[
\begin{aligned}
A^2
&=(P\Lambda P^{-1})(P\Lambda P^{-1})\\
&=P\Lambda(P^{-1}P)\Lambda P^{-1}\\
&=P\Lambda^2P^{-1}.
\end{aligned}
\]

Similarly,

\[
\begin{aligned}
A^3
&=A^2A\\
&=(P\Lambda^2P^{-1})(P\Lambda P^{-1})\\
&=P\Lambda^3P^{-1}.
\end{aligned}
\]

Continuing in this way, we obtain

\[
A^k=P\Lambda^kP^{-1}.
\]

This also holds for $k=0$, since $A^0=I=PIP^{-1}$.

Substituting these expressions into the power series for the matrix exponential gives

\[
\begin{aligned}
e^{At}
&=I+tA+\frac{t^2A^2}{2!}+\frac{t^3A^3}{3!}+\cdots\\
&=PIP^{-1}
+tP\Lambda P^{-1}
+\frac{t^2}{2!}P\Lambda^2P^{-1}
+\frac{t^3}{3!}P\Lambda^3P^{-1}
+\cdots\\
&=P\left(
I+t\Lambda+\frac{t^2\Lambda^2}{2!}
+\frac{t^3\Lambda^3}{3!}+\cdots
\right)P^{-1}.
\end{aligned}
\]

The series inside the parentheses is precisely the definition of $e^{\Lambda t}$. Therefore,

\[
\boxed{e^{At}=Pe^{\Lambda t}P^{-1}.}
\]

To calculate $e^{\Lambda t}$, note that powers of a diagonal matrix are obtained by raising each diagonal entry to the corresponding power:

\[
\Lambda=
\begin{bmatrix}
\lambda_1&\cdots&0\\
\vdots&\ddots&\vdots\\
0&\cdots&\lambda_n
\end{bmatrix},
\qquad
\Lambda^k=
\begin{bmatrix}
\lambda_1^k&\cdots&0\\
\vdots&\ddots&\vdots\\
0&\cdots&\lambda_n^k
\end{bmatrix}.
\]

Consequently,

\[
\begin{aligned}
e^{\Lambda t}
&=I+t\Lambda+\frac{t^2\Lambda^2}{2!}+\cdots\\
&=
\begin{bmatrix}
1+t\lambda_1+\frac{t^2\lambda_1^2}{2!}+\cdots
&\cdots&0\\
\vdots&\ddots&\vdots\\
0&\cdots&
1+t\lambda_n+\frac{t^2\lambda_n^2}{2!}+\cdots
\end{bmatrix}\\
&=
\begin{bmatrix}
e^{\lambda_1t}&\cdots&0\\
\vdots&\ddots&\vdots\\
0&\cdots&e^{\lambda_nt}
\end{bmatrix}.
\end{aligned}
\]

Thus, calculating the exponential of a diagonalizable matrix reduces to calculating ordinary scalar exponentials of its eigenvalues.

Summary: Solving a Diagonalizable LTI System

Consider the differential equation

\[
\mathbf{x}’=A\mathbf{x},
\qquad
\mathbf{x}(0)=\mathbf{x}_0.
\]

If $A$ has $n$ linearly independent eigenvectors $\mathbf{v}_1,\ldots,\mathbf{v}_n$, with corresponding eigenvalues $\lambda_1,\ldots,\lambda_n$, form the matrix

\[
P=
\begin{bmatrix}
\mathbf{v}_1&\mathbf{v}_2&\cdots&\mathbf{v}_n
\end{bmatrix}.
\]

The solution is

\[
\boxed{
\mathbf{x}(t)=
P
\begin{bmatrix}
e^{\lambda_1t}&0&\cdots&0\\
0&e^{\lambda_2t}&\cdots&0\\
\vdots&\vdots&\ddots&\vdots\\
0&0&\cdots&e^{\lambda_nt}
\end{bmatrix}
P^{-1}\mathbf{x}_0.
}
\]

The order of the eigenvalues on the diagonal must match the order of their eigenvectors in $P$.

One last trick allows us to avoid explicitly calculating the inverse of $P$. Define the constant vector

\[
\mathbf{c}=P^{-1}\mathbf{x}_0.
\]

Instead of calculating $P^{-1}$, we can find $\mathbf{c}$ by solving the linear system

\[
P\mathbf{c}=\mathbf{x}_0.
\]

Then the solution becomes

\[
\mathbf{x}(t)=
P
\begin{bmatrix}
e^{\lambda_1t}&0&\cdots&0\\
0&e^{\lambda_2t}&\cdots&0\\
\vdots&\vdots&\ddots&\vdots\\
0&0&\cdots&e^{\lambda_nt}
\end{bmatrix}
\mathbf{c}.
\]

Equivalently, writing $\mathbf{c}=[c_1,\ldots,c_n]^T$, we obtain

\[
\boxed{
\mathbf{x}(t)=
c_1e^{\lambda_1t}\mathbf{v}_1
+\cdots+
c_ne^{\lambda_nt}\mathbf{v}_n.
}
\]

The initial condition determines these constants at $t=0$.

\[
\boxed{ c_1\mathbf{v}_1+\cdots+c_n\mathbf{v}_n=\mathbf{x}_0.}
\]

Example 1

The following system has eigenvalues -1, 3 and 1. Find its solution.

\[
\frac{d}{dt}
\begin{bmatrix}
y_1\\
y_2\\
y_3
\end{bmatrix}
=
\begin{bmatrix}
-3&8&-28\\
-8&19&-64\\
-2&4&-13
\end{bmatrix}
\begin{bmatrix}
y_1\\
y_2\\
y_3
\end{bmatrix},
\qquad
\begin{bmatrix}
y_1(0)\\
y_2(0)\\
y_3(0)
\end{bmatrix}
=
\begin{bmatrix}
1\\
0\\
0
\end{bmatrix}.
\]

Solution 1 

\[
A=
\begin{bmatrix}
-3&8&-28\\
-8&19&-64\\
-2&4&-13
\end{bmatrix}.
\]

Solving $(A-\lambda I)\mathbf{v}=0$ gives:

\[
\lambda_1=-1:\quad
\mathbf{v}_1=\begin{bmatrix}2\\4\\1\end{bmatrix},
\qquad
\lambda_2=3:\quad
\mathbf{v}_2=\begin{bmatrix}2\\5\\1\end{bmatrix},
\qquad
\lambda_3=1:\quad
\mathbf{v}_3=\begin{bmatrix}1\\4\\1\end{bmatrix}.
\]

The general solution is

\[
\mathbf{y}(t)=c_1e^{-t}\begin{bmatrix}2\\4\\1\end{bmatrix}+c_2e^{3t}\begin{bmatrix}2\\5\\1\end{bmatrix}+c_3e^t\begin{bmatrix}1\\4\\1\end{bmatrix}.
\]

Now it remains to apply the initial condition. At $t=0$

\[
\mathbf{y}(0)=c_1\begin{bmatrix}2\\4\\1\end{bmatrix}+c_2\begin{bmatrix}2\\5\\1\end{bmatrix}+c_3\begin{bmatrix}1\\4\\1\end{bmatrix} = .\begin{bmatrix}
1\\
0\\
0
\end{bmatrix}.
\]

Equating corresponding components, we obtain

\[
\begin{aligned}
2c_1+2c_2+c_3&=1,\\
4c_1+5c_2+4c_3&=0,\\
c_1+c_2+c_3&=0.
\end{aligned}
\]

Solving this system gives

\[
c_1=1,\qquad c_2=0,\qquad c_3=-1.
\]

Example 2

Example 2: The following system has eigenvalues 1, 1 and 2. Find its solution.

\[
\frac{d}{dt}
\begin{bmatrix}
y_1\\
y_2\\
y_3
\end{bmatrix}
=
\begin{bmatrix}
1 & -1 & -1\\
0 & 3 & 2\\
0 & -1 & 0
\end{bmatrix}
\begin{bmatrix}
y_1\\
y_2\\
y_3
\end{bmatrix}
\]

Example 3:

The following system has eigenvalues 2, 1 and -1. Find its solution.

\[
\frac{d}{dt}
\begin{bmatrix}
y_1\\
y_2\\
y_3
\end{bmatrix}
=
\begin{bmatrix}
5 & 0 & 3\\
-4 & 1 & -2\\
-6 & 0 & -4
\end{bmatrix}
\begin{bmatrix}
y_1\\
y_2\\
y_3
\end{bmatrix}
\]

Example 4:

The following system has eigenvalues $i,-i$. Find its solution.

\[
\frac{d}{dt}
\begin{bmatrix}
y_1\\
y_2
\end{bmatrix}
=
\begin{bmatrix}
0 & -1\\
1 & 0
\end{bmatrix}
\begin{bmatrix}
y_1\\
y_2
\end{bmatrix}
\]

with eigenvectors

\[
\begin{bmatrix}
1\\
-i
\end{bmatrix},
\begin{bmatrix}
1\\
i
\end{bmatrix}
\]

corresponding to eigenvalues $i,-i$ respectively.

Example 5:

The following system has eigenvalues $i,-i$ and 2. Find its solution.

\[
\frac{d}{dt}
\begin{bmatrix}
y_1\\
y_2\\
y_3
\end{bmatrix}
=
\begin{bmatrix}
1 & -1 & 0\\
1 & 0 & 0\\
0 & 0 & 2
\end{bmatrix}
\begin{bmatrix}
y_1\\
y_2\\
y_3
\end{bmatrix}
\]

eigenvectors corresponding to eigenvalues $i,-i$ and 2 are

\[
\begin{bmatrix}
1\\
-i\\
0
\end{bmatrix},
\begin{bmatrix}
1\\
i\\
0
\end{bmatrix},
\begin{bmatrix}
0\\
0\\
1
\end{bmatrix}
\]

in that order.

Example 6:

The following system has eigenvalues $1+3i,1-3i$ and 2. Find its solution.

\[
\frac{d}{dt}
\begin{bmatrix}
y_1\\
y_2\\
y_3
\end{bmatrix}
=
\begin{bmatrix}
1 & -3 & 0\\
3 & 1 & 0\\
0 & 0 & 2
\end{bmatrix}
\begin{bmatrix}
y_1\\
y_2\\
y_3
\end{bmatrix}
\]

eigenvectors corresponding to eigenvalues $i,-i$ and 2 are

\[
\begin{bmatrix}
1\\
-i\\
0
\end{bmatrix},
\begin{bmatrix}
1\\
i\\
0
\end{bmatrix},
\begin{bmatrix}
0\\
0\\
1
\end{bmatrix}
\]

in that order.

Example 7:

The following system has eigenvalues $1+3i,1-3i$ and 2. Find its solution.

\[
\frac{d}{dt}
\begin{bmatrix}
y_1\\
y_2\\
y_3
\end{bmatrix}
=
\begin{bmatrix}
2 & -4 & 0\\
1 & 3 & 0\\
0 & 0 & 5
\end{bmatrix}
\begin{bmatrix}
y_1\\
y_2\\
y_3
\end{bmatrix}
\]

eigenvectors corresponding to eigenvalues $\frac{5}{2}+\frac{\sqrt{15}}{2}i,\frac{5}{2}-\frac{\sqrt{15}}{2}i$ and 5 are

\[
\begin{bmatrix}
1\\
\frac{1}{8}+\frac{\sqrt{15}}{8}i\\
0
\end{bmatrix},
\begin{bmatrix}
1\\
\frac{1}{8}-\frac{\sqrt{15}}{8}i\\
0
\end{bmatrix},
\begin{bmatrix}
4\\
3\\
1
\end{bmatrix}
\]

in that order.

The solution is

\[
\mathbf{y}(t)=
C_1 e^{\left(\frac{5}{2}+\frac{\sqrt{15}}{2}i\right)t}
\begin{bmatrix}
1\\
-\frac{1}{8}-\frac{\sqrt{15}}{8}i\\
0
\end{bmatrix}
+
C_2 e^{\left(\frac{5}{2}-\frac{\sqrt{15}}{2}i\right)t}
\begin{bmatrix}
1\\
-\frac{1}{8}+\frac{\sqrt{15}}{8}i\\
0
\end{bmatrix}
+
C_3 e^{5t}
\begin{bmatrix}
0\\
0\\
1
\end{bmatrix}.
\]

In this form, this solution is usesell for us. We have to filter out the complex part. This can be done by choosing $C_2=C_1^*$.

\[
\begin{aligned}
\mathbf{y}(t)
={}&
\frac{A-iB}{2}
e^{\left(\frac{5}{2}+\frac{\sqrt{15}}{2}i\right)t}
\begin{bmatrix}
1\\
-\frac{1}{8}-\frac{\sqrt{15}}{8}i\\
0
\end{bmatrix}
+
\frac{A+iB}{2}
e^{\left(\frac{5}{2}-\frac{\sqrt{15}}{2}i\right)t}
\begin{bmatrix}
1\\
-\frac{1}{8}+\frac{\sqrt{15}}{8}i\\
0
\end{bmatrix}
\\
&+
C_3e^{5t}
\begin{bmatrix}
0\\
0\\
1
\end{bmatrix}.
\end{aligned}
\]