An Introduction to Chaos

Chaos theory, perhaps more correctly if less interestingly called dynamical-systems theory, deals with systems of equations (that might correspond to real world systems). These systems are usually in the form of differential equations or iterative maps and the ones we are interesting in are,

Or more pithily,

Chaos: When the present determines the future, but the approximate present does not approximately determine the future.
Edward Lorenz1

In this article, we will look at a few classic examples of chaotic systems. Later, we will try to understand them more deeply and explain their relevance to astrophysics.

Newton Raphson

The Newton-Raphson method2 is a numerical algorithm to find the roots (the value for xx ) of an equation of the form f(x)=0f(x) = 0 . It is iterative and so requires an initial guess of the root (x0x_0 ). Subsequent estimates are computed using,

xn+1=xnf(xn)f(xn) x_{n+1} = x_{n} - \frac{f(x_n)}{f'(x_n)}

and we continue until f(xn)f(x_n) is close enough to 00 , f(xn)<ϵ|f(x_n)| < \epsilon .

How does this work? This iteration fits a line around the local value (xnx_n ) of the function. We then move a distance that solves the equation, assuming that linear fit is correct. If f(x)f(x) is well approximated by a line, we immediately find the solution. For example,

f(x)=4+2xwithx0=5x1=5142=2 \begin{align} f(x) &= 4 + 2x \quad \text{with} \quad x_0 = 5 \\ x_1 &= 5 - \frac{14}{2} = -2 \end{align}

If f(xn)f(x_n) is not well approximated by a line we approach the solution more slowly,

f(x)=x2withx0=5x1=52510=2.5x2=2.52520=1.25xn=0 \begin{align} f(x) &= x^2 \quad \text{with} \quad x_0 = 5 \\ x_1 &= 5 - \frac{25}{10} = 2.5 \\ x_2 &= 2.5 - \frac{25}{20} = 1.25 \\ & \ldots{} \\ x_n &= 0 \end{align}

As this function flattens out as it approaches the root, our linear approximation does not move far enough. As the guess gets close to the true root, the linear approximation improves, and we eventually find the solution.

This method does not always work. If we run into a point where the derivative is 00 we move to \infty . We can also oscillate around the root without drawing near to it. However, what we are interested in here is the behavior of this method when there are multiple roots. Consider x2=4x^2 = 4 which has two solutions, x=±2x = \pm 2 . Which solution is found for each x0x_0 ? The general rule is that the Newton-Raphson method will move to the closest solution. However, for some functions the behavior around the equidistant points is interesting. We can see small changes in initial conditions resulting in large, hard to understand changes in the result. The method is chaotic in these regions.

Below we show the results of f(x)=x31f(x) = x^3 - 1 . This has only one real solution, x=1x = 1 , but two complex solutions, x=0.5±32ix = -0.5 \pm \frac{\sqrt{3}}{2} i . We plot this in the complex plane where the color shows which solution is found for that x0x_0 . The shade shows the number of iterations required to reach a solution (light \rightarrow few, dark \rightarrow many). Click on a point to see the steps taken to the solution and scroll to zoom.

Lorenz System

Perhaps the most well known chaos theorist was Edward Lorenz (not to be confused with Hendrik Lorentz of the relativistic transforms). Lorenz was a mathematician and meteorologist who worked on modeling and forcasting weather. We will show the main result from his most well known paper, Deterministic Nonperiodic Flows (Lorenz 1963).

This paper studied the following systems of differential equations.

dxdt=σ(yx)dydt=x(ρz)ydzdt=xyβz \begin{align} \frac{dx}{dt} &= \sigma(y - x) \\ \frac{dy}{dt} &= x(\rho - z) - y \\ \frac{dz}{dt} &= xy - \beta z \end{align}

where xx , yy , and zz vary with time and describe temperature variations and heat flow in the system, and σ\sigma , ρ\rho , and β\beta are constants describing physical properties of the system. Lorenz, quite reasonably, thought that two systems that started in similar states would remain similar over time. However, even small changes in initial conditions (for some values of σ\sigma , ρ\rho , and β\beta ) resulted in large changes after some time.

I’m leaving a lot of detail out here, both about what exactly these variables are and how they relate to fluid flow. I’m doing this because they are quite complicated, I don’t fully understand them, and all we really want to show here is that a simple set of equations can lead to complicated, chaotic results.

Below we evaluate these equations up to t=30t = 30 for varying values of the constants. Click on the image to peturb the initial conditions slightly and see how this can significantly change the final state (the black dot) of the system.

x0=x_0 =

y0=y_0 =

z0=z_0 =

ρ=\rho =

σ=\sigma =

β=\beta =

References

Cajori, Florian. 1911. “Historical Note on the Newton-Raphson Method of Approximation.” The American Mathematical Monthly 18 (2): 29–32.

Lorenz, Edward N. 1963. “Deterministic Nonperiodic Flow.” Journal of Atmospheric Sciences 20 (2): 130–41.

Thomas, David J., and Judith M. Smith. 1990. “Joseph Raphson, F.r.s.” Notes and Records of the Royal Society of London 44 (2): 151–67. http://www.jstor.org/stable/531605.


  1. The key sentence from that page,

    In 2005, while I [Christopher Danforth] was a PhD student in Applied Mathematics at the University of Maryland, the legendary Lorenz visited my advisor Eugenia Kalnay in her office in the Department of Atmospheric & Oceanic Science. At some point during his stay, he penned the following on a piece of paper: “Chaos: When the present …”

    ↩︎
  2. See Cajori (1911) or Thomas and Smith (1990) for a brief history of Joseph Raphson and the Newton-Raphson method (which is sometimes known simply as Newton’s method, though by modern standards the credit is probably more due to Raphson). We know little about Raphson, not even the year of his birth or death, though he seems to have been acquainted with Halley, who presented his work to the Royal Society,

    Mr Halley related [on 30 July 1690] that Mr Ralphson had Invented a method of Solving all sorts of Aquations, and giving their Roots in Infinite Series, which Converge apace, and that he had desired of him an Equation of the fifth power to be proposed to him, to which he return’d Answers true to Seven Figures in much less time than it could have been effected by the Known methods of Vieta.
    (Thomas and Smith 1990)

    Mr Ralpson’s Book was this day [17 December 1690] produced by E Halley, wherein he gives a Notable Improvemt of ye method of Resolution of all sorts of Equations Shewing, how to Extract their Roots by a General Rule, which doubles the known figures of the Root known by each Operation, So yt by repeating 3 or 4 times he finds them true to Numbers of 8 or 10 places. The Society being highly pleased with this his performance Ordered him their thanks with their Desires, that he would please to Continue to prosecute those Studys, wherein he hath been so Successful.
    (Thomas and Smith 1990)

    ↩︎