Chapter 1 Linear Equations

1.3 Graph Linear Equations in Two Variables

Learning Objectives

By the end of this section, you will be able to:

  • Plot points in a rectangular coordinate system
  • Graph a linear equation by plotting points
  • Graph vertical and horizontal lines
  • Find the x- and y-intercepts
  • Graph a line using the intercepts

Plot Points on a Rectangular Coordinate System

Just like maps use a grid system to identify locations, a grid system is used in mathematics to locate points in a plane. This grid system is called the rectangular coordinate system, or the Cartesian coordinate system, which is named after Rene’ Descartes, the French mathematician who is credited with developing this grid system in the seventeenth century.

The rectangular coordinate system is formed by two intersecting number lines, one horizontal and one vertical. The horizontal number line is called the x-axis. The vertical number line is called the y-axis. These axes divide a plane into four regions, called quadrants. The quadrants are identified by Roman numerals, beginning on the upper right and proceeding counterclockwise.

This figure shows a square grid. A horizontal number line in the middle is labeled x. A vertical number line in the middle is labeled y. The number lines intersect at zero and together divide the square grid into 4 equally sized smaller squares. The square in the top right is labeled I. The square in the top left is labeled II. The square in the bottom left is labeled III. The square in the bottom right is labeled IV.
Figure 1. Rectangular coordinate system

In the rectangular coordinate system, every point is represented by an ordered pair. The first number in the ordered pair is the x-coordinate of the point, and the second number is the y-coordinate of the point. The phrase “ordered pair” means that the order is important.

Ordered Pair

An ordered pair, [latex](x,y)[/latex] gives the coordinates of a point in a rectangular coordinate system. The first number is the x-coordinate. The second number is the y-coordinate.

     

This figure shows the expression (x, y). The variable x is labeled x-coordinate. The variable y is labeled y-coordinate.
Figure 2. Ordered pair

What is the ordered pair of the point where the axes cross? At that point both coordinates are zero, so its ordered pair is [latex](0,0)[/latex] The point [latex](0,0)[/latex] has a special name. It is called the origin.

 

The point [latex](0,0)[/latex] is called the origin. It is the point where the x-axis and y-axis intersect.

We use the coordinates to locate a point on the xy-plane. Let’s plot the point [latex](1,3)[/latex] as an example. First, locate 1 on the x-axis and lightly sketch a vertical line through [latex]x=1[/latex] Then, locate 3 on the y-axis and sketch a horizontal line through [latex]y=3[/latex] Now, find the point where these two lines meet—that is the point with coordinates [latex](1,3)[/latex].

 

This figure shows a point plotted on the x y-coordinate plane. The x and y axes run from negative 6 to 6. The point (1, 3) is labeled. A dashed vertical line goes through the point and intersects the x-axis at xplus1. A dashed horizontal line goes through the point and intersects the y-axis at yplus3.
Figure 3. (1,3) plotted in the coordinate system

Notice that the vertical line through [latex]x=1[/latex] and the horizontal line through [latex]y=3[/latex] are not part of the graph. We just used them to help us locate the point [latex](1,3)[/latex].

When one of the coordinate is zero, the point lies on one of the axes. In the figure below, the point [latex](0,4)[/latex] is on the y-axis and the point [latex](-2,0)[/latex] is on the x-axis.

  

This figure shows points plotted on the x y-coordinate plane. The x and y axes run from negative 6 to 6. The point (negative 2, 0) is labeled and lies on the x-axis. The point (0, 4) is labeled and lies on the y-axis.
Figure 4. (0, 4) and (-2, 0) plotted in the coordinate system

Points on the Axes

Points with a y-coordinate equal to 0 are on the x-axis, and have coordinates [latex](a,0)[/latex].

Points with an x-coordinate equal to 0 are on the y-axis, and have coordinates [latex](0,b)[/latex].

Example 1

Plot each point in the rectangular coordinate system and identify the quadrant in which the point is located.

(a) [latex](-5,4)[/latex]

The first number of the coordinate pair is the x-coordinate, and the second number is the y-coordinate. To plot each point, sketch a vertical line through the x-coordinate and a horizontal line through the y-coordinate. Their intersection is the point.

Since [latex]x=-5[/latex], the point is to the left of the y-axis. Also, since [latex]y=4[/latex], the point is above the x-axis. The point [latex](-5,4)[/latex] is in Quadrant II.

The graph that shows the plotted point is at the bottom of this example.

 

(b) [latex](-3,-4)[/latex]

Since [latex]x=-3[/latex] the point is to the left of the y-axis. Also, since [latex]y=-4[/latex] the point is below the x-axis. The point [latex](-3,-4)[/latex] is in Quadrant III.

The graph that shows the plotted point is at the bottom of this example.

 

(c) [latex](2,-3)[/latex]

Since [latex]x=2[/latex] the point is to the right of the y-axis. Since [latex]y=-3[/latex] the point is below the x-axis. The point [latex](2,-3)[/latex] is in Quadrant IV.

The graph that shows the plotted point is at the bottom of this example.

 

(d) [latex](-2, 3)[/latex]

Since [latex]x=-2[/latex] the point is to the left of the y-axis. Since [latex]y=3[/latex] the point is above the x-axis. The point [latex](-2, 3)[/latex] is in Quadrant II.

The graph that shows the plotted point is at the bottom of this example.

 

(e) [latex](3,\frac{5}{2})[/latex]

Since [latex]x=3[/latex] the point is to the right of the y-axis. Since [latex]y=\frac{5}{2}[/latex] the point is above the x-axis. (It may be helpful to write [latex]\frac{5}{2}[/latex] as a mixed number or decimal.) The point [latex](3,\frac{5}{2})[/latex] is in Quadrant I.

 

