Lesson
The theory — Simultaneous Equations247 words
Two linear equations in two unknowns describe two straight lines, and solving them means finding where the lines meet. How well that meeting point is determined is a separate question from whether it exists, and it has its own number.
What each symbol means
Δ- the determinant
a₁b₂ − a₂b₁. Zero means parallel; non-zero means exactly one crossing. κ- the condition number. It measures how much the answer can move for a given wobble in the coefficients, and unlike Δ it does not change when you multiply an equation through by ten.
- Assumes
- That the coefficients are exact. When they come from measurement, the crossing point inherits their uncertainty and multiplies it.
- Breaks when
- The determinant tells you whether there is an answer; it does not tell you how much to trust it, and it cannot, because scaling one equation by 10 scales Δ by 10 while changing nothing about the geometry. The condition number does the job Δ cannot. For this page’s Almost parallel preset it is 312, and the meaning is a licence: a relative error of 0.1% anywhere in the four coefficients can arrive as roughly 31% in the crossing point. That is not a bound anybody would accept in a bridge, and it is invisible in the determinant, in the algebra, and in the answer itself. The step after this one meets the same quantity again with more rows, where it decides whether the arithmetic is worth doing at all.
Problems solved in full
-
Two coffees and a cake costing 8 when coffee costs 1 more 7 steps
Two coffees and a cake cost 8. One coffee minus one cake is 1 (the coffee costs 1 more than the cake). What does each cost, and how much would you trust the answer if the prices had been read off a blurry receipt?
-
Write both facts with the same two unknowns. Getting these two lines right is the modelling; everything after is mechanical.
-
Check the determinant before solving. It is not zero, so there is exactly one answer and it is worth looking for.
-
Eliminate y. Multiply the second equation by 1 and add, or equivalently multiply the first by −1 and subtract — the y terms are built to cancel.
-
Three for the coffee. Substitute back into either equation to get the cake, and use the OTHER equation to check, because substituting into the one you just used proves nothing.
-
Now the receipt. Suppose the second equation was mistyped and the coefficient of the cake moves from −1 to 0.49. The determinant falls from −3 to −0.02.
-
The answer is still unique, and it has moved to (−146, 300): a coffee costing −146. The algebra never complained. It had no way to.
-
Which is where this stops being algebra. A negative price is the arithmetic telling you the model is wrong, not the coffee. The tool will happily report it, the determinant will quietly warn you first, and nothing in the method knows that prices cannot be negative.
Answer
Coffee 3, cake 2. The determinant is −3, so one crossing, and both original equations check. Drift one coefficient toward parallel and the same method returns −146 without a murmur — which is why the determinant is worth reading before the answer, not after.
-
-
Two parallel lines, and how close they come to having a solution 6 steps
2x + y = 8 and 4x + 2y = 10. The determinant is 0, which does not say which of the two zero-determinant verdicts applies. Work out which one it is, then decide how close the system comes to being solvable.
-
The determinant is zero, so there is no single crossing. It cannot say more than that: parallel and distinct, and the same line written twice, both give zero.
-
Eliminate anyway and the answer arrives. Scale the first equation by 2 to match the second, subtract, and what is left has no unknowns in it. The steps under the chart print it as 0x + 0y = 6, and 0 is not 6.
-
The ratios say the same thing with no working at all. The two left-hand sides are in the ratio 1 : 2 and the two constants are not, so the lines share a direction and differ in position.
-
How far apart? Divide the second equation by 2 and both lines carry the identical left side, so the gap is a difference of constants over the length of the coefficient pair.
-
Which raises the question the tool stops short of. If no point satisfies both, which point comes closest? Minimise the two squared residuals together. Writing u for 2x + y, the second residual is twice the first at any u, so it counts four times as heavily, and the minimum lands at u = 5.6 rather than midway at 6.5.
-
That is a warning about least squares rather than about these two lines. The answer moved because the second equation was written with bigger numbers, not because it is better evidence. Scale each equation so its coefficient pair has length 1 and the closest point sits exactly halfway, 0.671 from each line.
Answer
No solution, and the two lines are 1.342 apart. The determinant says the crossing is gone; the constants say which of the two ways it went. The point that comes closest to both depends on how the equations happen to be written: as given, least squares lands on 2x + y = 5.6, and only after both are normalised does it settle midway at 6.5.
-
Learning path
Solving for x, from the minus sign upward
References (1)
- The paper that named the quantity, and worked out what it costs you: A. M. Turing, "Rounding-off Errors in Matrix Processes." The Quarterly Journal of Mechanics and Applied Mathematics 1:1 (1948), 287–308.