26 min read
Solving Simultaneous Equations With Matrices
A system of two linear equations can be written as a matrix equation, and solved using the inverse matrix.
Equations as a Matrix
The system ax + by = e, cx + dy = f can be written as a single matrix equation AX = B, where:
A = , X = , B =
To solve for X, multiply both sides by : X = A⁻¹B.
Matrix lab
Matrix A
Right-hand side B
Determinant of A: 1.0000
Solution X ≈ [5.000, -2.000]
Change a value and watch: This matrix equation represents and . Solving multiplies the right-hand side by the inverse matrix.
Example 1 — solving a system
Solve and using matrices.
- A = , B = . From the last lesson,
- Multiply by B: top entry = () + () =
- Bottom entry = () + () =
Answer: , . Check: () + ✓, and () + ✓
Example 2 — a second system
Solve and using matrices.
- A = , det(A) = , so
- Multiply by B = : top entry = () + () =
- Bottom entry = () + () =
Answer: , . Check: () = ✓, and () = ✓
Practice
Solve and (the same system as Example ). Find .
Your answer
More lessons in Matrices and Determinants · Next: Introduction to Matrix Transformations · Previous: The Inverse of a 2×2 Matrix
