Systems of ODEs & State Space

Coupled equations describe interacting parts: two-tank systems, predator–prey, multi-mass vibrations, electrical networks. Learn elimination, matrix form x′ = Ax, eigenvalue solutions, converting higher-order ODEs to first-order systems, state-space models and stability from eigenvalues.

Real systems rarely have one variable. Writing them as x′ = Ax + Bu organises the equations, enables matrix methods and numerical solvers, and is the standard form in modern control engineering.

An analogy

A system of ODEs is like several dancers holding hands: each one's movement depends on the others. Eigenvectors are the special moves where they all move together in step.

Elimination

Differentiate one equation and substitute to get a single higher-order equation — fine for 2×2 systems but messy beyond.

Matrix method

Find eigenvalues of A; each gives a mode e^(λt) along its eigenvector. Complex eigenvalues produce oscillating modes; real negative ones decay.

State space

Any n-th order linear ODE becomes n first-order equations. Outputs y = Cx + Du. This form feeds directly into simulation (ode45, solve_ivp) and control design.

Non-linear systems

Linearise around equilibria (Jacobian matrix) and inspect eigenvalues for local stability; phase-plane analysis shows global behaviour (M24).

Formulas

Worked example: Eigenvalue solution

Given: x′ = 3x + 4y, y′ = 4x − 3y

Find: Eigenvalues and stability.

Answer: Unstable saddle (one growing mode e^(5t))

Worked example: State-space form

Given: 2x″ + 8x′ + 50x = F(t)

Find: A, B.

Answer: A = [[0, 1], [−25, −4]], B = [0, 0.5]ᵀ

Common mistakes

Applications

Key takeaways

Going further