Predation and Cooperation

Ecology and Ecosystems Fundamentals

Course 1 · Chapter 8 · Predation and Cooperation

Chapter 7 looked at species that harm each other by sharing a limited resource. Species affect one another in many other ways. Some eat each other, some live on each other, and some help each other so much that neither does well alone. This chapter surveys the main kinds of interaction, then looks closely at three: predation, where the numbers of eater and eaten rise and fall in linked cycles; mutualism, where both partners benefit; and parasitism, where one species gains at the other’s expense without usually killing it quickly. The maths stays light: a few growth and loss terms added together, always run in Python.

What to trust in this chapter
The Python snippets here and in the three exercise solutions were run, and the output in the comments is what Python printed. The rates, starting numbers and benefits are invented round figures chosen for practice, not measurements. The ecological background is written from general knowledge, not fetched from a source for this chapter, so check any real-world example you want to rely on, such as the hare and lynx records or the rabbit disease example below, against a current textbook or a national agency.

Six Ways to Interact

Ecologists describe an interaction by its effect on each partner: a plus sign (+) if the species gains, a minus sign (−) if it loses, and a zero (0) if it is not noticeably affected. Chapter 7’s competition is (−, −). The full set of pairings is below.

InteractionEffectsExample
Competition− / −Two finch species using the same seeds
Predation+ / −A fox killing and eating a rabbit
Parasitism+ / −A tick feeding on a deer
Mutualism+ / +A bee feeding on nectar while pollinating the flower
Commensalism+ / 0Barnacles riding on a whale, which is barely affected
Amensalism0 / −Cattle trampling a patch of grass without gaining anything from it

The signs are a useful first sort, but not a final verdict. The same pair can change category with conditions: a fungus that helps a tree in poor soil may become a drain on it when the tree has plenty of nutrients. The snippet below turns the sign table into a tiny classifier. Notice that predation and parasitism share the same signs, so the code cannot tell them apart. The difference is one of lifestyle, which the next sections explain.

# Name an interaction from its effects on each species: + helps, - harms, 0 no effect. def kind(effect1, effect2): pair = (effect1, effect2) if pair == ("+", "+"): return "mutualism" if pair == ("-", "-"): return "competition" if "0" in pair and "+" in pair: return "commensalism" if "0" in pair and "-" in pair: return "amensalism" if "+" in pair and "-" in pair: return "predation or parasitism" return "neutral" examples = [ ("bee and flower", "+", "+"), ("two finches, same seeds", "-", "-"), ("barnacle on a whale", "+", "0"), ("fox and rabbit", "+", "-"), ("tick and deer", "+", "-"), ("cattle trampling grass", "0", "-"), ] for name, e1, e2 in examples: print(f"{name:26} ({e1},{e2}) -> {kind(e1, e2)}") # Output: # bee and flower (+,+) -> mutualism # two finches, same seeds (-,-) -> competition # barnacle on a whale (+,0) -> commensalism # fox and rabbit (+,-) -> predation or parasitism # tick and deer (+,-) -> predation or parasitism # cattle trampling grass (0,-) -> amensalism

Predation and Predator–Prey Cycles

A predator kills and eats other animals (its prey). Herbivores eating plants are often treated in the same way, which is why this chapter uses “predation” loosely for any case where one organism feeds on another. From Chapter 3 you already know that predators can shape whole food webs. Here the question is narrower: how do the numbers of predator and prey change together?

Imagine rabbits and foxes on an island. With few foxes the rabbits multiply. More rabbits means more food, so the foxes multiply too. More foxes then eat too many rabbits, the rabbits crash, the foxes go hungry and decline, and with few foxes the rabbits can recover. The result is a repeating cycle in which the predator curve follows the prey curve a little later.

The Lotka–Volterra predator–prey equations, proposed independently by Alfred Lotka and Vito Volterra in the 1920s, capture this with two lines. Prey gain a × prey from their own births and lose b × prey × predators to capture, which rises when either is more common. Predators gain c × prey × predators from eating and lose d × predators through ordinary deaths. We step through time in tiny jumps of 0.01 years so the simple method stays reasonably accurate.

