WOLFRAM NOTEBOOK

Section 2 exercises: Flows on the line

Complete these as you are going through part 2. Try and do questions from this regularly.
1
.
For the following differential equations, calculate the fixed points and their stability, plot the phase portrait and sketch some characteristic trajectories. For instance, if you were given the equation
x
=
2
x
-1
, you would find that this has fixed points at
x
=±1, and a phase portrait given by:
Where the stability of each point is shown. Some characteristic trajectories would look like:
Note that you want to get the characteristic trajectories general behaviour right, but you dont need to get them exact.
1
.
x
= 3
x
+ 2
2
.
v
=
9.8-
0.5
100
2
v
This equation models the velocity
v
of a skydiver of mass 100kg and air resistance given by 0.5
kgm
-1
s
3
.
x
=
1+
2
x
4
.
x
= cos
x
5
.
x
=
1-
4
x
6
.
x
=
1-2cosx
7
.
x
=
-x
e
sinx
8
.
x
=-xlnx
This is an example of the Gompertz differential equation which can be used to model tumour growth. There is a lovely exercise on the Gompertz equation here.
9
.
N
=N1-
N
2
(N-1)
This differential equation models the Allee Effect.
2
.
Classify the fixed points of the following systems using a linear stability analysis.

For instance, if you were given
x
=
x(1-x)
, you would see that there are two critical points given by
*
x
=0
and
*
x
=1
.

Expanding about the second critical point and so setting
x
(t)=1+η(t) for small η gives the equation
η
= (1+
η)(-η)=-η-
2
η
, which, for small η is just
η
=-η. This has solution
η=
η
0
-t
e
. This says that you will exponentially speed towards the point η=0 over time, so it is stable.

For the critical point at
*
x
=0,wecould
define
x
(t)=0+η(t), but in fact this is just a change of name from
xtoη
which doesn’t change anything, so we can simply ask about the behaviour of the equation for small
x.Forxcloseto0,x-
2
x
is well approximated by simply
x
, so we can write that for small
x
,
x
=x
. This has solution
x=
x
0
t
e
. This says that you will exponentially speed away from the point
x
=0 over time, so it is unstable.

Note that we have been able here to find the exact behaviour close to the fixed points. If you just want to know whether or not they are stable, if you set
f(x)=x(1-x)
then for
*
x
=0,f'(
*
x
)>0
, therefore this is unstable and for
*
x
=1,f'(
*
x
)<0
, therefore this is stable. It is only in the cases where
f'(
*
x
)=0
that you have to be more careful in figuring out what sort of stability you have. I would like you to find the actual behaviour close to the fixed point however.
1
.
x
=
x(1-x)(3-x)
2
.
x
=
2
x
(4-x)
3
.
x
=
1-
-
2
x
e
. Here you will need to know that for small
y
,
-
2
y
e
=1-
2
y
+O(
4
y
)
4
.
x
=-xlnx


3
.
Use Euler’s method to to plot trajectories for the following differential equations:
1
.
x
=1-2x(1-x)
starting at
x
0
=0
with step sizes of Δt=0.2 up to t=2.

What happens if you use step sizes of Δt=1, starting at
x
0
=0and
x
0
=-1
. What goes wrong in the above equation using Euler’s method?
2
.
x
=sinx
starting at
x
0
=0.1
with step sizes of Δt=1 up to t=8
3
.
x
=-x
starting at
x
0
=1,with
step sizes of Δt=0.2 up to t=2
4
.
x
=-xlnx
starting at
x
0
=1.2
with step sizes of Δt=0.5 up to t=4

4
.
Match the following direction fields to the differential equations:

a)
x
=
2
x
-
2
t

b)
x
=x-t

c)
x
=tsin(x)

d)
x
=xt


Out[]=
5
.
If you look through all of the phase portraits and study the fixed points, you will find that (unless there is a discontinuity in
x
(x)) you never have one stable fixed point next to another one, or one unstable fixed point next to another. Can you explain why this is the case?
6
.
Go through all of the above differential equations, and write down the potential which corresponds to them, then plot that. For some of these you wont be able to perform the integral analytically. In that case you can simply approximate a potential whose negative first derivative with respect to x gives you the f(x) in
x
=f(x).
Notice the relationship between zeroes of
x
and valleys and hills of the potential.For instance, if you had
x
=x(1-x)(3-x)
, then a
V(x)
which satisfies
-V'(x)=x(1-x)(3-x)
would be
V(x)=-
3
2
x
2
+
4
3
x
3
-
4
x
4
. Plotting the phase portrait and the potential on the same figure gives:
Wolfram Cloud

You are using a browser not supported by the Wolfram Cloud

Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.


I understand and wish to continue anyway »

You are using a browser not supported by the Wolfram Cloud. Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.