Systems of linear equations
A linear system is a set of equations, like 2x + y − z = 3, that must all be true at once. With two unknowns, each equation is a line. With three, each one is a plane. Elimination, back-substitution and matrices solve them. The determinant tells you in advance whether there is one solution, none, or infinitely many.
Key facts
- Write the system as AX = B. If det A ≠ 0, there is exactly one solution: X = A^(−1)B.
- Gaussian elimination: use row operations such as R₂ → R₂ − kR₁ to reach triangular form. Then back-substitute.
- If det A = 0 there are either no solutions (inconsistent) or infinitely many (consistent).
- Two equations in two unknowns: crossing lines (one solution), parallel lines (none), or the same line (infinitely many).
- Three planes: one common point, a common line (a sheaf), or no common point (a triangular prism, or parallel planes).
- Always check a solution in every original equation.
Worked examples
Example 1
Solve x + y + z = 6, y + 2z = 8, 3z = 9.
- From the last equation: z = 3
- Put z = 3 into the second equation. y + 6 = 8, y = 2
- Put y and z into the first equation. x + 2 + 3 = 6, x = 1
Answer: x = 1, y = 2, z = 3
Example 2
Solve 2x + 3y = 13 and 5x − y = 7.
- Multiply the second equation by 3. 15x − 3y = 21
- Add to the first. 17x = 34 ⇒ x = 2
- Substitute back: 5(2) − y = 7 ⇒ y = 3
Answer: x = 2, y = 3
Example 3
Solve x + y + z = 2, 2x − y + z = 5, x + 2y − z = −3.
- R₂ − 2R₁ and R₃ − R₁ remove x. −3y − z = 1, y − 2z = −5
- The second gives y = 2z − 5. Put this into the first. −3(2z − 5) − z = 1 ⇒ −7z = −14, z = 2
- Work back to y and x. y = 2 × 2 − 5 = −1, x = 2 − (−1) − 2 = 1
- Check in the third equation: 1 + 2(−1) − 2 = −3 ✓
Answer: x = 1, y = −1, z = 2
Example 4
Does the system x + y = 3 and 2x + 2y = 7 have a solution?
- Double the first equation. 2x + 2y = 6
- 2x + 2y cannot be both 6 and 7, so there is no solution: the lines are parallel.
Answer: No