# Predator and prey cycles (Lotka-Volterra), small time steps. Invented round figures. prey, pred = 40.0, 20.0 a, b, c, d = 0.6, 0.02, 0.01, 0.5 # prey growth, capture rate, conversion, predator death dt = 0.01 print("year prey predators") for step in range(0, 6001): if step % 300 == 0: print(f"{step * dt:4.0f} {prey:5.1f} {pred:5.1f}") new_prey = prey + (a * prey - b * prey * pred) * dt new_pred = pred + (c * prey * pred - d * pred) * dt prey, pred = new_prey, new_pred # Output: # year prey predators # 0 40.0 20.0 # 3 72.7 23.7 # 6 54.6 44.6 # 9 29.9 31.3 # 12 42.7 19.3 # 15 75.8 25.5 # 18 49.5 45.2 # 21 29.6 29.3 # 24 45.7 18.8 # 27 78.0 27.8 # 30 44.8 45.1 # 33 29.6 27.4 # 36 49.0 18.4 # 39 79.1 30.3 # 42 40.6 44.3 # 45 29.9 25.6 # 48 52.6 18.3 # 51 78.8 33.2 # 54 37.1 43.1 # 57 30.6 24.1 # 60 56.4 18.4

Read down the columns. The prey rise first, and the predators peak a couple of years later, as their numbers catch up with the extra food. Each full cycle takes roughly twelve years. You will also notice that each swing is slightly bigger than the last (the prey reading at years 15, 27 and 39 is about 76, 78 and 79). That widening is a side effect of the simple stepping method: the exact equations would repeat the same loop for ever, which is also unrealistic, because the model has no limit on prey growth. Real populations are held in check by food and space, and a better model adds a carrying capacity for the prey, as in Chapter 6.

The classic wild example is the snowshoe hare and the Canada lynx, whose numbers recorded in the fur trade rose and fell together in cycles of roughly ten years. Later work suggested that the hares’ own food supply matters as well as the lynx, so it is not a pure two-species story. Rabbits in Britain give another lesson: after the myxomatosis virus was introduced in the 1950s, rabbit numbers crashed, and so did the numbers of some animals that depended on them. Check the details against a current source before quoting them.

Mutualism: Both Sides Gain

In a mutualism, each species does better with its partner than without it. The partnership is a trade: one side provides food, shelter or transport, and the other provides something in return.

  • Pollination: bees, hoverflies and moths collect nectar and carry pollen from flower to flower. Plants gain seed, and the insects gain food.
  • Mycorrhizae: fungi attached to tree roots extend the root system and bring in water and minerals, while the tree supplies sugars from photosynthesis. Most land plants, including the pines and birches of Scottish woods, have such partners.
  • Lichens: a fungus and an alga (or a bacterium) living as one. The alga makes food from light, and the fungus provides structure and protection.
  • Cleaner fish: small fish remove parasites and dead skin from larger fish on coral reefs, getting a meal and giving a cleaning service.

Mutualisms are not acts of kindness: each partner pays costs and gains benefits, and a partner that stops delivering may be penalised. A simple way to model one is to let each species raise the other’s carrying capacity. In the snippet below, each individual of one species adds 0.6 to the other’s capacity, on top of a baseline capacity of 100.

# Mutualism: each species' carrying capacity rises with the partner's numbers. Invented figures. r, K, boost = 0.5, 100.0, 0.6 def run(partner_present, years=60): n1, n2 = 10.0, 10.0 for t in range(years): k1 = K + boost * n2 if partner_present else K k2 = K + boost * n1 if partner_present else K n1 += r * n1 * (1 - n1 / k1) n2 += r * n2 * (1 - n2 / k2) return n1, n2 alone = run(False) together = run(True) print(f"alone: {alone[0]:.0f} and {alone[1]:.0f}") print(f"together: {together[0]:.0f} and {together[1]:.0f}") # Output: # alone: 100 and 100 # together: 250 and 250

