Systems of equations in matrix form
Write two coupled equations, such as two tanks of brine or a second-order equation, as x' = Ax, read a solution as a curve in the phase plane over the direction field, and check that x = eλtv solves it when Av = λv.
It opens on
Two tanks swap brine. Salt leaves each tank at a rate that depends on both tanks. Is there one equation, in matrix form, that covers both?
Why it matters
Anything with two interacting quantities, from tanks to springs to predator and prey, has one matrix that holds all its behaviour, and the eigenvalues of that matrix decide it.
Good to know first
- Matrix times vector for a 2 × 2 matrix
- eigenvalue equation Av = λv
- the second-order equation y'' + 3y' + 2y = 0 with solutions e−t and e−2t
Step by step
Two tanks as x' = Ax
Write the tank equations as x' = Ax and read the solution from (3, 0) as a path in the (x, y) plane.
Tank A loses 3x per minute (2x to B and x to the drain) and gains y from B, so x' = −3x + y.
A common mix-up
Each tank can be solved on its own, since each has its own equation.
In fact: x' contains y and y' contains x, so the two must be solved together.
A second-order equation as a system
Turn y'' + 3y' + 2y = 0 into x' = Ax and read its solutions as paths in the (y, y') plane.
Put x₁ = y and x₂ = y'. Then x₁' = x₂ and, from y'' = −3y' − 2y, x₂' = −2x₁ − 3x₂.
A common mix-up
Writing y'' = f(y, y') as a system changes the problem.
In fact: The system is the same problem; its eigenvalues are the roots of the characteristic equation.
Solutions eλtv and eigenvectors
Check that x = eλtv solves x' = Ax exactly when Av = λv and find the two such solutions for the tank matrix.
For A = [[−3, 1], [2, −2]], det(A − λI) = (−3 − λ)(−2 − λ) − 2 = λ² + 5λ + 4 = 0, so λ = −1 or λ = −4.
A common mix-up
Any vector v gives a solution eλtv.
In fact: Only an eigenvector keeps the path on a line; otherwise A turns v off its direction.
Try it
Write x' = 2x − y, y' = x + 4y as x' = Ax.Answer
A = [[2, −1], [1, 4]]
Hint: The rows are the coefficients of x and y in each equation
Write y'' + 4y' + 3y = 0 as x' = Ax.Answer
A = [[0, 1], [−3, −4]]
Hint: x₂' = −3x₁ − 4x₂
Does x = e−t(1, 1) solve x' = [[−3, 1], [2, −2]]x?Answer
No; A(1, 1) = (−2, 0), which is not a multiple of (1, 1)
Hint: Compute Av and compare it with λv
At (3, 0) the vector (−9, 6) points left and up; what does that say about the path from (3, 0)?Answer
x decreases and y increases at first, so the path leaves the axis going up and left.
What are the eigenvalues, and where have you seen them?Answer
−1 and −2, the roots of r² + 3r + 2 used in the last unit.
