Lorenz system
Template:Short descriptionTemplate:TechnicalTemplate:Distinguish

The Lorenz system is a system of ordinary differential equations first studied by mathematician and meteorologist Edward Lorenz. It is notable for having chaotic solutions for certain parameter values and initial conditions. In particular, the Lorenz attractor is a set of chaotic solutions of the Lorenz system. The term "butterfly effect" in popular media may stem from the real-world implications of the Lorenz attractor, namely that tiny changes in initial conditions evolve to completely different trajectories. This underscores that chaotic systems can be completely deterministic and yet still be inherently impractical or even impossible to predict over longer periods of time. For example, even the small flap of a butterfly's wings could set the earth's atmosphere on a vastly different trajectory, in which for example a hurricane occurs where it otherwise would have not (see Saddle points). The shape of the Lorenz attractor itself, when plotted in phase space, may also be seen to resemble a butterfly.
Overview
Template:See alsoIn 1963, Edward Lorenz, with the help of Ellen Fetter who was responsible for the numerical simulations and figures,[1] and Margaret Hamilton who helped in the initial, numerical computations leading up to the findings of the Lorenz model,[2] developed a simplified mathematical model for atmospheric convection.[1] The model is a system of three ordinary differential equations now known as the Lorenz equations:
The equations relate the properties of a two-dimensional fluid layer uniformly warmed from below and cooled from above. In particular, the equations describe the rate of change of three quantities with respect to time: Template:Mvar is proportional to the rate of convection, Template:Mvar to the horizontal temperature variation, and Template:Mvar to the vertical temperature variation.[3] The constants Template:Mvar, Template:Mvar, and Template:Mvar are system parameters proportional to the Prandtl number, Rayleigh number, and certain physical dimensions of the layer itself.[3]
The Lorenz equations can arise in simplified models for lasers,[4] dynamos,[5] thermosyphons,[6] brushless DC motors,[7] electric circuits,[8] chemical reactions[9] and forward osmosis.[10] Interestingly, the same Lorenz equations were also derived in 1963 by Sauermann and Haken [11] for a single-mode laser. In 1975, Haken realized [12] that their equations derived in 1963 were mathematically equivalent to the original Lorenz equations. Haken's paper [13] thus started a new field called laser chaos or optical chaos. The Lorenz equations are often called Lorenz-Haken equations in optical literature. Later on, it was also shown the complex version of Lorenz equations also had laser equivalent ones. [14] The Lorenz equations are also the governing equations in Fourier space for the Malkus waterwheel.[15][16] The Malkus waterwheel exhibits chaotic motion where instead of spinning in one direction at a constant speed, its rotation will speed up, slow down, stop, change directions, and oscillate back and forth between combinations of such behaviors in an unpredictable manner.
From a technical standpoint, the Lorenz system is nonlinear, aperiodic, three-dimensional and deterministic. The Lorenz equations have been the subject of hundreds of research articles, and at least one book-length study.[3]
Analysis
One normally assumes that the parameters Template:Mvar, Template:Mvar, and Template:Mvar are positive. Lorenz used the values Template:Math, Template:Math, and Template:Math. The system exhibits chaotic behavior for these (and nearby) values.[17]
If Template:Math then there is only one equilibrium point, which is at the origin. This point corresponds to no convection. All orbits converge to the origin, which is a global attractor, when Template:Math.[18]
A pitchfork bifurcation occurs at Template:Math, and for Template:Math two additional critical points appear at These correspond to steady convection. This pair of equilibrium points is stable only if
which can hold only for positive Template:Mvar if Template:Math. At the critical value, both equilibrium points lose stability through a subcritical Hopf bifurcation.[19]
When Template:Math, Template:Math, and Template:Math, the Lorenz system has chaotic solutions (but not all solutions are chaotic). Almost all initial points will tend to an invariant setTemplate:Sndthe Lorenz attractorTemplate:Snda strange attractor, a fractal, and a self-excited attractor with respect to all three equilibria. Its Hausdorff dimension is estimated from above by the Lyapunov dimension (Kaplan-Yorke dimension) as Template:Val,[20] and the correlation dimension is estimated to be Template:Val.[21] The exact Lyapunov dimension formula of the global attractor can be found analytically under classical restrictions on the parameters:[22][20][23]
The Lorenz attractor is difficult to analyze, but the action of the differential equation on the attractor is described by a fairly simple geometric model.[24] Proving that this is indeed the case is the fourteenth problem on the list of Smale's problems. This problem was the first one to be resolved, by Warwick Tucker in 2002.[25]
For other values of Template:Mvar, the system displays knotted periodic orbits. For example, with Template:Math it becomes a Template:Math torus knot.
| Example solutions of the Lorenz system for different values of Template:Mvar | |
|---|---|
|
|
| Template:Math (Enlarge) | Template:Math (Enlarge) |
|
|
| Template:Math (Enlarge) | Template:Math (Enlarge) |
| For small values of Template:Mvar, the system is stable and evolves to one of two fixed point attractors. When Template:Math, the fixed points become repulsors and the trajectory is repelled by them in a very complex way. | |
| Sensitive dependence on the initial condition | ||
|---|---|---|
| Time Template:Math (Enlarge) | Time Template:Math (Enlarge) | Time Template:Math (Enlarge) |
|
|
|
| These figures — made using Template:Math, Template:Math and Template:Math — show three time segments of the 3-D evolution of two trajectories (one in blue, the other in yellow) in the Lorenz attractor starting at two initial points that differ only by 10−5 in the Template:Mvar-coordinate. Initially, the two trajectories seem coincident (only the yellow one can be seen, as it is drawn over the blue one) but, after some time, the divergence is obvious. | ||
| Divergence of nearby trajectories. |
|---|
| The parameters are: , and . Significant divergence is seen at around , beyond which the trajectories become uncorrelated. The full-sized graphic can be accessed here. |
Connection to tent map

