Let's start by looking at the first week of butterfly populations. We'll use R to compute these values. First, create a matrix for the system and a matrix to represent the initial condition vector. The matrix corresponding to the butterfly model is
$$A=\left[\begin{matrix}0.2 & 0 & 0 & 100\\0.08 & 0.47 & 0 & 0\\0 & 0.06 & 0.58 & 0\\0 & 0 & 0.1 & 0.73\end{matrix}\right]$$
To create the matrix in R enter the following at the R >
command prompt:
A=matrix(c(0.2, 0, 0, 100, 0.08, 0.47, 0, 0, 0, 0.06, 0.58,0, 0, 0, 0.1, 0.73),4,4,byrow=TRUE)
For the initial condition vector, enter x=c(250000, 800, 300, 400)
. You may wish to verify that the matrices are correct by entering just the name on the next line (A
or x
, respectively).
Now, to find the next day's population, enter the command:
x=A %*% x
The %*%
is the R command for matrix multiplication. Written this way, we are overwriting the value of the vector $\vc{x}$ with the next day's populations. To see the actual value, enter x
on the next line. Repeat these two steps for each day, and enter the values you get below (include at least one decimal place).
Write the state vectors below, with $\vc{x}_n=\begin{bmatrix} e_n \\ c_n \\ p_n \\ b_n \end{bmatrix}$.
$\vc{x}_1=$
$\vc{x}_2=$
$\vc{x}_3=$
$\vc{x}_4=$
$\vc{x}_5=$
$\vc{x}_6=$
$\vc{x}_7=$
Based on this first week, do you think the population will be larger or smaller in several years?
Are you confident about your answer?
It's good a thing we aren't relying on visualizing the effects of $A$ on the system. Since we have four state variables, we are dealing with four-dimensional vectors. Our visualizations don't work so well in four dimensions! Even so, we can easily work with higher dimensional vectors by just thinking of them as lists of numbers, in this case representing population sizes.
Remember, the only important feature of an eigenvector is its direction (as it is still the same eigenvector after rescaling it by a non-zero number). It turns out that the matrices we'll consider for models like these will have a single dominant eigenvalue with an eigenvector that can be made to be all positive. When we rescale the eigenvector by the sum of its entries, each entry will be positive and correspond to the relative size of the corresponding state variable. Rescale this eigenvector so that the components sum to one.
Now let's consider the fraction of the population which are adults in several years. The fraction on day $n$ is given by $\frac{b_{n}}{b_{n} + c_{n} + e_{n} + p_{n}}$. Based on the above rescaled eigenvector, after a long time, what fraction of the population will be adults, i.e., what value does this fraction approach as $n$ increases?
After a long time, what fraction will be caterpillars?