This figure shows points plotted on the x y-coordinate plane. The x and y axes run from negative 6 to 6. The following points are labeled: (3, 5 divided by 2), (negative 2, 3), negative 5, 4), (negative 3, negative 4), and (2, negative 3).
Figure 5. Points plotted in the coordinate system

Exercise 1

Plot each point in a rectangular coordinate system and identify the quadrant in which the point is located:

a) [latex](-2,1)[/latex]

b) [latex](-3,-1)[/latex]

c) [latex](4,-4)[/latex]

d) [latex](-4,4)[/latex]

e) [latex](-4,\frac{3}{2})[/latex]

Solution
This figure shows points plotted on the x y-coordinate plane. The x and y axes run from negative 6 to 6. The point labeled a is 2 units to the left of the origin and 1 unit above the origin and is located in quadrant II. The point labeled b is 3 units to the left of the origin and 1 unit below the origin and is located in quadrant III. The point labeled c is 4 units to the right of the origin and 4 units below the origin and is located in quadrant IV. The point labeled d is 4 units to the left of the origin and 4 units above the origin and is located in quadrant II. The point labeled e is 4 units to the left of the origin and 1 and a half units above the origin and is located in quadrant II.
Figure 6. Points plotted in the coordinate system

 

Plot each point in a rectangular coordinate system and identify the quadrant in which the point is located:

a) [latex](-4,1)[/latex]

b) [latex](-2,3)[/latex]

c) [latex](2,-5)[/latex]

d) [latex](-2,5)[/latex]

e) [latex](-3,\frac{5}{2})[/latex]

Solution
This figure shows points plotted on the x y-coordinate plane. The x and y axes run from negative 8 to 8. The point labeled a is 4 units to the left of the origin and 1 unit above the origin and is located in quadrant II. The point labeled b is 2 units to the left of the origin and 3 units above the origin and is located in quadrant II. The point labeled c is 2 units to the right of the origin and 5 units below the origin and is located in quadrant IV. The point labeled d is 2 units to the left of the origin and 5 units above the origin and is located in quadrant II. The point labeled e is 3 units to the left of the origin and 2 and a half units above the origin and is located in quadrant II.
Figure 7. Points plotted in the coordinate system

The signs of the x-coordinate and y-coordinate affect the location of the points. You may have noticed some patterns as you graphed the points in the previous example. We can summarize sign patterns of the quadrants in this way:

Quadrants

Quadrant I Quadrant II Quadrant III Quadrant IV
[latex](x,y)[/latex] [latex](x,y)[/latex] [latex](x,y)[/latex] [latex](x,y)[/latex]
[latex](+,+)[/latex] [latex](-,+)[/latex] [latex](-,-)[/latex] [latex](+,-)[/latex]

 

This figure shows the x y-coordinate plane with the four quadrants labeled. In the top right of the plane is quadrant I labeled (plus, plus). In the top left of the plane is quadrant II labeled (minus, plus). In the bottom left of the plane is quadrant III labeled (minus, minus). In the bottom right of the plane is quadrant IV labeled (plus, minus).
Figure 8. The signs of the coordinate system

Up to now, all the equations you have solved were equations with just one variable. In almost every case, when you solved the equation you got exactly one solution. But equations can have more than one variable. Equations with two variables may be of the form  [latex]Ax+By=C[/latex]. An equation of this form is called a linear equation in two variables.

Linear Equation

An equation of the form [latex]Ax+By=C[/latex] where A and B are not both zero, is called a linear equation in two variables.

Here is an example of a linear equation in two variables, x and y.

[latex]\begin{eqnarray} Ax+By &=& C\\ x+4y &=& 8\\ A=1, B &=& 4, C=8\\ \end{eqnarray}[/latex]

 

The equation [latex]y=-3x+5[/latex] is also a linear equation. But it does not appear to be in the form [latex]Ax+By=C[/latex]. We can use the Addition Property of Equality and rewrite it in [latex]Ax+By=C[/latex] form.

[latex]\begin{array}{lrcl} & y & = & -3x+5\\ \text{Add } 3x \text{ to both sides.} & y{+3x} & = & -3x+5{+3x} \\ \text{Simplify.} & y+3x & = & 5\\ \text{Use the Commutative Property to put it in }\\ Ax+By=C \text{ form.} & 3x+y & = & 5\\ \end{array}[/latex]

 

By rewriting [latex]y=-3x+5[/latex] as  [latex]3x+y=5[/latex]  we can easily see that it is a linear equation in two variables because it is of the form [latex]Ax+By=C[/latex]. When an equation is in the form [latex]Ax+By=C[/latex] we say it is in standard form of a linear equation.

Standard Form of Linear Equation

A linear equation is in standard form when it is written [latex]Ax+By=C[/latex]

Most people prefer to have AB, and C  be integers and [latex]A\geq0[/latex] when writing a linear equation in standard form, although it is not strictly necessary.

Linear equations have infinitely many solutions. For every number that is substituted for x there is a corresponding y value. This pair of values is a solution to the linear equation and is represented by the ordered pair [latex](x,y)[/latex]. When we substitute these values of x and y into the equation, the result is a true statement, because the value on the left side is equal to the value on the right side.

 

An ordered pair [latex](x,y)[/latex] is a solution of the linear equation[latex]Ax+By=C[/latex] if the equation is a true statement when the x– and y-values of the ordered pair are substituted into the equation.

Linear equations have infinitely many solutions. We can plot these solutions in the rectangular coordinate system. The points will line up perfectly in a straight line. We connect the points with a straight line to get the graph of the equation. We put arrows on the ends of each side of the line to indicate that the line continues in both directions.

A graph is a visual representation of all the solutions of the equation. It is an example of the saying, “A picture is worth a thousand words.” The line shows you all the solutions to that 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. Points not on the line are not solutions!

 

Graph of a Linear Equation