In Figure 4 of his paper,[1] Lorenz plotted the relative maximum value in the z direction achieved by the system against the previous relative maximum in the Template:Mvar direction. This procedure later became known as a Lorenz map (not to be confused with a Poincaré plot, which plots the intersections of a trajectory with a prescribed surface). The resulting plot has a shape very similar to the tent map. Lorenz also found that when the maximum Template:Mvar value is above a certain cut-off, the system will switch to the next lobe. Combining this with the chaos known to be exhibited by the tent map, he showed that the system switches between the two lobes chaotically.
A Generalized Lorenz System
Over the past several years, a series of papers regarding high-dimensional Lorenz models have yielded a generalized Lorenz model,[26] which can be simplified into the classical Lorenz model for three state variables or the following five-dimensional Lorenz model for five state variables:[27]
A choice of the parameter has been applied to be consistent with the choice of the other parameters. See details in.[26][27]
Simulations

import numpy as np import matplotlib.pyplot as plt
- Define the function and domain
x = np.linspace(0, 2 * np.pi, 400) y = np.sin(np.exp(x))
- Plot the function
plt.plot(x, y) plt.xlabel('x') plt.ylabel('y = sin(e^x)') plt.title('Plot of y = sin(e^x) for x in [0, 2π]') plt.grid(True) plt.show()
Maple simulation
deq := [diff(x(t), t) = 10*(y(t) - x(t)), diff(y(t), t) = 28*x(t) - y(t) - x(t)*z(t), diff(z(t), t) = x(t)*y(t) - 8/3*z(t)]:
with(DEtools):
DEplot3d(deq, {x(t), y(t), z(t)}, t = 0 .. 100, [[x(0) = 10, y(0) = 10, z(0) = 10]], stepsize = 0.01, x = -20 .. 20, y = -25 .. 25, z = 0 .. 50, linecolour = sin(t*Pi/3), thickness = 1, orientation = [-40, 80], title = `Lorenz Chaotic Attractor`);
Maxima simulation
[sigma, rho, beta]: [10, 28, 8/3]$
eq: [sigma*(y-x), x*(rho-z)-y, x*y-beta*z]$
sol: rk(eq, [x, y, z], [1, 0, 0], [t, 0, 50, 1/100])$
len: length(sol)$
x: makelist(sol[k][2], k, len)$
y: makelist(sol[k][3], k, len)$
z: makelist(sol[k][4], k, len)$
draw3d(points_joined=true, point_type=-1, points(x, y, z), proportional_axes=xyz)$
MATLAB simulation
% Solve over time interval [0,100] with initial conditions [1,1,1]
% ''f'' is set of differential equations
% ''a'' is array containing x, y, and z variables
% ''t'' is time variable
sigma = 10;
beta = 8/3;
rho = 28;
f = @(t,a) [-sigma*a(1) + sigma*a(2); rho*a(1) - a(2) - a(1)*a(3); -beta*a(3) + a(1)*a(2)];
[t,a] = ode45(f,[0 100],[1 1 1]); % Runge-Kutta 4th/5th order ODE solver
plot3(a(:,1),a(:,2),a(:,3))
Mathematica simulation
Standard way:
tend = 50;
eq = {x'[t] == σ (y[t] - x[t]),
y'[t] == x[t] (ρ - z[t]) - y[t],
z'[t] == x[t] y[t] - β z[t]};
init = {x[0] == 10, y[0] == 10, z[0] == 10};
pars = {σ->10, ρ->28, β->8/3};
{xs, ys, zs} =
NDSolveValue[{eq /. pars, init}, {x, y, z}, {t, 0, tend}];
ParametricPlot3D[{xs[t], ys[t], zs[t]}, {t, 0, tend}]
Less verbose:
lorenz = NonlinearStateSpaceModel[{{σ (y - x), x (ρ - z) - y, x y - β z}, {}}, {x, y, z}, {σ, ρ, β}];
soln[t_] = StateResponse[{lorenz, {10, 10, 10}}, {10, 28, 8/3}, {t, 0, 50}];
ParametricPlot3D[soln[t], {t, 0, 50}]
Python simulation
import matplotlib.pyplot as plt
import numpy as np
def lorenz(xyz, *, s=10, r=28, b=2.667):
"""
Parameters
----------
xyz : array-like, shape (3,)
Point of interest in three-dimensional space.
s, r, b : float
Parameters defining the Lorenz attractor.
Returns
-------
xyz_dot : array, shape (3,)
Values of the Lorenz attractor's partial derivatives at *xyz*.
"""
x, y, z = xyz
x_dot = s*(y - x)
y_dot = r*x - y - x*z
z_dot = x*y - b*z
return np.array([x_dot, y_dot, z_dot])
dt = 0.01
num_steps = 10000
xyzs = np.empty((num_steps + 1, 3)) # Need one more for the initial values
xyzs[0] = (0., 1., 1.05) # Set initial values
# Step through "time", calculating the partial derivatives at the current point
# and using them to estimate the next point
for i in range(num_steps):
xyzs[i + 1] = xyzs[i] + lorenz(xyzs[i]) * dt
# Plot
ax = plt.figure().add_subplot(projection='3d')
ax.plot(*xyzs.T, lw=0.6)
ax.set_xlabel("X Axis")
ax.set_ylabel("Y Axis")
ax.set_zlabel("Z Axis")
ax.set_title("Lorenz Attractor")
plt.show()

R simulation
library(deSolve)
library(plotly)
# parameters
prm <- list(sigma = 10, rho = 28, beta = 8/3)
# initial values
varini <- c(
X = 1,
Y = 1,
Z = 1
)
Lorenz <- function (t, vars, prm) {
with(as.list(vars), {
dX <- prm$sigma*(Y - X)
dY <- X*(prm$rho - Z) - Y
dZ <- X*Y - prm$beta*Z
return(list(c(dX, dY, dZ)))
})
}
times <- seq(from = 0, to = 100, by = 0.01)
# call ode solver
out <- ode(y = varini, times = times, func = Lorenz,
parms = prm)
# to assign color to points
gfill <- function (repArr, long) {
rep(repArr, ceiling(long/length(repArr)))[1:long]
}
dout <- as.data.frame(out)
dout$color <- gfill(rainbow(10), nrow(dout))
# Graphics production with Plotly:
plot_ly(
data=dout, x = ~X, y = ~Y, z = ~Z,
type = 'scatter3d', mode = 'lines',
opacity = 1, line = list(width = 6, color = ~color, reverscale = FALSE)
)
Applications
Model for atmospheric convection
As shown in Lorenz's original paper,[28] the Lorenz system is a reduced version of a larger system studied earlier by Barry Saltzman.[29] The Lorenz equations are derived from the Oberbeck–Boussinesq approximation to the equations describing fluid circulation in a shallow layer of fluid, heated uniformly from below and cooled uniformly from above.[30] This fluid circulation is known as Rayleigh–Bénard convection. The fluid is assumed to circulate in two dimensions (vertical and horizontal) with periodic rectangular boundary conditions.[31]
The partial differential equations modeling the system's stream function and temperature are subjected to a spectral Galerkin approximation: the hydrodynamic fields are expanded in Fourier series, which are then severely truncated to a single term for the stream function and two terms for the temperature. This reduces the model equations to a set of three coupled, nonlinear ordinary differential equations. A detailed derivation may be found, for example, in nonlinear dynamics texts from Template:Harvtxt, Appendix C; Template:Harvtxt, Appendix D; or Shen (2016),[32] Supplementary Materials.
Model for the nature of chaos and order in the atmosphere
The scientific community accepts that the chaotic features found in low-dimensional Lorenz models could represent features of the Earth's atmosphere ([33][34][35]), yielding the statement of “weather is chaotic.” By comparison, based on the concept of attractor coexistence within the generalized Lorenz model[26] and the original Lorenz model ([36][37]), Shen and his co-authors [35][38] proposed a revised view that “weather possesses both chaos and order with distinct predictability”. The revised view, which is a build-up of the conventional view, is used to suggest that “the chaotic and regular features found in theoretical Lorenz models could better represent features of the Earth's atmosphere”.
Resolution of Smale's 14th problem
Smale's 14th problem says, 'Do the properties of the Lorenz attractor exhibit that of a strange attractor?'. The problem was answered affirmatively by Warwick Tucker in 2002.[25] To prove this result, Tucker used rigorous numerics methods like interval arithmetic and normal forms. First, Tucker defined a cross section that is cut transversely by the flow trajectories. From this, one can define the first-return map , which assigns to each the point where the trajectory of first intersects .
Then the proof is split in three main points that are proved and imply the existence of a strange attractor.[39] The three points are:
- There exists a region invariant under the first-return map, meaning .
- The return map admits a forward invariant cone field.
- Vectors inside this invariant cone field are uniformly expanded by the derivative of the return map.
To prove the first point, we notice that the cross section is cut by two arcs formed by .[39] Tucker covers the location of these two arcs by small rectangles , the union of these rectangles gives . Now, the goal is to prove that for all points in , the flow will bring back the points in , in . To do that, we take a plan below at a distance small, then by taking the center of and using Euler integration method, one can estimate where the flow will bring in which gives us a new point . Then, one can estimate where the points in will be mapped in using Taylor expansion, this gives us a new rectangle centered on . Thus we know that all points in will be mapped in . The goal is to do this method recursively until the flow comes back to and we obtain a rectangle in such that we know that . The problem is that our estimation may become imprecise after several iterations, thus what Tucker does is to split into smaller rectangles and then apply the process recursively. Another problem is that as we are applying this algorithm, the flow becomes more 'horizontal',[39] leading to a dramatic increase in imprecision. To prevent this, the algorithm changes the orientation of the cross sections, becoming either horizontal or vertical.
Gallery
-
A solution in the Lorenz attractor plotted at high resolution in the Template:Mvar plane.
-
A solution in the Lorenz attractor rendered as an SVG.
-
An animation showing trajectories of multiple solutions in a Lorenz system.
-
A solution in the Lorenz attractor rendered as a metal wire to show direction and 3D structure.
-
An animation showing the divergence of nearby solutions to the Lorenz system.
-
A visualization of the Lorenz attractor near an intermittent cycle.
-
Two streamlines in a Lorenz system, from Template:Math to Template:Math Template:Awrap Template:Math).
-
Animation of a Lorenz System with rho-dependence.
-
Animation of the Lorenz attractor in the Brain Dynamics Toolbox.[40]
See also
- Eden's conjecture on the Lyapunov dimension
- Lorenz 96 model
- List of chaotic maps
- Takens' theorem
Notes
References
- Template:Cite book
- Template:Cite journal
- Template:Cite journal
- Template:Cite journal
- Template:Cite journal
- Template:Cite journal
- Template:Cite journal
- Template:Cite journal
- Template:Cite book
- Template:Cite book
- Template:Cite journal
- Template:Cite journal
- Template:Cite journal
- Template:Cite journal
- Template:Cite journal
- Template:Cite journal
- Template:Cite journal
- Template:Cite journal
- Shen, B.-W. (2015-12-21). "Nonlinear feedback in a six-dimensional Lorenz model: impact of an additional heating term". Nonlinear Processes in Geophysics. 22 (6): 749–764. doi:10.5194/npg-22-749-2015. ISSN 1607-7946.
- Template:Cite book
- Template:Cite journal
- Template:Cite arXiv
- Template:Cite journal
- Template:Cite journal
Further reading
External links
- Template:Springer
- Template:MathWorld
- Lorenz attractor by Rob Morris, Wolfram Demonstrations Project.
- Lorenz equation Template:Webarchive on planetmath.org
- Synchronized Chaos and Private Communications, with Kevin Cuomo. The implementation of Lorenz attractor in an electronic circuit.
- Lorenz attractor interactive animation (you need the Adobe Shockwave plugin)
- 3D Attractors: Mac program to visualize and explore the Lorenz attractor in 3 dimensions
- Lorenz Attractor implemented in analog electronic
- Lorenz Attractor interactive animation (implemented in Ada with GTK+. Sources & executable)
- Interactive web based Lorenz Attractor made with Iodide
Template:Chaos theory Template:Authority control
- ↑ 1.0 1.1 1.2 Template:Harvtxt
- ↑ Template:Harvtxt
- ↑ 3.0 3.1 3.2 Template:Harvtxt
- ↑ Template:Harvtxt
- ↑ Template:Harvtxt
- ↑ Template:Harvtxt
- ↑ Template:Harvtxt
- ↑ Template:Harvtxt
- ↑ Template:Harvtxt
- ↑ Template:HarvtxtTemplate:Citation needed
- ↑ Template:Cite journal
- ↑ Template:Harvtxt
- ↑ Template:Harvtxt
- ↑ Template:Cite journal
- ↑ Template:Harvtxt
- ↑ Template:Harvtxt
- ↑ Template:Harvtxt, pp. 303–305
- ↑ Template:Harvtxt, pp. 306+307
- ↑ Template:Harvtxt, pp. 307–308
- ↑ 20.0 20.1 Template:Cite journal
- ↑ Template:Harvtxt
- ↑ Template:Harvtxt
- ↑ Template:Cite book
- ↑ Template:Cite journal
- ↑ 25.0 25.1 Template:Harvtxt
- ↑ 26.0 26.1 26.2 Template:Cite journal
- ↑ 27.0 27.1 Template:Cite journal
- ↑ Template:Harvtxt
- ↑ Template:Harvtxt
- ↑ Template:Harvtxt
- ↑ Template:Harvtxt
- ↑ Template:Cite journal
- ↑ Template:Cite journal
- ↑ Template:Cite book
- ↑ 35.0 35.1 Template:Cite journal
- ↑ Template:Cite journal
- ↑ Template:Citation
- ↑ Template:Cite journal
- ↑ 39.0 39.1 39.2 Template:Harvtxt
- ↑ Heitmann, S., Breakspear, M (2017-2022) Brain Dynamics Toolbox. bdtoolbox.org doi.org/10.5281/zenodo.5625923







