Solving systems using matrices
Solving Systems Using Matrices
Solving Systems Using Matrices is a topic in Matrices in the California Common Core State Standards. It is aligned to Standard A-REI.9, which requires students to represent a system of linear equations as a matrix equation and solve it using the inverse of the coefficient matrix.
A linear system can be written \(AX=B\) and solved with the inverse, \(X=A^{-1}B\), when the coefficient matrix has a nonzero determinant.
Theory
A linear system can be written as a matrix equation:
where \(A\) holds the coefficients, \(X\) the variables, and \(B\) the constants.
Matrix solution:
How to solve with matrices
- Write the system as \(AX=B\).
- Check \(\det A\neq0\).
- Find \(A^{-1}\).
- Compute \(X=A^{-1}B\).
Coefficients, variables, constants.
| \(\begin{bmatrix}2&1\\1&-1\end{bmatrix}\begin{bmatrix}x\\y\end{bmatrix}\) | \(=\) | \(\begin{bmatrix}5\\1\end{bmatrix}\) |
Use \(X=A^{-1}B\) (or substitution).
| \(x\) | \(=\) | \(2\) |
| \(y\) | \(=\) | \(1\) |
Compute \(\det A=ad-bc\).
| \(\det A\) | \(=\) | \((2)(-1)-(1)(1)=-3\neq0\) |
Nonzero, so \(A\) is invertible.
Then \(A^{-1}\) does not exist, and the system has no unique solution.
Common pitfalls
Frequently asked questions
How do you write a system as a matrix equation?
\(AX=B\), with \(A\) the coefficients, \(X\) the variables, \(B\) the constants.
How do you solve \(AX=B\)?
Multiply by the inverse: \(X=A^{-1}B\).
When does the inverse exist?
When the determinant of \(A\) is nonzero.
What if the determinant is zero?
There is no unique solution.