Alone, each species settles at its own carrying capacity, 100. Together they settle at 250. That figure comes from a short piece of algebra: at the balance point, N = 100 + 0.6 × N, so N = 100 / (1 − 0.6) = 250. If the benefit were 1 or more, the model would let the two grow without limit. That cannot happen in nature, so real mutualisms are always capped by some other cost or shortage, which Exercise 2 explores.

Parasitism: Living on Another

A parasite feeds on a living host and harms it, but usually does not kill it quickly, since a dead host is a lost home. Ticks, fleas and lice live on the outside (ectoparasites), while tapeworms and many microbes live inside (endoparasites). Ticks are of practical interest in Scotland and the rest of the UK because they can carry Lyme disease. Some parasites do not live on the host at all: the cuckoo is a brood parasite, laying its egg in another bird’s nest so that the host raises the chick.

Parasitism and predation share the same signs (+ / −), but the pattern differs. A predator kills one prey after another over a lifetime, while a parasite lives with one host for a long time. Parasites matter ecologically for three reasons: they can reduce the growth and breeding of a host, they can alter its behaviour, and they can tip the balance between competitors, as the disease carried by grey squirrels does for red squirrels in Chapter 7. A disease-causing parasite that spreads through a population is also a density-dependent brake of the kind described in Ecology and Ecosystems Fundamentals 6: the more crowded the hosts, the faster it spreads.

PredationMutualismParasitism
Effects+ / −+ / ++ / −
Victim killed?Yes, usually quicklyNo: partners need each otherRarely, and slowly
Typical numbers patternLinked cycles with a lagBoth rise or fall togetherParasite follows host numbers
ExampleLynx and hareTree and mycorrhizal fungusTick and deer
Common mistakes
Do not read the predator–prey cycle as predators “controlling” prey in a simple way: the two series drive each other, and food supply, disease and weather matter too. Do not assume that mutualism means friendship: it is a trade, and it can turn into exploitation if conditions change. Do not treat the signs (+, −, 0) as fixed labels, because an interaction can move between categories. Do not forget that in the basic cycle model the prey peak comes first and the predator peak after it, so a lag between the curves is normal. And remember that the snippets use invented numbers: they show how the model behaves, not how many foxes live on any real island.

Challenges

Exercise 1

Run the predator–prey model for 60 years with a time step of 0.01, starting from 40 prey and 20 predators, and storing every value in a list. Write a function that finds the years at which each series reaches a peak (a value higher than the one before and not lower than the one after). Print the prey peak years, the predator peak years, the average time between prey peaks, and how long after each prey peak the predators peak.

📄 View solution
Exercise 2

Using the mutualism model with r = 0.5, K = 100 and starting numbers of 10 each, run 200 years for benefit values of 0.0, 0.2, 0.6 and 0.9. For each, print the final numbers and compare them with the formula K / (1 − benefit). What happens as the benefit approaches 1, and what would stop that in a real partnership?

📄 View solution
Exercise 3

Run the predator–prey model for 120 years with the predator death rate d = 0.5 and then d = 0.7, and average the prey and predator numbers over the second half of each run. Compare your averages with the model’s balance points (prey = d / c and predators = a / b). Which population changes when the predators’ death rate rises, and which does not? Does that surprise you?

📄 View solution

Quick Reference

  • Interactions by effect: competition (−/−), predation and parasitism (+/−), mutualism (+/+), commensalism (+/0), amensalism (0/−)
  • Predator–prey cycle: prey rise, predators follow, prey crash, predators fall; the predator peak lags the prey peak
  • Lotka–Volterra predator–prey: prey change a×prey − b×prey×predators; predators change c×prey×predators − d×predators
  • Balance point: prey = d / c and predators = a / b
  • Mutualism: both partners gain; modelled by raising each other’s carrying capacity, giving K / (1 − benefit)
  • Parasite: lives on or in a host and harms it without usually killing it quickly; ectoparasites outside, endoparasites inside
  • Brood parasite: a bird such as the cuckoo that leaves its eggs for another species to raise
Coming next
Ecology and Ecosystems Fundamentals 9 asks what happens to a whole community after a fire, a flood or a clearing: how bare ground becomes woodland again, step by step.