Chaos theory and sensitive dependence on conditions
The published article Differential equations — modeling change covers single first-order equations and lists systems of equations among the things it does not cover. This article starts there. It follows §8.5, “Chaos”, of Jiří Lebl’s Notes on Diffy Qs, which works through two chaotic examples, the Duffing equation and the Lorenz system [1–7], with one passage from the book’s §8.3 [8]. Two OpenStax textbooks add a discrete example, the logistic map [9–11], and a definition of chaos from physics [12].
What “chaotic” means
Lebl’s account of chaos [1]: - Determinism. In his words, “Mathematical chaos is not really chaos”, since there is precise order behind it and everything is still deterministic. - Sensitivity. The starting conditions of a chaotic system have an extremely strong effect on what it does later: the system is extremely sensitive to them. - Numerical trouble. Because of that sensitivity, even the small errors that a numerical approximation introduces grow into large errors very quickly, so approximating such a system numerically over long times is almost impossible. Of this numerical difficulty Lebl writes, “This is a large part of the trouble”, since chaotic systems in general cannot be solved analytically.
OpenStax’s Calculus Volume 1 names the same property sensitive dependence on initial conditions: small changes in the starting values can produce drastically different behavior [9]. It calls this property “one of the key properties” of a chaotic iterative process, and leaves a complete exploration of chaos out of its scope [9].
In OpenStax’s College Physics 2e, a system is chaotic if some factor affects its behavior so sensitively that predicting the behavior becomes extremely difficult [12]. (Our reading: the definition names no particular kind of factor, so the factor need not be a starting value.) Its example is fluid flow at Reynolds numbers from 2000 to 3000: whether that flow is turbulent is “difficult, but not impossible, to predict”, because the flow depends extremely sensitively on factors such as roughness and obstructions [12]. The same passage names three phenomena, as different as turbulence, Pluto’s orbit and the start of irregular heartbeats, as chaotic, and says similar techniques serve to analyze all of them [12].
Weather, planets and a double pendulum
Lebl opens with the familiar story of a butterfly whose wing flap in the Amazon leads to hurricanes over the North Atlantic [1]. He then takes the weather, which he calls perhaps the best-known chaotic system [1]: - Change the starting conditions slightly (for example “the temperature at every point of the atmosphere”) and the predictions become drastically different within a fairly short time. - The exact initial conditions are not known anyway. Temperatures are measured, with some error, at a few points, and the values between them are estimated. In his words, “There is no way we can accurately measure the effects of every butterfly wing.” - Solving the equations numerically then adds new errors. - His advice: do not trust a forecast for more than a few days ahead. Over longer times one can still learn something about a chaotic system; for the weather, that is the study of climate.
The planets are a second example. In his §8.3 Lebl writes that Isaac Newton proved the case of one planet circling one sun to be stable, once he had stated his laws of planetary motion; with two or more planets the problem “proved very difficult indeed” [8]. Such a system behaves chaotically, Lebl says: small differences in the starting conditions lead to very different outcomes in the long run [8]. Numerical experiments and measurements show that the Earth will neither fly off into empty space nor fall into the Sun “for at least some millions of years or so”; beyond that, nobody knows [8].
For a chaotic system to try at home, Lebl suggests the double pendulum: one pendulum hung from the end of another, whose lower mass appears to move chaotically [1]. He skips its equations, which he calls somewhat complicated, with a quite tedious derivation. To make one, tie two heavy nuts on a piece of string, one at its very end and another somewhat above, then push the bottom nut gently. The arrangement behaves as a double pendulum while the string stays taut and the swings remain moderate [1].
Lorenz’s system
In the 1960s, Lebl writes, Edward Lorenz was modeling air convection driven by heat and noticed chaotic behavior [1]. A footnote gives Lorenz’s dates, 1917–2008, and calls him an American mathematician and meteorologist [1]. The system Lorenz was studying is, in Lebl’s words, relatively simple [1]:
x′ = −10x + 10y,
y′ = 28x − y − xz,
z′ = −(8/3)z + xy [1].
(Our gloss: x, y and z are unknown functions of time t, and the prime marks a derivative in t.) Change the starting values a little and, after a reasonably short time, the solution is a very different one [1]. Its geometry is taken up below, after the tool needed to see order in a chaotic system.
The Duffing equation
Lebl’s first worked example is the Duffing equation [2]:
x″ + ax′ + bx + cx³ = C cos(ωt),
in which the five letters a, b, c, C and ω stand for constants. Apart from the cx³ term, Lebl says, it looks like the equation of a forced mass on a spring. The cx³ term means the spring does not follow Hooke’s law exactly, which Lebl notes no real spring does exactly either [2]. For nonzero c no closed-form solution exists, and, as usual for nonlinear systems, it has to be solved numerically [2]. Not every choice of constants and starting values produces chaos [2].
Lebl studies x″ + 0.05x′ + x³ = 8 cos(t) [2]. The equation is not autonomous (our gloss: its
right-hand side depends on t), so its vector field cannot be drawn in the phase plane, the plane of x and y = x′
(our gloss: y is the velocity). Its
trajectories can still be drawn there [2]. Figure 8.12 in his book shows two of them, for t from 0 to 15, one starting at (2, 3), the other at the nearby point
(2, 2.9): they stay together at first and then soon move far apart [2]. Lebl:
“This sensitivity to initial conditions is precisely what we mean by the system behaving chaotically.” [2]
Followed out to t = 100 from (2, 3), the solution has no pattern that is easy to see, except that it appears to oscillate, with every oscillation looking quite unique; oscillation is to be expected, Lebl notes, because of the forcing term [2, 3]. To draw it accurately Lebl used, in his word, a “ridiculously” large number of steps, 30,000 with the Runge–Kutta method, because small errors spread quickly in a chaotic system [2].
Order inside chaos: Poincaré sections and strange attractors
A chaotic system is very hard to analyze, but Lebl looks for what its oscillations have in common [3]. His tool is the Poincaré section; a footnote gives its namesake as Jules Henri Poincaré, a French polymath, with the dates 1854–1912 [3]. Instead of following the solution over a whole interval of time, one records where it is at a fixed sequence of times, as if a strobe light flashed at a fixed frequency [3]. With the Duffing equation as forced here, the strobe should flash at the forcing term’s frequency, so the points recorded are the positions (x, y) at t = 0, 2π, 4π, 6π and so on [3]. The transient, the early stretch that depends on where the solution started, is not of interest, so the first points are skipped: for example the first 100, starting at t = 200π [3]. Plotting enough of the remaining points shows a curious pattern, a so-called strange attractor [3].
Lebl describes it as follows [4]: - An attractor of a sequence of points is a set that the points eventually come closer and closer to. Strictly, the Poincaré section is “not really the attractor itself”, but its points lie so close to the attractor that they show its shape. - Strange attractors are sets of great complexity, with fractal structure: however far one zooms in, the same complicated structure keeps appearing. - The starting values make no difference here. From other starting values the points still end up near the attractor, so, once the first points are discarded, the picture is the same. Small numerical errors do not matter here either. - In Lebl’s words, the Duffing equation “is not random at all”: its order is very complicated, and “the strange attractor says something about this order”. Where the system ends up cannot quite be stated, but for a fixed strobing frequency it is narrowed down to the attractor’s points.
Shifting the strobe times, for example to π/4, 2π + π/4, 4π + π/4 and so on, gives a slightly different attractor, and in Lebl’s words it is as if “we had rotated, moved, and slightly distorted the original” [4].
The comparison Lebl draws is with a forced linear oscillator, x″ + 2px′ + ω₀²x = (F₀/m) cos(ωt), the Duffing
equation without its cubic term [4]. Its steady periodic solution has the form x = C cos(ωt + γ), so strobing at the
frequency ω gives a single point in phase space [5]. Its attractor is that one point, which Lebl calls an expected
result, since this system is not chaotic: differences caused by the starting values die away very quickly, and the
motion settles into the same steady periodic one [5].
Why the Lorenz system needs three dimensions
In two dimensions, Lebl writes, finding chaotic behavior means studying forced systems, which are not autonomous, the Duffing equation among them [5]. He then states the Poincaré–Bendixson theorem: if a solution of an autonomous system in two dimensions exists for all future time, it “either goes towards infinity, is periodic, approaches a loop, or perhaps goes towards a critical point” [5]. His comment: “Hardly the chaotic behavior we are looking for.” [5]
With three dimensions, chaos is possible even without forcing, and the Lorenz system is an example [5]. Its trajectories are curves in space of three dimensions, and solutions tend to a set in space called the Lorenz attractor [5, 6]. No strobing is needed: following one solution long enough gives a good picture of the attractor, best drawn from a point after the solution has come close to it [6]. It too is a strange attractor, with a complicated fractal structure [6].
The trajectory is not a figure-eight that repeats. It makes a seemingly random number of turns around the left side, then some turns around the right side, then more on the left, and so on [6]. Since the system arose in weather prediction, Lebl offers a picture, hedged with a “perhaps”: warm weather for a few days, then cold for a few, with the change hard to predict, much as it is hard to know long beforehand when the solution will switch sides [6]. His graph of x(t) shows the switching: x is negative while the solution is on the left loop and positive while it is on the right [6]. The weather cannot be predicted, but, in his words, “we can say something about the climate—the weather will be somewhere near the attractor” [6].
(Our check, for the critical points that Lebl’s Exercise 8.5.101 asks for [7]: setting all three right-hand sides to zero gives y = x from the first equation, x(27 − z) = 0 from the second, and z = 3x²/8 from the third. So either x = y = z = 0, or z = 27 and x² = 72, giving x = y = ±6√2, about ±8.485. The system therefore has three critical points: the origin and (±6√2, ±6√2, 27), with the same sign in the first two coordinates.)
Lebl closes the section by noting that “Most of the mathematics we studied in this book is quite classical and well understood”, while chaos, including the Lorenz system, is still a subject of current research, and that chaos has found uses in art as well as in the sciences [6].
A discrete example: the logistic map
Chaos also appears when a rule is applied over and over to a number. OpenStax’s Calculus Volume 1 notes that such an iterative process can settle on a fixed point or on a cycle of values, such as a 2-cycle, a 4-cycle or an 8-cycle [9]. Some iterative processes instead give what mathematicians call chaos: the values jump from one to another “in a seemingly random fashion”, never converging and never entering a cycle [9].
Its project uses the logistic map, f(x) = rx(1 − x), with x between 0 and 1 and r > 0, which it calls deceptively simple: it can produce fixed points, cycles or even chaos, according to the value of r [10]. Starting from x₀ = 0.2 with r = 3.55, its cobweb diagram shows an 8-cycle, with the first 100 iterations left out of the plot [10, 11]. The project then asks the reader to try r = 0.5, 2, 3.2, 3.5 and 4, and finally r = 4 again from x₀ = 0.201 instead of 0.2 [11].
Our check, starting each time from x₀ = 0.2, and reading the long-run values after 1,100 iterations:
| r | Long-run behavior (our computation) |
|---|---|
| 0.5 | the values fall to 0 |
| 2 | the values settle at 0.5 |
| 3.2 | a 2-cycle: about 0.513 and 0.7995 |
| 3.5 | a 4-cycle: about 0.383, 0.501, 0.827 and 0.875 |
| 3.55 | an 8-cycle, as the book’s Figure 4.84 shows [11] |
| 4 | no settling; see below |
With r = 4, the two starting values 0.2 and 0.201 differ by 0.001. In our computation the two sequences differ by about 0.0024 after one step and about 0.009 after three, but by step 9 the difference is more than 0.5 (0.9616 against 0.4488), and at step 10 the values are about 0.148 and 0.989 (our check). A difference in the third decimal place of the starting value has grown, within ten steps, to a difference across most of the range from 0 to 1.
OpenStax adds that the Mandelbrot set is “Probably the best-known example of chaos” [9]. Its name comes from Benoit Mandelbrot (the book gives 1924–2010), “who investigated its properties and helped popularize the field of chaos theory” [9]. Lebl’s exercises include a related project, a “chaos game”: pick one of a triangle’s three corners at random, move a point halfway towards it, and repeat; the points are drawn to a fractal called the Sierpinski triangle [7].
Not covered here
- Lebl §8.1–8.4 (critical points, linearization, stability and limit cycles) beyond the terms §8.5 uses.
- The name butterfly effect and the history of chaos beyond the two footnotes and the one dated statement in Lebl’s §8.5: none of the corpus pages read here gives more.
- Measures of chaos, such as rates at which nearby solutions separate, and the routes by which systems become chaotic: not treated in the pages used.
- The physics of turbulence, Pluto’s orbit and heart rhythms beyond the one College Physics paragraph; entropy and physical predictability (see Entropy and the second law of thermodynamics).
- A paper in the physics-foundations corpus that uses a butterfly calculation in an argument about quantum
mechanics (T. N. Palmer,
foundations-qm/Palmer_superdeterminism-without-conspiracy_2308.11262.pdf): its subject is the foundations of quantum mechanics, not chaos as mathematics, so it is not used.
Sources
- [1]–[8] Jiří Lebl, Notes on Diffy Qs: Differential Equations for Engineers, edition 6 (version 6.11), May 18, 2026. View at source ↗
- [1]§8.5 “Chaos”, p. 378 (deterministic and sensitive; numerical errors; no analytic solution in general; the butterfly story; weather and climate; Lorenz and his system; the double pendulum).
- [2]§8.5.1, p. 379 (the Duffing equation; the example; Figure 8.12; the long-term solution; 30,000 Runge–Kutta steps).
- [3]§8.5.1, p. 380 (Figure 8.13; the Poincaré section; strobing; skipping the first 100 points; Poincaré’s dates).
- [4]§8.5.1, p. 381 (attractor; fractal structure; starting values make no difference; not random; phase shift; the forced linear oscillator).
- [5]§8.5, p. 382 (its steady periodic solution and single-point attractor; the Poincaré–Bendixson theorem; the Lorenz system in three dimensions).
- [6]§8.5, p. 383 (the Lorenz attractor; the left and right loops; climate; current research).
- [7]§8.5 exercises, p. 384 (Exercise 8.5.2, the chaos game and the Sierpinski triangle; Exercise 8.5.101, the Lorenz system’s critical points).
- [8]§8.3 “Applications of nonlinear systems”, p. 371 (Newton; one planet versus several; the Earth’s long-term future).
- [9]–[11] OpenStax, Calculus Volume 1, §4.9 “Newton’s Method”, Student Project “Iterative Processes and Chaos”.; printed page + 8 = PDF page. View at source ↗
- [9]p. 415 (cycles; chaos; sensitive dependence on initial conditions; the Mandelbrot set).
- [10]p. 416 (the logistic map; the cobweb diagram; r = 3.55 and x₀ = 0.2).
- [11]p. 417 (Figure 4.84, the 8-cycle; the project’s questions).
- [12]OpenStax, College Physics 2e, §12.5 “The Onset of Turbulence”, p. 515 (the definition of a chaotic system; Reynolds numbers 2000 to 3000; examples).; printed page + 18 = PDF page. View at source ↗
Works cited
- Jiří Lebl, Notes on Diffy Qs: Differential Equations for Engineers, version 6.11. www.jirka.org/diffyqs. License: CC BY-SA 4.0.
- Gilbert Strang and Edwin “Jed” Herman, Calculus Volume 1 (OpenStax, Rice University, 2016). openstax.org/details/books/calculus-volume-1. License: CC BY-NC-SA 4.0. Access for free at openstax.org.
- Paul Peter Urone and Roger Hinrichs, College Physics 2e (OpenStax, Rice University, 2022). openstax.org/details/books/college-physics-2e. License: CC BY-NC-SA 4.0. Access for free at openstax.org.