WhatsApp us
University Maths25 Nov 2026

Systems of Differential Equations: The Eigenvalue Method, Including Complex Eigenvalues

Solve linear systems of differential equations x′ = Ax with eigenvalues and eigenvectors: distinct real, complex and repeated eigenvalues worked in full, a two-tank mixing model, a phase portrait classification table, common errors and practice problems with answers.

Systems of Differential Equations: The Eigenvalue Method, Including Complex Eigenvalues

To solve a linear system of differential equations x′ = Ax, find the eigenvalues λ and eigenvectors v of the matrix A: each pair gives a solution e^(λt)v, and the general solution is a combination of these, with constants fixed by x(0). Complex eigenvalues give sines and cosines, and a repeated eigenvalue with too few eigenvectors needs a generalised eigenvector. This guide works all three cases, a two-tank model and a practice set, with every step shown.

Why eigenvalues appear

Look for a solution of the form x(t) = e^(λt)v with a constant vector v. Then x′ = λe^(λt)v, and x′ = Ax becomes

λe^(λt)v = e^(λt)Av, so Av = λv.

That is exactly the eigenvalue problem, so everything you know about finding eigenvalues and eigenvectors transfers directly. For a 2×2 matrix, the characteristic equation is λ² − (trace A)λ + det A = 0. Our online differential equations tutor page explains how sessions with Ajay Vatsyayan work through systems like these with your own course problems.

Example 1: a second order equation is a system in disguise

Write x″ + 3x′ + 2x = 0 as a system and compare.

Let x₁ = x and x₂ = x′. Then x₁′ = x₂ and x₂′ = x″ = −2x₁ − 3x₂, so

x′ = Ax with A = [0 1; −2 −3] (rows separated by a semicolon).

Trace −3 and determinant 2 give λ² + 3λ + 2 = 0, so λ = −1, −2: exactly the roots of the characteristic equation r² + 3r + 2 = 0 that you would use in our second order ODE guide. The two methods are the same calculation.

The method in four steps

  1. Find the eigenvalues of A from det(A − λI) = 0.
  2. For each eigenvalue, solve (A − λI)v = 0 for an eigenvector.
  3. Build the general solution from the cases below.
  4. Use x(0) to find the constants, then check x′ = Ax at one point or by substitution.

Case 1: two distinct real eigenvalues

Example 2: a saddle

Solve x′ = Ax with A = [1 4; 2 −1] and x(0) = (3, 0).

Trace 0, determinant −1 − 8 = −9, so λ² − 9 = 0 and λ = 3 or λ = −3.

For λ = 3: A − 3I = [−2 4; 2 −4], so −2v₁ + 4v₂ = 0 and v = (2, 1).

For λ = −3: A + 3I = [4 4; 2 2], so v₁ + v₂ = 0 and v = (1, −1).

General solution: x(t) = c₁e^(3t)(2, 1) + c₂e^(−3t)(1, −1).

At t = 0: 2c₁ + c₂ = 3 and c₁ − c₂ = 0, so c₁ = c₂ = 1.

Answer: x₁ = 2e^(3t) + e^(−3t), x₂ = e^(3t) − e^(−3t).

The eigenvalues have opposite signs, so the origin is a saddle: solutions approach along (1, −1) and leave along (2, 1).

Case 2: complex eigenvalues

If λ = α + βi has eigenvector v = a + ib (a and b real vectors), the real and imaginary parts of e^(λt)v are two real solutions:

u₁ = e^(αt)(a cos βt − b sin βt)

u₂ = e^(αt)(a sin βt + b cos βt)

You only need one eigenvalue of the pair; its conjugate gives nothing new.

Example 3: a stable spiral

Solve x′ = Ax with A = [2 −5; 2 −4] and x(0) = (5, 4).

Trace −2 and determinant −8 + 10 = 2, so λ² + 2λ + 2 = 0 and λ = −1 ± i. Take λ = −1 + i, so α = −1 and β = 1.

First row of (A − λI)v = 0: (2 − (−1 + i))v₁ − 5v₂ = 0, that is (3 − i)v₁ = 5v₂.

Choose v₁ = 5, then v₂ = 3 − i. So v = (5, 3) + i(0, −1), giving a = (5, 3) and b = (0, −1).

General solution: x = c₁u₁ + c₂u₂ with

u₁ = e^(−t)(5 cos t, 3 cos t + sin t)

u₂ = e^(−t)(5 sin t, 3 sin t − cos t)

At t = 0: u₁(0) = (5, 3) and u₂(0) = (0, −1), so 5c₁ = 5 and 3c₁ − c₂ = 4. Hence c₁ = 1 and c₂ = −1.

Answer: x₁ = e^(−t)(5 cos t − 5 sin t), x₂ = e^(−t)(4 cos t − 2 sin t).

With α negative, trajectories spiral into the origin. For the direction, check one point: at (1, 0), x′ = (2, 2), so the second component increases and the spiral turns anticlockwise.

Case 3: a repeated eigenvalue

If λ is a double root but (A − λI)v = 0 has only one independent solution v, find a generalised eigenvector w from (A − λI)w = v. The two solutions are

