Elementary Algebra 2e · free preview

4.2 Graph Linear Equations in Two Variables

Learning objectives: Recognize the relationship between the solutions of an equation and its graph; Graph a linear equation by plotting points; Graph vertical and horizontal lines

1. Learning objectives

Learning objectives

Learning objectives

  • Recognize the relationship between the solutions of an equation and its graph
  • Graph a linear equation by plotting points
  • Graph vertical and horizontal lines

2. Recognize the Relationship Between the Solutions of an Equation and its Graph

Recognize the Relationship Between the Solutions of an Equation and its Graph

In the previous section, we found several solutions to the equation 3x+2y=63x+2y=6. They are listed in Table 4.10. So, the ordered pairs (0,3)(0,3), (2,0)(2,0), and (1,32)(1,\frac{3}{2}) are some solutions to the equation 3x+2y=63x+2y=6. We can plot these solutions in the rectangular coordinate system as shown in Figure 4.5.

3x+2y=63x+2y=6
xxyy(x,y)(x,y)
03(0,3)(0,3)
20(2,0)(2,0)
132\frac{3}{2}(1,32)(1,\frac{3}{2})

Table

4.10

Notice how the points line up perfectly? We connect the points with a line to get the graph of the equation 3x+2y=63x+2y=6. See Figure 4.6. Notice the arrows on the ends of each side of the line. These arrows indicate the line continues.

Every point on the line is a solution of the equation. Also, every solution of this equation is a point on this line. Points not on the line are not solutions.

Notice that the point whose coordinates are (−2,6)(-2,6) is on the line shown in Figure 4.7. If you substitute x=−2x=-2 and y=6y=6 into the equation, you find that it is a solution to the equation.

So the point (−2,6)(-2,6) is a solution to the equation 3x+2y=63x+2y=6. (The phrase “the point whose coordinates are (−2,6)(-2,6)” is often shortened to “the point (−2,6)(-2,6).”)

So (4,1)(4,1) is not a solution to the equation 3x+2y=63x+2y=6. Therefore, the point (4,1)(4,1) is not on the line. See Figure 4.6. This is an example of the saying, “A picture is worth a thousand words.” The line shows you all the solutions to the equation. Every point on the line is a solution of the equation. And, every solution of this equation is on this line. This line is called the graph of the equation 3x+2y=63x+2y=6.

The graph of a linear equation Ax+By=CAx+By=C is a line.

  • Every point on the line is a solution of the equation.
  • Every solution of this equation is a point on this line.

3. Example 4.10

Example 4.10

Example 4.10

The graph of y=2x−3y=2x-3 is shown.

For each ordered pair, decide:

ⓐ Is the ordered pair a solution to the equation? ⓑ Is the point on the line?

A (0,−3)(0,-3) B (3,3)(3,3) C (2,−3)(2,-3) D (−1,−5)(-1,-5)

Solution

Substitute the x- and y- values into the equation to check if the ordered pair is a solution to the equation.

  1. ⓐ
  1. ⓑ Plot the points A (0,3)(0,3), B (3,3)(3,3), C (2,−3)(2,-3), and D (−1,−5)(-1,-5).

The points (0,3)(0,3), (3,3)(3,3), and (−1,−5)(-1,-5) are on the line y=2x−3y=2x-3, and the point (2,−3)(2,-3) is not on the line.

The points that are solutions to y=2x−3y=2x-3 are on the line, but the point that is not a solution is not on the line.

4. Graph a Linear Equation by Plotting Points

Graph a Linear Equation by Plotting Points

There are several methods that can be used to graph a linear equation. The method we used to graph 3x+2y=63x+2y=6 is called plotting points, or the Point–Plotting Method.

5. Example 4.11

Example 4.11

Example 4.11

How To Graph an Equation By Plotting Points

Graph the equation y=2x+1y=2x+1 by plotting points.

The steps to take when graphing a linear equation by plotting points are summarized below.