The graph of a linear equation [latex]Ax+By=C[/latex]  is a straight line.

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

Example 2

The graph of [latex]y=2x-3[/latex] is shown.

 

This figure shows the graph of the linear equation y equals 2 x minus 3. The x and y-axes run from negative 6 to 6. The line has arrows on both ends.
Figure 9. The line y=2x-3

For each ordered pair, decide:

a) Is the ordered pair a solution to the equation?

b) Is the point on the line?

A: [latex](0,-3)[/latex]    B: [latex](3,3)[/latex]    C: [latex](2,-3)[/latex]    D: [latex](-1,-5)[/latex]

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

a)

A: [latex]({0},{-3})[/latex] B: [latex]({3},{3})[/latex] C: [latex]({2},{-3})[/latex] D: [latex]({-1},{-5})[/latex]
[latex]\begin{eqnarray} y &=& 2x-3\\ {-3} &\stackrel{?}{=}& 2({0})-3\\ -3 &=& -3\\ \end{eqnarray}[/latex] [latex]\begin{eqnarray} y &=& 2x-3\\ {3} &\stackrel{?}{=}& 2({3})-3\\ 3 &=& 3\\ \end{eqnarray}[/latex] [latex]\begin{eqnarray} y &=& 2x-3\\ {-3} &\stackrel{?}{=}& 2({2})-3\\ -3 &\neq& -1\\ \end{eqnarray}[/latex] [latex]\begin{eqnarray} y &=& 2x-3\\ {-5} &\stackrel{?}{=}& 2({-1})-3\\ -5 &=& -5\\ \end{eqnarray}[/latex]
[latex](0,-3)[/latex] is a solution. [latex](3,3)[/latex] is a solution. [latex](2,-3)[/latex] is not a solution. [latex](-1,-5)[/latex] is a solution.

b) Plot the points [latex](0,-3)[/latex], [latex](3,3)[/latex], [latex](2,-3)[/latex], and [latex](-1,-5)[/latex].

 

This figure shows the graph of the linear equation y equals 2 x minus 3 and some points graphed on the x y-coordinate plane. The x and y-axes run from negative 8 to 8. The line has arrows on both ends and goes through the points (negative 1, negative 5), (0, negative 3), and (3, 3). The point (2, negative 3) is also plotted but not on the line.
Figure 10. The line y=2x-3

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

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

Exercise 2

Use graph of [latex]y=3x-1[/latex]. For each ordered pair, decide:

a) Is the ordered pair a solution to the equation?

b) Is the point on the line?

A: [latex](0,-1)[/latex]        B: [latex](2,5)[/latex]

 

This figure shows the graph of the linear equation y equals 3 x minus 1. The x and y-axes run from negative 6 to 6. The line has arrows on both ends.
Figure 11. The line y=3x-1
Solution

a) yes, yes

b) yes, yes

 

Use graph of [latex]y=3x-1[/latex]. For each ordered pair, decide:

a) Is the ordered pair a solution to the equation?

b) Is the point on the line?

A: [latex](3,-1)[/latex]     B: [latex](-1, -4)[/latex]

 

This figure shows the graph of the linear equation y equals 3 x minus 1. The x and y-axes run from negative 6 to 6. The line has arrows on both ends.
Figure 12. The line y=3x-1
Solution

a) no, no

b) yes, yes

Graph a Linear Equation by Plotting Points

There are several methods that can be used to graph a linear equation. The first method we will use is called plotting points, or the Point-Plotting Method. We find three points whose coordinates are solutions to the equation and then plot them in a rectangular coordinate system. By connecting these points in a line, we have the graph of the linear equation.

Example 3

How to Graph a Linear Equation by Plotting Points

Graph the equation [latex]y=2x+1[/latex] by plotting points.

Step 1 is to Find three points whose coordinates are solutions to the equation. You can choose any values for x or y. In this case since y is isolated on the left side of the equations, it is easier to choose values for x. Choosing x equals 0. We substitute this into the equation y equals 2 x plus 1 to get y equals 2 times 0 plus 1. This simplifies to y equals 0 plus 1. So y equals 1. Choosing x equals 1. We substitute this into the equation y equals 2 x plus 1 to get y equals 2 times 1 plus 1. This simplifies to y equals 2 plus 1. So y equals 3. Choosing x equals negative 2. We substitute this into the equation y equals 2 x plus 1 to get y equals 2 times negative 2 plus 1. This simplifies to y equals negative 4 plus 1. So y equals negative 3. Next we want to organize the solutions in a table. For this problem we will put the three solutions we just found in a table. The table has 5 rows and 3 columns. The first row is a title row with the equation y equals 2 x plus 1. The second row is a header row with the headers x, y, and (x, y). The third row has the numbers 0, 1, and (0, 1). The fourth row has the numbers 1, 3, and (1, 3). The fifth row has the numbers negative 2, negative 3, and (negative 2, negative 3).
Figure 13. Step 1
Step 2 is to plot the points in a rectangular coordinate system. Plot: (0, 1), (1, 3), (negative 2, negative 3). The figure then shows a graph of these points plotted on the x y-coordinate plane. The x and y axes run from negative 6 to 6. The points (0, 1), (1, 3), and (negative 2, negative 3) are plotted. Check that the points line up. If they do not, carefully check your work! Do the points line up? Yes, the points in this example line up.
Figure 14. Step 2
Step 3 is to draw the line through the three points. Extend the line to fill the grid and put arrows on both ends of the line. This line is the graph of y equals 2 x plus 1. The figure shows the graph of a straight line on the x y-coordinate plane. The x and y axes run from negative 6 to 6. The points (negative 2, negative 3), (0, 1), and (1, 3) are plotted. The straight line goes through these three points and has arrows on both ends.
Figure 15. Step 3

Exercise 3

