Two equations at once
A system is two equations that must both be true at the same time:
Each equation, on its own, is a line: a whole set of points. A solution to the system is a point that lies on both lines at once. Geometrically, that’s exactly where the two lines cross.
So “solve the system” and “find the intersection point” are the same sentence in two dialects, one algebraic, one geometric. Everything in this lesson is translating between them.
Substitution: collapse two variables into one
The first method is substitution. Solve one equation for one variable, then push that expression into the other equation.
From , solve for : . Now substitute that into the first equation wherever appears:
That’s a one-variable equation, exactly the kind module 1 taught you to peel. It gives , so . Back-substitute into to get . The lines cross at .
The move that makes it work: a two-variable problem became a one-variable problem because substitution spent one equation to eliminate one variable.
Elimination: scale and add
The second method is elimination, and it’s the one that scales up to real machinery later.
The idea: add the two equations together in a way that makes one variable cancel. You’re allowed to scale an entire equation by a constant first (both sides, every term) because that doesn’t change its line. Then add the equations.
For the system above: multiply the second equation by to get . Add it to the first equation, . The and annihilate, leaving , so . Same crossing point, reached by cancellation instead of replacement.
Drive the algorithm yourself. Scale a row, add one row to another, and watch the right-hand panel. The two lines change how they’re written, but the marked intersection point never moves. That fixed dot is the solution, and no legal move is allowed to disturb it.
Solve a system
Solve the system below. The two equations are lined up so that adding them cancels immediately.
What is ?
Why the solution can't escape
Every move elimination offers is value-preserving at the level of the whole system. Scaling an equation by a nonzero constant keeps the same line. Replacing one equation with itself-plus-another keeps the same intersection, because any point satisfying both originals still satisfies the combination.
So the solution set is an invariant. The equations get simpler, move by move, until one row reads and the other reads , but the point they pin down was fixed from the first line. You’re not searching for the answer; you’re rewriting the system until the answer is impossible not to read.
Three outcomes, all geometric
Two lines in a plane can do exactly three things, and each is an outcome for the system.
They cross once. One intersection, one solution. The everyday case.
They’re parallel and distinct. Never touch, no solution. The system is inconsistent. When you run elimination on it, the variables all cancel and you’re left with something false, like . Algebra reporting a contradiction is algebra telling you the lines never meet.
They’re the same line. Every point on it works, infinitely many solutions. The system is dependent. Elimination collapses it to something always true, like . A tautology means the second equation told you nothing new.
Read the contradiction
Run elimination on this system:
Scale the first equation by , then subtract it from the second. Every variable cancels, leaving .
What number is on the right-hand side?
Where this goes next
A two-by-two system is the smallest interesting linear system. Module 7 takes the exact same moves, scale a row, add it to another, and runs them on systems with thousands of equations. There it has a name: Gaussian elimination, the workhorse of linear algebra. The intersection-that-cannot-escape becomes the solution to .
g(f(x)) is one layer wired into the next. log(∏) = ∑(log) is why a million tiny probabilities don’t sink training. Everything that follows is those two facts at scale, and elimination is the first algorithm you’ve run that survives being made enormous.
Lesson complete