A market stall sells apples and bananas, but the price tags have fallen off. All you overhear is two customers at the till: "3 apples and 2 bananas, that's £4", and a moment later, "1 apple and 4 bananas, please — £5." Neither sentence alone tells you what a single apple costs. But the two sentences together pin it down exactly — there is only one pair of prices that makes both true at once.
That is the whole idea of a system of linear equations: several conditions that
must all hold true at the same time. Each equation like
Geometrically, the solution is the point where the lines cross. One equation on
its own leaves a whole line of possible answers — every pair of prices with
There are two standard ways to peel a system apart by hand. Try both on
Substitution — solve one equation for one letter, then plug that into the other:
Elimination — add or subtract the equations so one letter cancels outright:
Both routes hand back
A system of two equations is really two lines drawn on the same page. Each slider below tilts one line; the dot marks where they cross — the live solution, updating as you drag. Tilt the lines until they run side by side and the dot vanishes: no crossing, no solution.
Try to produce all three outcomes yourself before reading on: park one slider, then hunt for a setting of the other that makes the lines cross far off to one side (a solution with large coordinates), a setting that makes them run perfectly parallel (the dot vanishes — no solution), and finally the one exact setting where the two lines lie completely on top of each other (infinitely many solutions, though on a slider it looks like the dot jumping unpredictably, since "the whole line matches" isn't a single point to mark). Seeing all three with your own hands makes the next card's classification feel obvious rather than memorised.
Two straight lines in a plane can relate to each other in exactly three ways — so a system of two linear equations always ends in exactly one of three outcomes:
1. One unique solution — the lines cross at a single point.
2. No solution — the lines are parallel and never meet.
Double the first equation and you get
3. Infinitely many solutions — the two equations are secretly the same line.
Here the second equation is the first one, just multiplied by 2. Every point that solves one automatically solves the other, so the whole line is one giant family of solutions.
Never — and that fact is quietly doing a lot of work above. A straight line, by definition, never curves back on itself. Two different straight lines can therefore meet at at most one point: if they touched twice, the segment joining those two touching points would have to be part of both lines, which forces the lines to be identical, not different. That is exactly why there are only three possible outcomes for a system of two linear equations — one crossing, no crossing, or "crossing" everywhere because they're the same line — and never, say, "the lines cross at exactly two points." Curvy graphs don't get this guarantee: a parabola and a line can perfectly well cross twice, which is one reason non-linear systems are a much wilder animal than linear ones.
Let
Solve by elimination. Multiply the second equation by 3 so the
Now subtract the first equation from this new one — the
Substitute back into
An apple costs 60p and a banana costs £1.10. Check it against
both overheard sentences:
Notice what would happen if a third customer walked up and said "2 apples and 1 banana,
that's £2.20." Plug in the prices we just found:
Systems show up just as naturally when you're blending things, not just pricing
them. A café sells a house blend made from a mild coffee (£8 per kg) and a strong coffee (£12 per
kg). They want to make
Let
Substitute
Then
A dangerously common slip: solve for
Here's how the slip actually happens. Solving
A second trap: treating "no solution" or "infinitely many solutions" as if you'd done something wrong. They haven't — they're exactly as valid and important as a unique answer. A system of parallel supply-and-demand lines that never cross is telling you something real (no price works for both); don't go hunting for a mistake that isn't there.
Long before European algebra had symbols for
The fangcheng rods came in two colours — red for positive amounts, black for negative — so the scribes could cancel a term by adding a red rod to a black one, the same cancellation you did by hand above. Europe wouldn't comfortably accept negative numbers as legitimate quantities for another thousand-plus years, yet this counting-rod arithmetic was already juggling them correctly to solve real systems: grain taxes, exchange rates between different measures, shared costs among travellers — the "apples and bananas" problems of their day.
The same idea now runs at a scale no one with counting rods could dream of. When an airline replans crew and aircraft after a storm grounds half its flights, it is solving systems with thousands of unknowns — which pilot flies which plane, which gate, which connection — all bound together by conditions that must hold simultaneously. Different century, different tools, exactly the same idea: several conditions, one answer that satisfies them all.
Two equations, two unknowns is easy to picture — but real problems have hundreds of equations in
hundreds of unknowns, and lines become flat hyperplanes in high-dimensional space. No
one solves those by sketching. Instead we pack the whole system into a single
It also turns the "three outcomes" you just discovered into a permanent, general fact rather than a two-variable curiosity. Every linear system, no matter how many equations or unknowns it has, ends in exactly one of the same three outcomes: a unique solution, no solution, or infinitely many. The market-stall problem and the coffee-blend problem both happened to land in the first camp — but swap in a third, contradictory coffee order and the system would collapse into the second. Learning to recognise which of the three a matrix equation describes, instantly and without sketching a single line, is exactly what the rest of this topic builds towards.