Nonlinear Dynamics & Chaos

Interactive Lecture

Understanding Complex Behaviour in Dynamic Systems

by Dr Arnaldo Delli Carri

Understanding Nonlinear Dynamics

What are Nonlinear Systems?

Nonlinear systems are those whose behaviour cannot be expressed as a linear combination of their inputs. Unlike linear systems, they can exhibit multiple equilibria, limit cycles, bifurcations, and chaos. Most real-world engineering systems are inherently nonlinear.

Nonlinear systems can behave in ways that linear systems simply cannot. Small changes in parameters or initial conditions can lead to qualitatively different responses, and superposition does not apply — which makes analysis harder but the dynamics far richer.

Phase Space and Phase Portraits

A phase portrait is a geometric representation of trajectories in phase space (state space). For a second-order system, phase space is two-dimensional with axes representing displacement and velocity.

Phase Space Representation:

For a system described by \(\ddot{x} = f(x, \dot{x}, t)\), define state variables:

\[x_1 = x, \quad x_2 = \dot{x}\]

Then: \[\dot{x}_1 = x_2, \quad \dot{x}_2 = f(x_1, x_2, t)\]

A trajectory in the \((x_1, x_2)\) plane represents the system's evolution over time.

Types of Equilibrium Points

Equilibrium points (fixed points) occur where \(\dot{x}_1 = \dot{x}_2 = 0\). Their stability is determined by linearisation:

Classic Nonlinear Systems

1. Duffing Oscillator

The Duffing equation models a spring with cubic nonlinearity:

\[\ddot{x} + \delta\dot{x} + \alpha x + \beta x^3 = \gamma\cos(\omega t)\]

where \(\alpha\) is linear stiffness, \(\beta\) is nonlinear stiffness, \(\delta\) is damping, and the right side is forcing.

Hardening spring: \(\beta > 0\) (stiffness increases with displacement)

Softening spring: \(\beta < 0\) (stiffness decreases with displacement)

2. Van der Pol Oscillator

Models self-excited oscillations with nonlinear damping:

\[\ddot{x} - \mu(1-x^2)\dot{x} + x = 0\]

where \(\mu > 0\) controls the nonlinearity strength. For small amplitudes, damping is negative (energy added), for large amplitudes, damping is positive (energy dissipated).

3. Pendulum

The simple pendulum exhibits nonlinear behaviour for large angles:

\[\ddot{\theta} + \frac{g}{L}\sin(\theta) = 0\]

Unlike the linearised version, the period depends on amplitude, and the phase portrait shows separatrices dividing oscillation and rotation regions.

Limit Cycles

A limit cycle is an isolated closed trajectory in phase space. Unlike the centre in linear systems, limit cycles are structurally stable - nearby trajectories converge to or diverge from them.

Poincaré-Bendixson Theorem: For 2D continuous systems, if a trajectory remains in a bounded region and doesn't settle at a fixed point, it must approach a limit cycle. This theorem doesn't apply in higher dimensions, where chaotic behaviour can occur.

Bifurcations

A bifurcation occurs when a qualitative change in system behaviour happens as a parameter varies. Common types include:

Chaos and Sensitivity to Initial Conditions

Chaotic systems are deterministic yet appear random due to extreme sensitivity to initial conditions. Small differences in initial states lead to exponentially diverging trajectories.

Lyapunov Exponent:

\[\lambda = \lim_{t\to\infty} \frac{1}{t}\ln\frac{|d(t)|}{|d(0)|}\]

where \(d(t)\) is the separation between two initially nearby trajectories and \(d(0)\) their initial separation (a separate symbol from the damping \(\delta\) above). It measures the average rate of divergence of nearby trajectories:

Properties of Chaos: (1) Sensitivity to initial conditions, (2) Topological mixing (phase space gets thoroughly mixed), (3) Dense periodic orbits, (4) Bounded but non-periodic motion. Chaos requires at least three dimensions in continuous systems (Duffing with forcing is effectively 3D).