e^(λt)v and e^(λt)(t·v + w).

Example 4: one eigenvector only

Solve x′ = Ax with A = [3 1; −1 1] and x(0) = (2, 1).

Trace 4, determinant 3 + 1 = 4, so λ² − 4λ + 4 = (λ − 2)² = 0 and λ = 2 twice.

A − 2I = [1 1; −1 −1], so v₁ + v₂ = 0 and v = (1, −1). There is only one direction.

Solve (A − 2I)w = v: w₁ + w₂ = 1. Take w = (1, 0).

General solution: x = c₁e^(2t)(1, −1) + c₂e^(2t)(t(1, −1) + (1, 0)).

At t = 0: c₁(1, −1) + c₂(1, 0) = (2, 1), so −c₁ = 1 and c₁ + c₂ = 2. Hence c₁ = −1 and c₂ = 3.

Answer: x₁ = (2 + 3t)e^(2t), x₂ = (1 − 3t)e^(2t).

A common slip is to write c₁e^(2t)v + c₂te^(2t)v. That second function is not a solution, and the missing w is why it fails.

Applied: salt moving between two tanks

Tanks 1 and 2 each hold 100 litres. Fresh water enters tank 1 at 3 L/min. Solution is pumped from tank 1 to tank 2 at 4 L/min and from tank 2 back to tank 1 at 1 L/min, and 3 L/min drains from tank 2, so both volumes stay constant. Initially tank 1 holds 20 kg of salt and tank 2 none.

Example 5: set up, solve, interpret

Let x₁ and x₂ be the salt (kg) in each tank. Rate out of a tank = (salt/volume) × flow.

x₁′ = (1/100)x₂ − (4/100)x₁

x₂′ = (4/100)x₁ − (1/100)x₂ − (3/100)x₂ = 0.04x₁ − 0.04x₂

So A = [−0.04 0.01; 0.04 −0.04]. Trace −0.08, determinant 0.0016 − 0.0004 = 0.0012.

λ² + 0.08λ + 0.0012 = 0 gives λ = −0.02 or λ = −0.06.

For λ = −0.02: −0.02v₁ + 0.01v₂ = 0, so v = (1, 2).

For λ = −0.06: 0.02v₁ + 0.01v₂ = 0, so v = (1, −2).

x(0) = (20, 0): c₁ + c₂ = 20 and 2c₁ − 2c₂ = 0, so c₁ = c₂ = 10.

Answer: x₁ = 10e^(−0.02t) + 10e^(−0.06t), x₂ = 20e^(−0.02t) − 20e^(−0.06t).

When does tank 2 hold the most salt? Set x₂′ = 0: −0.4e^(−0.02t) + 1.2e^(−0.06t) = 0, so e^(0.04t) = 3 and t = 25 ln 3 ≈ 27.5 minutes. Then x₂ = 40√3/9 ≈ 7.70 kg. Both eigenvalues are negative, so all the salt eventually washes out, as the physics says it must.

Reading the phase portrait from the eigenvalues

EigenvaluesPortraitStability
real, opposite signs (det A negative)saddleunstable
real, both negativenodeasymptotically stable
real, both positivenodeunstable
complex, α negativespiralasymptotically stable
complex, α positivespiralunstable
purely imaginarycentre (closed orbits)stable, not asymptotically
repeated, one eigenvectordegenerate (improper) nodesign of λ decides

A quick test without solving: complex eigenvalues occur exactly when (trace)² − 4·det is negative.

Errors we see most often

  • Arithmetic in det(A − λI). Expand it fully, then check that the sum of your eigenvalues equals the trace and their product equals the determinant.
  • Using both complex eigenvalues. Taking real and imaginary parts from λ and its conjugate gives the same two functions again. Use one eigenvalue.
  • Sign of b in u₁. It is a cos βt − b sin βt. Check it by confirming u₁(0) = a.
  • Missing the generalised eigenvector. A repeated eigenvalue with one eigenvector always needs w with (A − λI)w = v.
  • Applying x(0) to one component only. The initial condition is a vector equation: two equations for two constants.
  • Setting up the model with wrong flows. In tank problems, list every pipe into and out of each tank before writing a single equation, and check that volumes stay constant.

Practice problems

  1. Find the general solution of x′ = Ax for A = [4 −2; 1 1].
  2. Solve x′ = Ax with A = [0 1; −4 0] and x(0) = (1, 0). What is the portrait?
  3. Classify the origin for A = [−2 1; 0 −2].
  4. Solve x′ = Ax with A = [1 −2; 2 1] and x(0) = (1, 0).
  5. Find the eigenvalues and eigenvectors of A = [1 2 0; 0 3 0; 0 0 −1] and write the general solution of x′ = Ax.

