Solutions of First Order Linear Systems
Solutions of First Order Linear Systems
An n-dimensional first order linear system is a list of n first order, linear, differential equations,
in n unknown functions of one variable. It may be written as the matrix/vector equation
x0 = Ax + f
where x is an n-dimensional vector containing the unknown functions and A is the nn coefficient
matrix. For example, the 3-dimensional linear system
x01 = x1 + 5x2 + 3x3 + et
x02 = x2 + x3
x03 = 2x2 2x3 t2
has
et
x1
1
5
3
0
1
1 and f =
x = x2 and A = 0
x3
0 2 2
t2
Note that the book uses ys instead of xs in some sections, so you should be comfortable using
either letter. We will almost always use t for the variable.
Example:
1 1
x =
x
1 1
The eigenvalues are 1 + i, and 1 i. Use the eigenvalue 1 + i to find the eigenvector
by solving
i
1
v=0
1 i
Then
1
1
0
v=
=
+i
= v1 + iv2
i
0
1
and so the two corresponding vector solutions are
1
0
t
x1 = e (cos(t)
sin(t)
)
0
1
0
and
t
x2 = e (sin(t)
1
0
+ cos(t)
0
1
)
is the n n matrix formed by writing the n column vector solutions of the homogeneous
equation next to each other
It is easy to check that Y 0 = AY and that Y is invertible because its determinant is the
Wronskian and hence non-zero. It can then be shown that the particular vector solution
is
Z
xp = Y
Y 1 f dt
You should compute xp in the following order:
(a) Find Y 1 which is an n n matrix.
(b) Find Y 1 f which is a vector.
R
(c) Find Y 1 f dt which is a vector. You compute the integral of a vector by finding an
anti-derivative of each entry, and this is a case where you can choose the constants
of integration to be 0 because we are only looking for one particular solution.
R
(d) Find xp = Y Y 1 f dt which is a vector.
(3) General Solution: The general solution is the vector
x = xh + xp = c1 x1 + c2 x2 + + cn xn + xp
(4) Initial Value Problems: An IVP will have the form
x0 = Ax + f , x(t0 ) = x0
In this case you can solve for the constants c1 , c2 , . . . , cn . Substitute the initial condition
into the general solution, and this will give you n equations in the n unknown constants.
Examples: See if you can verify the solutions to the following problems.
(1) In this example we have a repeated eigenvalue but there are sufficient eigenvectors
2
2 4
x0 = 2 1 2 x
4
2 6
The characteristic equation for the matrix is
( + 1)( + 2)2 = 0
so the eigenvalues are 1 and 2. First consider the eigenvalue = 2, which has
Algebraic Multiplicity 2, and for which the eigenvector equation is
4 2 4
2 1 2 v = 0.
4 2 4
This equation has two degrees of freedom so the eigenvalue = 2 has Geometric Multiplicity 2 and thus it has two eigenvectors. For example we could choose
1
1
v1 = 2 , v2 = 0
0
1
The eigenvalue = 1 has Algebraic Multiplicity 1 and a corresponding eigenvector
2
1 .
v3 =
2
The general solution of the system is
1
1
2
x = c1 e2t 2 + c2 e2t 0 + c3 et 1
0
1
2
(2) In this example there is a repeated eigenvalue and we need to find a generalized eigenvector.
1
2
1
0 x
x0 = 0 1
1 3 3
The characteristic equation for the matrix is (as in the previous example)
( + 1)( + 2)2 = 0
and so the eigenvalues are 1 and 2. First consider the eigenvalue = 2, which has
Algebraic Multiplicity 2, and for which the eigenvector equation is
1
2
1
0
1
0 v = 0
1 3 1
which only has one degree of freedom. We can choose the eigenvector
1
v1 = 0
1
0
1 0
1
2
1
1 0
1
0 = 0
(A I)2 = 0
1 3 1
0 2 0
and then solve the equation
0
1 0
0
1 0 v = 0
0 2 0
which has two degrees of freedom. As always, we should choose the eigenvector v1 as
one solution. The other solution v2 is a generalized eigenvector and must be linearly
independent with v1 , so for example we can choose
1
v2 = 0
0
The two vector solutions of the system are then
1
x1 = e2t 0
1
and
1
2
1
1
1+t
1
0 ) 0 = e2t 0
x2 = e2t (I + t 0
1 3 1
0
t
The eigenvalue = 1 has Algebraic Multiplicity 1 and a corresponding eigenvector
1
v3 = 1
2
and so the general solution of the system is
1
1+t
1
x = c1 e2t 0 + c2 e2t 0 + c3 et 1
1
t
2
(3) Solve the initial value problem for following system of equations
x0 = x + y + t, y 0 = x y t, x(0) = 1, y(0) = 1
to find formulas for x(t) and y(t).
First put the system of equations into matrix/vector form x0 = Ax + f where
1
1
t
A=
and f =
1 1
t
and then find the eigenvalues of A which are 0 and 2. The corresponding eigenvectors
are
1
1
v1 =
and v2 =
1
1
so a Fundamental Matrix for the homogeneous system is
1 e2t
Y =
.
1
e2t
Now we compute
solution xp
the particular
1
1
(a) Y 1 = 12
e2t e2t
0
(b) Y 1 f =
e2t t
R 1
0
(c) Y f dt =
12 e2t t + 14 e2t
t 1
R 1
2 4
(d) xp = Y Y f dt =
2t + 14
The general solution is
x = xh + xp = c1
Finally, remember that x =
1
1
x
y
+ c2 e2t
1
1
+
t
2
2t
1
4
1
4
3 1 2t
+ e
+
4 4
5 1 2t
e
4 4
t
2
t
2
t2 2 t3 3
A + A +
2!
3!
This is the definition but we NEVER (well almost never) use it to actually find etA because
computing an infinite series of matrices is too hard. Usually we want to compute etA v since this
is a solution of x0 = Ax for any vector v.
Let be an eigenvalue of A, and note that tA = t(I + A I). Then, because tI is a diagonal
matrix, we can use the usual law of exponents and so
etA = etI et(AI)
t3
t2
(A I)2 + (A I)3 + )
2!
3!
Now if v1 is an eigenvector, then (A I)v1 = 0, so
= et (I + t(A I) +
etA v1 = et Iv1 = et v1
and if v2 is a generalized eigenvector, then (A I)d v2 = 0, so
t2
t3
td1
(A I)2 + (A I)3 + +
(A I)d1 )v2
2!
3!
(d 1)!
Finally, if you ever need to compute a matrix exponential, find a Fundamental Matrix Y for the
equation x0 = Ax and then use the formula
etA v2 = et (I + t(A I) +
etA = Y Y (0)1