Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

8.3: Graphing Linear Equations

( \newcommand{\kernel}{\mathrm{null}\,}\)

Consider y=x+1 an equation in two variables. If we substitute the ordered pair (x,y)=(1,2) into the equation y=x+1, that is, if we replace x with 1 and y with 2, we get a true statement.

y=x+1  Original equation.2=1+1  Substitute: 1 for x and 2 for y.2=2  Simplify.

We say that the ordered pair (1, 2) is a solution of the equation y=x+1.

Solution of an Equation in Two Variables

If substituting the ordered pair (x, y)=(a, b) into an equation (replace x with a and y with b) produces a true statement, then the ordered pair (a, b) is called a solution of the equation and is said to “satisfy the equation.”

Example 1

Which of the ordered pairs are solutions of the equation y=2x+5: (a) (−3, −2), or (b) (5, 15)?

Solution

Substitute the points into the equation to determine which are solutions.

a) To determine if (−3, −2) is a solution of y=2x+5, substitute −3 for x and −2 for y in the equation y=2x+5.

y=2x+5  Original equation.2=2(3)+5  Substitute: −3 for x and 2 for y.2=6+5  Multiply first: 2(3)=62=1  Add: 6+5=1.

Because the resulting statement is false, the ordered pair (−3, −2) does not satisfy the equation. The ordered pair (−3, −2) is not a solution of y=2x+5.

a) To determine if (5, 15) is a solution of y=2x+5, substitute 5 for x and 15 for y in the equation y=2x+5.

y=2x+5  Original equation.15=2(5)+5  Substitute: 5 for x and 15 for y.15=10+5  Multiply first: 2(5)=1015=15  Add: 10+5=15.

The resulting statement is true. The ordered pair (5, 15) does satisfy the equation. Hence, (5, 15) is a solution of y=2x+5.

Exercise

Which of the ordered pairs (1, 7) and (2, 9) are solution of the equation y=3x+4?

Answer

(1, 7)

The Graph of an Equation

We turn our attention to the graph of an equation.

The Graph of an Equation

The graph of an equation is the set of all ordered pairs that are solutions of the equation.

In the equation y=2x+5, the variable y depends on the value of the variable x. For this reason, we call y the dependent variable and x the independent variable. We’re free to make choices for x, but the value of y will depend upon our choice for x.

We will also assign the horizontal axis to the independent variable x and the vertical axis to the dependent variable y (see Figure 8.7).

The graph of y=2x+5 consists of all ordered pairs that are solutions of the equation y=2x+5. So, our first task is to find ordered pairs that are solutions of y=2x+5. This is easily accomplished by selecting an arbitrary number of values, substituting them for x in the equation y=2x+5, then calculating the resulting values of y. With this thought in mind, we pick arbitrary integers −7, −6, . . . , 2, substitute them for x in the equation y=2x+5, calculate the resulting value of y, and store the results in a table.

y=2x+5xy(x, y)y=2(7)+5=979(7,9)y=2(6)+5=767(6,7)y=2(5)+5=555(5,5)y=2(4)+5=343(4,3)y=2(3)+5=131(3,1)y=2(2)+5=121(2,1)y=2(1)+5=313(1,3)y=2(0)+5=505(0,5)y=2(1)+5=717(1,7)y=2(2)+5=929(2,9)

The result is 10 ordered pairs that satisfy the equation y=2x+5. Therefore, we have 10 ordered pairs that belong to the graph of y=2x+5. They are plotted in Figure 8.7(a).

However, we’re not finished, because the graph of the equation y=2x+5 is the set of all points that satisfy the equation and we’ve only plotted 10 such points. Let’s plot some more points. Select some more x-values, compute the corresponding y-value, and record the results in a table.

y=2x+5xy(x,y)y=2(7.5)+5=107.510(7.5,10)y=2(6.5)+5=86.58(6.5,8)y=2(5.5)+5=65.56(5.5,6)y=2(4.5)+5=44.54(4.5,4)y=2(3.5)+5=23.52(3.5,2)y=2(2.5)+5=02.50(2.5,0)y=2(1.5)+5=21.52(1.5,2)y=2(0.5)+5=40.54(0.5,4)y=2(0.5)+5=60.56(0.5,6)y=2(1.5)+5=81.58(1.5,8)y=2(2.5)+5=102.510(2.5,10)