Graph the equation by plotting points: [latex]y=2x-3[/latex]. Check your solutions to ensure they are on the line in the graph below.

Solution

 

This figure shows a straight line graphed on the x y-coordinate plane. The x and y-axes run from negative 8 to 8. The line goes through the points (negative 2, negative 7), (negative 1, negative 5), (0, negative 3), (1, negative 1), (2, 1), (3, 3), (4, 5), and (5, 7).
Figure 16. The line y=2x-3

 

 

Graph the equation by plotting points: [latex]y=-2x+4[/latex]. Check your solutions to ensure they are on the line in the graph below. 

Solution

 

This figure shows a straight line graphed on the x y-coordinate plane. The x and y-axes run from negative 8 to 8. The line goes through the points (negative 2, negative 7), (negative 1, negative 5), (0, negative 3), (1, negative 1), (2, 1), (3, 3), (4, 5), and (5, 7).
Figure 17. The line y=-2x+4

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

Graph a linear equation by plotting points.
  1. Find three points whose coordinates are solutions to the equation. Organize them in a table.
  2. Plot the points in a rectangular coordinate system. Check that the points line up. If they do not, carefully check your work.
  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 these illustrations.

 

The figure shows two images. In the first image there are three points with a straight line going through all three. In the second image there are three points that do not all lie on a straight line.
Figure 18. (a) Three points make up a line. (b) The points are not in a straight line.

When an equation includes a fraction as the coefficient of x, we can still substitute any numbers for x. The arithmetic is easier if we make “good” choices for the values of x. Zero is a good choice for the value of x, and multiples of the denominator are good choices, because they will eliminate the fraction. This will avoid fractional answers, which are hard to graph precisely.

Example 4

Graph the equation: [latex]y=\frac{1}{2}x+3[/latex].

Find three points that are solutions to the equation. Since this equation has the fraction [latex]\frac{1}{2}[/latex] as a coefficient of x, we will choose values of x carefully. We will use zero as one choice and multiples of 2 for the other choices. Why are multiples of two a good choice for values of x? By choosing multiples of 2 the multiplication by [latex]\frac{1}{2}[/latex] simplifies to a whole number.

[latex]\begin{eqnarray} x &=& 0\\ y &=& \frac{1}{2}x+3\\ y &=& \frac{1}{2}({0})+3\\ y &=& 0+3\\ y &=& 3\\ \end{eqnarray}[/latex] [latex]\begin{eqnarray} x &=& 2\\ y &=& \frac{1}{2}x+3\\ y &=& \frac{1}{2}({2})+3\\ y &=& 1+3\\ y &=& 4\\ \end{eqnarray}[/latex] [latex]\begin{eqnarray} x &=& 4\\ y &=& \frac{1}{2}x+3\\ y &=& \frac{1}{2}({4})+3\\ y &=& 2+3\\ y &=& 5\\ \end{eqnarray}[/latex]

The points are shown in the figure below.

[latex]y=\frac{1}{2}x+3[/latex]
[latex]x[/latex] [latex]y[/latex] [latex](x,y)[/latex]
[latex]0[/latex] [latex]3[/latex] [latex](0,3)[/latex]
[latex]2[/latex] [latex]4[/latex] [latex](2,4)[/latex]
[latex]4[/latex] [latex]5[/latex] [latex](4,5)[/latex]

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

 

The figure shows the graph of a straight line on the x y-coordinate plane. The x and y axes run from negative 7 to 7. The points (0, 3), (2, 4), and (4, 5) are plotted. The straight line goes through the three points and has arrows on both ends. The line is labeled y equals 1 divided by 2 times x plus 3.
Figure 19. The plotted points in a line

Exercise 4

Graph the equation: [latex]y=\frac{1}{3}x-1[/latex].

Solution

 

This figure shows a straight line graphed on the x y-coordinate plane. The x and y-axes run from negative 12 to 12. The line goes through the points (negative 12, negative 5), (negative 9, negative 4), (negative 6, negative 3), (negative 3, negative 2), (0, negative 1), (3, 0), (6, 1), (9, 2), and (12, 3).
Figure 20. Graph of the line

 

Graph the equation: [latex]y=\frac{1}{4}x+2[/latex].

Solution

 

This figure shows a straight line graphed on the x y-coordinate plane. The x and y-axes run from negative 12 to 12. The line goes through the points (negative 12, negative 1), (negative 8, 0), (negative 4, 1), (0, 2), (4, 3), (8, 4), and (12, 5).
Figure 21. Graph of the line

Graph Vertical and Horizontal Lines

Some linear equations have only one variable. They may have just x and no y, or just y without an x. This changes how we make a table of values to get the points to plot.

Let’s consider the equation [latex]x=-3[/latex] This equation has only one variable, x. The equation says that x is always equal to[latex]-3[/latex] so its value does not depend on y. Regardless of the value of y, the value of x is always [latex]-3[/latex].

To make a table of values, write [latex]-3[/latex] in for all the x-values, then choose any values for y. We will use 1, 2, and 3 for the y-coordinates.

[latex]x=-3[/latex]
[latex]x[/latex] [latex]y[/latex] [latex](x,y)[/latex]
[latex]-3[/latex] [latex]1[/latex] [latex](-3,1)[/latex]
[latex]-3[/latex] [latex]2[/latex] [latex](-3,2)[/latex]
[latex]-3[/latex] [latex]3[/latex] [latex](-3,3)[/latex]

Plot the points from the table and connect them with a straight line. Notice that we have graphed a vertical line passing through the x-axis at [latex]-3[/latex].

 

The figure shows the graph of a straight vertical line on the x y-coordinate plane. The x and y axes run from negative 7 to 7. The points (negative 3, 1), (negative 3, 2), and (negative 3, 3) are plotted. The line goes through the three points and has arrows on both ends. The line is labeled x equals negative 3.
Figure 22. Vertical line

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

