Docsity

Behavior Analysis of a Combined Competing Species and Predator-Prey Model - Prof. Charles , Study notes of Differential Equations

Toggle sidebar
bg1
Please Click on the Following Shortcuts for Easier Navigation:
Problem 9.4 #1 From the Book
Problem 9.5 #1 From the Book
PhaseLine Portraits for Combined Model
Direction Fields for Combined Model
Critical Points and Eigenvalues for Combined Model
Code for Phaseline Portraits for Combined Model
Code for Direction Fields for Combined Model
Code for Eigenvalues for Combined Model
When Competition Turns Nasty…
We combine the models 9.4 #1 and 9.5 #1, by adding the right-hand side of both equations.
The sum is weighted by Alfa, in such a way that if the Competing Species model (9.4) has a
weight of Alfa, then the Predator-Prey model (9.5) has a weight of (1-Alfa). The Alfa
coefficient is then modified on a scale 0 to 1. As a result, the Competing Species model
gradually morphs into Predator-Prey model. This document analysis behavior of this system
as Alfa is increased by 0.2 intervals. It is interesting to observe how the behavior around the
stable critical point changes from asymptotic node, to twist, to spiral, and finally center. Here
you will find Phase Portraits for all 6 systems, as well as all direction fields, as well as critical
values and eigenvectors. Varying values of eigenvectors are particularly instructive, and can
be easily observed through appropriate hyperlinks. The document also presents the code that
was used to produce charts, as well as to find critical points and eigenvalues. While you can
find more detailed information about Competing Species Model in Chapter 9.4, and about
Predator-Prey Model in chapter 9.5, this document is meant primarily for illustrative
purposes. Enjoy.
Competing Species Model (Problem 9.4 #1)
Go Back to Contents
close all
clear all
warning off all
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Behavior Analysis of a Combined Competing Species and Predator-Prey Model - Prof. Charles and more Study notes Differential Equations in PDF only on Docsity!

Please Click on the Following Shortcuts for Easier Navigation:

Problem 9.4 #1 From the Book

Problem 9.5 #1 From the Book

PhaseLine Portraits for Combined Model

Direction Fields for Combined Model

Critical Points and Eigenvalues for Combined Model

Code for Phaseline Portraits for Combined Model

Code for Direction Fields for Combined Model

Code for Eigenvalues for Combined Model

When Competition Turns Nasty…

We combine the models 9.4 #1 and 9.5 #1, by adding the right-hand side of both equations.

The sum is weighted by Alfa, in such a way that if the Competing Species model (9.4) has a

weight of Alfa, then the Predator-Prey model (9.5) has a weight of (1-Alfa). The Alfa

coefficient is then modified on a scale 0 to 1. As a result, the Competing Species model

gradually morphs into Predator-Prey model. This document analysis behavior of this system

as Alfa is increased by 0.2 intervals. It is interesting to observe how the behavior around the

stable critical point changes from asymptotic node, to twist, to spiral, and finally center. Here

you will find Phase Portraits for all 6 systems, as well as all direction fields, as well as critical

values and eigenvectors. Varying values of eigenvectors are particularly instructive, and can

be easily observed through appropriate hyperlinks. The document also presents the code that

was used to produce charts, as well as to find critical points and eigenvalues. While you can

find more detailed information about Competing Species Model in Chapter 9.4, and about

Predator-Prey Model in chapter 9.5, this document is meant primarily for illustrative

purposes. Enjoy.

Competing Species Model (Problem 9.4 #1)

Go Back to Contents

close all clear all warning off all

figure; hold on f = @(t,x) [x(1)(1.5-x(1)-0.5 x(2));... x(2)(2-x(2)-0.75x(1))]; for a = 0.25:0.25:1. for b = 0.5:0.5: [t,xa] = ode45(f, [0 10], [a,b]); plot(xa(:,1), xa(:,2)) [t,xa] = ode45(f, [0 -5], [a,b]); plot(xa(:,1), xa(:,2)) title (['Phaseline Chart for 9.4 #1']) xlabel x ylabel y end end axis ([0,2,0,4.5])

Predator-Prey Model (Problem 9.5 #1)

Go Back to Contents

close all clear all % This is Problem 9.5 # warning off all figure; hold on f = @(t,x) [x(1)(1.5-0.5 x(2));... x(2)*(-0.5+x(1))]; for a = 0.25:0.25:1. for b = 0.5:0.5: [t,xa] = ode45(f, [0 10], [a,b]); plot(xa(:,1), xa(:,2)) [t,xa] = ode45(f, [0 -5], [a,b]); plot(xa(:,1), xa(:,2)) title (['Phaseline Chart for 9.5 #1'])

  • Direction Field for Alfa = 0 Direction Field for Alfa = 0.
  • View Critical Points and Eigenvalues for Alfa = 0 View Critical Points and Eigenvalues for Alfa = 0.
  • Direction Field for Alfa = 0.4 Direction Field for Alfa = 0.
  • View Critical Points and Eigenvalues for Alfa = 0.4 View Critical Points and Eigenvalues for Alfa = 0.
  • Direction Field for Alfa = 0.8 Direction Field for Alfa =
  • View Critical Points and Eigenvalues for Alfa = 0.8 View Critical Points and Eigenvalues for Alfa =

Direction Field for the Combined Model

Go Back to Contents

clear all %syms a y x for a = 0:0.2: figure [X, Y] = meshgrid(0:0.1:3, 0:0.3:4); U = (1-a)(X.(1.5-X-0.5Y))+a(X.(1.5-0.5 Y)); V = (1-a)(Y.(2-Y-0.75X))+a(Y.*(-0.5+X)); L = sqrt((U/2).^2+(V/4.5).^2); quiver(X, Y, U./L, V./L, 0.4); axis tight title (['Direction Field for Alfa = ' num2str(a)]) xlabel x ylabel y end

Go Back to Contents

Back to Phaseline for Alfa = 0 Back to Phaseline for Alfa = 0.

Back to Phaseline for Alfa =0.4 Back to Phaseline for Alfa = 0.

Go Back to Contents

Back to Phaseline for Alfa = 0

THE FOLLOWING IS FOR THE VALUE OF ALFA

a =

Critical points: [ 0, 0] [ 0, 2] [ 3/2, 0] [ 4/5, 7/5]

Eigenvalues at the following stationary point

x_ =

0

y_ =

0

are displayed below

Eigenvalues at the following stationary point

x_ =

0

y_ =

2

are displayed below -2.

Eigenvalues at the following stationary point

x_ =

3/

y_ =

0

are displayed below -1.

Eigenvalues at the following stationary point

x_ =

y_ =

7/

are displayed below -1. -0.

are displayed below -1.

Eigenvalues at the following stationary point

x_ =

y_ =

are displayed below -1. -0.

Back to Phaseline for Alfa = 0.

THE FOLLOWING IS FOR THE VALUE OF ALFA

a =

Critical points: [ 0, 0] [ 5/2, 0] [ 0, 5/3] [ 80/67, 105/67]

Eigenvalues at the following stationary point

x_ =

y_ =

are displayed below

Eigenvalues at the following stationary point

x_ =

y_ =

are displayed below -1.

Eigenvalues at the following stationary point

x_ =

y_ =

are displayed below -0.

Eigenvalues at the following stationary point

x_ =

15/

y_ =

are displayed below -1.

Eigenvalues at the following stationary point

x_ =

35/

y_ =

are displayed below -0.6452 - 0.5636i -0.6452 + 0.5636i

Back to Phaseline for Alfa = 0.

THE FOLLOWING IS FOR THE VALUE OF ALFA

a =

Critical points: [ 0, 0] [ 15/2, 0] [ 60/73, 195/73]

Eigenvalues at the following stationary point

x_ =

0

y_ =

are displayed below 0

Eigenvalues at the following stationary point

x_ =

15/

y_ =

are displayed below -1.

Eigenvalues at the following stationary point

x_ =

60/

y_ =

are displayed below -0.3493 - 0.8242i

Back to Phaseline for Alfa = 1

THE FOLLOWING IS FOR THE VALUE OF ALFA

a =

Critical points: [ 0, 0] [ 1/2, 3]

Eigenvalues at the following stationary point

x_ =

0

y_ =

are displayed below -0.

Eigenvalues at the following stationary point

x_ =

1/

y_ =

are displayed below 0 - 0.8660i 0 + 0.8660i

Published with MATLAB® 7.