Inconsistent System
Recognize when row reduction exposes a contradiction and proves that no solution exists.
Find the contradiction
The first two equations cannot both hold because their left sides are proportional but their right sides are not. Elimination exposes a zero-equals-nonzero row.
solveSystem([[1, 1, 1, 2], [2, 2, 2, 5], [1, 2, 3, 7]])Compare proportional rows
Doubling the first equation gives 2x + 2y = 4, not 5. The augmented row reduction records the contradiction instead of inventing values.
solveSystem([[1, 1, 2], [2, 2, 5]])Check before assigning values
The second row requires twice the first left side to equal 7 rather than 6. A final contradictory row means the solution set is empty.
solveSystem([[1, 2, 3], [2, 4, 7]])Practice
Practice: problems like this one, made and checked in your browser.
Recap
- An inconsistent system has no solution.
- A row of zero coefficients with a nonzero right side is a contradiction.
- Never report a numeric vector after such a row appears.