Competition and Niches

Ecology and Ecosystems Fundamentals

Course 1 · Chapter 7 · Competition and Niches

Chapter 6 treated a population as if it lived alone, held back only by its own crowding. Real habitats are not like that. Several species share every wood, pond and shoreline, and many of them need the same food, space or nesting sites. When a resource is in short supply, the species using it affect each other, and that interaction, competition, helps decide who lives where. This chapter introduces the niche, the idea that each species has its own way of making a living, shows how competition between two species is modelled, and explains why similar species either divide a habitat between them or one of them disappears. The maths stays light: addition, multiplication and comparisons, 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 species, diet shares, growth rates and competition strengths 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 squirrel and tit examples below, against a current textbook or a national agency.

What Is a Niche?

A species’ habitat is where it lives: a beech wood, a rock pool, a peat bog. Its niche is its whole way of life there: what it eats, when it is active, where it feeds and nests, what temperatures and conditions it tolerates, and what eats it. A useful comparison is that the habitat is the address and the niche is the job. Many species can share one address, but each has a different job.

Ecologists separate two ideas. The fundamental niche is the full range of conditions and resources a species could use if nothing else were around. The realised niche is the smaller range it actually uses once competitors, predators and disease are taken into account. Barnacles on a rocky shore are the classic example: one species can survive across a wide band of the shore (its fundamental niche) but a rival pushes it out of the lower part, so it is only found higher up (its realised niche). The niche is therefore not a place on a map. It is a position along many axes at once, such as food size, feeding height and season.

HabitatNiche
MeaningThe place where a species livesThe species’ whole way of life and role
Question it answersWhere is it found?What does it do, and how, and when?
Shared?Yes: many species share one habitatPartly: species can overlap, but never completely for long
ExampleAn oak wood in southern EnglandA tit that feeds on caterpillars in the high branches in spring

Competition: Two Kinds

Competition happens when two or more individuals use the same limited resource and each lowers the other’s survival or reproduction. Chapter 6 covered competition within a species, the density-dependent brake that creates carrying capacity (see Ecology and Ecosystems Fundamentals 6). This chapter is about competition between species. It comes in two main forms.

  • Exploitative competition: species use up a shared resource without ever meeting. Two seed-eating birds that feed in the same field simply leave fewer seeds for each other, and so do two plants whose roots draw on the same water.
  • Interference competition: one species directly blocks the other, by fighting, defending a territory, shading or poisoning. Plants that shade out their neighbours, and birds that drive rivals from a feeder, are examples.

Competition costs both sides, which is why ecologists describe it as a (−, −) interaction. The costs are rarely equal, though: usually one species is hurt more than the other, and that imbalance decides the outcome.

Measuring Niche Overlap

If niche overlap drives competition, we can estimate how strong it is. One simple measure takes the share of each species’ resource use that falls into each category, and adds up the smaller of the two shares category by category. The total runs from 0, meaning the species never use the same resource, to 1, meaning they use it in identical proportions. The snippet compares three invented finches by the seed size they eat.

# Niche overlap: share of each species' food (by seed size) that the two species both use. Invented figures. sizes = ["tiny", "small", "medium", "large", "huge"] use = { "finch A": [0.05, 0.30, 0.45, 0.15, 0.05], "finch B": [0.00, 0.10, 0.35, 0.40, 0.15], "finch C": [0.60, 0.35, 0.05, 0.00, 0.00], } def overlap(a, b): return sum(min(x, y) for x, y in zip(use[a], use[b])) names = list(use) print("pair overlap") for i in range(len(names)): for j in range(i + 1, len(names)): print(f"{names[i]} + {names[j]} {overlap(names[i], names[j]):.2f}") # Output: # pair overlap # finch A + finch B 0.65 # finch A + finch C 0.40 # finch B + finch C 0.15

Finches A and B share most of the middle-sized seeds, so their overlap is high (0.65) and they are the pair most likely to compete. Finches B and C eat at opposite ends of the size range, so the overlap is only 0.15 and they hardly affect one another. High overlap does not by itself prove competition, because it only matters if the shared resource is actually scarce. When seeds are abundant, two finches can share them without harm.

Competitive Exclusion