[latex]y=4[/latex]
[latex]x[/latex] [latex]y[/latex] [latex](x,y)[/latex]
[latex]0[/latex] [latex]4[/latex] [latex](0,4)[/latex]
[latex]2[/latex] [latex]4[/latex] [latex](2,4)[/latex]
[latex]4[/latex] [latex]4[/latex] [latex](4,4)[/latex]

In this figure, we have graphed a horizontal line passing through the y-axis at 4.

 

The figure shows the graph of a straight horizontal line on the x y-coordinate plane. The x and y axes run from negative 7 to 7. The points (0, 4), (2, 4), and (4, 4) are plotted. The line goes through the three points and has arrows on both ends. The line is labeled y equals 4.
Figure 23. Horizontal line

Vertical and Horizontal Lines

vertical line is the graph of an equation of the form [latex]x=a[/latex].

\phantom{\rule{12em}{0ex}}The line passes through the x-axis at [latex](a,0)[/latex].

horizontal line is the graph of an equation of the form [latex]y=b[/latex].

\phantom{\rule{12em}{0ex}}The line passes through the y-axis at [latex](0,b)[/latex].

Example 5

Graph the following lines.

a) [latex]x=2[/latex]

The equation has only one variable, x, and x is always equal to 2. We create a table where x is always 2 and then put in any values for y. The graph is a vertical line passing through the x-axis at 2.

[latex]x=2[/latex]
x y [latex](x,y)[/latex]
2 1 [latex](2,1)[/latex]
2 2 [latex](2,2)[/latex]
2 3 [latex](2,3)[/latex]
The figure shows the graph of a straight vertical line on the x y-coordinate plane. The x and y axes run from negative 7 to 7. The points (2, 1), (2, 2), and (2, 3) are plotted. The line goes through the three points and has arrows on both ends. The line is labeled x equals 2.
Figure 24. The line x=2

 

b) [latex]y=-1[/latex]

Similarly, the equation [latex]y=-1[/latex] has only one variable, y. The value of y is constant. All the ordered pairs in the next table have the same y-coordinate. The graph is a horizontal line passing through the y-axis at [latex]-1[/latex].

[latex]y=-1[/latex]
x y [latex](x,y)[/latex]
[latex]0[/latex] [latex]-1[/latex] [latex](0,-1)[/latex]
[latex]3[/latex] [latex]-1[/latex] [latex](3,-1)[/latex]
[latex]-3[/latex] [latex]-1[/latex] [latex](-3,-1)[/latex]

 

The figure shows the graph of a straight horizontal line on the x y-coordinate plane. The x and y axes run from negative 7 to 7. The points (negative 3, negative 1), (zero, negative 1), and (3, negative 1) are plotted. The line goes through the three points and has arrows on both ends. The line is labeled y equals negative 1.
Figure 25. The line y=-1

Exercise 5

Graph the equations:

a) [latex]x=5[/latex]

b) [latex]y=-4[/latex]

Solution

a)

The figure shows the graph of a straight vertical line on the x y-coordinate plane. The x and y axes run from negative 12 to 12. The line goes through the points (5, negative 3), (5, negative 2), (5, negative 1), (5, 0), (5, 1), (5, 2), and (5, 3).
Figure 26. The line x=5

b)

The figure shows the graph of a straight horizontal line on the x y-coordinate plane. The x and y axes run from negative 12 to 12. The line goes through the points (negative 3, negative 4), (negative 2, negative 4), (negative 1, negative 4), (0, negative 4), (1, negative 4), (2, negative 4), and (3, negative 4).
Figure 27. The line y=-4

 

 

Graph the equations:

a) [latex]x=-2[/latex]

b) [latex]y=3[/latex]

Solution

a)

The figure shows the graph of a straight vertical line on the x y-coordinate plane. The x and y axes run from negative 12 to 12. The line goes through the points (negative 2, negative 3), (negative 2, negative 2), (negative 2, negative 1), (negative 2, 0), (negative 2, 1), (negative 2, 2), and (negative 2, 3).
Figure 28. The line x=-1

b)

The figure shows the graph of a straight horizontal line on the x y-coordinate plane. The x and y axes run from negative 12 to 12. The line goes through the points (negative 3, 3), (negative 2, 3), (negative 1, 3), (0, 3), (1, 3), (2, 3), and (3, 3).
Figure 29. The line y=3

What is the difference between the equations [latex]y=4x[/latex] and [latex]y=4[/latex]?

The equation [latex]y=4x[/latex] has both x and y. The value of y depends on the value of x, so the y -coordinate changes according to the value of x. The equation [latex]y=4[/latex] has only one variable. The value of y is constant, it does not depend on the value of x, so the y-coordinate is always 4.

 

This figure has two tables. The first table has 5 rows and 3 columns. The first row is a title row with the equation y equals 4 x. The second row is a header row with the headers x, y, and (x, y). The third row has the numbers 0, 0, and (0, 0). The fourth row has the numbers 1, 4, and (1, 4). The fifth row has the numbers 2, 8, and (2, 8). The second table has 5 rows and 3 columns. The first row is a title row with the equation y equals 4. The second row is a header row with the headers x, y, and (x, y). The third row has the numbers 0, 4, and (0, 4). The fourth row has the numbers 1, 4, and (1, 4). The fifth row has the numbers 2, 4, and (2, 4).
Figure 30. Tables indicating coordinates for y=4x and y=4
The figure shows the graphs of a straight horizontal line and a straight slanted line on the same x y-coordinate plane. The x and y axes run from negative 7 to 7. The horizontal line goes through the points (0, 4), (1, 4), and (2,4) and is labeled y equals 4. The slanted line goes through the points (0, 0), (1, 4), and (2, 8), and is labeled y equals 4 x.
Figure 31. Graph of y=4x and y=4

Notice, in the graph, the equation [latex]y=4x[/latex] gives a slanted line, while [latex]y=4[/latex] gives a horizontal line.

Example 6

Graph [latex]y=-3x[/latex] and [latex]y=-3[/latex] in the same rectangular coordinate system.

We notice that the first equation has the variable x, while the second does not. We make a table of points for each equation and then graph the lines. The two graphs are shown.

 

This figure has two tables. The first table has 5 rows and 3 columns. The first row is a title row with the equation y equals negative 3 x. The second row is a header row with the headers x, y, and (x, y). The third row has the numbers 0, 0, and (0, 0). The fourth row has the numbers 1, negative 3, and (1, negative 3). The fifth row has the numbers 2, negative 6, and (2, negative 6). The second table has 5 rows and 3 columns. The first row is a title row with the equation y equals negative 3. The second row is a header row with the headers x, y, and (x, y). The third row has the numbers 0, negative 3, and (0, negative 3). The fourth row has the numbers 1, negative 3, and (1, negative 3). The fifth row has the numbers 2, negative 3, and (2, negative 3).
Figure 32. Table indicating coordinates for y=-3x and y=-3

 

The figure shows the graphs of a straight horizontal line and a straight slanted line on the same x y-coordinate plane. The x and y axes run from negative 7 to 7. The horizontal line goes through the points (0, negative 3), (1, negative 3), and (2, negative 3) and is labeled y equals negative 3. The slanted line goes through the points (0, 0), (1, negative 3), and (2, negative 6) and is labeled y equals negative 3 x.
Figure 33. Graphs of y=-3x and y=-3

Exercise 6

Graph the equations in the same rectangular coordinate system: [latex]y=-4x[/latex] and [latex]y=-4[/latex].

Solution

 

The figure shows the graphs of a straight horizontal line and a straight slanted line on the same x y-coordinate plane. The x and y axes run from negative 12 to 12. The horizontal line goes through the points (0, negative 4), (1, negative 4), and (2, negative 4). The slanted line goes through the points (0, 0), (1, negative 4), and (2, negative 8).
Figure 34. Graph of y=-4x and y=-4

 

Graph the equations in the same rectangular coordinate system: [latex]y=3[/latex] and [latex]y=3x[/latex]

Solution

 

The figure shows the graphs of a straight horizontal line and a straight slanted line on the same x y-coordinate plane. The x and y axes run from negative 12 to 12. The horizontal line goes through the points (0, 3), (1, 3), and (2, 3). The slanted line goes through the points (0, 0), (1, 3), and (2, 6).
Figure 35. Graph of y=3 and y=3x

Find x– and y-intercepts

Every linear equation can be represented by a unique line that shows all the solutions of the equation. We have seen that when graphing a line by plotting points, you can use any three solutions to graph. This means that two people graphing the line might use different sets of three points.

At first glance, their two lines might not appear to be the same, since they would have different points labeled. But if all the work was done correctly, the lines should be exactly the same. One way to recognize that they are indeed the same line is to look at where the line crosses the x-axis and the y-axis. These points are called the intercepts of a line.

 

The points where a line crosses the x-axis and the y-axis are called the intercepts of the line.

Let’s look at the graphs of the lines.

 

The figure shows four graphs of different equations. In example a the graph of 2 x plus y equals 6 is graphed on the x y-coordinate plane. The x and y axes run from negative 6 to 6. The points (0, 6) and (3, 0) are plotted and labeled. A straight line goes through both points and has arrows on both ends. In example b the graph of 3 x minus 4 y equals 12 is graphed on the x y-coordinate plane. The x and y axes run from negative 6 to 6. The points (0, negative 3) and (4, 0) are plotted and labeled. A straight line goes through both points and has arrows on both ends. In example c the graph of x minus y equals 5 is graphed on the x y-coordinate plane. The x and y axes run from negative 6 to 6. The points (0, negative 5) and (5, 0) are plotted and labeled. A straight line goes through both points and has arrows on both ends. In example d the graph of y equals negative 2 x is graphed on the x y-coordinate plane. The x and y axes run from negative 6 to 6. The point (0, 0) is plotted and labeled. A straight line goes through this point and the points (negative 1, 2) and (1, negative 2) and has arrows on both ends.
Figure 36. Intercepts of lines

Let’s look at the points where these lines cross the x-axis, and the y-axis.

Figure Line crosses x-axis at this point Line crosses y-axis at this point
a [latex](3,0)[/latex] [latex](0,6)[/latex]
b [latex](4,0)[/latex] [latex](0,-3)[/latex]
c [latex](5,0)[/latex] [latex](0,-5)[/latex]
d [latex](0,0)[/latex] [latex](0,0)[/latex]

Do you see a pattern? See the figure below.

For each line, the y-coordinate of the point where the line crosses the x-axis is zero. The point where the line crosses the x-axis has the form [latex](a,0)[/latex] and is called the x-intercept of the line. The x-intercept occurs when y is zero.

In each line, the xcoordinate of the point where the line crosses the y-axis is zero. The point where the line crosses the y-axis has the form [latex](0,b)[/latex] and is called the y-intercept of the line. The y-intercept occurs when x is zero.

The x-intercept is the point [latex](a,0)[/latex] where the line crosses the x-axis.

The y-intercept is the point [latex](0,b)[/latex] where the line crosses the y-axis.

 

The table has 3 rows and 2 columns. The first row is a header row with the headers x and y. The second row contains a and 0. The third row contains 0 and b.
Figure 37. Table indicating x- and y-intercepts

Example 7

Find the x– and y-intercepts on each graph shown.

 

