Equations with Two Variables
Progress can't be saved in this browser, so this lesson's status can't be set.
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 unrestricted real pairs need a second equation 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 variable that appears has only the first power: never squared, never multiplied by the other, never under a root, and never in a denominator. The same first-power rule made the one-variable equations of the last chapter linear.
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 has a single solution, . With two variables in a single equation, one number cannot be the whole answer. 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 :
So is a solution.
For :
This is not , so is not a solution.
For :
So is a solution.
Two of the three pairs check out. For , substitute as usual: evaluates to . You can then simplify the sum, leaving .
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 linear equation in two variables has infinitely many solutions when both variables may be any real numbers. To generate them, solve for a variable with a nonzero coefficient, then choose values 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 gives 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 are infinitely many solutions.
Why has infinitely many solutions#
Consider . Subtract and divide by to get . Choosing gives , and checks. Any real choice of gives a matching . Different choices of give different pairs, so there are infinitely many pairs.
The same steps work for other coefficients, as long as the coefficient of is not zero. For with , subtracting and dividing by give
Every real choice of gives exactly one matching , and substitution checks it:
If , we cannot divide by it. Instead , because the two coefficients are not both zero. Then while may be any real number. For example, , read as , gives the pairs , all on the vertical line . This case also has infinitely many solutions.
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 solution, and you could keep adding rows in either direction. Notice the pattern: each time goes up by , drops by . We will use this pattern to see why the graph is a straight line.
A context can restrict those choices. If and count items, they must be nonnegative whole numbers. For example, then permits only and . By contrast, has no such pair: its left side is always even.
When both coefficients are positive and the total is fixed, each count has an upper bound, so only finitely many count pairs can fit, possibly none. The whole line shows the solutions of the unrestricted equation, and the context tells you which of its points are allowed. For unrestricted real pairs, a second equation is needed to narrow the line to a single point.
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.
Check your understanding
Which equation is equivalent to and written in standard form ?
Add to both sides to put the variable terms together.
This has , , and . Changing the sign of or , or swapping the coefficients, gives a different equation.
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 fall on one straight line. This happens for every linear equation, and it 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 is one across and two down. Because every step is the same, the points lie on a straight line. (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 same thing. To draw the line you only need two solutions, since two distinct 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. The third does not, but it is still a solution: solutions of a linear equation do not have to be whole numbers. Between any two of the grid points, the line holds many more solutions whose coordinates are not whole numbers, like this one.
Check your understanding
Solve for , then choose the solution pair when .
Subtract from both sides to get , then divide by to isolate .
Now substitute .
So the pair is . Subtracting a negative adds to ; dropping that minus sign gives instead, which is wrong.
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 graph below starts with , written as in its readout. Test the checkpoint by moving the marker through , , and . The marker is on the line exactly when its pair makes the equation true. Try or too: the line includes every solution, not just .
Then change the rise or run while leaving the marker fixed, and watch the readout: the pair that solved the old equation may not solve the new one.
Does the marked pair solve the current line?
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
With unrestricted real coordinates, a single linear 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 shows what we are looking for. Each equation is a line, so a pair that solves both must lie on both lines at once, which means it sits wherever the two lines cross. The two lines may cross at exactly one point; the coming lessons also cover lines that never cross and equations whose lines lie one on top of the other. 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.
Check your understanding
Why does also requiring , alongside , fix one pair of real numbers?
The first equation permits many pairs, including and . Of the first line's pairs, only also satisfies .
Thus solves both. The pair fails the difference condition because . A repeated equation would keep the whole line instead of selecting one point.
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.