Week 121
Week 121
Nonhomogeneous Systems
where Ψ(t) is the 2 × 2 matrix with the fundamental solutions x1 (t) and
x2 (t) along the columns.
1
Our goal is to relate the undetermined coefficients c ∈ R2 to the initial
conditions x(0) in general. This equation tells us exactly how to do that!
We have
where Ψ(0) ∈ R2×2 is the matrix Ψ(t) evaluated at zero and Ψ−1 (0) is the
inverse of this matrix. We can now plug (3) into (2) to get
where Φ(t) = Ψ(t)Ψ−1 (0) ∈ R2×2 . This is exactly what was wanted! Once
we have determined the matrix Φ(t), we have a relationship which immedi-
ately gives the solution x(t) for an arbitrary initial vector x0 .
Definition 1
Consider the initial value problem ẋ = Ax, x(0) = x0 . A matrix Ψ(t) ∈
R2×2 is called a fundamental matrix of the system if it satisfies x(t) =
Ψ(t)c where c ∈ R2 and x(t) is a solution of the system. The matrix
Φ(t) is the fundamental matrix with the property x(t) = Φ(t)x0 .
Example 1
Determine the fundamental matrix Φ(t) for the system (1).
Solution: We have
−e−4t e2t
−1 1
Ψ(t) = =⇒ Ψ(0) =
e−4t e2t 1 1
2
which implies that
− 12 1
−1 1 −1 1 2
Ψ (0) = = 1 1
2 1 1 2 2
It follows that
−e−4t e2t
−1 1 −1 1
Φ(t) = Ψ(t)Ψ (0) =
2 e−4t e2t 1 1
e−4t + e2t −e−4t + e2t
1
=
2 −e−4t + e2t e−4t + e2t
and therefore the solution can be written in the form x(t) = Φ(t)x0 as
−4t
+ e2t −e−4t + e2t
x(t) 1 e x0
= .
y(t) 2 −e−4t + e2t e−4t + e2t y0
As expected, the result relates the solutions directly to the initial con-
ditions. We no longer have to compute the constants C1 and C2 at every
iteration!
Example 2
Determine the fundamental matrix Φ(t) ∈ R2×2 for the system of dif-
ferential equations
dx
= x − 4y
dt
dy
= x − 3y.
dt
Solution: We determined last week that this system of differential
equations has the general solution
x(t) 2 2 1
= C1 + C2 t + e−t .
y(t) 1 1 0
3
We now want to determine the fundamental matrix Φ(t) = Ψ(t)Ψ−1 (0)
where Ψ(t) is the matrix with the fundamental solutions above along
the columns. We will have to be a little careful when establishing our
fundamental solutions—they are component-wise coefficients of the un-
determined constants C1 and C2 . In this case, we have that
−t −t
e + 2te−t
2e
Ψ(t) = .
e−t te−t
It follows that
2 1 −1 0 1
Ψ(0) = =⇒ Ψ (0) = .
1 0 1 −2
Consequently, we have
4
as this does not generally lead a function x(t) which is a solution of (5).
Instead, we recall that the exponential eat can be expanded as the Taylor
series
∞
X (at)n (at)2 (at)3
eat = = 1 + at + + + ···
n! 2! 3!
n=0
This suggests that, instead of defining the matrix exponent eAt directly, we
define it as the infinite series
∞
X 1 n n 1 1
eAt = A t = I + At + A2 t2 + A3 t3 + · · · (6)
n! 2! 3!
n=0
5
solution of our initial value problem. In other words, we really have two
functions which we are claiming are solutions of the initial value problem
specifically, x(t) = eAt x0 and x(t) = Φ(t)x0 . But how can this be? How can
an initial value problem have two solutions? The answer is that it can’t. It
is a well-known fact that the initial value problem (7) always has a unique
solution. We are inescapably drawn to conclude that
That is the matrix exponential coincides with the fundamental matrix Φ(t)
with the property Φ(0) = I.
Example 3
6
equation
dx
= Ax
dt
with the property Φ(0) = I. In other words, all we need to do is find
Φ(t) for the first-order system
dx
= −x + 5y
dt
dy
= −2x + y.
dt
We found last week that this system had the general solution
1 −3
x(t) = C1 cos(3t) − sin(3t)
2 0
1 −3
+ C2 sin(3t) + cos(3t) .
2 0
so that
1 −3 1 0 3
Ψ(0) = =⇒ Ψ(0)−1 = .
2 0 6 −2 1
It follows that
At 1 cos(3t) + 3 sin(3t) −3 cos(3t) + sin(3t) 0 3
e = Φ(t) =
6 2 cos(3t) 2 sin(3t) −2 1
1 6 cos(3t) − 2 sin(3t) 10 sin(3t)
=
6 −4 sin(3t) 6 cos(3t) + 2 sin(3t)
cos(3t) − 13 sin(3t) 5
3 sin(3t)
=
− 32 sin(3t) cos(3t) + 13 sin(3t)
7
Section 3: Nonhomogeneous Systems
Consider being asked to solve the differential equation
dx
=1−x
dt (9)
dy
= 1 + x − 2y
dt
by using the matrix algebra methods we have been employing over the past
two weeks.
We can rewrite the left-hand side as a vector derivative x0 (t) = (x0 (t), y 0 (t))
and collect most of the right-hand side as
−1 0 x(t)
Ax = .
1 −2 y(t)
This, however, does not incorporate all of terms in the equation since the
1’s do not fit into either of these forms. The best we can do is write them
as a separate vector, so that we have
0
x (t) −1 0 x(t) 1
0 = + .
y (t) 1 −2 y(t) 1
Definition 2
A linear nonhomogeneous system of differential equations is one
which can be written in the form
dx
= Ax + g(t) (10)
dt
where A ∈ R2×2 is a matrix of constants and g(t) ∈ R2 may depend
upon t.
8
Note: A system of differential equations is called homogeneous if
there are no terms which do not involve the state variable or its deriva-
tives (in this case, x). Although we did not identify them this way, the
systems x0 (t) = Ax(t) considered so far were all homogeneous.
9
If we had encountered this solution before our previous discussion of
matrix exponentials, we would be very distressed. We now know, however,
that eAt = Φ(t) where Φ(t) is the fundamental matrix of the corresponding
homogeneous system
dx
= Ax
dt
which satisfies also Φ(0) = I. We also know Φ(t) can be computed from an
arbitrary fundamental matrix Ψ(t) by the formula Φ(t) = Ψ(t)Ψ−1 (0).
We can take advantage of this intuition to rewrite (10) in a computable
form. In order to do this, we will use the property e−At = [eAt ]−1 = Φ−1 (t)
(true, but beyond the scope of this course), and substitute back from Φ(t) to
an arbitrary fundamental matrix Ψ(t). We arrive at the following formula:
Z
x(t) = Ψ(t)c + Ψ(t) Ψ−1 (s)g(s) ds (12)
where c = (C1 , C2 ).
As with homogeneous systems, we can use the fundamental matrix Φ(t)
to obtain a direct relationship between the solution x(t) and the initial
condition x0 . We have the following formula:
Z t
x(t) = Φ(t)x0 + Φ(t) Φ−1 (s)g(s) ds. (13)
0
Example 4
Use the system formulation to solve the following initial value problem:
dx
= 1 − x, x(0) = 0
dt (14)
dy
= 1 + x − 2y, y(0) = 1.
dt
Solution: We start by solving the linear system of differential equations
10
x0 (t) = Ax(t) with the matrix
−1 0
A= .
1 −2
e−2t et
−1 1 0 0
Ψ (t) = −t =
e−3t −e e−t −e 2t e2t
et
Z Z
−1 0 1
Ψ (t)g(t) dt = 2t 2t dt
−e e 1
Z t
e
= dt
0
t
e
=
0
where we have ignored the constants because they already appear in the
final form (13). It follows that we have
Z −t t
−1 e 0 e 1
Ψ(t) Ψ (t)g(t) dt = −t −2t = .
e e 0 1
11
The general solution is therefore
Z
x(t) = Ψ(t)c + Ψ(t) Ψ−1 (t)g(t) dt
−t
e 0 C1 1
= −t −2t + .
e e C2 1
x(t) = 1 − e−t
y(t) = 1 − e−t + e−2t
Example 5
Find the solution of the following initial value problem
dx
= −4x − 3y + e−t , x(0) = 0
dt
dy
= 3x + 2y + e−t , y(0) = 0.
dt
Solution: We start by rewriting the system as
0 −t
x (t) −4 −3 x(t) e
0 = + .
y (t) 3 2 y(t) e−t
12
We first solve the homogeneous equation x0 (t) = Ax(t) where
−4 −3
A= .
3 2
1 1 13
−3 −3 −1
−→ .
3 3 1 0 0 0
so that
−t
− 13 e−t + te−t
−1 1 te
Ψ (t) = 1 −2t
− e −e−t −e−t
3
−3tet et − 3tet
= .
3et 3et
13
It follows that we have
−3tet et − 3tet e−t
Ψ−1 (t)g(t) =
3et 3et e−t
−6t + 1
=
6
We therefore have
−3t2 + t
Z Z
−1 −6t + 1
Ψ(t) g(t) dt = dt =
6 6t
so that
−e−t 1 −t
− te−t −3t2 + t
Z
Ψ(t) −1
Ψ(s) g(s) ds = 3e
e−t te−t 6t
−3t2 e−t + te−t
= .
3t2 e−t + te−t
−1 13
0 C1 0
= + .
0 1 0 C2 0
14
Suggested Problems
1. Determine the fundamental matrix Φ(t) for the following systems of
differential equations (all derivatives with respect to t):
x0 = x − 4y x0 = −x + 9y
(a) (c)
y 0 = −y y 0 = −x − 7y
x0 = 7x + 4y x0 = 3x − 5y
(b) (d)
y 0 = −6x − 3y y0 = x + y
2. Use the system formulation to solve the following initial value prob-
lems:
dx
= 2 − 2x, x(0) = 1
(a) dt
dy
= x − y, y(0) = 1.
dt
dx 1
= −3x + et , x(0) =
(b) dt 4
dy 1
= −4x − y, y(0) = − .
dt 2
dx
= −2x + 4y + 2, x(0) = 0
(c) dt
dy
= −x + 2y + 1, y(0) = −1.
dt
dx
= 3x − 2y + t, x(0) = 0
(d) dt
dy
= 5x − 3y, y(0) = 0.
dt
3. Consider the reversible chemical reaction X Y with inflow g(t)
of X outflow of Y proportional to its concentration. Assume this
reaction system can be modeled by the following system of differential
equations:
dx
= 3 − 4x + y
dt (15)
dy = 4x − 4y.
dt
Determine the solution of the system for the initial conditions x(0) = 1
and y(0) = 1. Interpret the solution in terms of the chemical system
described.
15