︠cab2657b-ea57-4adc-a574-93a8397c570bsi︠ %hide %html

Modeling population interactions in ecosystems

This lab's theme is based on a true story that illustrates the complex interdependence of species in many ecosystems. In the late 19th century the U.S. citrus industry was nearly destroyed by the accidental introduction of an insect from Australia (the "scale-insect") that turned out to be a major pest. One of the many efforts the industry made to combat the pest was to introduce a species of beetle known to be a natural predator of the Australian scale-insect. Over time the industry found this strategy unsatisfactory and decided to spray DDT, a toxic pesticide, to get rid of both species. To their surprise, this made the problem worse. The population of the pest seemed to increase overall, while the population of the beetles decreased!

Source of story and modeling idea: Mathematical Modelling with Case Studies, by Belinda Barnes and Glenn Fulford.

Overall objectives:
In this lab we will build upon the concepts developed in our recent lab on rate of change models for different growth processes. This time we'll conjecture and design a model for the rate of change of two populations that interact with each other -- the Australian scale-insect (prey) and the beetle (predator).

We make the following two assumptions which, though inaccurate, lead to remarkably good real-world models:

  1. The prey population is kept in check only by the predator. In their absence the prey population would grow exponentially to infinity.
  2. The predator population tends to die out on its own. It only grows in the presence of the prey.
Let's use the following units and notation:

(I) Start with simple case - assume each population is on its own
(there is no interaction between them)

  1. The assumptions directly tell us the approximate shape of the $S$ vs. $t$ and $B$ vs. $t$ graphs. Sketch graphs illustrating these qualitative behaviors. Explain or justify your graphs.
    Can you tell what the graph of graph $B$ vs. $S$ looks like?
