toolbox_chaos
v0.1.0
← Back to guides

Lyapunov Diagnostics

Calculate Lyapunov exponents and visualize how small perturbations expand or contract in simulated systems.

Difficulty Level Intermediate
Question Do perturbations grow?

Objective

Objective

Estimate a finite-time Lyapunov spectrum for a compatible 3D flow under the tab's fixed RK4 QR–Benettin contract and decide whether the reported signs are numerically converged enough to support further study.

Workspace

GUI tab

Lyapunov

Procedure

Procedure

  1. Select a supported flow and reproduce the same parameters and initial condition used for its trajectory.
  2. Use the Lyapunov panel's own dt control with a conservative value, then set burn-in, final time, and the QR renormalization interval. The calculation uses fixed-step RK4 regardless of the general method selector displayed with the shared system controls.
  3. Calculate the spectrum and inspect the convergence curves rather than reading only the final values.
  4. Repeat with longer final time, adjusted burn-in, and a smaller dt; compare whether the signs and approximate values stabilize.

Result

Expected result

  • Three finite-time exponent estimates for a supported 3D flow and curves showing how those estimates evolve during accumulation.
  • For the classical Lorenz case, a numerically stable pattern with one positive, one near-zero, and one negative direction after adequate refinement.

Interpretation

Interpretation

A stable positive maximal estimate supports sensitive dependence for the tested trajectory and numerical protocol; the near-zero and negative directions provide consistency information for a continuous flow.

Drifting curves, changing signs, or strong step dependence mean the run is not ready for a scientific claim.

Export

Export and reproducibility

  • Save the convergence figure together with the displayed final exponent values.
  • Record the system, ordered parameters, initial state, the fixed RK4 QR–Benettin algorithm, Lyapunov-panel dt, burn-in, final time, QR interval, software version, and every refinement run used in the interpretation.

Applications

Applications

  • Supporting sensitivity analysis after trajectory and transient inspection.
  • Comparing numerical convergence across parameters, time horizons, and integration steps.
  • Teaching local expansion, neutral flow direction, contraction, and finite-time uncertainty.

Limits

Limits

  • Finite-time exponents depend on trajectory, duration, transient removal, solver, and renormalization settings.
  • A short positive estimate can be produced by transients or numerical error and is not a standalone proof of chaos.
  • This tab does not establish attraction, basin structure, uniqueness, or hidden-attractor localization.
Animation showing perturbation expansion and contraction
Concept animation: small perturbations expand in one direction and contract in another. Lyapunov exponents summarize these average rates.
Static diagram of perturbation expansion and contraction
Static reading aid: positive, near-zero, and negative directions explain why a 3D chaotic flow often has one expanding, one neutral, and one contracting exponent.
Current Toolbox Chaos Lyapunov tab showing the Lorenz finite-time spectrum
Current interface: the Lorenz finite-time spectrum is displayed together with all convergence curves and the integration contract.

Steps

  1. Open the Lyapunov workflow in the toolbox.
  2. Select the target flow and keep the same parameters used for the trajectory plot.
  3. The Lyapunov calculation uses a fixed-step RK4 QR–Benettin algorithm. Set its dedicated dt conservatively; for Lorenz, dt = 0.01 is a practical first value. The general method selector does not change this calculation.
  4. Use a burn-in interval before accumulating exponent estimates.
  5. Run a long enough integration window before interpreting the maximal exponent.
  6. Inspect the convergence plot, not only the final number.
  7. Report the spectrum as numerical evidence; do not treat a single short run as a proof of chaos.

Theory

Lyapunov exponents measure average exponential rates of separation or contraction of nearby states in phase space. The number of exponents matches the system dimension. A positive maximal exponent is numerical evidence of sensitive dependence on initial conditions.

For a three-dimensional continuous flow, a typical chaotic spectrum has one positive exponent, one exponent close to zero, and one negative exponent. The near-zero direction corresponds to motion along the trajectory itself; the negative direction records contraction.

The convergence curves matter because finite-time estimates can drift. A student should ask whether the estimates stabilize when burn-in, final time, and integration step are refined.

The numerical contract of this tab is integer-order QR–Benettin with a fixed RK4 integrator. Report the dedicated Lyapunov dt, burn-in, measurement time, and QR interval shown with the result; do not attribute the calculation to another method selected in the shared system panel.

How Parameters Change This Figure

  • Burn-in: too little burn-in lets startup behavior bias the exponent estimate.
  • Total time: short integrations can give the wrong sign or unstable values.
  • Step size: a large step can create artificial expansion or contraction.
  • Perturbation size: perturbations must stay small enough to approximate local tangent behavior.
  • Renormalization interval: if vectors are renormalized too rarely, they can overflow or collapse into one direction.
  • Initial condition: hidden transients or multistability can change the observed finite-time spectrum.