Solving by the matrix method
AX = B, so X = A⁻¹B.
One equation
2x + 5y = 1 and 3x + 2y = 7 can be written as one matrix equation AX = B.
If A has an inverse, what is X?
What this lesson covers
The idea
Write the linear equations as AX = B with A the coefficient matrix; if A is non-singular, the unique solution is X = A⁻¹B.
One equation
2x + 5y = 1 and 3x + 2y = 7 can be written as one matrix equation AX = B.
If A has an inverse, what is X?
- A⁻¹B
- BA⁻¹
- B − A
Matrix method
This is the book's Example 16. Work through the steps.
X = A⁻¹B
Write the equations as AX = B, with A the coefficient matrix. If A is non-singular, the system has the unique solution X = A⁻¹B.
Premultiply by A⁻¹: A⁻¹(AX) = (A⁻¹A)X = IX = X. Here |A| = −11 and X = −(1/11)[[2, −5], [−3, 2]][[1], [7]] = [[3], [−1]], so x = 3, y = −1.
Notes
AX = B with |A| ≠ 0 ⇒ X = A⁻¹B, the unique solution.
Check yourself
For 3x − 2y + 3z = 8, 2x + y − z = 1, 4x − 3y + 2z = 4 (Example 17), |A| = −17. The solution is
Why is X = A⁻¹B and not BA⁻¹?
Solve 5x + 2y = 4, 7x + 3y = 5 (Exercise 4.5, Q7). What is y?
Answer: -3
|A| = 1, adj A = [[3, −2], [−7, 5]], so X = [[3·4 − 2·5], [−7·4 + 5·5]] = [[2], [−3]]: y = −3.
- x = 3, y = 2, z = 1. Check the first equation: 9 − 4 + 3 = 8 works, but 6 + 2 − 1 = 7, not 1.
- x = 1, y = 2, z = 3 — correct. Yes. Check: 3 − 4 + 9 = 8, 2 + 2 − 3 = 1, 4 − 6 + 6 = 4.
- there is no solution. |A| ≠ 0, so there is a unique solution.
- Because B is a row matrix. B is a column matrix; BA⁻¹ is not even defined here.
- They are the same. Order matters for matrix products.
- A⁻¹ must multiply AX from the left — correct. Right. Matrix products depend on order, and A⁻¹A = I needs A⁻¹ on the left.