Interactive Phase Portrait Simulation

Explore phase portraits of different nonlinear systems. Watch how trajectories evolve and how changing parameters affects system behaviour.

0.5
1.0

Click on the phase portrait to add trajectories from different initial conditions

Forced Duffing Oscillator — Route to Chaos

The unforced portraits above conserve or slowly bleed energy, so in two dimensions they can only settle to a fixed point or a limit cycle. Drive the same twin-well spring with a periodic force and a third coordinate — the forcing phase — opens up, which is exactly the room chaos needs. This simulation integrates \(\ddot{x} + \delta\dot{x} - x + x^3 = F\cos(\omega t)\) with RK4 and strobes the motion once every forcing period \(2\pi/\omega\), discarding the first 50 periods as transient.

That strobe is the Poincaré section: it collapses a continuous trajectory to a handful of points. One point means the motion repeats every drive cycle (period-1); two points means it takes two cycles to close (period-2); a smeared cloud that never repeats is chaos. Raise \(F\) and the points split \(1\to2\to4\) in a period-doubling cascade before they scatter — the same cascade the prose describes, now something you can watch. The bifurcation diagram stacks those strobed \(x\)-values against \(F\) so the whole route reads left to right on one axis, with periodic windows punctuating the chaotic band.

0.20
0.30
1.20

Bifurcation diagram not computed yet.

Left: live phase trajectory with persistent Poincaré samples (gold). Right: press the button to trace the cascade; the gold line marks the current F.

Engineering Applications

Nonlinear dynamics and chaos theory turn up throughout engineering:

Summary of Key Equations

Concept Equation Description
Duffing Oscillator \(\ddot{x} + \delta\dot{x} + \alpha x + \beta x^3 = \gamma\cos(\omega t)\) Nonlinear spring with cubic stiffness
Van der Pol Oscillator \(\ddot{x} - \mu(1-x^2)\dot{x} + x = 0\) Self-excited oscillation with nonlinear damping
Nonlinear Pendulum \(\ddot{\theta} + \frac{g}{L}\sin(\theta) = 0\) Exact pendulum equation (nonlinear)
State Space Form \(\dot{x}_1 = x_2, \quad \dot{x}_2 = f(x_1, x_2, t)\) First-order system representation
Equilibrium Condition \(\dot{x}_1 = \dot{x}_2 = 0\) Fixed points in phase space
Lyapunov Exponent \(\lambda = \lim_{t\to\infty} \frac{1}{t}\ln\frac{|d(t)|}{|d(0)|}\) Measure of trajectory divergence; \(\lambda > 0\) indicates chaos
Jacobian Matrix (2D) \(J = \begin{bmatrix} \frac{\partial f_1}{\partial x_1} & \frac{\partial f_1}{\partial x_2} \\ \frac{\partial f_2}{\partial x_1} & \frac{\partial f_2}{\partial x_2} \end{bmatrix}\) Linearisation for stability analysis

Practice Problems

Problem 1: Equilibrium Points of Duffing Oscillator

For the unforced, undamped Duffing equation \(\ddot{x} + x + \beta x^3 = 0\), find all equilibrium points for (a) \(\beta > 0\) and (b) \(\beta < 0\). Discuss their physical meaning.

Show Solution

Problem 2: Van der Pol Limit Cycle

The Van der Pol oscillator \(\ddot{x} - \mu(1-x^2)\dot{x} + x = 0\) has a limit cycle. Explain why the origin is unstable for small perturbations but trajectories don't escape to infinity.

Show Solution

Problem 3: Pendulum Phase Portrait

Sketch the phase portrait of the undamped pendulum \(\ddot{\theta} + \sin(\theta) = 0\). Identify equilibrium points, their stability, and the separatrix.

Show Solution

Knowledge Check Quiz

Question 1: What is a phase portrait?

Question 2: A limit cycle is:

Question 3: Chaotic systems are characterised by:

Question 4: The Duffing oscillator with β > 0 represents:

Question 5: A positive Lyapunov exponent indicates: