Systems of Linear Equations
A system of linear equations asks for the values that make several equations true at the same time. There are only three possible outcomes, exactly one solution, infinitely many, or none, because straight lines (and flat planes) can only meet in those ways. Nothing in between, like exactly two, can happen.
What the symbols mean
- Coefficient
The number multiplying x₁ in the first equation.
- Right-hand side
The value the first equation must equal.
Explanation
A system of linear equations is simply a handful of equations that all have to be true at the same time, and solving it means finding the values of the unknowns that make every one of them work. They're called linear because the unknowns show up plainly (no squares, no square roots, no unknowns multiplied together), so with two unknowns each equation graphs as a straight line. They're good for any problem where several conditions have to hold at once, like a total count and a total cost. The general form above looks intimidating, but it's only three kinds of pieces: (the unknowns you're solving for), (the plain numbers in front of them, where the little subscripts just say which equation and which unknown) and (what each equation has to add up to). It's the same thing you did in algebra class with two equations and two unknowns, written so it works for any number of them; bear with the subscripts.
Geometry in two variables. Each equation in two unknowns is a line, and a solution of the system is a point that sits on every line at once. Think about what two lines can do. They can cross once (one solution), run parallel and never meet (none), or be the same line written two ways (infinitely many). That's why you never get exactly two solutions: if two straight lines share two points, they're the same line, so they share all of them. In three variables each equation is a plane, and the same three outcomes hold. There's an animation further down where you tilt one line and see all three cases happen.
Augmented matrix. Writing and over and over gets tedious, and the variables never actually do anything. All the information is in the numbers. So strip away the variables and keep the numbers, lined up in columns, with a bar where the equals signs were:
Elementary row operations don't change the solutions:
- Replace a row by itself plus a multiple of another row.
- Swap two rows.
- Multiply a row by a nonzero constant.
Think about why. These are the same moves you'd make with the equations themselves. If both equations are true at some point, then adding a multiple of one to the other gives an equation that's still true there, and you can undo the step by subtracting the same multiple back off. Swapping two equations just changes the order you wrote them in. Multiplying an equation by a nonzero number is undone by dividing. Since every step can be reversed, no solutions get created or lost along the way.
A common mistake. It's tempting to think multiplying a row by is fine, since is just another constant. It isn't: it wipes out an equation, and there's no way to divide back and get it again. Throwing away an equation can add solutions that weren't there before, which is why rule 3 says nonzero.
A system is consistent if it has at least one solution, and inconsistent if it has none. In the next lesson you'll see how to tell which one you've got just by looking at the matrix.
See it
Worked examples
Solve , .
- 1
Add row 1 to row 2. The terms cancel, which leaves .
Practice
Type your answer and check it. Solve them all to complete the lesson.
Solve , . Give .
Solve , . Give .
How many solutions does , have?
How many solutions does , have?
Solve , , . Give .
A coffee shop sells small drinks for \3$5120$460$. How many of each did it sell? Give small, then large.
The hardest one here. Get it, and you've got this lesson.
The system , , has infinitely many solutions for exactly one pair . Find and .
Where it's used
Balancing chemical equations, network flows (traffic, electricity, money), and fitting curves through data points all come down to solving linear systems.