Equations with Two Variables
Learning goals
- Write a linear equation in two variables as
- Test an ordered pair by substituting in the right order
- Generate solutions by solving for one variable and choosing values
- Recognize the graph as the whole solution set, a line
- Explain why a second equation is needed to fix one pair
What a two-variable equation is
A linear equation in two variables is an equation that can be arranged into the standard form
where , , and are numbers and and are not both zero. The two variables are usually called and . Each one appears only to the first power: never squared, never multiplied by the other, never under a root, and never in a denominator. That restriction is what keeps the equation linear, exactly as it did for the one-variable equations of the last chapter.
These are linear equations in two variables:
The last one does not look like the standard form at first, but subtracting from both sides turns it into , which fits the pattern. These are not linear:
A one-variable linear equation such as locks its variable to a single value. With two variables in a single equation, one number can no longer settle both. So instead of asking for the value of we look for pairs of values, one for and one for , that fit together.
When is a pair a solution?
A solution of a two-variable equation is an ordered pair . It counts as a solution when putting the first number in for and the second for makes the equation true. You already have the tool to test one: substitution, the same check you used for one-variable equations.
Take and test the pair . Substitute and into the left side:
The left side equals , matching the right, so is a solution. Now test :
which is not , so is not a solution.
The word ordered matters as much here as it did when you plotted points. The pair is a different claim from : it puts and , giving , not . So solves the equation while does not, even though they use the same two numbers. Always feed the first coordinate to and the second to .
Worked example 1 Test whether pairs solve
Check each pair by substituting the first number for and the second for , then compare the left side with .
For :
For :
For :
Two of the three pairs check out. Notice that works even though : the term becomes , but it is still there and still counted. A zero coordinate never lets you drop a term.
Check your understanding
Which ordered pair is a solution of ?
Substitute each pair, first number for and second for , and look for a left side equal to .
So works. The others give , , and , none equal to .
Why there are infinitely many solutions
A single two-variable equation does not have one solution or a handful. It has infinitely many, and there is a simple procedure that produces them on demand. Solve the equation for one variable, then feed in any value you like for the other.
Take . Solving for takes one move, subtracting from both sides:
Now is written directly in terms of . Choose any number for , and this formula hands back the matching , so the pair solves the equation. Choose and you get , the pair . Because you can pick to be any number at all, and every pick produces a solution, there is no end to them.
Here is the argument in full, for any linear equation in two variables.
Why has infinitely many solutions#
Start with , and suppose (if instead , the same reasoning works with the roles of and swapped). Solve for : subtract from both sides and then divide by , which is allowed precisely because is not zero,
Now pick any number whatsoever for . The right-hand side is then a definite arithmetic expression, so it evaluates to exactly one number, and that number is the matching . By construction the pair satisfies the original equation, because we obtained from it.
There are infinitely many numbers to choose from for : the whole numbers alone are already endless, and each different choice of produces a different pair. So the equation has infinitely many solutions. One equation, then, is nowhere near enough to pin down two unknowns. A single equation narrows the possibilities from every pair in the plane down to a single line’s worth of them, but no further. That is exactly why the next lessons bring in a second equation to isolate one pair.
A neat way to keep track of these solutions is a table. Solve for one variable, list a few values of the other, and compute. Using :
| Solution | ||
|---|---|---|
Every row is a genuine solution, and you could extend the table forever in either direction. Notice a pattern already: each time goes up by , drops by . Hold on to that, because it is what makes the graph a straight line.
Worked example 2 Fill in the missing coordinate for
When one coordinate of a solution is known, substitute it and solve the one-variable equation that remains for the other coordinate.
Find the solution with . Put into :
So is a solution. Find the solution with . Put :
So is a solution. Each known coordinate turns the two-variable equation into an ordinary one-variable equation, which you already know how to solve.
Check your understanding
Rewriting to give in terms of , what do you get?
Solve for by removing everything else from its side. Only is added to , so subtract from both sides.
The crosses the equals sign with the opposite sign, so it becomes , not .
The solutions form a straight line
Solutions are pairs , and pairs are points on the coordinate plane, so a natural question is what the whole collection of solutions looks like once plotted. Take the solutions of from the table and plot the four that fit on the grid.
The points do not scatter. They fall on one straight line, and this happens for every linear equation, which is where the name linear comes from. The reason is the pattern you spotted in the table: each step of to the right in drops by the same . So from any plotted point the next one sits one across and two down, every time. Equal steps across paired with equal steps down trace a straight path and never bend. (That steady rate of change is what the graphing chapter will call the line’s slope; here we need only the fact that the solutions line up.)
The line is the complete picture of the solution set, and this goes both ways. Every solution of the equation is one of the points on the line. Every point on the line, including the ones between the whole-number dots, is a solution. So “the graph of ” and “the set of all pairs that solve ” name the very same thing. To draw the line you only need two solutions, since two points determine a line. But plotting a third is a good check: if it does not land on the same line, one of your pairs is wrong.
Worked example 3 Solutions of for chosen values of
Solve for first, so each value of is quick to evaluate. Subtract and divide by :
At :
At :
At :
The first two pairs land on whole-number grid points, but the third does not, and it is every bit as valid a solution. Solutions of a linear equation are not required to be whole numbers. Between any two of the tidy grid points, the line is packed with fractional solutions like this one.
Check your understanding
Which of these points lies on the graph of ?
A point lies on the graph exactly when its coordinates solve the equation, so test each pair in .
So is on the line. The others give , , and , so none of them lie on it.
The figure below is that checkpoint, left open. The line drawn on it is , which is the same rule written as . The hollow marker is a pair you can move anywhere on the grid. It starts at , the first option, and the sentence under the figure does the substitution out loud. Walk the marker through , and and watch which one lands.
What is worth noticing is not that one of the four works. It is that the marker landing on the line and the substitution checking out are the same event, every single time. You can also see them happen together rather than being told they agree. Send the marker somewhere the checkpoint never mentioned, or , and the rule holds there too. The line is not a summary of the four tidy pairs, it is the complete list of them.
Then change the line itself. Move the rise and the run and the marker stays exactly where you put it, now testing the same pair against a different equation. That is the other half of the same idea: a pair is not a solution on its own, it is a solution of something.
Is the pair a solution of ?
y = -x + 5. Rise -1 over run 1 is a slope of -1, so from any point on the line, 1 to the right and 1 down lands back on it. And it crosses the vertical axis at 5. The point (1, 3) is not a solution: putting x = 1 into the equation gives y = 4, and the point sits at 3 instead.
Looking ahead: two equations, one point
A single two-variable equation leaves a whole line of possibilities open. To single out one specific pair, you need a second equation, a second condition the pair must also satisfy at the same time. Two such equations considered together are called a system of equations, and that is the subject of the rest of this chapter.
The graph makes the goal vivid. Each equation is a line, so a pair that solves both must lie on both lines at once, which means it sits exactly where the two lines cross. Consider the pairs solving and, separately, the pairs solving . The single pair lies on both lines, because and are both true, so it is the one pair that solves the system.
Reading a crossing point off a graph is quick to picture but hard to do exactly, especially when the answer is a fraction. So the coming lessons develop algebra that finds the crossing point without drawing anything: substitution and elimination. Both rest on the idea you built here, that a two-variable equation stands for a line’s worth of solution pairs. Both also rest on the second part of that idea, that where a system’s two lines cross, the shared pair is its answer.