Professional Documents
Culture Documents
MA3264CHAP4
MA3264CHAP4
R = Aeλt J = Beλt
3
So
√
R(0) = C Ṙ(0) =abD
√
J(0) = E ˙
J(0) = abF
so we have:
r
Ṙ(0) a
C = R(0) = α D= √ =β
ab b
r
˙
J(0) b
E = J(0) = β F = √ = −α
ab a
Hence
√ √
r
a
R(t) = α cos( abt) + β sin( abt)
rb
√ b √
J(t) = β cos( abt) − α sin( abt)
a
4
Suppose (for example) that β = 0 and α > 0.
Then
√
R(t) = α cos(
r abt)
b √
J(t) = −α sin( abt)
a
Then the graphs of R(t) and J(t) are:
0,8
0,4
-0,4
-0,8
-1,2
Actually it is more useful to eliminate t and
get a direct relation between R and J. A bit of
-1,6
7
(R, J) = (α, 0). A picture like this, where we
have two functions R(t) and J(t) but where we
eliminate t (and regard it as a parameter)
is called a PHASE PLANE DIAGRAM.
It tells us many things that are not so obvi-
ous from the diagram on page 5. For exam-
ple, suppose we ask: can Romeo and Juliet
ever have a steady relationship with R= con-
stant and J=constant? The answer is clear
from the picture on page 7: this is possible only
if R = J = 0 (at the centre). We say that
this is a point of equilibrium, and clearly
it is the only one. Furthermore, it is obvious
from the diagram that this equilibrium is sta-
8
ble. Contrast this with a phase diagram
9
unstable equilibrium! So stability can be de-
termined just by a glance at the phase diagram.
VERY OFTEN, WE DON’T CARE ABOUT
THE DETAILS OF THE SOLUTIONS — THE
PHASE PLANE DIAGRAM ALREADY TELLS
US ALL WE NEED TO KNOW FOR MANY
APPLIED PROBLEMS!
So in this part of the course, we are more in-
terested in the shape of the phase plane diagram
than in the explicit solution.
4.2. HOW TO SOLVE SYSTEMS OF
SIMULTANEOUS ODEs
10
Let’s consider the general system:
d x a b x , with a, b, c and d
= constants
dt y c d y
dx dy
(i.e. dt = ax + by , dt = cx + dy)
Trial solution:
x x0
~u = = ert~u0 , ~u0 = = constant
y y
0
a b
So we get (defining B = )
c d
rert~u0 = Bert~u0
or
B~u0 = r~u0
(B − rI2)~u0 = ~0
11
so non-trivial solutions (i.e. ~uo 6= ~0) exist only
if det(B − rI2) = 0 i.e. (a − r)(d − r) − bc = 0
1h p i
⇒ r = a + d ± (a + d)2 − 4(ad − bc)
2
1h p i
⇒ r = T r[B] ± (T r[B])2 − 4(Det[B]) .
2
Except in the very special case where (T rB)2 is
exactly equal to 4 det B, there are two solutions
r+, r− and so
13
Second eigenvector satisfies
−4 3 x0 x
= −2 0 → −4x0+3y0 = −2x0
−2 1 y0 y0
x0 3
i.e. −2x0 + 3y0 = 0 so take =
y0 2
x 1
General solution is now: = c+e−t +
y 1
3
c−e−2t where c+ and c− are arbitrary con-
2
stants. i.e.
x = c+e−t + 3c−e−2t
y = c+e−t + 2c−e−2t
and we can work out c+ and c− given x(0) and
y(0).
Example Solve
dx
dt = 4x − 5y
dy
dt = 2x − 2y
14
4 −5
Here B = → T rB = 2 , det B = 2
2 −2
1
√
r = [2 ± 4 − 8] = 1 ± i Eigenvectors are
2
5 5
and . So,
3−i 3+i
(1+i)t 5 (1−i)t 5
~u(t) = c+e + c− e
3−i 3+i
Of course, we only want the real part of this. As
usual, the presence of all these complex numbers
is just telling us that there must be sines and
cosines [as well as exponentials of course] in the
solution. We don’t really care too much about
the details of the solution, but anyway here it
15
is:
16
if a system is in a stable state then [by defini-
tion] if you push it slightly away from that
state, it will not stray very far from the original
state. On the other hand, et soon becomes large
even if it is small at first, so we associate et (or
any other positive exponent) with unstable
behaviour.
Now in the first example, we got e−t and
e−2t because the eigenvalues of B were −1 and
−2, i.e. both real and both negative.
That solution is stable because both e−t → 0
and e−2t → 0 as t → ∞. If the eigenvalues had
been +1 and +2 then of course we would have
an unstable situation, and similarly if they had
17
been +1 and −2 or −1 and +2.
SUMMARY
18
out that something similar happens for ANY co-
efficient matrix B: IF WE KNOW ITS EIGEN-
VALUES [or its trace and determinant] THEN
WE CAN PREDICT THE SHAPE OF THE
PHASE DIAGRAM.
4.3. PHASE PLANE: COMPLETE CLAS-
SIFICATION It turns out that all phase di-
x
agrams for d~ u
dt = B~u, ~
u = , belong to one
y
of the following families.
wise or anticlockwise)
20
Figure 4: Nodal Sink
21
Figure 6: Centre
In words:
25
(Source if T rB > 0, sink if T rB < 0). What
if T rB = 0? then if r is complex we still have
sin and cos, but we have no exponential, e.g.
x = cos(t)
circle.
y = sin(t)
In general, we get a centre when the
eigenvalues are pure imaginary i.e.
T rB = 0.
SUMMARY
dx
Given dy dt = ax + by i.e. d~u = B~u, if you
= cx + dy dt
dt
want to sketch the phase plane, you can do it
as follows:
Find eigenvalues of B, given by
1h p i
r = T rB ± (T rB)2 − 4 det B,
2
and then classify as follows:
26
Romeo + Juliet
Example
0 a
B = , a, b > 0, T rB = 0,
−b 0
det B = ab > 0
⇒ centre
Clearly, from the equations themselves, J is
decreasing anywhere along the positive R axis,
so the arrows have to be pointing DOWN there
[because down is the direction of decreasing J],
and this tells us that the direction of the arrows
must be clockwise, as in the diagram.
28
But now suppose we modify the story a lit-
tle. [To be concrete, let’s suppose that a =
5/hour and b = 3/hour.] The original equations
mean that, for example, if Juliet feels nothing
for Romeo, then his feelings for her will remain
static. But in reality his patience is not infi-
nite: if she persists in feeling nothing for him
then his affection will decay away. So a better
equation might be dR/dt = −0.8 R + 5 J. This
means that, if Juliet feels nothing for him, then
his feeling for her will decay exponentially, as
you know from the Malthus model. OK, he’s
not very patient.
Juliet, on the other hand, being somewhat ec-
29
centric and perhaps a little confused, might be-
come more and more attached to Romeo even
if he is unaware of her existence, eg in the way
some girls fall in love with members of boy bands.
So perhaps we really have dJ/dt = −3 R + 0.7
J. This time we see that, even if R = 0, Juliet’s
affections will grow exponentially.
−0.8 5
The matrix is now . You can ver-
−3 0.7
ify in this case that despite Juliet’s crazed love
for Romeo, this system is a spiral sink [complex
eigenvalues, negative trace], so the lovers are
doomed to a spiral downwards, leading finally
to utter indifference on both sides. The spiral
is clockwise, as you can verify; you can also see
30
this by regarding this example as a small pertur-
bation of the previous one, where the motion in
the phase plane was clockwise. [In other words,
spirals are what you get instead of a centre when
the trace is small but not exactly zero.]
(page 13)
Example
−4 3
B= → T rB = −3 , det B = 2
−2 1
(T rB)2 − 4 det B = 1 > 0 → real
32
(page 14)
Example
4 −5 T rB = 2
B= → → spiral source
2 −2 det B = 2
The phase diagram is shown in the next dia-
gram.
d G −1 −0.75 G
= ,
dt M −1 0 M
where the −1 in the top left corner is the death
rate per capita of the Gondorians due to disease,
the −0.75 describes the rate at which Mordori-
ans kill Gondorians, and the −1 in the second
row describes the rate at which Gondorians kill
Mordorians. [So the Gondorians are better sol-
diers.]
35
ODEs have actually been used to study real
battles in this way! Of course, AS USUAL, you
would want to make the model a lot more com-
plicated than this model if you are really serious.
You can easily show that this is a saddle. The
1 1
two eigenvectors are and , but we
−2 2/3
are only interested in the first quadrant, since
G and M cannot be negative! So we focus on
the second vector. If we take the G axis to be
horizontal and the M axis to be vertical, you can
show that this vector points along the line M
= (2/3)G. The points in the phase plane move
towards the origin along this line, because this
vector has a negative eigenvalue.
36
If you draw the phase plane diagram for this
saddle, you will soon see that any initial point
lying BELOW this line will lead to victory for
Gondor. Any initial value ABOVE it results in
victory for Mordor. [Any initial point ON this
line results in a situation where the last Gondo-
rian falls dead while killing the last Mordorian!]
Alas, you should be able to see that MORDOR
WINS this particular battle! That wasn’t obvi-
ous, since the Gondorians heavily outnumbered
the Mordorians, and furthermore they are bet-
ter fighters. Sad.
We can try to save the situation by reinforcing
the armies. Suppose for that both the Gondo-
37
rians and the Mordorians are reinforced at con-
stant rates: the Gondorians send g new troops
per day to the front, and the Mordorians send
m new troops per day, where g and m are con-
stants. Then the equations become
d G −1 −0.75 G g
= + .
dt M −1 0 M m
Actually we can reduce this problem to the
previous one, as follows. The equation can be
written as
d~r
− B~r = F~ .
dt
We can think of this as an inhomogeneous linear
differential equation. We already know how to
solve the homogeneous equation; all we need
is a particular solution of the inhomogeneous
38
~ a constant vector
equation. Let’s try ~r = S,
since the right side of the equation is constant.
Then we get
~ = F~
− BS
~ = − B −1F~ .
S
39
rium point, which was originally at the origin of
coordinates, now moves to the point with posi-
tion vector − B −1F~ . Everything else [the shape
of the phase diagram etc] remains exactly the
same as before.
Suppose for example that the Mordorians and
the Gondorians both begin to reinforce their
armies by 1000 men/orcs per day. Then [us-
ing units of 1000] we have
0 1 1 1
−B −1F~ = = .
4/3 −4/3 1 0
So the effect of these reinforcements is just to
shift the equilibrium point along the G axis to
the right. Instead of M = (2/3)G, we now have
to consider a line M = (2/3)[G−1]. Any initial
40
point above this line leads to victory for the
orcs, whereas any initial point on or below it
leads to victory for Gondor.
That does not help the Gondorians, since the
initial point is still on the wrong side for them.
In fact, it just makes things worse! This is a
bit surprising, since after all the number of re-
inforcements is the same on both sides.
Suppose instead that the Gondorians get 1000
new men per day, but the Orcs have been cut
off and get no reinforcements at all. Then we
have
0 1 1 0
−B −1F~ = = ,
4/3 −4/3 0 4/3
so this time the equilibrium point moves ver-
41
tically upwards by 4/3 units [of a thousand].
Now the crucial line between victory and de-
feat is M − 4/3 = (2/3)G; any initial point on
or above this leads to victory for the orcs, but
any initial point below it leads to victory for
Gondor. This does help the Gondorians, and
in fact they will now win, because the initial
point now lies below the crucial line, because
11 − (4/3) < (2/3) × 15.
42