Differential Equations for EngineersXYZ Homework Edition

⇩ Download ▾

3.3 Linear systems of ODEs

First let us talk about matrix or vector valued functions. Such a function is just a matrix whose entries depend on some variable. If tt is the independent variable, we write a vector valued function x(t)\vec {x} (t) as

x ( t ) = [ x 1 ( t ) x 2 ( t ) x n ( t ) ] \vec {x} (t) = \begin {bmatrix} x_1(t) \\ x_2 (t) \\ \vdots \\ x_n (t) \end {bmatrix} \nonumber

Similarly a matrix valued function A(t)A(t) is

A ( t ) = [ a 11 ( t ) a 12 ( t ) a 1 n ( t ) a 21 ( t ) a 22 ( t ) a 2 n ( t ) a n 1 ( t ) a n 2 ( t ) a n n ( t ) ] A (t) = \begin {bmatrix} a_{11} (t) & a_{12} (t) & \cdots & a_{1n} (t) \\ a_{21} (t) & a_ {22} (t) & \cdots & a_{2n} (t) \\ \vdots & \vdots & \ddots & \vdots \\ a_{n1}(t) & a_{n2}(t) & \cdots & a_{nn}(t) \end {bmatrix} \nonumber

We can talk about the derivative A(t)A'(t) or dAdt\frac {dA}{dt}. This is just the matrix valued function whose ijthij^{th} entry is aij(t)a'_{ij} (t).

Rules of differentiation of matrix valued functions are similar to rules for normal functions. Let A(t)A(t) and B(t)B(t) be matrix valued functions. Let cc be a scalar and let CC be a constant matrix. Then

( A ( t ) + B ( t ) ) = A ( t ) + B ( t ) ( A ( t ) B ( t ) ) = A ( t ) B ( t ) + A ( t ) B ( t ) ( c A ( t ) ) = c A ( t ) ( C A ( t ) ) = C A ( t ) ( A ( t ) C ) = A ( t ) C \begin{align}\begin{aligned} {(A(t) + B(t))}' &= A' (t) + B' (t) \\ (A(t)B(t))' &= A'(t)B(t) + A(t)B'(t) \\ (cA(t))' &= cA' (t) \\ (CA(t))' &= CA'(t) \\ (A(t)C)' &= A' (t)C \end{aligned}\end{align} \nonumber

Note the order of the multiplication in the last two expressions.

A first order linear system of ODEs is a system that can be written as the vector equation

x ( t ) = P ( t ) x ( t ) + f ( t ) \vec {x} (t) = P(t) \vec {x} (t) + \vec {f} (t) \nonumber

where P(t)P(t) is a matrix valued function, and x(t)\vec {x} (t) and f(t)\vec {f} (t) are vector valued functions. We will often suppress the dependence on tt and only write x=Px+f\vec {x} = P \vec {x} + \vec {f}. A solution of the system is a vector valued function x\vec {x} satisfying the vector equation.

For example, the equations

x 1 = 2 t x 1 + e t x 2 + t 2 x 2 = x 1 t x 2 + e t \begin{align}\begin{aligned} x'_1 &= 2tx_1 + e^tx_2 + t^2 \\ x'_2 &= \frac {x_1}{t} - x_2 + e^t \end{aligned}\end{align} \nonumber

can be written as

x = [ 2 t e t 1 t 1 ] x + [ t 2 e t ] \vec {x'} = \begin {bmatrix} 2t & e^t \\ \frac {1}{t} & -1 \end {bmatrix} \vec {x'} + \begin {bmatrix} t^2 \\ e^t \end {bmatrix} \nonumber

We will mostly concentrate on equations that are not just linear, but are in fact constant coefficient equations. That is, the matrix PP will be constant; it will not depend on tt.

When f=0\vec {f} = \vec {0} (the zero vector), then we say the system is homogeneous. For homogeneous linear systems we have the principle of superposition, just like for single homogeneous equations.

Linear independence for vector valued functions is the same idea as for normal functions. The vector valued functions x1,x2,,xn\vec {x}_1, \vec {x}_2, \dots, \vec {x}_n are linearly independent when

c 1 x 1 + c 2 x 2 + + c n x n = 0 \label{eq:12}c_1 \vec {x}_1 + c_2 \vec {x}_2 + \dots + c_n \vec {x}_n = \vec {0}

(3.3.1)

has only the solution c1=c2==cn=0c_1 = c_2 = \dots = c_n = 0, where the equation must hold for all tt.

The linear combination c1x1+c2x2++cnxnc_1 \vec {x}_1 + c_2 \vec {x}_2 + \dots + c_n \vec {x}_n could always be written as

X ( t ) c X (t) \vec {c} \nonumber

where X(t)X (t) is the matrix with columns x1,,xn\vec {x}_1, \dots, \vec {x}_n, and c\vec {c} is the column vector with entries c1,,cnc_1, \dots, c_n. The matrix valued function X(t)X (t) is called the fundamental matrix, or the fundamental matrix solution.

To solve nonhomogeneous first order linear systems, we use the same technique as we applied to solve single linear nonhomogeneous equations.

So the procedure will be the same as for single equations. We find a particular solution to the nonhomogeneous equation, then we find the general solution to the associated homogeneous equation, and finally we add the two together.

Alright, suppose you have found the general solution x=Px+f\vec {x}' = P \vec {x} + \vec {f}. Now you are given an initial condition of the form

xt0=b\vec {x} {t_0} = \vec {b} \nonumber

for some constant vector b\vec {b}. Suppose that X(t)X (t) is the fundamental matrix solution of the associated homogeneous equation (i.e. columns of X(t)X (t) are solutions). The general solution can be written as

x ( t ) = X ( t ) c + x p ( t ) \vec {x} (t) = X (t) \vec {c} + \vec {x}_p (t) \nonumber

We are seeking a vector c\vec {c} such that

b = x ( t 0 ) = X ( t 0 ) c + x p ( t 0 ) \vec {b} = \vec {x} (t_0) = X (t_0) \vec {c} + \vec {x}_p (t_0) \nonumber

In other words, we are solving for c\vec {c} the nonhomogeneous system of linear equations

X ( t 0 ) c = b x p ( t 0 ) X(t_0) \vec {c} = \vec {b} - \vec {x}_p (t_0) \nonumber

Adapted from Differential Equations for Engineers by Jiří Lebl (https://www.jirka.org/diffyqs/), © Jiří Lebl, licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.