The figure has three graphs. Figure a shows a straight line graphed on the x y-coordinate plane. The x and y axes run from negative 8 to 8. The line goes through the points (negative 8, 6), (negative 4, 4), (0, 2), (4, 0), (8, negative 2). Figure b shows a straight line graphed on the x y-coordinate plane. The x and y axes run from negative 8 to 8. The line goes through the points (0, negative 6), (2, 0), and (4, 6). Figure c shows a straight line graphed on the x y-coordinate plane. The x and y axes run from negative 8 to 8. The line goes through the points (negative 5, 0), (negative 3, negative 2), (0, negative 5), (1, negative 6), and (2, negative 7).
Figure 38. Three graphs

(a) The graph crosses the x-axis at the point [latex](4,0)[/latex]. The x-intercept is [latex](4,0)[/latex].

The graph crosses the y-axis at the point [latex](0,2)[/latex]. The y-intercept is [latex](0,2)[/latex].

(b) The graph crosses the x-axis at the point [latex](2,0)[/latex]. The x-intercept is [latex](2,0)[/latex].

The graph crosses the y-axis at the point [latex](0,-6)[/latex]. The y-intercept is [latex](0,-6)[/latex].

(c) The graph crosses the x-axis at the point [latex](-5,0)[/latex]. The x-intercept is [latex](-5,0)[/latex].

The graph crosses the y-axis at the point [latex](0,-5)[/latex]. The y-intercept is [latex](0,-5)[/latex].

Exercise 7

Recognizing that the x-intercept occurs when y is zero and that the y-intercept occurs when x is zero, gives us a method to find the intercepts of a line from its equation. To find the x-intercept, let [latex]y=0[/latex] and solve for x. To find the y-intercept, let [latex]x=0[/latex] and solve for y.

Find the x– and y-intercepts from the Equation of a Line

Use the equation of the line to find:

  • the x-intercept of the line, let [latex]y=0[/latex] and solve for x.
  • the y-intercept of the line, let [latex]x=0[/latex] and solve for y.

Example 8

Find the intercepts of [latex]2x+y=8[/latex].

We will let [latex]y=0[/latex] to find the x-intercept, and let [latex]x=0[/latex] to find the y-intercept. Complete the table below.

The figure has a table with 4 rows and 2 columns. The first row is a title row with the equation 2 x plus y equals 8. The second row is a header row with the headers x and y. The third row is labeled x-intercept and has the first column blank and a 0 in the second column. The fourth row is labeled y-intercept and has a 0 in the first column and the second column blank.
Figure 39. Table of x- and y-intercepts
[latex]\begin{array}{lrcl} \text{To find the x-intercept, let } y=0.\\ \text {Let } y=0. & 2x+0 & = & 8\\ \text{Simplify.} & 2x & = & 8\\ & x & = & 4\\ \text{The x-intercept is } (4,0). \end{array}[/latex]
[latex]\begin{array}{lrcl} \text{To find the y-intercept, let } x=0.\\ \text {Let } x=0. & 2(0)+y & = & 8\\ \text{Simplify.} & 0+y & = & 8\\ & y & = & 8\\ \text{The y-intercept is } (0,8). \end{array}[/latex]

The intercepts are the points [latex](4,0)[/latex] and [latex](0,8)[/latex] as shown in the table.

[latex]2x+y=8[/latex]
[latex]x[/latex] [latex]y[/latex]
[latex]4[/latex] [latex]0[/latex]
[latex]0[/latex] [latex]8[/latex]

 

Exercise 8

 

 

Graph a Line Using the Intercepts

To graph a linear equation by plotting points, you need to find three points whose coordinates are solutions to the equation. You can use the x- and y- intercepts as two of your three points. Find the intercepts, and then find a third point to ensure accuracy. Make sure the points line up—then draw the line. This method is often the quickest way to graph a line.

Example 9

How to Graph a Line Using the Intercepts

Graph [latex]-x+2y=6[/latex] using the intercepts.

Step 1 is to find the x and y-intercepts of the line. To find the x-intercept let y equal 0 and solve for x. The equation negative x plus 2 y equals 6 becomes negative x plus 2 times 0 equals 6. This simplifies to negative x equals 6. This is equivalent to x equals negative 6. The x-intercept is (negative 6, 0). To find the y-intercept let x equal 0 and solve for y. The equation negative x plus 2 y equals 6 becomes negative 0 plus 2 y equals 6. This simplifies to negative 2 y equals 6. This is equivalent to y equals 3. The y-intercept is (0, 3).
Figure 40. Step 1
Step 2 is to find another solution to the equation. We’ll use x equals 2. The equation negative x plus 2 y equals 6 becomes negative 2 plus 2 y equals 6. This simplifies to 2 y equals 8. This is equivalent to y equals 4. The third point is (2, 4).
Figure 41. Step 2
Step 3 is to plot the three points. The figure shows a table with 4 rows and 3 columns. The first row is a header row with the headers x, y, and (x, y). The second row contains negative 6, 0, and (negative 6, 0). The third row contains 0, 3, and (0, 3). The fourth row contains 2, 4, and (2, 4). The figure also has a graph of the three points on the x y-coordinate plane. The x and y-axes run from negative 6 to 6. The three points (negative 6, 0), (0, 3), and (2, 4) are plotted and labeled.
Figure 42. Step 3
Step 4 is to draw the line. The figure shows a graph of a straight line on the x y-coordinate plane. The x and y-axes run from negative 6 to 6. The straight line goes through the points (negative 6, 0), (0, 3), and (2, 4).
Figure 43. Step 4

Exercise 9

Graph using the intercepts: [latex]x-2y=4[/latex].

Solution
The figure shows a graph of a straight line on the x y-coordinate plane. The x and y-axes run from negative 12 to 12. The straight line goes through the points (negative 4, negative 4), (negative 2, negative 3), (0, negative 2), (2, negative 1), (4, 0), (6, 1), and (8, 2).
Figure 44. The line x-2y=4

 