That’s 11 additional points that we add to the graph in Figure 8.7(b).

Screen Shot 2019-09-29 at 1.28.50 PM.png
Figure 8.7: Plotting points that satisfy the equation y=2x+5.

Note that we can continue indefinitely in this manner, adding points to the table and plotting them. However, sooner or later, we have to make a leap of faith, and imagine what the final graph will look like when all of the points that satisfy the equation y = 2x+ 5 are plotted. We do so in Figure 8.8, where the final graph takes on the appearance of a line.

Ruler Use

All lines must be drawn with a ruler. This includes the x- and y-axes.

Important Observation. When we use a ruler to draw a line through the plotted points in Figure 8.7(b), arriving at the final result in Figure 8.8, we must understand that this is a shortcut technique for plotting all of the remaining ordered pairs that satisfy the equation. We’re not really drawing a line through the plotted points. Rather, we’re shading all of the ordered pairs that satisfy the equation y=2x+5.

Screen Shot 2019-09-29 at 1.32.40 PM.png
Figure 8.8: The graph of the equation y=2x+5.

The Result. The graph of the equation y=2x+5, pictured in Figure 8.8, is a line. Actually, the graph is an infinite collection of points satisfying the equation y=2x+5 that takes the shape of a line, but it’s all right to say the graph of y=2x+5 is a line.

Ordered Pairs and the Graph

Because the graph of an equation is the collection of all ordered pairs that satisfy the equation, we have two important results:

  1. If an ordered pair satisfies an equation, then the point in the Cartesian plane represented by the ordered pair is on the graph of the equation.
  2. If a point is on the graph of an equation, then the ordered pair representation of that point satisfies the equation.
Example 2

Find the value of k so that the point (2, k) is on the graph of the equation y=3x2.

Solution

If the point (2, k) is on the graph of y=3x2, then it must satisfy the equation y=3x2.

y=3x2  Original equation.k=3(2)2  The point (2, k) is on the graph. Substitute 2 for x and k for y in y=3x2.k=62  Multiply: 3(2)=6.k=4  Subtract: 62=4.

Thus, k = 4.

Exercise

Find the value of k so that the point (k, −3) is on the graph of the equation y=4x+2.

Answer

k = −5/4

Linear Equations

Let’s plot the graph of another equation.

Example 3

Sketch the graph of y=2x+1.

Solution

Select arbitrary values of x: −4, −3, . . . , 5. Substitute these values into the equation y=2x+1, calculate the resulting value of y, then arrange your results in a table.

y=2x+1xy(x,y)y=2(4)+1=949(4,9)y=2(3)+1=737(3,7)y=2(2)+1=525(2,5)y=2(1)+1=313(1,3)y=2(0)+1=101(0,1)y=2(1)+1=111(1,1)y=2(2)+1=323(2,3)y=2(3)+1=535(3,5)y=2(4)+1=747(4,7)y=2(5)+1=959(5,9)

We’ve plotted the points in the table in Figure 8.9(a). There is enough evidence in Figure 8.9(a) to imagine that if we plotted all of the points that satisfied the equation y=2x+1, the result would be the line shown in Figure 8.9(b).

Screen Shot 2019-09-29 at 1.47.44 PM.png
Figure 8.9: The graph of the equation y=2x+1 is a line.
Exercise

Sketch the graph of y=2x2.

Answer

Screen Shot 2019-09-29 at 1.47.57 PM.png

The graph of y=2x+5 in Figure 8.8 is a line. The graph of y=2x+1 in Figure 8.9(b) is also a line. This would lead one to suspect that the graph of the equation y=mx+b, where m and b are constants, will always be a line. Indeed, this is always the case.

Linear Equations

The graph of y=mx+b, where m and b are constants, will always be a line. For this reason, the equation y=mx+b is called a linear equation.

Example 4

Which of the following equations is a linear equation? 1. y=3x+4, 2. y=23x+3, and 3. y=2x2+4.

Solution

