Chapter 6 ยท Proportional relationships, lines, and slope

Solutions, Tables, and Lines

Test whether an ordered pair is a solution of a linear equation, then use a table of solutions to plot points and draw the line.

16 min read

You know slope-intercept form, y=mx+by = mx + b, where the slope mm and the yy-intercept bb are fixed numbers. In this lesson, a linear equation is any equation in xx and yy that can be written this way. The variables xx and yy each stand for a real number, and xx may be any real number.

What makes such an equation true? One number alone cannot do it. You need a value for xx and a value for yy together. You write them as an ordered pair (x,y)(x, y), with the xx-value always first and the yy-value second. The two numbers are the pair's coordinates.

Try the pair (1,3)(1, 3) in y=2x+1y = 2x + 1. Substitute it, which means replace each variable with its number: 3=2(1)+13 = 2(1) + 1. The right side is 2+1=32 + 1 = 3, so the equation says 3=33 = 3, which is true. A pair that makes the equation true is a solution of the equation. Now try (1,5)(1, 5). The right side is still 33, but the left side is 55. The equation says 5=35 = 3, which is false, so (1,5)(1, 5) is not a solution.

Worked example

Testing two ordered pairs

Decide whether each ordered pair is a solution of y=2x+1y = 2x + 1: first (3,7)(3, 7), then (โˆ’2,โˆ’1)(-2, -1).

  1. Read the pair (3, 7) in order. An ordered pair is always written (x, y), so the first number is the x-value and the second number is the y-value.

    x=3,y=7x = 3, \quad y = 7
  2. Substitute 3 for x on the right side of the equation. This is allowed because x stands for exactly this number in the pair. Multiply first, then add.

    2(3)+1=6+1=72(3) + 1 = 6 + 1 = 7
  3. Compare with the left side. The left side is y, and y is 7 for this pair. Both sides are the same number, so the equation is true and (3, 7) is a solution.

    7=77 = 7
  4. Now read (-2, -1): the x-value is -2 and the y-value is -1. Substitute -2 for x. A positive number times a negative number is negative, so 2 times -2 is -4.

    2(โˆ’2)+1=โˆ’4+1=โˆ’32(-2) + 1 = -4 + 1 = -3
  5. Compare with the left side, which is y = -1. The two sides are different numbers, so the equation is false and (-2, -1) is not a solution.

    โˆ’1โ‰ โˆ’3-1 \neq -3

Answer

The pair (3,7)(3, 7) is a solution of y=2x+1y = 2x + 1, and the pair (โˆ’2,โˆ’1)(-2, -1) is not a solution.

Coordinate grid from x -4 to 10 and y -4 to 10, with a grid step of 1, showing 4 plotted elements. Details: line 2 x plus -1 y equals -1, named Line A; point at (3, 7), named Point A; point at (7, 3), named Point B; point at (-2, -1), named Point C.
Line A is the line y=2x+1y = 2x + 1. Point A is at (3,7)(3, 7), Point B is at (7,3)(7, 3) and Point C is at (โˆ’2,โˆ’1)(-2, -1).

In this figure, and in every figure in this lesson, the horizontal axis shows xx and the vertical axis shows yy. Each grid square is 1 unit. The axes have no measurement unit, because xx and yy are plain numbers here. Line A is the line with equation y=2x+1y = 2x + 1.

Point A is at (3,7)(3, 7), the solution from the example, and it lies on Line A. Point B is at (7,3)(7, 3) and Point C is at (โˆ’2,โˆ’1)(-2, -1). Neither pair is a solution, and neither point lies on Line A. Swapping the coordinates of Point A gives Point B, a different point in a different place.

Line A crosses the yy-axis at (0,1)(0, 1), not at the origin. The equation agrees: 1=2(0)+11 = 2(0) + 1 is true, but 0=2(0)+10 = 2(0) + 1 says 0=10 = 1, which is false. Because Line A misses the origin, y=2x+1y = 2x + 1 is linear but not proportional. A proportional relationship has the form y=kxy = kx for a fixed number kk, and its line passes through the origin.

Key concept

The line is every solution

A solution of a linear equation in xx and yy is an ordered pair (x,y)(x, y) that makes the equation true when you substitute the first number for xx and the second number for yy.

The graph of the equation is the set of all points whose coordinates are solutions. For an equation y=mx+by = mx + b, where mm and bb are fixed numbers and xx can be any real number, the graph is one straight line. Every solution is a point on that line, and every point on that line is a solution.