Graph using the intercepts: [latex]-x+3y=6[/latex].

Solution

 

The figure shows a graph of a straight line on the x y-coordinate plane. The x and y-axes run from negative 12 to 12. The straight line goes through the points (negative 9, negative 1), (negative 6, 0), (negative 3, 1), (0, 2), (3, 3), (6, 4), and (9, 5).
Figure 45. The line -x+3y=6

The steps to graph a linear equation using the intercepts are summarized here:

Graph a linear equation using the intercepts.
  1. Find the x– and y-intercepts of the line.
    • Let [latex]y=0[/latex] and solve for x.
    • Let [latex]x=0[/latex] and solve for y.
  2. Find a third solution to the equation.
  3. Plot the three points and check that they line up.
  4. Draw the line.

Example 10

Graph [latex]4x-3y=12[/latex] using the intercepts.

Find the intercepts and a third point.

x-intercept, let y=0 y-intercept, let x=0 third point, let y=4
[latex]\begin{eqnarray} 4x-3y &=& 12\\ 4x-3({0}) &=& 12\\ 4x &=& 12\\ x &=& 3\\ \end{eqnarray}[/latex] [latex]\begin{eqnarray} 4x-3y &=& 12\\ 4({0})-3y &=& 12\\ -3y &=& 12\\ y &=& -4\\ \end{eqnarray}[/latex] [latex]\begin{eqnarray} 4x-3y &=& 12\\ 4x-3({4}) &=& 12\\ 4x-12 &=& 12\\ 4x &=& 24\\ x &=& 6\\ \end{eqnarray}[/latex]

We list the points in the table and show the graph.

[latex]4x-3y=12[/latex]
[latex]x[/latex] [latex]y[/latex] [latex](x,y)[/latex]
[latex]3[/latex] [latex]0[/latex] [latex](3,0)[/latex]
[latex]0[/latex] [latex]-4[/latex] [latex](0,-4)[/latex]
[latex]6[/latex] [latex]4[/latex] [latex](6,4)[/latex]

 

The figure shows a graph of the equation 4 x minus 3 y equals 12 on the x y-coordinate plane. The x and y-axes run from negative 7 to 7. The straight line goes through the points (0, negative 4), (3, 0), and (6, 4).
Figure 46. The line 4x-3y=12

Exercise 10

Graph using the intercepts: [latex]5x-2y=10[/latex].

Solution

 

The figure shows a graph of a straight line on the x y-coordinate plane. The x and y-axes run from negative 8 to 8. The straight line goes through the points (0, negative 5), (2, 0), and (4, 5).
Figure 47. The line 5x-2y=10

 

Graph using the intercepts: [latex]3x-4y=12[/latex].

Solution

 

The figure shows a graph of a straight line on the x y-coordinate plane. The x and y-axes run from negative 8 to 8. The straight line goes through the points (negative 4, negative 6), (0, negative 3), (4, 0), and (8, 3).
Figure 48. The line 3x-4y=12

When the line passes through the origin, the x-intercept and the y-intercept are the same point.

Example 11

Graph [latex]y=5x[/latex] using the intercepts.

x-intercept, let [latex]y=0[/latex].

y-intercept, let [latex]x=0[/latex].

[latex]\begin{eqnarray} y &=& 5x\\ {0} &=& 5x\\ 0 &=& x\\ \end{eqnarray}[/latex] [latex]\begin{eqnarray} y &=& 5x\\ y &=& 5\cdot{0}\\ y &=& 0\\ \end{eqnarray}[/latex]

[latex](0,0)[/latex]

[latex](0,0)[/latex]

This line has only one intercept. It is the point [latex](0,0)[/latex].

To ensure accuracy, we need to plot three points. Since the x– and y-intercepts are the same point, we need two more points to graph the line.

Let [latex]x=1[/latex].

Let [latex]x=-1[/latex].

[latex]\begin{eqnarray} y &=& 5x\\ y &=& 5\cdot{1}\\ y &=& 5\\ \end{eqnarray}[/latex] [latex]\begin{eqnarray} y &=& 5x\\ y &=& 5{-1}\\ y &=& -5\\ \end{eqnarray}[/latex]

The resulting three points are summarized in the table.

[latex]y=5x[/latex]
[latex]x[/latex] [latex]y[/latex] [latex](x,y)[/latex]
[latex]0[/latex] [latex]0[/latex] [latex](0,0)[/latex]
[latex]1[/latex] [latex]5[/latex] [latex](1,5)[/latex]
[latex]-1[/latex] [latex]-5[/latex] [latex](-1,-5)[/latex]

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

 

The figure shows a graph of the equation y equals 5 x on the x y-coordinate plane. The x and y-axes run from negative 8 to 8. The straight line goes through the points (negative 1, negative 5), (0, 0), and (1, 5).
Figure 49. The line y=5x

Exercise 11

Graph using the intercepts: [latex]y=4x[/latex].

Solution

 

The figure shows a graph of a straight line on the x y-coordinate plane. The x and y-axes run from negative 12 to 12. The straight line goes through the points (negative 1, negative 4), (0, 0), and (1, 4).
Figure 50. The line y=4x

 

Graph the intercepts: [latex]y=-x[/latex]. 

Solution

 

The figure shows a graph of a straight line on the x y-coordinate plane. The x and y-axes run from negative 12 to 12. The straight line goes through the points (negative 1, 1), (0, 0), and (1, negative 1).
Figure 51. The line y=-x

Media Attributions

definition

License

Icon for the Creative Commons Attribution-ShareAlike 4.0 International License

Finite Mathematics Copyright © 2024 by LOUIS: The Louisiana Library Network is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License, except where otherwise noted.

Share This Book