Answers

  1. λ = 2, 3 with eigenvectors (1, 1), (2, 1): x = c₁e^(2t)(1, 1) + c₂e^(3t)(2, 1).
  2. λ = ±2i: x₁ = cos 2t, x₂ = −2 sin 2t; a centre (ellipses).
  3. λ = −2 repeated with one eigenvector (1, 0): a stable degenerate node.
  4. λ = 1 ± 2i: x₁ = e^t cos 2t, x₂ = e^t sin 2t; an unstable spiral turning anticlockwise.
  5. λ = 1, 3, −1 with eigenvectors (1, 0, 0), (1, 1, 0), (0, 0, 1): x = c₁e^t(1, 0, 0) + c₂e^(3t)(1, 1, 0) + c₃e^(−t)(0, 0, 1).

What comes after this topic

When A has a full set of eigenvectors, the eigenvalue method is the same as writing A = PDP⁻¹, which our guide to diagonalisation of a matrix covers, and the solution is x = Pe^(Dt)P⁻¹x(0). Non-homogeneous systems x′ = Ax + f(t) can be handled by Laplace transforms (see our Laplace transform exam guide), and non-linear systems are studied by linearising near equilibrium points, which reuses the table above. When no closed form exists, numerical schemes such as fourth order Runge–Kutta apply to systems component by component.

How Maths Bodhi helps

We work through your own problem sets and past papers and review your attempts step by step. Systems sit where linear algebra and differential equations meet, so our linear algebra tutoring and our plan for how to pass differential equations support each other. We explain and practise; we don't complete graded work for you.

Home tuition is available in Gurgaon (Gurugram). Students elsewhere in India and abroad learn with us online. You can book a free demo class.

Written and checked by the Maths Bodhi team (November 2026).

Frequently asked questions

How do you solve a system of differential equations with eigenvalues?
Find the eigenvalues and eigenvectors of A, write x = c₁e^(λ₁t)v₁ + c₂e^(λ₂t)v₂, and use x(0) to find the constants.
How do you solve a system of differential equations with complex eigenvalues?
Take one eigenvalue α + βi with eigenvector a + ib and use the real and imaginary parts of e^(λt)v as the two real solutions.
What do you do with a repeated eigenvalue in a system of ODEs?
If there is only one eigenvector v, solve (A − λI)w = v and use e^(λt)v and e^(λt)(tv + w).
How can I tell if the origin is a spiral or a node?
Complex eigenvalues give a spiral (or a centre if purely imaginary); real eigenvalues of the same sign give a node.
Can a second order differential equation be written as a system?
Yes, set x₁ = x and x₂ = x′; the matrix eigenvalues equal the roots of the characteristic equation.
Do I need linear algebra for systems of differential equations?
Yes, at least eigenvalues, eigenvectors and solving 2×2 and 3×3 linear systems.
differential equationssystems of ODEseigenvaluesphase portraitslinear algebra

Related guides

Keep exploring this maths topic

University Maths18 Nov 2026

Second Order Differential Equations: Constant Coefficients, Problems and Solutions

Solve second order linear differential equations with constant coefficients: the characteristic equation and its three root cases, undetermined coefficients with the modification rule, and a damped spring driven by a force, all worked step by step with practice problems.

differential equationssecond order ODEundetermined coefficientsmechanical vibrations

By Maths Bodhi Team

Read guide

University Maths25 Nov 2026

How to Pass Differential Equations: A Study Plan for Your ODE Course

A practical plan for passing a first course in ordinary differential equations: what the course usually covers, the classification habit that decides most marks, a model exam answer, a six-week revision plan, exam-day order of attack and a method-recognition drill with answers.

differential equationsODE examstudy plancollege math

By Maths Bodhi Team

Read guide

University Maths18 Nov 2026

First Order Differential Equations: Separable, Linear and Exact, with Practice Problems

How to recognise and solve the three main types of first order differential equations (separable, linear and exact), with six graded worked examples, a method-choice table, common mark-losing slips and practice problems with answers.

differential equationsfirst order ODEintegrating factorexact equations

By Maths Bodhi Team

Read guide

University Maths18 Nov 2026

Eigenvalues and Eigenvectors Step by Step, with 6 Worked Examples

How to find eigenvalues and eigenvectors of 2×2 and 3×3 matrices, step by step: repeated and complex eigenvalues, trace and determinant checks, common mistakes and practice with answers.

eigenvalueseigenvectorslinear algebracharacteristic polynomial

By Maths Bodhi Team

Read guide

University Maths25 Nov 2026

Heat Equation by Separation of Variables: Method and Worked Examples

Solve the one-dimensional heat equation by separation of variables: the eigenvalue problem, Fourier sine and cosine coefficients, five worked examples (including fixed non-zero end temperatures and insulated ends), a boundary condition table, common errors and practice problems with answers.

heat equationpartial differential equationsseparation of variablesFourier series

By Maths Bodhi Team

Read guide

University Maths25 Nov 2026

Variation of Parameters: Formula, Method and Worked Examples

How the variation of parameters method finds a particular solution of a second order linear differential equation for any forcing term, with the formula and where it comes from, five worked examples (sec, a repeated root, Cauchy–Euler and an exam-level exponential), common errors and practice problems with answers.

differential equationsvariation of parameterssecond order ODEWronskian

By Maths Bodhi Team

Read guide