So you can test any point by substituting its exact coordinates, and you can draw the line by plotting a few solutions.

A table of values is an organized list of solutions. You choose some xx-values, substitute each one to compute its yy-value, and write each pair in its own row. Each row is a solution, because you computed yy to make the equation true. You may choose any xx-values, because xx can be any real number. Small integers, including a negative number and 00, keep the arithmetic simple.

How many rows do you need? Exactly one straight line passes through two different points, so two different solutions already fix the line. Use three. The third row is a check on your arithmetic.

Here is the check, and it uses slope. On a line y=mx+by = mx + b, two different points always have different xx-values, so the change in xx between them is not 00 and you can divide by it. The change in yy divided by the change in xx equals the slope mm for every such pair of points. If your table gives any other number, a yy-value is wrong.

Worked example

From an equation to a table to a line

Make a table of values for y=โˆ’2x+3y = -2x + 3 using x=โˆ’1x = -1, x=0x = 0 and x=2x = 2. Then graph the line.

  1. Substitute -1 for x. The product of two negative numbers is positive, so -2 times -1 is 2. Then add 3. The first row of the table is the pair (-1, 5).

    y=โˆ’2(โˆ’1)+3=2+3=5y = -2(-1) + 3 = 2 + 3 = 5
  2. Substitute 0 for x. Any number times 0 is 0, so only the 3 is left. The second row is the pair (0, 3), the point where the line crosses the y-axis.

    y=โˆ’2(0)+3=0+3=3y = -2(0) + 3 = 0 + 3 = 3
  3. Substitute 2 for x. A negative number times a positive number is negative, so -2 times 2 is -4. Then add 3. The third row is the pair (2, -1).

    y=โˆ’2(2)+3=โˆ’4+3=โˆ’1y = -2(2) + 3 = -4 + 3 = -1
  4. Plot each pair, starting at the origin. The x-value tells you how far to move right (positive) or left (negative). The y-value tells you how far to move up (positive) or down (negative). So (-1, 5) is 1 unit left and 5 units up, (0, 3) is 3 units up on the y-axis, and (2, -1) is 2 units right and 1 unit down.

  5. Check with slope before you draw. From (-1, 5) to (0, 3), x changes by 0 - (-1) = 1 and y changes by 3 - 5 = -2. From (0, 3) to (2, -1), x changes by 2 - 0 = 2 and y changes by -1 - 3 = -4. Neither change in x is 0, so you can divide. Both quotients equal the slope -2 from the equation, so the three points lie on one straight line.

    โˆ’21=โˆ’2โˆ’42=โˆ’2\frac{-2}{1} = -2 \qquad \frac{-4}{2} = -2
  6. Draw the straight line through the three points and extend it past them in both directions. The line keeps going because x can be any real number, not only the three values in the table.

Answer

The graph of y=โˆ’2x+3y = -2x + 3 is the straight line through (โˆ’1,5)(-1, 5), (0,3)(0, 3) and (2,โˆ’1)(2, -1), extended in both directions.

Table of values for y = -2x + 3
xSubstitute into y = -2x + 3yOrdered pair (x, y)
โˆ’1-1
โˆ’2(โˆ’1)+3=2+3-2(-1) + 3 = 2 + 3
55
(โˆ’1,5)(-1, 5)
00
โˆ’2(0)+3=0+3-2(0) + 3 = 0 + 3
33
(0,3)(0, 3)
22
โˆ’2(2)+3=โˆ’4+3-2(2) + 3 = -4 + 3
โˆ’1-1
(2,โˆ’1)(2, -1)
Coordinate grid from x -7 to 7 and y -7 to 7, with a grid step of 1, showing 5 plotted elements. Details: line 2 x plus 1 y equals 3, named Line A; point at (-1, 5), named Point A; point at (0, 3), named Point B; point at (2, -1), named Point C; point at (1, 1), named Point D.
Points A, B and C are the table pairs (โˆ’1,5)(-1, 5), (0,3)(0, 3) and (2,โˆ’1)(2, -1). Point D at (1,1)(1, 1) is another solution on Line A, the graph of y=โˆ’2x+3y = -2x + 3.

This figure shows the finished graph. As before, the horizontal axis shows xx, the vertical axis shows yy, and each grid square is 1 unit. Each row of the table became one point: Point A is (โˆ’1,5)(-1, 5), Point B is (0,3)(0, 3) and Point C is (2,โˆ’1)(2, -1). Line A passes through all three, and it is the graph of y=โˆ’2x+3y = -2x + 3.

