The term Lyapunov exponent describes how quickly nearby trajectories diverge under repeated iteration of a dynamical system. If two starting points differ by a tiny amount , after steps the separation typically grows like . The constant is the Lyapunov exponent. When is positive, tiny differences amplify exponentially, signaling chaos. A negative value implies convergence to a stable equilibrium or cycle.
Chaos theory often uses the logistic map as a simple model. The parameter controls the system's behavior. For some values the iterates settle into a fixed point; for others, they exhibit complex periodic and chaotic regimes. Computing helps categorize these regimes quantitatively.
The largest Lyapunov exponent for a one-dimensional map equals as becomes large. For the logistic map, the derivative is . Each iteration both updates and accumulates . Averaging these logs yields .
Positive Lyapunov exponents indicate sensitive dependence on initial conditions, one of the hallmarks of chaos. When , trajectories converge toward stable cycles or fixed points. A value of exactly zero usually marks a bifurcation where stability changes. By exploring different values you can trace the road to chaos in the logistic family.
Specify between and , choose a starting point in , and set the number of iterations. When you press the button, the script iteratively updates and sums the logarithms of the derivatives. To avoid transient effects, the first few hundred iterates are typically discarded before averaging. This calculator automatically discards the first steps if your total exceeds that amount.
The logistic map with quickly approaches a stable fixed point. The exponent is negative, reflecting contraction toward that point. At , a two-cycle emerges, still yielding a negative exponent. By , the map becomes chaotic, and turns positive. Values near produce strong chaos with around , the natural logarithm of two.
A positive Lyapunov exponent suggests that long-term prediction is impossible because errors grow exponentially. In physical systems such as weather models, this means that small uncertainties eventually overwhelm the forecast. In secure communications, chaotic systems with positive can scramble signals. When is negative, on the other hand, small perturbations die out and the system is stable.
By plotting versus , one can reproduce the famous bifurcation diagram of the logistic map. Many values of yield alternating chaotic and periodic windows. This rich structure showcases how nonlinearity leads to complex dynamics even in simple equations.
The script runs entirely in the browser without external libraries. Because we use double precision floating-point numbers, extremely sensitive regions may show slight discrepancies from high-precision calculations, but the general trends remain correct. You may experiment with different initial seeds . For chaotic regimes, varying yields dramatically different trajectories, yet the Lyapunov exponent is almost independent of the starting point once transients fade.
The algorithm is straightforward:
The calculator displays with six decimal places. Because the exponent can be small, running many iterations improves accuracy. Feel free to adjust the iteration count and observe how the estimate stabilizes.
Lyapunov exponents exist for higher-dimensional systems too. Lorenz attractors, predator-prey models, and driven pendulums all exhibit chaotic regimes characterized by positive exponents. While our tool focuses on the logistic map, the basic concept extends to any differentiable dynamical system. Understanding Lyapunov exponents helps scientists gauge predictability and the onset of chaos across disciplines.
Estimate the density scale height of an atmosphere using temperature, molar mass, and surface gravity.
Evaluate the probability density of a 3-parameter Dirichlet distribution.
Compute the stationary distribution of a small Markov chain using iterative multiplication.