Compare each equation with the general form of a linear equation, y=mx+b.

  1. Note that y=3x+4 has the form y=mx+b, where m = −3 and b = 4. Hence, y=3x+4 is a linear equation. Its graph is a line.
  2. Note that y=23x+3 has the form y=mx+b, where m = 2/3 and b = 3. Hence, y=23x+3 is a linear equation. Its graph is a line.
  3. The equation y=2x2+4 does not have the form y=mx+b. The exponent of 2 on the x prevents this equation from being linear. This is a nonlinear equation. Its graph is not a line.
Exercise

Which of the following equations is a linear equation? a) y=2x3+5 b) y=3x5

Answer

y=3x5

The fact that y=mx+b is a linear equation enables us to quickly sketch its graph.

Example 5

Sketch the graph of y=32x+4.

Solution

The equation y=32x+4 has the form y=mx+b. Therefore, the equation is linear and the graph will be a line. Because two points determine a line, we need only find two points that satisfy the equation y=32x+4, plot them, then draw a line through them with a ruler. We choose x = −2 and x = 2, calculate y, and record the results in a table.

y=32x+4xy(x,y)y=32(2)+4=3+4=727(2,7)y=32(2)+4=3+4=121(2,1)

Plot the points (−2, 7) and (2, 1) and draw a line through them. The result is shown in Figure 8.10.

Screen Shot 2019-09-29 at 2.08.20 PM.png
Figure 8.10: The graph of y=32x+4 is a line.
Exercise

Sketch the graph of y=12x+2.

Answer

Screen Shot 2019-09-29 at 2.08.30 PM.png

You may have noted in Example 5 that are choices of −2 and 2 for x eased the calculation of the corresponding y-values because of the resulting cancellation.

Choosing Strategic Values

When plotting a linear equation, it is a good strategy to choose values of x that simplify the calculation of the corresponding y-values.

Example 6

Sketch the graph of y = \frac{1}{3} x + 3.

Solution

The equation y=13x+3 has the form y=mx+b. Therefore, the equation is linear and the graph will be a line. Because two points determine a line, we need only find two points that satisfy the equation y = 1 3x + 3, plot them, then draw a line through them with a ruler. We choose x = −6 and x = 6, calculate y, and record the results in a table.

y=13x+3xy(x,y)y=13(6)+3=2+3=161(6,1)y=13(6)+3=2+3=565(6,5)

Plot the points (−6, 1) and (6, 5) and draw a line through them. The result is shown in Figure 8.11.

Screen Shot 2019-09-29 at 2.07.03 PM.png
Figure 8.11: The graph of y=13x+3 is a line.
Exercise

Sketch the graph of y=23x+1.

Answer

Screen Shot 2019-09-29 at 2.02.40 PM.png

Exercises

1. Which of the points (2, −14), (−1, −6), (−8, 11), and (3, −13) is a solution of the equation y=2x8?

2. Which of the points (1, −2), (8, 23), (−3, −23), and (8, 24) is a solution of the equation y=4x9?

3. Which of the points (1, −1), (−2, 20), (−4, 31), and (−9, 64) is a solution of the equation y=6x+7?

4. Which of the points (−8, −61), (4, 42), (−3, −18), and (−6, −46) is a solution of the equation y=9x+8?

5. Which of the points (2, 15), (−8, −74), (2, 18), and (5, 40) is a solution of the equation y=9x3?

6. Which of the points (−9, −52), (−8, −44), (−7, −37), and (8, 35) is a solution of the equation y=5x5?

7. Which of the points (−2, 12), (−1, 12), (3, −10), and (−2, 14) is a solution of the equation y=5x+4?

8. Which of the points (6, 25), (−8, −14), (8, 33), and (−7, −9) is a solution of the equation y=3x+9?


9. Determine k so that the point (9, k) is a solution of y=6x+1.

10. Determine k so that the point (−9, k) is a solution of y=2x+3.

11. Determine k so that the point (k, 7) is a solution of y=4x+1.

12. Determine k so that the point (k, −4) is a solution of y=8x+3.

13. Determine k so that the point (k, 1) is a solution of y=4x+8.

14. Determine k so that the point (k, −7) is a solution of y=7x+5.

15. Determine k so that the point (−1, k) is a solution of y=5x+3.

