Professional Documents
Culture Documents
Lecture 22
Applications of systems of differential equations
Mixing problems
Consider a series of three vats with brine pumped between them at a rate
of r liters per minute
r
Vi .
x1
k1
0
0
x1
c0 r
x2 = k1 k2
0 x2 + 0 = Ax + f
x3
0
k2 k3
x3
0
A numerical example
Let
r = 60 c0 = 1 V1 = 20 V2 = 12 V3 = 60
x1 (0) = 44
x2 (0) = 0 x3 (0) = 0
the DE is
0
60
x1
3 0
0
x1
x2 = 3 5 0 x2 + 0
0
x3
0
5 1
x3
The particular (equilibrium) solution is found by putting the left hand side
of equation to zero
20
xp = 12
60
The eigenvalues of A are 1, 3, 5
2 0 0
0
3 4 0 v1 = 0
0
5 0
0
0 0 0
3 2 0 v3 =
0 5 2
2 0 0
3 0 0 v5 =
0 5 4
0
0
0
0
0
0
v1
0
= 0
1
4
v3 = 6
15
0
v5 = 4
5
20
0
4
0
x = 12 + c1 e t 0 + c2 e t 6 + c3 e 5t 4
60
1
15
5
Using the initial condition gives
44
20 + 4c2
0 =
12 + 6c2 + 4c3
0
60 + c1 15c2 5c3
with solution
c1 = 30
c2 = 6
c3 = 12
A is constant
We will use the same idea that worked for first order systems, let
x = e t v
Substituting into the DE gives
2 ve t = Ave t
Av = 2 v
x=e
At
c1 + e
At
c2
An application
Consider two masses with the same mass, m, connected by three springs
as shown below
x1
x2
00
1
=
m
mx 00 = k3 x2 + k2 (x1 x2 )
(k1 + k2 )
k2
k2
(k2 + k3 )
x1
x2
1
(k1 + 2k2 + k3 ) < 0
m
The determinant is
detA =
1
1
2
(k
+
k
)(k
+
k
)
k
= 2 (k1 k2 + k2 k3 + k3 k1 ) > 0
1
2
2
3
2
m2
m
and
1
((k1 + k3 )2 + 4k2 (k1 + k3 ) + 4k22
m2
4(k1 k2 + k2 k3 + k3 k1 ))
1
=
(k1 k3 )2 + 4k22
2
m
(trA)2 detA =
so the eigenvalues of A are real and negative and so the s are pure
imaginary and the solution will be a combination of cos and sin.
A numerical example
For example let m = 1, k1 = 6, k2 = 2, k3 = 3 The equation is
00
8 2
x1
x1
=
2 5
x2
x2
The eigenvalues are 4, 9 and the associated eigenvectors are
4 2
0
1
v4 =
v4 =
2 1
0
2
1 2
0
2
v9 =
v9 =
2 4
0
1
The DEs are
x100 = 4x1
x200 = 9x2
1
2
+ (c3 cos 3t + c4 sin 3t)
2
1
Spectral methods
This is another way to calculate matrix exponentials without calculating
eigenvectors and change of basis matrices.
For simplicity suppose the matrix A has n distinct eigenvalues,
1 , 2 , , n , and associated eigenvectors, v1 , v2 , , vn , define the
projection matrices
A 2 I A 3 I
A n I
P1 =
1 2 1 3
1 n
A n I
A 1 I A 3 I
P2 =
2 1 2 3
2 n
..
..
..
..
.
.
.
.
A 1 I A 2 I
A n1 I
Pn =
n 1 n 2
n n1
The Cayley Hamilton theorem is
p(A) = (A 1 I)(A 2 I) (A n I) = 0
APi = i Pi
1 1 1
x0 = 0 2 1 x
1 1 3
3
x(0) = 2
1
0 1 1
1 1 1
0 1
AI= 0 1 1
A 2I = 0
1 1 2
1 1 1
2 1 1
A 3I = 0 1 1
1 1 0
3 3 0
1
(A 2I)(A 3I)
= 1 1 0
P1 =
(1 2)(1 3)
2
1 1 0
1 2 1
(A I)(A 3I)
P2 =
= 1 2 1
(2 1)(2 3)
0 0 0
1 1 2
(A I)(A 2I)
1
1 1 2
P3 =
=
(3 1)(3 2)
2
1 1 2
= e t P1 + e 2t P2 + e 3t P3
3 t
1 3t
2t
32 e t + 2e 2t 12 e 3t
2e e + 2e
1 t
1 3t
2t
=
12 e t + 2e 2t 12 e 3t
2e e + 2e
1 t
1 3t
21 e t + 12 e 3t
2e 2e
e 2t + e 3t
e 2t
e 3t
e 3t
15 t
2 e
2 =
5 t
2e
x=e
At
6e 2t + 32 e 3t
3 3t
2e
6e 2t
52 e t + 32 e 3t
Another example
Solve the IVP
0
x
5 3
x
=
y
2 4
y
x(0)
y (0)
=
1
2
e 2t + 9e 7t
e 2t 6e 7t