The table holds only three solutions, but the line holds every solution. Point D at (1,1)(1, 1) was never in the table, yet it lies on Line A. Substituting confirms it: โˆ’2(1)+3=โˆ’2+3=1-2(1) + 3 = -2 + 3 = 1. The coordinates of a solution do not have to be integers either. For x=0.5x = 0.5, you get y=โˆ’2(0.5)+3=โˆ’1+3=2y = -2(0.5) + 3 = -1 + 3 = 2, so (0.5,2)(0.5, 2) is a solution too.

A drawing can make a point look as if it is on a line when it is slightly off. To be sure, substitute the exact coordinates.

Worked example

A slope that is a fraction

Graph y=12xโˆ’2y = \frac{1}{2}x - 2 from a table of values. Then decide whether (3,โˆ’1)(3, -1) is a solution.

  1. You may use any x-values, but multiples of 2 are convenient here. The slope has denominator 2, and half of an even number is an integer, so each y-value will be an integer that sits exactly on a grid crossing. Use -6, 0 and 6.

  2. Substitute -6 for x. Half of -6 is -3, and -3 minus 2 is -5. The first pair is (-6, -5).

    12(โˆ’6)โˆ’2=โˆ’3โˆ’2=โˆ’5\frac{1}{2}(-6) - 2 = -3 - 2 = -5
  3. Substitute 0, then 6, in the same way. Half of 0 is 0 and half of 6 is 3. Subtract 2 each time. The other two pairs are (0, -2) and (6, 1).

    12(0)โˆ’2=0โˆ’2=โˆ’212(6)โˆ’2=3โˆ’2=1\frac{1}{2}(0) - 2 = 0 - 2 = -2 \qquad \frac{1}{2}(6) - 2 = 3 - 2 = 1
  4. Check with slope. From (-6, -5) to (0, -2), x changes by 0 - (-6) = 6 and y changes by -2 - (-5) = 3. From (0, -2) to (6, 1), x changes by 6 - 0 = 6 and y changes by 1 - (-2) = 3. Each quotient is 3 divided by 6, which equals the slope one half, so the points lie on one straight line. Plot them and draw the line through them, extended in both directions.

    36=12\frac{3}{6} = \frac{1}{2}
  5. Test (3, -1) by substituting its exact coordinates, x = 3 and y = -1. Half of 3 is exactly 1.5, and 1.5 minus 2 is -0.5. The left side is y = -1, and -1 is not equal to -0.5, so the equation is false.

    12(3)โˆ’2=1.5โˆ’2=โˆ’0.5โ‰ โˆ’1\frac{1}{2}(3) - 2 = 1.5 - 2 = -0.5 \neq -1
  6. Compare with the figure that follows. Points A, B and C are the table pairs (-6, -5), (0, -2) and (6, 1), and Line A passes through all three. Point D is (3, -1). It sits 0.5 units directly below (3, -0.5), the point of Line A with x = 3. That gap is small on the grid, which is why you substitute instead of judging by eye.

Answer

The graph of y=12xโˆ’2y = \frac{1}{2}x - 2 is the line through (โˆ’6,โˆ’5)(-6, -5), (0,โˆ’2)(0, -2) and (6,1)(6, 1). The pair (3,โˆ’1)(3, -1) is not a solution; the solution with x=3x = 3 is (3,โˆ’0.5)(3, -0.5).

Coordinate grid from x -8 to 8 and y -8 to 8, with a grid step of 1, showing 5 plotted elements. Details: line 1 x plus -2 y equals 4, named Line A; point at (-6, -5), named Point A; point at (0, -2), named Point B; point at (6, 1), named Point C; point at (3, -1), named Point D.
Points A, B and C are the table pairs (โˆ’6,โˆ’5)(-6, -5), (0,โˆ’2)(0, -2) and (6,1)(6, 1) on Line A, the graph of y=12xโˆ’2y = \frac{1}{2}x - 2. Point D at (3,โˆ’1)(3, -1) is not on Line A. The horizontal axis shows xx; the vertical axis shows yy.

Takeaway. A solution of a linear equation is an ordered pair (x,y)(x, y), with xx first and yy second, that makes the equation true. For an equation y=mx+by = mx + b, all of the solutions together form one straight line. So a table of values gives you exact points to plot, the line through them is the graph, and substituting exact coordinates tells you whether any other point belongs on it.

Next, you will graph horizontal and vertical lines. Vertical lines have an undefined slope, so they cannot be written as y=mx+by = mx + b and need their own approach.