Graph a linear equation by plotting points.

  1. Step 1. Find three points whose coordinates are solutions to the equation. Organize them in a table.
  2. Step 2. Plot the points in a rectangular coordinate system. Check that the points line up. If they do not, carefully check your work.
  3. Step 3. Draw the line through the three points. Extend the line to fill the grid and put arrows on both ends of the line.

It is true that it only takes two points to determine a line, but it is a good habit to use three points. If you only plot two points and one of them is incorrect, you can still draw a line but it will not represent the solutions to the equation. It will be the wrong line.

If you use three points, and one is incorrect, the points will not line up. This tells you something is wrong and you need to check your work. Look at the difference between part (a) and part (b) in Figure 4.8.

Let’s do another example. This time, we’ll show the last two steps all on one grid.

6. Example 4.12

Example 4.12

Example 4.12

Graph the equation y=−3xy=-3x.

Solution

Find three points that are solutions to the equation. Here, again, it’s easier to choose values for xx. Do you see why?

We list the points in Table 4.11.

y=−3xy=-3x
xxyy(x,y)(x,y)
00(0,0)(0,0)
1−3-3(1,−3)(1,-3)
−2-26(−2,6)(-2,6)

Table

4.11

Plot the points, check that they line up, and draw the line.

When an equation includes a fraction as the coefficient of xx, we can still substitute any numbers for xx. But the math is easier if we make ‘good’ choices for the values of xx. This way we will avoid fraction answers, which are hard to graph precisely.

7. Example 4.13

Example 4.13

Example 4.13

Graph the equation y=12x+3y=\frac{1}{2}x+3.

Solution

Find three points that are solutions to the equation. Since this equation has the fraction 12\frac{1}{2} as a coefficient of x,x, we will choose values of xx carefully. We will use zero as one choice and multiples of 2 for the other choices. Why are multiples of 2 a good choice for values of xx?

The points are shown in Table 4.12.

y=12x+3y=\frac{1}{2}x+3
xxyy(x,y)(x,y)
03(0,3)(0,3)
24(2,4)(2,4)
45(4,5)(4,5)

Table

4.12

Plot the points, check that they line up, and draw the line.

So far, all the equations we graphed had yy given in terms of xx. Now we’ll graph an equation with xx and yy on the same side. Let’s see what happens in the equation 2x+y=32x+y=3. If y=0y=0 what is the value of xx?

This point has a fraction for the x- coordinate and, while we could graph this point, it is hard to be precise graphing fractions. Remember in the example y=12x+3y=\frac{1}{2}x+3, we carefully chose values for xx so as not to graph fractions at all. If we solve the equation 2x+y=32x+y=3 for yy, it will be easier to find three solutions to the equation.

2x+y=3y=−2x+3\begin{array}{rll} 2x+y & = & 3 \\ y & = & -2x+3 \\ \end{array}

The solutions for x=0x=0, x=1x=1, and x=−1x=-1 are shown in the Table 4.13. The graph is shown in Figure 4.9.

2x+y=32x+y=3
xxyy(x,y)(x,y)
03(0,3)(0,3)
11(1,1)(1,1)
−1-15(−1,5)(-1,5)

Table

4.13

Can you locate the point (32,0)(\frac{3}{2},0), which we found by letting y=0y=0, on the line?

8. Example 4.14

Example 4.14

Example 4.14

Graph the equation 3x+y=−13x+y=-1.

Solution

Find three points that are solutions to the equation.3x+y = −13x+y\,=\,-1
First, solve the equation for yy.y = −3x−1y\,=\,-3x-1

Table

4.14

We’ll let xx be 0, 1, and −1-1 to find 3 points. The ordered pairs are shown in Table 4.15. Plot the points, check that they line up, and draw the line. See Figure 4.10.

3x+y=−13x+y=-1
xxyy(x,y)(x,y)
0−1-1(0,−1)(0,-1)
1−4-4(1,−4)(1,-4)
−1-12(−1,2)(-1,2)