︡15b499de-330a-4bc0-8de6-7a76469bacc3︡{"hide":"input"}︡{"html":"\n

\nModeling population interactions in ecosystems\n

\n\nThis lab's theme is based on a true story that illustrates the complex interdependence of species in many ecosystems. \nIn the late 19th century the U.S. citrus industry was nearly destroyed by the accidental introduction of an insect from \nAustralia (the \"scale-insect\") that turned out to be a major pest. One of the many efforts the industry made to combat the pest was to introduce a species of beetle known to be a natural predator of the Australian scale-insect. Over time the industry found this strategy unsatisfactory and decided to spray DDT, a toxic pesticide, to get rid of both \nspecies. To their surprise, this made the problem worse. The population of the pest seemed to increase overall, \nwhile the population of the beetles decreased!\n\n

\n\n\nSource of story and modeling idea: Mathematical Modelling with Case Studies, by Belinda Barnes and Glenn Fulford.\n\n\n

\n\nOverall objectives:
\nIn this lab we will build upon the concepts developed in our recent lab on \nrate of change models for different growth processes. This time we'll conjecture and design a model for the rate of \nchange of two populations that interact with each other -- the Australian scale-insect (prey) and the beetle (predator). \n

\n\nWe make the following two assumptions which, though inaccurate, lead to remarkably good real-world models:\n\n

    \n
  1. The prey population is kept in check only by the predator. In their absence the prey population would grow exponentially to infinity.\n
  2. The predator population tends to die out on its own. It only grows in the presence of the prey.\n
\n\nLet's use the following units and notation: \n\n \n

\n(I) Start with simple case - assume each population is on its own
\n(there is no interaction between them)
\n

    \n
  1. The assumptions directly tell us the approximate shape of the $S$ vs. $t$ and $B$ vs. $t$ graphs. Sketch graphs \nillustrating these qualitative behaviors. Explain or justify your graphs.
    \n\nCan you tell what the graph of graph $B$ vs. $S$ looks like?\n
\n\n"}︡{"done":true}︡ ︠43f79343-6157-400e-8e98-5c3eb5eca59esi︠ %hide %html ︡4f8d19a4-1c80-4dc5-9793-af330254b089︡{"hide":"input"}︡{"html":""}︡{"done":true}︡ ︠ea33bcc4-1feb-42c2-aa6c-e5be9d2d9a03si︠ %hide %html (II) More realistic (& interesting) case - the predator and prey populations interact

    Start with your simple model above and think about modifying it to account for the interaction between predator and prey. You want to come up with rate of change equations that look like:
    $S^\prime(t)$ = stuff,   $B^\prime(t)$ = other-stuff.

    Things to remember: $S^\prime(t)$ = negative term, causes $S(t)$ to decrease;
    S$^\prime(t)$ = positive term, causes $S(t)$ to increase;
    $S^\prime(t)$ = negative + positive term, causes $S(t)$ to respond to two opposing effects.

    Here are some explorations to try:

  1. Suppose your simple model for the scale-insects is $S^\prime = 0.08 S$.
    If you add a negative term to the right that depends on $B$, it will model the effect of beetles eating the scale-insects. Conjecture some possible forms for this 2nd term. Some ideas: $-B$, $~~-10B$, $~~-B^2$, $~-\sqrt{B}$, $~~-e^B$, $~~-S\cdot B$, $~~-0.5\;S\;B$, ...     What are your thoughts?
  2. It turns out that a good model for the predator-prey effect is to have a term like $0.0002\;S\;B$ in your rate of change equations. Of course, I've put the "0.0002" there just to show you a specific example - it should be replaced by an appropriate numerical value for each specific application. With this in mind, write the general form of the $S^\prime(t)$ and $B^\prime(t)$ equations in our model - use symbols like a, b, c, etc., wherever you need constant coefficients:
        $S^\prime(t) =$ term1 + term2.
        $B^\prime(t) =$ term3 + term4.
    See page 240, exercise 35 in your textbook for a very similar model.
  3. Now for the fun part! Simulate a predator-prey model using Sage. Let's use the following model:
        $S^\prime(t) = 0.08 S - 0.001 S B$
        $B^\prime(t) = -0.02 B + 0.00002 S B$

    We'll carry out the simulation for 3 different starting scenarios:
        (i) At t=0 there are 500 scale-insects and 50 beetles.
        (ii) At t=0 there are 500 scale-insects and 100 beetles.
        (iii) At t=0 there are 1000 scale-insects and 81 beetles.
    Consult with Anand for help on how to use Sage to solve this model.

    Discuss  what your simulations reveal. In particular, discuss what types of patterns you see in the predator and prey populations, and whether/ how they depend on the initial population of each species. For each simulation, use your graphical solutions to estimate an average value of the predator and prey populations. A very rough approximation of the averages is sufficient.

  4. Effect of DDT: From a calculus point of view, the pesticide essentially contributes a new "death term" in the respective equations of each species. A question to ask yourself is, what is a reasonable form for this term: should it be constant, or should it depend on B or S? should the term be the same, or different, for each species?

    Run the grapher simulation again after adding the following new terms to your previous model:
        S'(t) = previous terms - 0.01 S.
        B'(t) = previous terms - 0.01 B.

    Comment on what your results reveal about the effect of using DDT. Address any changes you see in the population patterns, and in the average values. ︡44576692-86a4-44c9-841f-50106e937510︡{"hide":"input"}︡{"html":"(II) More realistic (& interesting) case - the predator and prey populations interact

    \n

      \nStart with your simple model above and think about modifying it to account for the interaction between predator and prey. You want to come up with rate of change equations that look like:
      $S^\\prime(t)$ = stuff,   $B^\\prime(t)$ = other-stuff.

      \nThings to remember: $S^\\prime(t)$ = negative term, causes $S(t)$ to decrease;
      S$^\\prime(t)$ = positive term, causes $S(t)$ to increase;
      \n$S^\\prime(t)$ = negative + positive term, causes $S(t)$ to respond to two opposing effects.

      \n\nHere are some explorations to try:

      \n\n

    1. Suppose your simple model for the scale-insects is $S^\\prime = 0.08 S$.
      \nIf you add a negative term to the right that depends on $B$, it will model the effect of beetles eating the scale-insects.\nConjecture some possible forms for this 2nd term. Some ideas: $-B$, $~~-10B$, $~~-B^2$, $~-\\sqrt{B}$, $~~-e^B$, $~~-S\\cdot B$, $~~-0.5\\;S\\;B$, ...    \nWhat are your thoughts?\n
    2. It turns out that a good model for the predator-prey effect is to have a term like $0.0002\\;S\\;B$ in your rate of change equations. Of course, I've put the \"0.0002\" there just to show you a specific example - it should be replaced by an appropriate numerical value for each specific application. With this in mind, write the general form of the $S^\\prime(t)$ and $B^\\prime(t)$ equations in our model - use symbols like a, b, c, etc., wherever you need constant coefficients:
      \n    $S^\\prime(t) =$ term1 + term2.
      \n    $B^\\prime(t) =$ term3 + term4.
      \nSee page 240, exercise 35 in your textbook for a very similar\nmodel.\n\n
    3. Now for the fun part! \nSimulate a predator-prey model using Sage. \nLet's use the following model:
      \n    $S^\\prime(t) = 0.08 S - 0.001 S B$
      \n    $B^\\prime(t) = -0.02 B + 0.00002 S B$

      \nWe'll carry out the simulation for 3 different starting \nscenarios:
      \n    (i) At t=0 there are 500 scale-insects \nand 50 beetles.
      \n    (ii) At t=0 there are 500 scale-insects \nand 100 beetles.
      \n    (iii) At t=0 there are 1000 scale-insects \nand 81 beetles.
      \nConsult with Anand for help on how to use Sage \nto solve this model.

      \n\nDiscuss \nwhat your simulations reveal. \nIn particular, discuss what types of patterns you see \nin the predator and prey populations, and whether/ how\nthey depend on the initial population of each species. \nFor each simulation, \nuse your graphical solutions to estimate an average value \nof the predator and prey populations. A very rough \napproximation of the averages is sufficient.\n\n

    4. Effect of DDT: From a calculus point of view, \nthe pesticide essentially contributes a new \"death term\" in \nthe respective equations of each species. A question to \nask yourself is, what is a reasonable form for this term: \nshould it be constant, or should it depend on B or S? \nshould the term be the same, or different, for each species?

      \n\nRun the grapher simulation again after adding the following \nnew terms to your previous model:
      \n    S'(t) = previous terms - 0.01 S.
      \n    B'(t) = previous terms - 0.01 B.

      \n\nComment on what your results reveal about the effect of \nusing DDT. Address any \nchanges you see in the population patterns, and in the average \nvalues.\n\n"}︡{"done":true}︡ ︠d6283df0-2eea-4cef-a2b2-11a434ceb846︠ # Systems is: S'= 0.08*S - 0.001*S*B; B'= -0.02*B + 0.00002*S*B; S(0)=500, B(0)=50 s, b, t = var('s b t') de1 = 0.08*s - 0.001*s*b de2 = -0.02*b + 0.00002*s*b P = desolve_system_rk4 ([de1, de2], [s, b], ics=[0, 500, 50], ivar=t, end_points=[0,200] ) Q = [ [j,k] for i, j, k in P] #list_plot(Q, axes_labels=['$S$', '$B$']) line(Q, axes_labels=['$S$', '$B$'], color='green', thickness=2, title='Phase plot') # The following creates plots of S vs t and B vs t: QS = [ [i,j] for i, j, k in P] QB = [ [i,k] for i, j, k in P] SS = line(QS, axes_labels=['$t$ (days)', '$P(t)$'], legend_label='Scale insects', color='blue', thickness=2) SB = line(QB, axes_labels=['$t$ (days)', '$P(t)$'], legend_label='Beetles', color='green', thickness=2) show(SS+SB) ︡b04387c3-9e9f-4d7e-9903-9a058eef942e︡{"file":{"filename":"/projects/c5fbbb89-591d-4df5-a627-cb7020bf6ed6/.sage/temp/compute2-us/28003/tmp_K7v7Do.svg","show":true,"text":null,"uuid":"98276a83-9fe0-4ec8-82ab-7dea412c4fcb"},"once":false}︡{"file":{"filename":"/projects/c5fbbb89-591d-4df5-a627-cb7020bf6ed6/.sage/temp/compute2-us/28003/tmp_7LDVbp.svg","show":true,"text":null,"uuid":"085840e0-9465-4e81-842c-c4fd8f95696d"},"once":false}︡{"done":true}︡