Two tanks that exchange brine, predators and prey, two masses joined by springs: many models involve several unknown functions that change together. Writing them as one vector equation lets the tools of linear algebra, starting with the matrix equation $A\mathbf{x} = \mathbf{b}$, do the work.
Key idea
Why it works
Worked example: Reading a matrix
- Keep the columns in the order $x$, $y$. Row 1 (for $x'$): coefficient of $x$ is $-1$, of $y$ is 3.
- Row 2 (for $y'$): coefficient of $x$ is 2, of $y$ is 0.
Answer: $A = \begin{bmatrix} -1 & 3 \\ 2 & 0 \end{bmatrix}$
Worked example: A second-order equation
- Divide by 2: $y'' = -5y - 3y'$.
- With $x_1 = y$, $x_2 = y'$: $x_1' = x_2$ and $x_2' = -5x_1 - 3x_2$.
Answer: $A = \begin{bmatrix} 0 & 1 \\ -5 & -3 \end{bmatrix}$
Worked example: Third order
- Let $x_1 = y$, $x_2 = y'$, $x_3 = y''$, so $x_1' = x_2$ and $x_2' = x_3$.
- $y''' = 4y - y' + 2y''$, so $x_3' = 4x_1 - x_2 + 2x_3$.
Answer: $A = \begin{bmatrix} 0 & 1 & 0 \\ 0 & 0 & 1 \\ 4 & -1 & 2 \end{bmatrix}$
Common mistake