What happens when two species overlap almost completely? In the 1930s the Russian biologist Georgyi Gause grew two species of Paramecium, a single-celled pond organism, in test tubes with a fixed daily supply of food. Each species thrived alone, but when the two were mixed, one species eventually died out. This result is known as the competitive exclusion principle: two species that depend on exactly the same limiting resource cannot coexist for ever; the slightly better competitor takes over. It is sometimes put as “complete competitors cannot coexist”.

A wild version may be familiar from Britain. In many English and Welsh woods and in parts of Scotland, the introduced grey squirrel has replaced the native red squirrel, which has retreated to places such as Highland pinewoods and some islands. The usual account is that greys use a similar diet and habitat, cope better with acorns and can carry a virus that harms reds. That is a mix of competition and disease, so it is not a pure textbook case, and the details are worth checking against a current source.

Modelling Two Competitors

We can extend the logistic model from Chapter 6 so that each species is slowed by both populations. Species 1 grows as r1 × N1 × (1 − (N1 + a12 × N2) / K1), and species 2 likewise. The new quantity a12 is the competition coefficient: how much one individual of species 2 slows species 1, measured in units of a species 1 individual. If a12 = 0.5, each member of species 2 takes up half as much of species 1’s resources as one of its own kind would. If a12 = 1.5, it takes more. These are the Lotka–Volterra competition equations, named after the two scientists who proposed them in the 1920s. Two simulations follow: weak competition first, then a case where species 2 hurts species 1 more than the reverse.

# Two competing species (Lotka-Volterra competition): each one's growth is slowed by BOTH populations. def simulate(r1, r2, k1, k2, a12, a21, n1, n2, years): for year in range(years + 1): if year % 20 == 0: print(f"{year:4d} {n1:8.0f} {n2:8.0f}") g1 = r1 * n1 * (1 - (n1 + a12 * n2) / k1) g2 = r2 * n2 * (1 - (n2 + a21 * n1) / k2) n1, n2 = max(n1 + g1, 0.0), max(n2 + g2, 0.0) print("A: weak competition (alpha 0.5 both ways)") print("year species1 species2") simulate(0.4, 0.4, 1000, 1000, 0.5, 0.5, 50, 50, 100) print() print("B: strong competition (species 2 hurts species 1 more than the reverse)") print("year species1 species2") simulate(0.4, 0.4, 1000, 1000, 1.5, 0.6, 50, 50, 100) # Output: # A: weak competition (alpha 0.5 both ways) # year species1 species2 # 0 50 50 # 20 665 665 # 40 667 667 # 60 667 667 # 80 667 667 # 100 667 667 # # B: strong competition (species 2 hurts species 1 more than the reverse) # year species1 species2 # 0 50 50 # 20 75 913 # 40 1 999 # 60 0 1000 # 80 0 1000 # 100 0 1000

In run A both species are held below their solo carrying capacity of 1,000 and settle together at 667 each: stable coexistence. Each species limits itself (a species’ own members count in full) more than it limits the other (rival members count half), so neither can take over. In run B species 2 counts 1.5 times over against species 1, but species 1 counts only 0.6 against species 2. Both start at 50, yet species 1 is driven down to 1 by year 40 and to zero by year 60, while species 2 reaches its full 1,000. That is competitive exclusion in numbers.

Who Wins? A Simple Rule

You do not have to run a simulation to predict the result. Species 1 can increase when rare and species 2 is at its carrying capacity only if K1 > a12 × K2, and the same logic applies to species 2. This gives four outcomes, which the next function reports for a few cases.

# Which outcome? Compare each species' alpha with the ratio of carrying capacities. def outcome(k1, k2, a12, a21): s1_wins_alone = k1 > a12 * k2 # species 1 can grow when species 2 is at its K s2_wins_alone = k2 > a21 * k1 if s1_wins_alone and s2_wins_alone: return "stable coexistence" if s1_wins_alone: return "species 1 excludes species 2" if s2_wins_alone: return "species 2 excludes species 1" return "winner depends on who starts ahead" cases = [(1000, 1000, 0.5, 0.5), (1000, 1000, 1.5, 0.6), (1000, 1000, 1.2, 1.2), (1000, 600, 0.5, 1.5)] for k1, k2, a12, a21 in cases: print(f"K1={k1} K2={k2} a12={a12} a21={a21}: {outcome(k1, k2, a12, a21)}") # Output: # K1=1000 K2=1000 a12=0.5 a21=0.5: stable coexistence # K1=1000 K2=1000 a12=1.5 a21=0.6: species 2 excludes species 1 # K1=1000 K2=1000 a12=1.2 a21=1.2: winner depends on who starts ahead # K1=1000 K2=600 a12=0.5 a21=1.5: species 1 excludes species 2

