Linear System Solution Explained with Worked Examples

The system with has the solution . In terms of eigenvalues and eigenvectors , .

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Linear system solution means

For the characteristic equation gives (eigenvalues of a 2 × 2 matrix). With : , checked by and . At , . The system is the first-order form of , see coupled first-order systems.

For the diagonal matrix with , each component decouples: . For the rotation matrix , is the rotation by angle ; with , . The matrix exponential is defined in the matrix exponential and computed by diagonalisation.

The long-time behaviour depends on the signs of the real parts of the eigenvalues, the subject of stability of an equilibrium. The eigenvectors are found from the eigenvector equation, and the method is the vector version of simple growth and decay models.

What is it used for?

The solution of a linear system is a sum of exponentials, one for each eigenvalue.

How to use linear system solution

  1. Find the eigenvalues of and eigenvectors .
  2. Write .
  3. Fit the constants from .
  4. Evaluate at the required time.

Graph

First component x₁ = 2e^(−t) − e^(−2t) of the damped systemt = 1: 0.600400.511.522.533.544.5500.20.40.60.81First component x₁ = 2e^(−t) − e^(−2t) of the damped systemtx₁x₁(t)Graph with x from 0 to 5 and y from 0 to 1. Shows the curve x₁(t); point t = 1: 0.6004 at (1, 0.6004).

Both eigenvalues are negative, so the solution decays to zero.

Worked examples

These examples are worked by hand, step by step, so you can compare your own working.

Example 1: a damped system

For , , find .

Worked example
Answer
0.60040.6004
  1. x₁
  2. At t = 1

Example 2: a diagonal system

For , , find .

Worked example
Answer
(7.389, 1.104)(7.389,\ 1.104)
  1. Components

Example 3: a rotation

For , , find .

Worked example
Answer
(0, 1)(0,\ 1)
  1. x

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

A = (0 1; −2 −3)

λ² + 3λ + 2 = 0, λ = −1, −2

Trace −3, determinant 2.

x₁ = 2e^(−t) − e^(−2t)

x₁(1) = 0.7358 − 0.1353

Equals 0.6004.

Diagonal system

x₁ = 3e^(−t) from x₁(0) = 3

At t = 2.

Rotation

x = (cos t, −sin t)

x₁(1) = cos 1.

Word problems

x′ = Ax, x(0) = x₀ has solution x = e^(At)x₀ = Σ c_i e^(λ_i t) v_i, with constants fixed by x₀.

Eigenvalues

Characteristic equation λ² + 3λ + 2 = 0. Find the larger root.

  1. (−3 + 1)/2
  2. Check: −1 ✓−1.

Solution

x₁ = 2e^(−t) − e^(−2t). Find x₁(1).

  1. 0.7358 − 0.1353
  2. Check: ✓0.6004.

Second component Higher

x₂ = −2e^(−t) + 2e^(−2t). Find x₂(1).

  1. −0.7358 + 0.2707
  2. Check: ✓−0.4651.

Rotation Higher

For A = (0 1; −1 0) from (1, 0), find x₁(1).

  1. cos 1
  2. Check: ✓0.5403.

Common mistakes

Entrywise exponential

e^(a_ij t) per entry ✗

e^(At) matrix exponential ✓

Not entrywise.

Skipping initial values

leaving c₁, c₂ ✗

fit x(0) ✓

Constants from x₀.

Mixing eigenpairs

wrong vector with λ ✗

match each pair ✓

Av = λv.

Exponent without t

e^λ ✗

e^(λt) ✓

Include t.

Exam tips

  1. Eigenvalues first.
  2. x = Σ c e^(λt) v.
  3. Fit x(0).
  4. Check x′(0) = Ax(0).
  5. Complex λ: oscillation.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. 2e^(−1) − e^(−2) to 4 d.p. Foundation

0.6004

2. 3e^(−2) to 4 d.p. Foundation

0.4060

3. cos 1 to 4 d.p. Foundation

0.5403

4. −2e^(−1) + 2e^(−2) to 4 d.p. Higher

-0.4651

5. x₁(0) = 2 − 1 Higher

1

6. x₁′(0) = −2 + 2 Higher

0

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Linear system
x′ = Ax.
Eigenvalue (λ)
Growth rate of a mode.
Eigenvector (v)
Direction of a mode.
Matrix exponential
e^(At).
Initial condition
x(0).
Mode
Solution e^(λt)v.

Frequently asked questions

What is the solution of x′ = Ax?

x = e^(At)x₀.

How do you use eigenvalues?

x = Σ c_i e^(λ_i t) v_i.

What if eigenvalues are complex?

Oscillating solutions.

What is e^(At)?

The matrix exponential series.

Which page covers stability?

stability of an equilibrium.

Which page covers the matrix exponential?

matrix exponential.

More in Differential equations and transforms and the formula sheets.