16. Determine k so that the point (−3, k) is a solution of y=3x+3.


In Exercises 17-24, which of the given equations is a linear equation?

17. y=6x2+4, y=x2+6x+4, y=6x+4, y=6x+4

18. y=2x+1, y=x22x+1, y=2x+1, y=2x2+1

19. y=x+7, y=x+7, y=x2+7, y=x2+x+7

20. y=x2+5x+1, y=5x2+1, y=5x+1, y=5x+1

21. y=x22x2, y=2x22, y=2x2, y=2x2

22. y=x2+5x8, y=5x28, y=5x8, y=5x8

23. y=x2+7x3, y=7x23, y=7x3, y=7x3

24. y=4x3, y=x24x3, y=4x3, y=4x23


In Exercises 25-28, which of the given equations has the given graph?

25. y=32x+2, y=32x3, y=3x+1, y=2x+1

Screen Shot 2019-09-29 at 2.30.05 PM.png

26. y=3x2, y=32x+1, y=2x1, y=52x+2

Screen Shot 2019-09-29 at 2.30.21 PM.png

27. y=52x2, y=3x+3, y=32x+1, y=12x+1

Screen Shot 2019-09-29 at 2.30.34 PM.png

28. y=3x+1, y=52x1, y=52x3, y=32x2

Screen Shot 2019-09-29 at 2.30.44 PM.png


29. y=3x2

30. y=52x+1

31. y=2x1

32. y=52x+2

33. y=2x+2

34. y=52x2

35. y=2x2

36. y=52x+1

37. y=2x2

38. y=52x1

39. y=32x+1

40. y=2x+2

41. y=2x3

42. y=52x1

43. y=32x+3

44. y=3x+1


45. Sketch the lines y=12x1 and y=52x2 on graph paper. As you sweep your eyes from left to right, which line rises more quickly?

46. Sketch the lines y=52x+1 and y=3x+1 on graph paper. As you sweep your eyes from left to right, which line rises more quickly?

47. Sketch the line y=12x+1 and y=3x+3. As you sweep your eyes from left to right, which line falls more quickly?

48. Sketch the line y=3x1 and y=52x2. As you sweep your eyes from left to right, which line falls more quickly?

49. Sketch the line y=3x1 and y=12x2. As you sweep your eyes from left to right, which line falls more quickly?

50. Sketch the line y=3x1 and y=12x+1. As you sweep your eyes from left to right, which line falls more quickly?

51. Sketch the lines y=32x2 and y=3x+1 on graph paper. As you sweep your eyes from left to right, which line rises more quickly?

52. Sketch the lines y=12x+3 and y=52x+1 on graph paper. As you sweep your eyes from left to right, which line rises more quickly?


Answers

1. (−1, −6)

3. (−4, 31)

5. (2, 15)

7. (−2, 14)

9. k = −53

11. k = 32

13. k = 74

15. k = 8

17. y=6x+4

19. y=x+7

21. y=2x2

23. y=7x3

25. y=3x+1

27. y=32x+1

29. y=3x2

Screen Shot 2019-09-29 at 2.37.07 PM.png

31. y=2x1

Screen Shot 2019-09-29 at 2.37.12 PM.png

33. y=2x+2

Screen Shot 2019-09-29 at 2.37.18 PM.png

35. y=2x2

Screen Shot 2019-09-29 at 2.37.27 PM.png

37. y=2x2

Screen Shot 2019-09-29 at 2.37.33 PM.png

39. y=32+1

Screen Shot 2019-09-29 at 2.37.40 PM.png

41. y=2x3

Screen Shot 2019-09-29 at 2.37.54 PM.png

43. y=32x+3

Screen Shot 2019-09-29 at 2.38.06 PM.png

45. The graph of y=52x2 rises more quickly.

47. The graph of y=3x+3 falls more quickly.

49. The graph of y=3x1 falls more quickly.

51. The graph of y=3x+1 rises more quickly.


This page titled 8.3: Graphing Linear Equations is shared under a CC BY-NC-SA 3.0 license and was authored, remixed, and/or curated by David Arnold.

  • Was this article helpful?

Support Center

How can we help?