WOLFRAM NOTEBOOK

Exercises 3.4.c

For:
x
=x-rx(1-x)
i) Sketch the different vector field types that appear when you vary
r
.
We can actually get some intuition here before drawing any graphs. To find the fixed points, just solve
x-rx(1-x)=0
for
x
which gives:
x=0andx=
r-1
r
So before we even plot a phase portrait we can get the bifurcation diagram. We need to be able to figure out along the fixed point lines what is going to be stable and what unstable. Let’s look at the
x=0
fixed point first and do a linear stability analysis. Close to
x=0,theequation
is approximated by:
x
=x(1-r)
(as the
1-x
is approximated by just 1 close to
x=0).
We know that this has solutions:
x=
x
0
(1-r)t
e
and therefore if
(1-r)>0r<1
this is an unstable solution if
r>1
then it’s stable.
For completeness, lets expand the equation also about the other fixed point:
x=
r-1
r
.
Let
x=
r-1
r
+η:
η
=
r-1
r
+η-r
r-1
r
+η1-
r-1
r
+η
which, after some algebra actually gives the much simpler looking:
η
=η(r-1)+r
2
η
which, for small η gives
η
=η(r-1)
and we have exactly the opposite situation than we had for the first fixed point. ie.
r<1isstable
and
r>1
is unstable. Let’s plot these two solutions
In[]:=
ShowPlot0,
r-1
r
,{r,-2,1},PlotStyle->{{Blue,Dashed},Blue},Plot0,
r-1
r
,{r,1,2},PlotStyle->{Blue,{Blue,Dashed}},PlotRange->{All,{-3,5}},PlotRange->{All,{-3,5}},AspectRatio->1,AxesLabelEvaluate[Style[#,18]&/@{"r","x"}]
Out[]=
OK, so we should also be drawing the phase portrait for this. We can do this the old fashioned way by just plotting the graph of the differential equation for different values of r:
Which, while there’s a fixed point which is doing some funky things around
r=0
, just has a single bifurcation at
r=1
.
In[]:=
ga[pos_]:=Graphics[{Thick,Arrowheads[0.05],Arrow[pos]}]pl1=GraphicsGridPartitionShowPlot[x-#x(1-x),{x,-4,4},PlotRange->{{-4,4},{-2,2}},AxesLabelEvaluate[Style[#,14]&/@{"x","
x
"}],AspectRatio->1,PlotLabel->Style["r = "<>ToString[#],14],PlotStyle->Blue],If#<0,Showga[{{0,0},{-2,0}}],ga{0,0},
#-1
#
,0,ga{4,0},
#-1
#
,0,Graphics[Circle[{0,0},0.1]],GraphicsDisk
#-1
#
,0,0.1,If#==0,Show[ga[{{0,0},{-2,0}}],ga[{{0,0},{2,0}}],Graphics[Circle[{0,0},0.1]]],If#<1,Showga{-2,0},
#-1
#
,0,ga{0,0},
#-1
#
,0,ga
#-1
#
,0,{2,0},Graphics[Circle[{0,0},0.1]],GraphicsDisk
#-1
#
,0,0.1,If#==1,Show[ga[{{-2,0},{0,0}}],ga[{{0,0},{2,0}}]],Showga[{{-2,0},{0,0}}],ga
#-1
#
,0,{0,0},ga
#-1
#
,0,{2,0},Graphics[Disk[{0,0},0.1]],GraphicsCircle
#-1
#
,0,0.1&/@Range[-1,4,0.5],3,ImageSize->800
Out[]=
Which ties in with our bifurcation plot. Now we just need to make sure that we can convert it into the Normal Form for a transcritical bifurcation. The equation is:
x
=x-rx(1-x)
Expanding in
xthisisjust:
x
=(1-r)x+r
2
x
Dividing through by -r gives:
-
1
r
x
=
(r-1)
r
x-
2
x
Now let
R=
r-1
r
r=
1
1-R
which gives us
(R-1)
x
=Rx-
2
x
Now the left hand side is really
(R-1)
dx
dt
and so defining
T=
1
(R-1)
t(R-1)
dx
dt
=(R-1)
dx
dT
dT
dt
=
(R-1)
(R-1)
dx
dT
this gives us finally:
Which is the normal form of a transcritical bifurcation.
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.