Table

4.15

If you can choose any three points to graph a line, how will you know if your graph matches the one shown in the answers in the course? If the points where the graphs cross the x- and y-axes are the same, the graphs match!

The equation in Example 4.14 was written in standard form, with both xx and yy on the same side. We solved that equation for yy in just one step. But for other equations in standard form it is not that easy to solve for yy, so we will leave them in standard form. We can still find a first point to plot by letting x=0x=0 and solving for yy. We can plot a second point by letting y=0y=0 and then solving for xx. Then we will plot a third point by using some other value for xx or yy.

9. Example 4.15

Example 4.15

Example 4.15

Graph the equation 2x−3y=62x-3y=6.

Solution

Find three points that are solutions to the equation.2x−3y=6\begin{array}{rll} 2x-3y & = & 6 \\ \end{array}
First, let x=0x=0.2(0)−3y=6\begin{array}{rll} 2(0)-3y & = & 6 \\ \end{array}
Solve for yy.−3y=6y=−2\begin{array}{rll} -3y & = & 6 \\ y & = & -2 \\ \end{array}
Now let y=0y=0.2x−3(0)=6\begin{array}{rll} 2x-3(0) & = & 6 \\ \end{array}
Solve for xx.2x=6x=3\begin{array}{rll} 2x & = & 6 \\ x & = & 3 \\ \end{array}
We need a third point. Remember, we can choose any value for xx or yy. We'll let x=6x=6.2(6)−3y=6\begin{array}{rll} 2(6)-3y & = & 6 \\ \end{array}
Solve for yy.12−3y=6−3y=−6y=2\begin{array}{rll} 12-3y & = & 6 \\ -3y & = & -6 \\ y & = & 2 \\ \end{array}

Table

4.16

We list the ordered pairs in Table 4.17. Plot the points, check that they line up, and draw the line. See Figure 4.11.

2x−3y=62x-3y=6
xxyy(x,y)(x,y)
0−2-2(0,−2)(0,-2)
30(3,0)(3,0)
62(6,2)(6,2)

Table

4.17

10. Graph Vertical and Horizontal Lines

Graph Vertical and Horizontal Lines

Can we graph an equation with only one variable? Just xx and no yy, or just yy without an xx? How will we make a table of values to get the points to plot?

Let’s consider the equation x=−3x=-3. This equation has only one variable, xx. The equation says that xx is always equal to −3-3, so its value does not depend on yy. No matter what yy is, the value of xx is always −3-3.

So to make a table of values, write −3-3 in for all the xx values. Then choose any values for yy. Since xx does not depend on yy, you can choose any numbers you like. But to fit the points on our coordinate graph, we’ll use 1, 2, and 3 for the y-coordinates. See Table 4.18.

x=−3x=-3
xxyy(x,y)(x,y)
−3-31(−3,1)(-3,1)
−3-32(−3,2)(-3,2)
−3-33(−3,3)(-3,3)

Table

4.18

Plot the points from Table 4.18 and connect them with a straight line. Notice in Figure 4.12 that we have graphed a vertical line.

A vertical line is the graph of an equation of the form x=ax=a.

The line passes through the x-axis at (a,0)(a,0).

11. Example 4.16

Example 4.16

Example 4.16

Graph the equation x=2x=2.

Solution

The equation has only one variable, xx, and xx is always equal to 2. We create Table 4.19 where xx is always 2 and then put in any values for yy. The graph is a vertical line passing through the x-axis at 2. See Figure 4.13.

x=2x=2
xxyy(x,y)(x,y)
21(2,1)(2,1)
22(2,2)(2,2)
23(2,3)(2,3)

Table

4.19

What if the equation has yy but no xx? Let’s graph the equation y=4y=4. This time the y- value is a constant, so in this equation, yy does not depend on xx. Fill in 4 for all the yy’s in Table 4.20 and then choose any values for xx. We’ll use 0, 2, and 4 for the x-coordinates.

y=4y=4
xxyy(x,y)(x,y)
04(0,4)(0,4)
24(2,4)(2,4)
44(4,4)(4,4)

Table

4.20

The graph is a horizontal line passing through the y-axis at 4. See Figure 4.14.

A horizontal line is the graph of an equation of the form y=by=b.

The line passes through the y-axis at (0,b)(0,b).

12. Example 4.17

Example 4.17

Example 4.17

Graph the equation y=−1.y=-1.

Solution

The equation y=−1y=-1 has only one variable, yy. The value of yy is constant. All the ordered pairs in Table 4.21 have the same y-coordinate. The graph is a horizontal line passing through the y-axis at −1-1, as shown in Figure 4.15.

y=−1y=-1
xxyy(x,y)(x,y)
0−1-1(0,−1)(0,-1)
3−1-1(3,−1)(3,-1)
−3-3−1-1(−3,−1)(-3,-1)

Table

4.21

The equations for vertical and horizontal lines look very similar to equations like y=4x.y=4x. What is the difference between the equations y=4xy=4x and y=4y=4?

The equation y=4xy=4x has both xx and yy. The value of yy depends on the value of xx. The y-coordinate changes according to the value of xx. The equation y=4y=4 has only one variable. The value of yy is constant. The y-coordinate is always 4. It does not depend on the value of xx. See Table 4.22.

y=4xy=4xy=4y=4
xxyy(x,y)(x,y)xxyy(x,y)(x,y)
00(0,0)(0,0)04(0,4)(0,4)
14(1,4)(1,4)14(1,4)(1,4)
28(2,8)(2,8)24(2,4)(2,4)

Table

4.22

Notice, in Figure 4.16, the equation y=4xy=4x gives a slanted line, while y=4y=4 gives a horizontal line.

13. Example 4.18

Example 4.18

Example 4.18

Graph y=−3xy=-3x and y=−3y=-3 in the same rectangular coordinate system.

Solution

Notice that the first equation has the variable xx, while the second does not. See Table 4.23. The two graphs are shown in Figure 4.17.

y=−3xy=-3xy=−3y=-3
xxyy(x,y)(x,y)xxyy(x,y)(x,y)
00(0,0)(0,0)0−3-3(0,−3)(0,-3)
1−3-3(1,−3)(1,-3)1−3-3(1,−3)(1,-3)
2−6-6(2,−6)(2,-6)2−3-3(2,−3)(2,-3)

Table

4.23

14. Section 4.2 Exercises

Section 4.2 Exercises

Section 4.2 Exercises

Recognize the Relationship Between the Solutions of an Equation and its Graph

In the following exercises, for each ordered pair, decide:

ⓐ Is the ordered pair a solution to the equation? ⓑ Is the point on the line?

Graph a Linear Equation by Plotting Points

In the following exercises, graph by plotting points.

Graph Vertical and Horizontal Lines

In the following exercises, graph each equation.

In the following exercises, graph each pair of equations in the same rectangular coordinate system.

In the following exercises, graph each equation.

Everyday Math

Writing Exercises

ⓐ After completing the exercises, use this checklist to evaluate your mastery of the objectives of this section.

ⓑ After reviewing this checklist, what will you do to become confident for all goals?

15. Practice 1

  1. Use the graph of y=3x−1y=3x-1 to decide whether each ordered pair is:
  • a solution to the equation.
  • on the line.

ⓐ (0,−1)(0,-1) ⓑ (2,5)(2,5)

  1. Use graph of y=3x−1y=3x-1 to decide whether each ordered pair is:
  • a solution to the equation
  • on the line

ⓐ (3,−1)(3,-1) ⓑ (−1,−4)(-1,-4)

  1. Graph the equation by plotting points: y=2x−3y=2x-3.
  1. Graph the equation by plotting points: y=−2x+4y=-2x+4.

16. Practice 2

  1. Graph the equation by plotting points: y=−4xy=-4x.
  1. Graph the equation by plotting points: y=xy=x.
  1. Graph the equation y=13x−1y=\frac{1}{3}x-1.
  1. Graph the equation y=14x+2y=\frac{1}{4}x+2.

17. Practice 3

  1. Graph the equation 2x+y=22x+y=2.
  1. Graph the equation 4x+y=−34x+y=-3.
  1. Graph the equation 4x+2y=84x+2y=8.
  1. Graph the equation 2x−4y=82x-4y=8.

18. Practice 4

  1. Graph the equation x=5x=5.
  1. Graph the equation x=−2x=-2.
  1. Graph the equation y=−4y=-4.
  1. Graph the equation y=3y=3.

19. Practice 5

  1. Graph y=−4xy=-4x and y=−4y=-4 in the same rectangular coordinate system.
  1. Graph y=3y=3 and y=3xy=3x in the same rectangular coordinate system.
  1. y=x+2y=x+2
  1. ⓐ (0,2)(0,2)
  1. ⓑ (1,2)(1,2)
  1. ⓒ (−1,1)(-1,1)
  1. ⓓ (−3,−1)(-3,-1)
  1. y=12x−3y=\frac{1}{2}x-3
  1. ⓐ (0,−3)(0,-3)
  1. ⓑ (2,−2)(2,-2)
  1. ⓒ (−2,−4)(-2,-4)
  1. ⓓ (4,1)(4,1)

20. Practice 6

  1. y=3x−1y=3x-1
  1. y=−2x+2y=-2x+2
  1. y=x+2y=x+2
  1. y=−x−3y=-x-3

21. Practice 7

  1. y=2xy=2x
  1. y=−4xy=-4x
  1. y=12x+2y=\frac{1}{2}x+2
  1. y=43x−5y=\frac{4}{3}x-5

22. Practice 8

  1. y=−25x+1y=-\frac{2}{5}x+1
  1. y=−32x+2y=-\frac{3}{2}x+2
  1. x+y=6x+y=6
  1. x+y=−3x+y=-3

23. Practice 9

  1. x−y=2x-y=2
  1. x−y=−1x-y=-1
  1. 3x+y=73x+y=7
  1. 2x+y=−32x+y=-3

24. Practice 10

  1. 13x+y=2\frac{1}{3}x+y=2
  1. 25x−y=4\frac{2}{5}x-y=4
  1. 2x+3y=122x+3y=12
  1. 3x−4y=123x-4y=12

25. Practice 11

  1. x−6y=3x-6y=3
  1. 5x+2y=45x+2y=4
  1. x=4x=4
  1. x=−2x=-2

26. Practice 12

  1. y=3y=3
  1. y=−5y=-5
  1. x=73x=\frac{7}{3}
  1. y=−154y=-\frac{15}{4}

27. Practice 13

  1. y=2xy=2x and y=2y=2
  1. y=−12xy=-\frac{1}{2}x and y=−12y=-\frac{1}{2}
  1. y=4xy=4x
  1. y=−12x+3y=-\frac{1}{2}x+3

28. Practice 14

  1. y=−xy=-x
  1. x−y=3x-y=3
  1. 4x+y=24x+y=2
  1. y=−1y=-1

29. Practice 15

  1. 2x+6y=122x+6y=12
  1. x=3x=3
  1. Motor home cost. The Robinsons rented a motor home for one week to go on vacation. It cost them 594plus594 plus 0.32 per mile to rent the motor home, so the linear equation y=594+0.32xy=594+0.32x gives the cost, yy, for driving xx miles. Calculate the rental cost for driving 400, 800, and 1200 miles, and then graph the line.
  1. Explain how you would choose three x- values to make a table to graph the line y=15x−2y=\frac{1}{5}x-2.

Practice this interactively

Free account · instant grading · spaced review that schedules itself.

Start this course for free