1. Home
  2. Explore
  3. Mathematics
  4. Dynamical Systems and Chaos

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Dynamical Systems and Chaos

Speaker 1Speaker 2

Dynamical Systems and Chaos

14:13
0:00-14:13
  1. Anna

    Welcome to the show. Today we’re exploring dynamical systems and chaos, mostly through ecology: how populations grow, shrink, and interact. We’ll use differential equations and computer simulations, but the goal is to understand the ideas, not to do calculus by hand.

  2. Corey

    And the examples can be followed whether you’ve studied calculus or not. The basic code for several of them is written in Python and available on GitHub, so listeners who want to experiment can try the models themselves.

  3. Anna

    The big theme is that complexity comes in more than one form. We can talk about how complicated a system is, and separately about how complicated its behavior is. Some complex systems behave simply, but surprisingly, a simple system can sometimes behave in a very complicated way.

  4. Corey

    That surprising combination—simple system, complex behavior—is our focus. Chaos became familiar to many people through pop culture, including Jurassic Park, but mathematical chaos has a more specific meaning than just disorder or confusion.

  5. Anna

    Right: chaos is not the same as randomness. A chaotic system can be completely deterministic. If we knew the system’s exact current state and the exact rules governing it, then in theory we could predict what happens next.

  6. Corey

    But chaos has a few important characteristics. One is aperiodicity: there’s no repeating rhythm or discernible period. Another is extreme sensitivity to initial conditions. A tiny difference in what we think the present state is can eventually make a huge difference to our prediction.

  7. Anna

    That’s why a deterministic chaotic system can still be so difficult to forecast. In practice, measurements are never perfectly exact. A small uncertainty in the initial measurement can grow until the long-term prediction becomes unreliable.

  8. Corey

    And not every system is capable of chaos, nor does a system capable of chaos behave chaotically all the time. The conditions have to be right. Edward Lorenz captured the forecasting problem with the idea that the present determines the future, but the approximate present does not approximately determine the future.

  9. Anna

    To see how we model these systems, let’s start with a variable called x that changes over time. In ecology, x might represent the population of a species. The derivative, written dx over dt, describes how quickly that population is changing at a particular time.

  10. Corey

    If we know the population now and a little while later, we can estimate that rate of change by dividing the change in population by the change in time. The shorter that time interval gets, the closer the estimate gets to the true rate at that moment.

  11. Anna

    For a small time step, we can use the current rate to estimate the near-future population: multiply the rate of change by the time step, then add that change to the current population. If a function tells us the rate from the current state, we can repeat this update over and over.

  12. Corey

    That repeated updating is the basic idea behind numerically simulating a differential equation. More sophisticated algorithms do the job more accurately, but they share the same general idea: use the current state to estimate the next one, then continue forward in time.

  13. Anna

    Let’s apply that to a single species: rabbits. In exponential growth, the population’s rate of change is proportional to the population itself. If there are more rabbits, there are more rabbits available to reproduce, so the population can grow faster.

  14. Corey

    The proportionality constant, often called c, describes how aggressively the population grows. We can start with an initial population and a value for c, then use the time-stepping procedure to estimate the rabbit population at future times.

  15. Anna

    For exponential growth, there’s also an exact analytical solution, so we can compare the simulation against it. When we use smaller time steps, the numerical estimate gets closer to the exact curve. That’s a useful way to check how well the simulation is doing.

  16. Corey

    Exponential growth is a helpful starting point, but it can’t continue forever in a real environment. Resources are limited, so the environment has a carrying capacity: the population level it can support.

  17. Anna

    That leads to logistic growth. When the population is much smaller than the carrying capacity, its growth looks roughly exponential. But as the population approaches that capacity, competition for resources slows growth, and the growth rate approaches zero.

  18. Corey

    So the population curve flattens out as it approaches the carrying capacity. The model captures a simple ecological idea: growth can be fast when resources are plentiful, then slow as more individuals compete for what the environment can provide.

  19. Anna

    Now let’s add a second species: foxes that prey on rabbits. We’ll call the rabbit population one state variable and the fox population another. The two populations are coupled because a change in one affects the other.

  20. Corey

    The number of encounters between rabbits and foxes depends on both populations, so the model represents those interactions using the product of the two population levels. Predation reduces rabbit growth, while giving the foxes a food source that supports their growth.

  21. Anna

    The foxes also have their own decline when rabbits are scarce. Without food, the fox population can decrease through starvation—or, equivalently in the model’s interpretation, through foxes migrating to places with more food.

  22. Corey

    When the carrying capacity is low, the simulated rabbit and fox populations can settle at constant levels. As the carrying capacity gets larger, though, the populations can begin to oscillate.

  23. Anna

    Here’s the cycle: rabbits grow rapidly when conditions allow, which supports more foxes. Once the fox population is large enough, predation drives the rabbits down. Then food becomes scarce for foxes, so their population falls too, allowing rabbits to recover.

  24. Corey

    We can look at those dynamics in a time-series plot, with population against time. But there’s another view called phase space, where each dimension represents one part of the system’s state. With rabbits and foxes, phase space has two dimensions: one for each population.

  25. Anna

    A plot in phase space is called a phase plot. If both populations settle to constant levels, their phase plot is just a point. If they oscillate, the plot traces an orbit. In this example, that repeating orbit is called a limit cycle, and its amplitude grows as carrying capacity increases.

  26. Corey

    Limit cycles are also known in a special class of predator-prey models called Lotka–Volterra models, when the carrying capacity is large enough that its effects can be ignored. The phase plot can reveal this structure in a way that a population-versus-time plot may not.

  27. Anna

    Now we’re ready for a third species. Adding one makes the system more complex: the phase space goes from two dimensions to three. It also gives us more choices for how the species interact.

  28. Corey

    One arrangement is a food chain: a top species preys on a middle species, which preys on a bottom species. Another is a food web where each species interacts directly with the others. That modest increase in the system’s complexity can lead to a much bigger increase in the complexity of its behavior.

  29. Anna

    There’s a useful intuition for why dimension matters. Imagine drawing a curve inside a bounded region of two-dimensional space. If you keep going, you eventually have to cross some part of the curve you drew before, which means revisiting a point.

  30. Corey

    Revisiting a point is periodic behavior: the system has returned to a state it had before. In three dimensions, by contrast, a curve can keep winding around in a finite region without crossing itself. That gives us an intuitive picture of how a system can keep evolving without repeating.

  31. Anna

    The Poincaré–Bendixson theorem formalizes an important part of this idea: chaotic behavior requires a phase space with at least three dimensions. So, for the food-web examples we’re discussing, at least three species are needed for chaos to arise.

  32. Corey

    Our first three-species example is omnivory. The top species preys on both the middle species and the bottom species, and the middle species also preys on the bottom one. An example discussed in ecology is great blue herons, carp, and dragonflies: carp eat dragonflies, while herons eat both carp and dragonflies.

  33. Anna

    In the model, we can adjust the rate at which the top species preys on the bottom species. At low rates, the three populations settle to stable levels, represented by a point in three-dimensional phase space. Once that rate is high enough, the populations fluctuate and the point becomes an orbit—a limit cycle.

  34. Corey

    To track changes in that orbit, the model uses a Poincaré section: a surface through phase space that the orbit passes through. Each time it passes through, we record the apex predator’s population. That gives us a sequence of snapshots we can compare as we change the predation rate.

  35. Anna

    At a predation rate of about 6.3 in this example, the population levels take two orbits to repeat instead of one. The period has doubled, so this change is called a period-doubling bifurcation. On the plot of recorded values, the curve branches into two.

  36. Corey

    Raise the predation rate again and another period doubling can occur: now the populations take four orbits to repeat. As the rate climbs, these doublings can happen more and more rapidly, producing what’s called the period-doubling route to chaos.

  37. Anna

    The next example changes the kind of interaction. Instead of omnivory, we’ll look at scavenging: a scavenger hunts a prey species and also feeds on dead members of the predator species, without killing those predators itself.

  38. Corey

    One possible example is hyenas, lions, and wildebeest. Here, the model varies how quickly the scavenger population dies off. As before, we use a Poincaré section and track the predator population each time the orbit passes through it.

  39. Anna

    At low scavenger die-off rates, the populations are stable. As the rate rises, they begin to oscillate, and above about 5 in this example, the food web starts a period-doubling route to chaos. Chaos is fully underway around a die-off rate of 11.

  40. Corey

    There’s even a brief return to order before chaos resumes around a rate of 12. Then something especially interesting happens: as the die-off rate continues to rise, the system undergoes period-halving changes away from chaos and back toward order, reaching stable population levels at around 17 or higher.

  41. Anna

    So the behavior doesn’t just become steadily more chaotic as we turn a parameter up. Depending on the parameter, a food web can move from stability to cycles, into chaos, and then back toward stability. The mathematical models let us explore those possibilities systematically.

  42. Corey

    That has practical value because ecological experiments can be difficult both practically and ethically. Simulations can help us examine what might happen when a food web changes, including changes caused by people, while supporting more responsible ecological stewardship.

  43. Anna

    One example is the proposal to use CRISPR to introduce a sterility gene into mosquito populations, in an effort to fight diseases such as malaria, Zika, and dengue. But mosquitoes also pollinate a variety of plants, and plants form the foundation of most food webs, so reducing mosquito reproduction could have longer-term ecological consequences.

  44. Corey

    Another example comes from Florida’s Everglades, where invasive Burmese pythons threaten native mammals and birds. Researchers have observed native bobcats apparently developing a taste for python, and hope that this could help restore balance in the ecosystem. Models can help us think through these kinds of interactions and possible consequences.

  45. Anna

    Let’s return to the Butterfly Effect. It’s a nickname for sensitivity to initial conditions, one of chaos’s defining features. The famous question asks whether the flap of a butterfly’s wings in Brazil could set off a tornado in Texas.

  46. Corey

    The phrase is associated with Edward Lorenz, a meteorologist and mathematician who found chaotic behavior in a simplified weather model. His model represented the atmosphere as a thin layer of fluid heated from below and cooled from above.

  47. Anna

    The model produces trajectories that orbit chaotically around a strange attractor. Its shape happens to look a bit like butterfly wings, which gives the metaphor an especially memorable image. But the key idea isn’t that a real butterfly literally causes a particular tornado; it’s that tiny differences in initial conditions can grow into large differences in outcomes.

  48. Corey

    That’s why weather forecasting is such a clear example of the challenge. Meteorologists use ensemble forecasting: they simulate a distribution of possible initial conditions rather than relying on just one. How far those simulated outcomes spread gives an idea of the range of possible weather and which outcomes are more likely.

  49. Anna

    The same lesson applies beyond weather. If a system is chaotic, uncertainty in its starting state limits how confidently we can forecast far into the future. But that doesn’t make modeling pointless: it helps us understand possible behaviors, test how changing a parameter affects a system, and make more informed decisions.

  50. Corey

    We’ve followed the idea from a single growing population to logistic growth, then to predator-prey cycles and three-species food webs. We’ve seen prey, predators, omnivores, and scavengers, and how changing interaction rates can produce stable populations, oscillations, period doubling, and chaos.

  51. Anna

    And the broader takeaway is that a system can be governed by clear, deterministic rules and still behave in a way that is difficult to predict. Mathematical models and programming help us explore that complexity—and, in ecology, can contribute to thoughtful decisions about how we affect the natural world.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent