PRACTICE →↑ BACK TO TOP

Let's talk

contact@adriamics.com

Systems of ODEs

GitHub Changelog -

  • 1

Matrix form and solution structure

Many systems can be written compactly with vectors and matrices.

Linear system

A general linear system is

where:

  • is the unknown vector

  • is a coefficient matrix

  • is a forcing vector

If is constant and , the system is linear autonomous homogeneous:

This is the most important case because it is fully analyzable with linear algebra.

Superposition

For a homogeneous linear system:

  • if and are solutions, then is also a solution

  • if is a constant, then is also a solution

That means the set of solutions forms a vector space.

Dimension of the solution space

For an first-order linear homogeneous system, the general solution depends on constants. Equivalently, you need independent initial conditions to determine a unique solution.


Linear autonomous systems

The canonical form is

with constant matrix .

Why this case matters

The behavior of the system is controlled by the matrix :

  • eigenvalues determine growth, decay, oscillation, and stability

  • eigenvectors determine invariant directions

  • the matrix exponential gives the exact solution

For a system,

or equivalently,

Decoupling idea

If you can find a change of variables that diagonalizes or simplifies , the system may split into independent scalar ODEs. This is the linear-algebra viewpoint behind most solution methods.


Eigenmodes as an ODE application

The eigenvalue definitions, characteristic-equation derivation, eigenspaces, and repeated-root cases are developed in the Eigenvalues note. Here we use only their consequence for time-dependent solutions: if , then

is an eigenmode of . The mode interpretation is:

Eigenvalue patternODE behavior
Real Exponential decay
Real Exponential growth
Neutral mode
Oscillation with envelope
Repeated/defective eigenvalueGeneralized-eigenvector terms such as may occur

If enough independent eigenvectors exist, the general homogeneous solution is a linear combination of these modes. The table is the application recap; see Eigenvalues for how to compute and classify the eigenpairs.


The matrix exponential

The exact solution of

is

where is the matrix exponential.

Definition

This is analogous to the scalar exponential series.

Diagonalizable case

Using the diagonalization result from the Eigenvalues note, with , the matrix exponential is

and

This is the cleanest computational route; the construction and validity of and belong to the Eigenvalues note.

Practical use

You often do not compute the full series. Instead, use:

  • diagonalization

  • eigenvector decomposition

  • Jordan form when necessary

  • software or a calculator for large systems


Nonhomogeneous linear systems

The forced system

combines natural dynamics from with external input .

General solution structure

The solution is

where:

  • solves the homogeneous system

  • is any particular solution of the full system

Variation of parameters

If is a fundamental matrix for , then a particular solution can be written as

This is the matrix version of variation of parameters for scalar ODEs.

Common forcing types

Forcing terms often include:

  • constants

  • polynomials

  • exponentials

  • sines and cosines

  • combinations of the above

For constant-coefficient systems, undetermined coefficients can work when the forcing has a simple form.


Phase portraits and stability

For a two-dimensional autonomous system, the phase plane is the plane of states. A phase portrait shows representative trajectories.

Equilibria

An equilibrium point satisfies

For a linear system , the only equilibrium is usually the origin unless the system is degenerate.

Stability ideas

An equilibrium is:

  • stable if nearby trajectories stay nearby

  • asymptotically stable if nearby trajectories converge to it

  • unstable if arbitrarily small perturbations can move away

For linear systems, the eigenvalues of determine this.

Classification for 2x2 systems

Let the eigenvalues of be .

Eigenvalue patternTypical behavior
Both real, negativeStable node
Both real, positiveUnstable node
Opposite signsSaddle, unstable
Complex with negative real partStable spiral
Complex with positive real partUnstable spiral
Purely imaginaryCenter in the ideal linear case

If one eigenvalue is zero or repeated, examine the eigenvectors and the full normal form carefully.

Trace-determinant test for 2x2 systems

For

define:

Then the characteristic polynomial is

and the discriminant is

This quickly tells you whether the eigenvalues are real or complex and whether the origin is stable.


Nonlinear systems and linearization

A nonlinear system has the form

or more generally

Nonlinear systems can have multiple equilibria, limit cycles, bifurcations, and behavior that is not captured by linear theory alone.

Linearization

Near an equilibrium point , approximate the system by its Jacobian matrix:

where

This produces a linear system that approximates the nonlinear system near the equilibrium.

Interpreting the linearization

  • If the linearized system has eigenvalues with negative real part, the equilibrium is often locally asymptotically stable.

  • If it has an eigenvalue with positive real part, the equilibrium is unstable.

  • If eigenvalues lie on the imaginary axis or are zero, linearization may be inconclusive.

Caveat

Linearization is a local tool. It tells you about behavior near an equilibrium, not the full global dynamics.


Common modeling patterns

Coupled growth and decay

If one variable feeds another, the system may look like

with off-diagonal terms representing interaction rates.

Mass-spring systems

Second-order equations often become first-order systems by introducing velocity.

For

set

Then

This is a standard way to convert a higher-order ODE into a system.

Predator-prey models

Typical nonlinear interactions are modeled by

where growth of one species depends on the other. Equilibria are found by solving and simultaneously.

Electrical circuits

In circuits with capacitors and inductors, Kirchhoff's laws often produce systems for charge and current. These are frequently linear with constant coefficients.


Problem-solving workflow

When solving a system of ODEs, use a disciplined sequence.

Identify the type

Decide whether the system is:

  • linear or nonlinear

  • autonomous or nonautonomous

  • homogeneous or forced

  • one-dimensional, two-dimensional, or higher

Rewrite in matrix form

Put the system into

if possible.

Find equilibria

Set all derivatives to zero and solve the algebraic system.

Use the eigenvalue results

For linear systems, obtain eigenvalues and eigenvectors using the Eigenvalues note, then interpret the resulting modes in time.

Build the solution basis

Use:

  • eigenvectors if is diagonalizable

  • generalized eigenvectors if not

  • variation of parameters or undetermined coefficients for forcing

Apply initial conditions

Substitute the initial state to determine the constants.

Interpret the result

Check whether the solution:

  • grows or decays

  • oscillates

  • approaches equilibrium

  • matches the physical context


Formula sheet

Homogeneous linear system

Exact solution

Matrix exponential

Eigenmode interpretation

If , then ; see the eigenmode recap and the Eigenvalues note for computation.

Linearization near equilibrium

Forced linear system

Variation of parameters


Key pitfalls

  • Mixing up vector solutions with scalar solutions

  • Forgetting that one first-order system of size needs constants

  • Using scalar intuition when eigenvectors are not enough

  • Ignoring complex eigenvalues and their oscillatory interpretation

  • Treating linearization as a global solution method

  • Forgetting to apply initial conditions after finding the general solution

Quick intuition

  • Eigenvalues control time behavior.

  • Eigenvectors control directions.

  • The matrix exponential packages the whole solution.

  • Nonlinear systems are often best understood locally by linearization.

Sources