The pattern is the heart of the chapter. Coexistence needs each species to limit itself more than it limits its rival. That happens when the species use their resources differently enough, which means their niches must differ. The third case, where each species hurts the other more than itself, is unstable: a small early lead is enough to win, which is why, in a real habitat, the first colonist can sometimes keep a latecomer out.

How Similar Species Share a Habitat

Gause’s principle might suggest every habitat should hold only one species per resource, yet a wood holds many insect-eating birds. The answer is resource partitioning: similar species divide the habitat so that each uses it differently. Coal, blue and great tits are often cited from British woodland. They are said to forage in different parts of the trees and to take different sizes of food, so competition is weakened. Warblers in a spruce forest are another classic story, feeding at different heights and in different parts of the branches. Check specifics against a current source before quoting them.

Over many generations, competition can even push species apart. Character displacement is the evolutionary shift of a trait, such as beak size, in two similar species where they live together, making them more different than where each lives alone. Darwin’s finches on the Galapagos Islands are the standard example, and are described that way in most textbooks. The overall lesson is that competition shapes not only numbers but also the differences between species.

Competitive exclusionResource partitioning
Niche overlapAlmost completePartial; species use resources differently
OutcomeOne species disappears locallyBoth species persist
Competition coefficientsAt least one is large (above 1 relative to K)Both small: each limits itself more than the other
ExampleGause’s two Paramecium species in a test tubeSeveral tit or warbler species in one wood
Common mistakes
Do not confuse a habitat (where) with a niche (what and how). Do not assume that overlap alone means competition: it only matters if the shared resource is limited. Do not read competitive exclusion as meaning one species always wins everywhere, since it applies to a specific place and set of conditions, and a species that loses in one habitat can win in another. Do not forget that competition acts on both species, even when one is hurt far more. And remember that real cases, like the squirrels, mix competition with disease, predation and human action, so a single cause is rarely the whole story.

Challenges

Exercise 1

Three woodland birds feed in five zones (ground, low, middle, high, canopy) with these shares. Bird X: 0.40, 0.30, 0.20, 0.10, 0.00. Bird Y: 0.05, 0.25, 0.40, 0.25, 0.05. Bird Z: 0.00, 0.05, 0.15, 0.30, 0.50. Write an overlap function and print the overlap for every pair, naming the pair most likely to compete. Then change Bird Y to 0.00, 0.10, 0.30, 0.35, 0.25 and repeat. What happened, and what does it say about moving away from one competitor?

📄 View solution
Exercise 2

Simulate two competing species with K = 1,000 and r = 0.4 for both, and the same competition coefficient in both directions, for 200 years. Try alpha = 0.8 and alpha = 1.2, each starting from (100, 50) and then from (50, 100). Print the final populations for all four runs. Explain in a sentence or two why the starting numbers matter for one alpha and not the other.

📄 View solution
Exercise 3

With K1 = K2 = 1,000, build a table of outcomes for every pairing of a12 and a21 from the values 0.4, 0.8, 1.2 and 1.6, using the rule K1 > a12 × K2 and its mirror image. Label each square coexist, 1 wins, 2 wins or either, and count the coexistence squares. What do those squares have in common?

📄 View solution

Quick Reference

  • Habitat: where a species lives; niche: its whole way of life (food, place, timing, conditions)
  • Fundamental niche: what a species could use alone; realised niche: what it uses given competitors
  • Competition: exploitative (using up a shared resource) or interference (direct blocking); a (−, −) interaction
  • Niche overlap: sum of the smaller shares, from 0 (none) to 1 (identical)
  • Competitive exclusion: complete competitors cannot coexist for ever; the better one takes over
  • Competition coefficient (a12): how strongly one individual of species 2 limits species 1, compared with one of its own kind
  • Coexistence rule: K1 > a12×K2 and K2 > a21×K1; each species limits itself more than its rival
  • Resource partitioning and character displacement let similar species share a habitat
Coming next
Ecology and Ecosystems Fundamentals 8 moves from species that compete to species that eat, help or live on one another: predator and prey cycles, mutualism and parasitism.