🔌 Chua's Circuit
Interactive simulation of Chua's circuit: integrate the dimensionless equations with RK4 and watch the double-scroll strange attractor emerge from chaos.
About Chua's Circuit — Electronic Chaos
Chua's circuit, invented by Leon O. Chua in 1983, is the simplest autonomous electronic circuit that is mathematically proven to exhibit chaotic behaviour. It consists of just two capacitors, one inductor, one resistor, and Chua's diode — a two-terminal nonlinear resistor with a piecewise-linear voltage–current characteristic. The circuit is described by three coupled ordinary differential equations, and depending on a single parameter (the normalised resistance α) it passes through a rich sequence of dynamics: fixed point, limit cycle, period-doubling bifurcations, and finally the famous double-scroll strange attractor, making it a key experimental platform for chaos theory.
This simulation integrates the dimensionless Chua equations using a fourth-order Runge-Kutta solver and lets you tune α, β, and the slopes m₀ and m₁ of the Chua diode. Four preset operating points cover the main dynamical regimes, and you can view phase-plane portraits in the X–Y, X–Z, and Y–Z planes alongside a time-series panel. A live Lyapunov exponent estimate distinguishes chaotic (λ > 0) from ordered (λ ≤ 0) behaviour, and the two-trajectory mode reveals exponential sensitivity to initial conditions.
Frequently Asked Questions
What makes Chua's circuit chaotic?
Chaos requires three ingredients: at least three state variables (Chua's circuit has voltages V₁, V₂ and current I_L), a nonlinear element (the Chua diode provides the piecewise-linear nonlinearity), and a dissipative mechanism (the resistor drains energy). The Chua diode creates two unstable equilibria — the trajectory spirals out from one, is deflected to the other, spirals out again, and so on forever, never repeating: a strange attractor. A positive Lyapunov exponent λ > 0 is the definitive signature of chaos.
What is a strange attractor?
An attractor is a set of states that a dynamical system converges to in the long run. A strange attractor is fractal — it has a non-integer Hausdorff dimension and exhibits sensitive dependence on initial conditions. The Lorenz attractor (dimension ≈ 2.06) and the Rössler attractor are other well-known examples. The Chua double-scroll has a fractal dimension of approximately 2.04 and is one of the few chaotic attractors that can be observed directly in a real electronic circuit on a laboratory bench.
What is the Lyapunov exponent and what does it mean?
The largest Lyapunov exponent λ measures the average exponential rate at which nearby trajectories diverge: δ(t) ≈ δ₀ e^(λt). If λ > 0, tiny differences in initial conditions grow exponentially — the hallmark of chaos. For the Chua double-scroll regime the largest Lyapunov exponent is approximately λ ≈ 0.07–0.35 depending on parameters. This means that a perturbation of 10⁻⁵ grows to order 1 in about –ln(10⁻⁵)/λ ≈ 33 time units, after which predictions become useless.
What is period-doubling and how does it lead to chaos?
As the resistance parameter α is increased from a small value, the circuit first settles into a stable fixed point, then bifurcates to a limit cycle (period-1 oscillation). Increasing α further causes the period to double: period-2, period-4, period-8, … in a sequence that converges geometrically at the Feigenbaum ratio δ ≈ 4.669. After infinitely many doublings the period becomes infinite — chaos emerges. This universal period-doubling route to chaos was discovered by Feigenbaum in 1978 and applies to a vast class of nonlinear systems.
What is the Chua diode and how is it built?
Chua's diode is a nonlinear resistor whose current–voltage characteristic is piecewise linear: I = m₁V + (m₀ – m₁)/2 · (|V + 1| – |V – 1|). It has a negative resistance slope in the inner region (|V| < 1), meaning it supplies energy rather than dissipating it, which destabilises the circuit. In hardware it is typically built from two op-amps and a few resistors forming a negative-impedance converter (NIC). Chua designed it specifically to be the simplest possible nonlinearity that produces chaos.
What do α and β represent physically?
In the normalised Chua equations, α = C₂/(RC₁) is proportional to the ratio of the two capacitances and inversely proportional to the resistance R. β = C₂/(L G²) relates to the inductance L and conductance G. Together they set the time scales of the two RC sub-circuits relative to the LC tank circuit. Increasing α tends to drive the system into chaos; changing β shifts the frequency of the limit-cycle oscillation and the shape of the attractor.
Why is Chua's circuit important for chaos research?
Before Chua's circuit, chaos had been studied mainly in abstract mathematical models (Lorenz equations, logistic map) or in hard-to-reproduce fluid experiments. Chua's circuit gave experimentalists a simple, reproducible, inexpensive bench circuit — a few pounds of components — that reliably produces chaos, period-doubling bifurcations, and strange attractors. It has been used as a proof-of-concept for chaos-based secure communications (masking a message signal behind a chaotic carrier) and as a testbed for chaos control algorithms.
What is the double-scroll vs single-scroll attractor?
At certain parameter values the trajectory winds around only one of the two unstable equilibria (single scroll), while at others it switches between both (double scroll). The transition depends on whether the trajectory has enough energy to "jump" from one basin to the other. In the double-scroll regime the system explores both lobes of the attractor, producing the striking figure-eight shape in the X–Y phase plane and a broader, noisier power spectrum that is characteristic of chaos.
Can Chua's circuit be used for secure communications?
Yes — chaos synchronisation (Pecora and Carroll, 1990) showed that a slave Chua circuit driven by the output of a master circuit locks onto the same trajectory, even if an eavesdropper cannot predict it without knowing the exact initial conditions. A message signal can be added to the chaotic carrier at the transmitter and recovered at the synchronised receiver. While not cryptographically secure by modern standards (the chaotic signal can be broken with time-series analysis), it demonstrated an entirely new approach to analogue encryption.
How does the "two-trajectory sensitivity" mode work?
Enabling this mode initialises a second trajectory with a perturbation of Δ = 10⁻⁵ from the first trajectory's current state. Both are integrated with the same parameters and drawn in different colours. In a periodic (non-chaotic) regime the two lines quickly overlap and remain together. In the chaotic regime they diverge exponentially and after a few dozen time units are completely uncorrelated, dramatically illustrating sensitive dependence on initial conditions — the "butterfly effect" in an actual electronic circuit.
What is the route from fixed point to chaos via presets?
The four presets trace the bifurcation sequence: "Limit cycle" sits at low α where the system settles into a single closed orbit; "Period-2" is a first period-doubling where the orbit visits two loops per cycle; "Double scroll" is in the full chaotic regime with λ > 0; "Single scroll" is an intermediate state with chaos confined to one lobe of the attractor. By cycling through these presets (or using the "Cycle α" button) you can observe the entire route to chaos in a few seconds.
The simplest electronic circuit proven chaotic. Watch the double-scroll strange attractor emerge from Chua's three ODEs with the piecewise-linear diode, and see two near-identical trajectories diverge exponentially.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install