Docsity

MATLAB Project: Using Eigenvalues to Study Spotted Owls | MATH 290, Study Guides, Projects, Research of Mathematics

Toggle sidebar
bg1
MATLAB Project: Using Eigenvalues to Study Spotted Owls Name:
Recitation Section:
Purpose: To use eigenvalues and eigenvectors to understand the dynamics of this population and
determine experimentally the critical rate for survival of juveniles to subadults – the
value which that rate must equal or exceed for the population to survive.
Prerequisites: Sections 5.5 & 5.6
MATLAB funtions used: āˆ—,\,:,sum, abs, for, eig, plot
ATTACH YOUR PLOTS AND TURN IN WITH THIS PAPER
Background. The spotted owls have three distinct life stages: juvenile (first year), subadult (second year) and adult (third
year and older). Let xk=

jk
sk
ak

and A=

0 0 .33
t0 0
0.71 .94

, where jk, skand akdenote the number of owls in each
stage in year kand xk+1 =Axk. (The analysis on pages 349 to 351 in the text shows that the owl population seems to
die out eventually if t=.18 and seems to increase eventually if t=.30).
Definition. A dominant eigenvalue of a matrix Ais an eigenvalue Ī»1of Asuch that |Ī»1| ≄ |Ī»i|for all eigenvalues Ī»iof A.
It is true that the special type of matrix we are discussing here has only one dominant eigenvalue, so we will speak of
ā€theā€ dominant eigenvalue Ī»1. In fact, for all the matrices here, Ī»1is actually positive, so |Ī»1|=Ī»1.
1. Here you will experiment with several values of tto see how the dominant eigenvalue changes as tincreases, and we
will find the ā€critical valueā€.
To begin, type the appropriate commands to get the matrix for t=.18, A=

0 0 .33
.18 0 0
0.71 .94

, and x0 =

100
100
100

.
Then type the following lines:
eig(A) (a vector containing the eigenvalues of A)
abs(eig(A)) (a vector containing the modulus (absolute value) of each entry of eig(A))
You will see the largest magnitude entry is 0.9836, so that is λ1. Record it in the table below, under t=.18.
Next type A(2,1) = .19 and use the up arrow key to execute the two lines above again. Repeat this for each value
of tshown in the table below, and record the dominant eigenvalue each time:
Survival rate
juv →subadult
t= .18 .20 .22 .24 .25 .26 .28 .30
Dominant eigenvalue
of A:
Ī»
Of the values you used for t, which is the smallest one for which Ī»1≄1? We will call this the
ā€critical valueā€ of t.
pf3

Partial preview of the text

Download MATLAB Project: Using Eigenvalues to Study Spotted Owls | MATH 290 and more Study Guides, Projects, Research Mathematics in PDF only on Docsity!

MATLAB Project: Using Eigenvalues to Study Spotted Owls Name: Recitation Section:

Purpose: To use eigenvalues and eigenvectors to understand the dynamics of this population and determine experimentally the critical rate for survival of juveniles to subadults – the value which that rate must equal or exceed for the population to survive. Prerequisites: Sections 5.5 & 5. MATLAB funtions used: āˆ—, , :, sum, abs, for, eig, plot

ATTACH YOUR PLOTS AND TURN IN WITH THIS PAPER

Background. The spotted owls have three distinct life stages: juvenile (first year), subadult (second year) and adult (third

year and older). Let xk =

jk sk ak

 (^) and A =

t 0 0

    1. 94

, where jk, sk and ak denote the number of owls in each

stage in year k and xk+1 = Axk. (The analysis on pages 349 to 351 in the text shows that the owl population seems to die out eventually if t = .18 and seems to increase eventually if t = .30).

Definition. A dominant eigenvalue of a matrix A is an eigenvalue Ī» 1 of A such that |Ī» 1 | ≄ |Ī»i| for all eigenvalues Ī»i of A.

It is true that the special type of matrix we are discussing here has only one dominant eigenvalue, so we will speak of ā€theā€ dominant eigenvalue Ī» 1. In fact, for all the matrices here, Ī» 1 is actually positive, so |Ī» 1 | = Ī» 1.

  1. Here you will experiment with several values of t to see how the dominant eigenvalue changes as t increases, and we will find the ā€critical valueā€.

To begin, type the appropriate commands to get the matrix for t = .18, A =

, and x0 =

Then type the following lines: eig(A) (a vector containing the eigenvalues of A) abs(eig(A)) (a vector containing the modulus (absolute value) of each entry of eig(A)) You will see the largest magnitude entry is 0.9836, so that is Ī» 1. Record it in the table below, under t = .18. Next type A( 2 , 1 ) =. 19 and use the up arrow key to execute the two lines above again. Repeat this for each value of t shown in the table below, and record the dominant eigenvalue each time:

Survival rate juv → subadult

t = .18 .20 .22 .24 .25 .26 .28.

Dominant eigenvalue of A:

Ī»

Of the values you used for t, which is the smallest one for which Ī» 1 ≄ 1? We will call this the ā€critical valueā€ of t.

MATLAB Project: Using Eigenvalues to Study Spotted Owls Page 2 of 3

  1. Now assign A( 2 , 1 ) the value which you just found which causes t to have the critical value. Thus, the dominant eigenvalue Ī» 1 of your matrix A will be slightly larger than 1. (a) Type [V D] =eig(A), and record the columns of V below as v 1 , v 2 , v 3. Before doing that, notice the dominant eigenvalue of A, which we want to call Ī» 1 , is the third diagonal entry of D, hence the third column of V is an eigenvector corresponding to Ī» 1. So record the third column of V as v 1 , and record the first two columns of V as v 2 and v 3 :

v 1 = v 2 = v 3 =

Also record the eigenvalues of A that correspond to each of these columns:

Ī» 1 = Ī» 2 = Ī» 3 = (b) (Hand) It is true that {v 1 , v 2 , v 3 } is a basis for the vector space C^3 , so any vector can be written as a linear combination of v 1 , v 2 , v 3.^1 Let x 0 denote an initial vector and define xk = Axkāˆ’ 1. Suppose c 1 , c 2 and c 3 are scalars such that x 0 = c 1 v 1 + c 2 v 2 + c 3 v 3. Using this equation, explain what xk will look like after k years, and why, if c 1 6 = 0, the population of owls will not die out. You must use the fact that Ī» 1 ≄ 1.

(c) Let the initial vector be x 0 =

. Type the following lines to rearrange the columns of V so the eigen-

vector corresponding to Ī» 1 is the first column, and then to solve x 0 = c 1 v 1 + c 2 v 2 + c 3 v 3 for the c′ is:

V = V(:, [3 1 2]) (Create V = [v 1 v 2 v 3 ]) c = V\x 0 (Solve V c = x 0 for c)

Record the coefficients: (^) c 1 = c 2 = c 3 =

Notice c 1 is not zero, so the owl population will definitely not die out when x 0 =

is the initial vector.

(^1) The space C (^3) is much like R (^3) : its elements are triples of complex numbers, and its scalars are the complex numbers. Also, {(1, 0 , 0), (0, 1 , 0), (0, 0 , 1)} is a basis for C^3 so its dimension is three, hence any three independent vectors in C^3 form a basis for the space. Finally, the vectors v 1 , v 2 , v 3 found in question 2 are independent – you can check that directly, or just notice that the eigenvalues of A are distinct.