An equation in two variables, such as y = −2x − 1, is solved by ordered pairs of numbers. This lesson defines these solutions, builds a table of values of a linear equation by choosing values of one variable and solving for the other, plots the table in the coordinate plane, and says exactly what such a plot shows and what it does not.
This lesson relies on lessons 1.1 and 1.2 of this unit (Axes, origin and quadrants, Plotting points) and on the unit Linear Equations: solutions and checking (lesson 1.2), the properties of equality (lesson 1.3), solving linear equations (lessons 1.4–1.8) and solving a formula for one of its letters (lesson 1.10). Numbers are rational, as in Linear Equations.
Equations in two variables
An open sentence may have several variables, and it becomes a statement only when every variable has a value (Linear Equations 1.1). An equation in the two variables x and y therefore needs two numbers to be true or false, one for each variable: an ordered pair, the first entry for x and the second for y. As in Linear Equations, the domain of each variable is the rational numbers, so in this lesson “number” means rational number and a solution is an ordered pair of rational numbers.
An ordered pair (a, b) is a solution of an equation in x and y if putting a in for x and b in for y makes the equation a true statement.[1]
The pair is checked exactly as a number was in Linear Equations 1.2: put the values in, with negative numbers and fractions in parentheses (Algebraic Expressions 1.3), work out each side, and compare. With letters other than x and y, it must be said which letter goes first in the pair.
An equation of the form Ax + By = C, where A, B and C are numbers and A and B are not both 0, is a linear equation in two variables.[3] So is every equation that can be rewritten in this form with the four operations,[4] such as y = −2x − 1, which becomes 2x + y = −1 when 2x is added to both sides.[5]
Rewriting does not change the solutions, for the same reason as in Linear Equations.
An equation in x and y has exactly the same solutions as the equation obtained from it by adding the same number, or the same expression in x and y, to both sides, by multiplying both sides by the same number other than 0, or by replacing a side by an equivalent expression.
Fix a pair (a, b). With a put in for x and b for y, each side of each equation is a number. Adding the same number c to two numbers gives equal results exactly when the two numbers are equal, and so does multiplying them by the same m ≠ 0 (Linear Equations 1.3, Theorems 1 and 2). Equivalent expressions have the same value at every pair (Algebraic Expressions 1.4). So (a, b) makes the new equation true exactly when it makes the old one true. Adding an expression in x and y, such as 2x, is adding, at each pair, the number it takes there.
Which of (1, −3), (−2, 3) and (3, 7) are solutions of y = −2x − 1?
- (1, −3): the left side is −3; the right side is −2(1) − 1 = −2 − 1 = −3. Equal: a solution.
- (−2, 3): the left side is 3; the right side is −2(−2) − 1 = 4 − 1 = 3. A solution.
- (3, 7): the left side is 7; the right side is −2(3) − 1 = −6 − 1 = −7. Since 7 ≠ −7, not a solution.
Answer: (1, −3) and (−2, 3) are solutions; (3, 7) is not.
Is (0, −12) a solution of y = −2x − 1? Someone answers yes, because putting −12 in for x gives y = 1 − 1 = 0.
- The pair (0, −12) means x = 0 and y = −12. The check above used the second entry for x.
- Correctly: the left side is −12, the right side is −2(0) − 1 = −1, and −12 ≠ −1.
Answer: (0, −12) is not a solution. What the computation showed is that (−12, 0) is one: the first entry always goes with x.
Read y = 52 as an equation in x and y. Which pairs are its solutions? Are (−7, 52) and (52, −7) among them?
- It is 0x + 1y = 52, linear with A = 0 and B = 1.[6] Putting in a pair (a, b) gives b = 52, whatever a is.
- So the solutions are exactly the pairs whose second entry is 52. (−7, 52) is one; (52, −7) is not, since its second entry is −7.
Answer: all the pairs (a, 52), with any number a; the first pair is a solution and the second is not.
How many solutions
Let A, B, C be rational numbers with B ≠ 0. For every rational number a there is exactly one rational number b such that (a, b) is a solution of Ax + By = C, namely b = C − AaB. So the equation has infinitely many solutions, one for each value of x.[7] If B = 0 (and so A ≠ 0), the solutions are exactly the pairs (CA, b), with b any rational number.
Put a in for x: (a, b) is a solution exactly when b solves Aa + By = C, an equation in y alone. Subtracting the number Aa from both sides gives the equivalent equation By = C − Aa (Linear Equations 1.3), and since B ≠ 0 it has exactly one solution, C − AaB (Linear Equations 1.4, Theorem 2).
Different values of x give different solutions, because their first entries differ, and there are infinitely many rational numbers to choose from (0, 1, 2, 3, … already). So there are infinitely many solutions, in the sense of Linear Equations 1.9: their collection is infinite, and a count of them never ends.
If B = 0, the equation reads Ax + 0y = C, and 0y = 0 for every y. So (a, b) is a solution exactly when Aa = C, that is, when a = CA (Theorem 2 of lesson 1.4 again, with A ≠ 0), whatever b is.
With the roles of x and y exchanged: if A ≠ 0, then for every value of y there is exactly one value of x that makes a solution. So a solution can be found by choosing either variable and solving for the other.[8]
For 3x − 4y = 8, find the solution with x = 2 and the solution with y = 4. Is (2, 0) a solution?
- x = 2: 3(2) − 4y = 8, that is, 6 − 4y = 8. Subtract 6: −4y = 2. Divide by −4: y = 2−4 = −12. The solution is (2, −12).
- y = 4: 3x − 4(4) = 8, that is, 3x − 16 = 8. Add 16: 3x = 24, so x = 8. The solution is (8, 4).
- By Theorem 2 the only solution with x = 2 is (2, −12), so (2, 0) is not one. Check: 3(2) − 4(0) = 6 ≠ 8.
Answer: (2, −12) and (8, 4); (2, 0) is not a solution.
Making a table of values
A table of values of an equation in x and y, also called a table of solutions, lists some of its solutions, one in each row, in columns headed x, y and (x, y).[9]
To make one, choose a value for x and solve the equation for y, or choose a value for y and solve for x.[8] The values may be chosen freely, but some choices make the work easier: values on both sides of 0, and values that give whole numbers rather than fractions, which are harder to plot precisely.[11] When many rows are needed, it saves work to solve the equation for y once, as a formula is solved for a letter (Linear Equations 1.10), and then only evaluate.
Make a table of values of y = −2x − 1 with x = −2, −1, 0 and 1.
- x = −2: y = −2(−2) − 1 = 4 − 1 = 3.
- x = −1: y = −2(−1) − 1 = 2 − 1 = 1.
- x = 0: y = −2(0) − 1 = −1.
- x = 1: y = −2(1) − 1 = −3.
Answer: the rows (−2, 3), (−1, 1), (0, −1), (1, −3), shown in the figure of Section 4.
Make a table of values of 3x − 4y = 8 with four rows whose entries are whole numbers.
- By Proposition 1, y = 34x − 2 has the same solutions. Its y is a whole number when x is a multiple of 4.
- x = −4: y = −3 − 2 = −5. x = 0: y = −2. x = 4: y = 3 − 2 = 1. x = 8: y = 6 − 2 = 4.
- Check one row in the original equation: (8, 4) gives 3(8) − 4(4) = 24 − 16 = 8.
Answer: (−4, −5), (0, −2), (4, 1), (8, 4).
Make a table of values of y = 25x − 1. What happens with x = 1?
- 25 of a multiple of 5 is a whole number, so choose x = −5, 0, 5, 10: y = −2 − 1 = −3, then −1, then 2 − 1 = 1, then 4 − 1 = 3.
- x = 1 gives y = 25 − 1 = −35: the pair (1, −35) is a solution too, only harder to plot precisely.
Answer: (−5, −3), (0, −1), (5, 1), (10, 3); and (1, −35) is also a solution.
Make a table of values of 3x = 15, read as an equation in x and y.
- Here A = 3, B = 0 and C = 15, so by Theorem 2 the solutions are the pairs (153, b) = (5, b) with any b. Choosing x would not work, since every x other than 5 has no partner. Choose values of y instead.[12]
- y = −2, 0 and 72 give the rows (5, −2), (5, 0), (5, 72).
- All of them have x-coordinate 5, so they lie on the vertical line through the point 5 of the x-axis (lesson 1.2, Proposition 1).
Answer: (5, −2), (5, 0), (5, 72), or any other pairs with first entry 5. Check: 3(5) = 15, whatever y is.
For y = 3 − 4x with x = −2, someone writes y = 3 − 8 = −5. Find the error.
- The product 4(−2) is −8, not 8: the sign of x was lost. So 3 − 4(−2) = 3 − (−8) = 3 + 8 = 11.
- Check: for (−2, 11) both sides are 11, a true statement; for (−2, −5) the left side is −5 and the right side is 11, which differ.
Answer: the row is (−2, 11). The sign rules for products and for subtracting a negative number apply inside every row of a table.
Complete the table, then plot it
- Round
- 1
- Score
- 0
- Streak
- 0
Complete the table of values of −3x + 4y = 3. Type each missing number; every row is plotted as soon as it is filled in.
| x | y | (x, y) |
|---|---|---|
| −1 | ? | |
| 3 | ? | |
| 7 | ? |
Plotting the table: what it shows
Each row of a table is an ordered pair, and each pair is a point (lesson 1.2). Plotting the table means plotting these points.
| x | y | (x, y) |
|---|---|---|
| −2 | 3 | |
| −1 | 1 | |
| 0 | −1 | |
| 1 | −3 |
What the plot shows. Exactly the solutions in the table, a finite number of points, each of them a solution, since it was computed from the equation.
What it does not show.
- The other solutions. By Theorem 2 there is a solution for every value of x, so a table never lists all of them (when B ≠ 0). Between the x-values of any two plotted solutions lie infinitely many rational numbers (Between any two rationals there is another), and each of them is the x-value of one more solution.
- Whether a point that is not plotted is a solution. That is decided by checking its pair in the equation, not by looking.
- Whether the solutions lie on a straight line. In the figures they appear to, but a picture of finitely many points proves nothing about the points it does not show. A line drawn through the plotted points is a guess, not something this lesson has shown.
For a linear equation the guess is right: the graph of a linear equation in two variables, the set of all its solutions drawn as points, is a straight line.[13]
Find the solutions of y = −2x − 1 with x = −12, −32 and 14.
- x = −12: y = −2(−12) − 1 = 1 − 1 = 0. The point (−12, 0) is on the x-axis.
- x = −32: y = −2(−32) − 1 = 3 − 1 = 2.
- x = 14: y = −2(14) − 1 = −12 − 1 = −32.
Answer: (−12, 0), (−32, 2) and (14, −32). None of them is in the table; the x-value of the first, −12, lies between those of the rows (−1, 1) and (0, −1).
A table of 3x − 4y = 8 lists (−4, −5), (0, −2), (4, 3) and (8, 4). Plotted, the point (4, 3) lies apart from the pattern of the other three. Is a row wrong?
- Check (4, 3): 3(4) − 4(3) = 12 − 12 = 0, and 0 ≠ 8. The row is wrong.
- Find the right row: 3(4) − 4y = 8 gives 12 − 4y = 8, so −4y = −4 and y = 1.
- The other three rows check: −12 + 20 = 8, 0 + 8 = 8 and 24 − 16 = 8.
- Where the 3 came from: the equation solved for y is y = 34x − 2, and 3 is 34 · 4 with the − 2 left out.
Answer: the row should be (4, 1). The picture pointed to the row; the check proved it. A good habit is to plot at least three points, so that a mistake shows.[15]
The points of a table need not line up at all. For y = x² (squares), the values x = −1, 0, 1 give (−1, 1), (0, 0) and (1, 1). The first and the last lie on the horizontal line through the point 1 of the y-axis (lesson 1.2, Proposition 1), the only line through two points (Points, Lines & Angles 1.1), and (0, 0) is not on it, since its y-coordinate is 0. So these three points are not on one line.
Find the wrong row
- Round
- 1
- Score
- 0
- Streak
- 0
One row of this table of values of y = x + 3 is wrong. Tap it, then press Check.
| Row | x | y | (x, y) |
|---|---|---|---|
| 1 | −3 | 0 | |
| 2 | −2 | −5 | |
| 3 | −1 | 2 | |
| 4 | 3 | 6 |
The set of all the solutions of an equation, drawn as points, is its graph: the next lesson, Graphs of equations, defines it, and the lesson after it, Intercepts of a graph, finds where a graph meets the axes. Tables that assign one value to each input are studied again in the unit Relations & Functions.
Exercises
Which of (1, −1), (−2, 3) and (4, −3) are solutions of 2x + 3y = −1?
▸ Show solution
(1, −1): 2(1) + 3(−1) = 2 − 3 = −1, a solution. (−2, 3): −4 + 9 = 5 ≠ −1, not a solution. (4, −3): 8 − 9 = −1, a solution.
Complete the table of y = 1 − 13x for x = −6, −3, 0, 3. Which integers x from −6 to 6 give an integer y?
▸ Show solution
y = 1 − (−2) = 3, 1 − (−1) = 2, 1 − 0 = 1, 1 − 1 = 0: the rows (−6, 3), (−3, 2), (0, 1), (3, 0). For an integer x, 13x = x ÷ 3 is an integer exactly when x is a multiple of 3, x = 3k with k an integer, and y is an integer exactly when 1 − y = 13x is. So among −6, −5, …, 6 the values −6, −3, 0, 3 and 6 give an integer y, and no others.
Complete the table of 5x + 2y = 6 for x = −2, 0, 2, 4, and add the row with y = −12.
▸ Show solution
x = −2: −10 + 2y = 6, so 2y = 16 and y = 8. x = 0: 2y = 6, y = 3. x = 2: 10 + 2y = 6, 2y = −4, y = −2. x = 4: 20 + 2y = 6, 2y = −14, y = −7.
y = −12: 5x − 24 = 6, so 5x = 30 and x = 6. The rows: (−2, 8), (0, 3), (2, −2), (4, −7), (6, −12). Check the last: 5(6) + 2(−12) = 30 − 24 = 6.
True or false? (a) The equation y = 7 has no solution with x = 100. (b) A table of 3x − y = 2 with 50 rows lists all its solutions. (c) If (3, 4) is a solution of an equation in x and y, so is (4, 3).
▸ Show solution
(a) False: (100, 7) is a solution, as is every pair with second entry 7. (b) False: by Theorem 2 the equation has infinitely many solutions, so 50 rows list only some of them. (c) False in general: (3, 4) solves y = x + 1, but (4, 3) does not, since 4 + 1 = 5 ≠ 3.
Prove that 2x − 6y = 5 has no solution in which both entries are integers, but has a solution with every rational x.
▸ Show solution
If x and y are integers, then 2x − 6y = 2(x − 3y) is twice an integer, an even number, and 5 is odd. So no pair of integers is a solution.
For a rational a, Theorem 2 (with B = −6 ≠ 0) gives exactly one partner, b = (5 − 2a) ÷ (−6) = (2a − 5) ÷ 6. For example a = 1 gives (1, −12): 2 + 3 = 5. So a table of this equation always has fractions in it.
Show that y = −2x − 1 and 6x + 3y = −3 have exactly the same solutions. Why is a table of values of the first also a table of values of the second?
▸ Show solution
Multiply both sides of y = −2x − 1 by 3: 3y = −6x − 3. Add 6x to both sides: 6x + 3y = −3. By Proposition 1, each step keeps exactly the same solutions, so the two equations have the same solutions, and any table of values of one is a table of values of the other. Check with a row: (1, −3) gives 6 − 9 = −3.
Summary
- A solution of an equation in x and y is an ordered pair (a, b) that makes it true when a is put in for x and b for y; the first entry always goes with x.
- A linear equation Ax + By = C with B ≠ 0 has exactly one solution with each value of x, so infinitely many; with B = 0 its solutions are the pairs (CA, b).
- A table of values lists some solutions: choose one variable, solve the equation in the other; good choices avoid fractions, and solving for y first saves work.
- Plotting a table shows exactly its finitely many solutions. It does not show the other solutions, it cannot prove that a point is or is not a solution, and it does not prove that the solutions lie on a line.
- A point off the pattern of a plotted table points to a row that must be checked in the equation: the check, not the picture, decides.
Sources
- 1.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 4, “Graphs”, section 4.1, “Use the Rectangular Coordinate System” (“Verify Solutions to an Equation in Two Variables”), p. 420 (the whole topic: pp. 419–421).
“An ordered pair (x, y) is a solution of the linear equation Ax + By = C , if the equation is a true statement when the x- and y-values of the ordered pair are substituted into the equation.”
Used for: the definition of a solution of an equation in two variables, the first entry for x and the second for y. - 2.H. Wu, Introduction to School Algebra (draft of July 24, 2010, Department of Mathematics, University of California, Berkeley, 2010).Chapter 4, “Linear Equations in Two Variables and Their Graphs”, section “Linear equations in two variables”, p. 51 (the whole topic: pp. 51–54).
“A solution of this equation is an ordered pair of numbers (x0, y0) so that x0 and y0 satisfy the equation”
Used for: the definition of a solution as an ordered pair (second source), and the word “satisfy”. - 3.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 4, “Graphs”, section 4.1, “Use the Rectangular Coordinate System” (“Verify Solutions to an Equation in Two Variables”), p. 419 (the whole topic: pp. 419–420).
“An equation of the form Ax + By = C , where A and B are not both zero, is called a linear equation in two variables.”
Used for: the definition of a linear equation in two variables. - 4.H. Wu, Introduction to School Algebra (draft of July 24, 2010, Department of Mathematics, University of California, Berkeley, 2010).Chapter 4, “Linear Equations in Two Variables and Their Graphs”, section “Graphs of linear equations in two variables”, p. 53 (the whole topic: pp. 53–54).
“or can be rewritten in this form after transposing and using the four arithmetic operations”
Used for: an equation that can be rewritten in the form Ax + By = C is also linear (the sentence begins “A linear equation in two variables x and y is an equation in the numbers x and y which is either of the form ax + by = c … where … at least one of a and b is nonzero”). - 5.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 4, “Graphs”, section 4.1, “Use the Rectangular Coordinate System” (“Verify Solutions to an Equation in Two Variables”), p. 419 (the whole topic: pp. 419–420).
“But it does not appear to be in the form Ax + By = C . We can use the Addition Property of Equality and rewrite it in Ax + By = C form.”
Used for: an equation solved for y is rewritten in the form Ax + By = C by adding to both sides (the source’s equation begins the passage). - 6.H. Wu, Introduction to School Algebra (draft of July 24, 2010, Department of Mathematics, University of California, Berkeley, 2010).Chapter 4, “Linear Equations in Two Variables and Their Graphs”, section “Linear equations in two variables”, p. 52 (the whole topic: pp. 52–53).
“as an equation in two variables, is in reality the abbreviated form of the equation”
Used for: an equation in y alone, read as an equation in two variables, is the equation 0 · x + 1 · y = c (the source’s example: “y = 3 … 0 · x + 1 · y = 3”); its solutions are the pairs (s, c). - 7.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 4, “Graphs”, section 4.1, “Use the Rectangular Coordinate System” (“Verify Solutions to an Equation in Two Variables”), p. 420 (the whole topic: pp. 419–421).
“Linear equations have infinitely many solutions. For every number that is substituted for x there is a corresponding y value.”
Used for: Theorem 2: a linear equation has infinitely many solutions, one with each value of x; the caption of the figure “More solutions”. - 8.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 4, “Graphs”, section 4.1, “Use the Rectangular Coordinate System” (“Complete a Table of Solutions to a Linear Equation in Two Variables”), p. 421 (the whole topic: pp. 421–424).
“you can just pick a value for x and then solve the equation for y . Or, pick a value for y and then solve for x .”
Used for: a solution is found by choosing one variable and solving for the other. - 9.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 4, “Graphs”, section 4.1, “Use the Rectangular Coordinate System” (“Complete a Table of Solutions to a Linear Equation in Two Variables”), p. 421 (the whole topic: pp. 421–424).
“We can summarize this information in a table of solutions”
Used for: a table of solutions lists solutions in columns x, y and (x, y) (the source’s Table 4.2). - 10.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 4, “Graphs”, section 4.2, “Graph Linear Equations in Two Variables” (“Graph Vertical and Horizontal Lines”), p. 444 (the whole topic: pp. 444–445).
“How will we make a table of values to get the points to plot?”
Used for: the name “table of values”. - 11.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 4, “Graphs”, section 4.2, “Graph Linear Equations in Two Variables” (“Graph a Linear Equation by Plotting Points”), p. 439 (the whole topic: pp. 437–441).
“But the math is easier if we make ‘good’ choices for the values of x”
Used for: good choices of x make the work easier; the source goes on: “This way we will avoid fraction answers, which are hard to graph precisely.” - 12.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 4, “Graphs”, section 4.2, “Graph Linear Equations in Two Variables” (“Graph Vertical and Horizontal Lines”), p. 444 (the whole topic: pp. 444–445).
“Then choose any values for y .”
Used for: for an equation in x alone, the table is made by choosing values of y (the sentence before: “So to make a table of values, write −3 in for all the x values.”). - 13.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 4, “Graphs”, section 4.2, “Graph Linear Equations in Two Variables” (“Recognize the Relationship Between the Solutions of an Equation and its Graph”), p. 435 (the whole topic: pp. 433–435).
“The graph of a linear equation Ax + By = C is a line.”
Used for: the Looking-ahead note: the graph of a linear equation is a line (stated by the source without proof). - 14.H. Wu, Introduction to School Algebra (draft of July 24, 2010, Department of Mathematics, University of California, Berkeley, 2010).Chapter 4, “Linear Equations in Two Variables and Their Graphs”, section “Graphs of linear equations in two variables: background”, p. 54 (the whole topic: pp. 54–57).
“The graph of a linear equation in two variables is a straight line.”
Used for: the theorem that the graph of a linear equation is a line, proved in the source over the following pages (a preview of Lines & Slope). - 15.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 4, “Graphs”, section 4.2, “Graph Linear Equations in Two Variables” (“Graph a Linear Equation by Plotting Points”), p. 438 (the whole topic: pp. 437–439).
“It is true that it only takes two points to determine a line, but it is a good habit to use three points.”
Used for: the habit of plotting at least three points, so that a mistake shows (the source goes on: “If you use three points, and one is incorrect, the points will not line up.”).