Graphs and Functions

Slope of a Line

Learning Objectives

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

  • Find the slope of a line
  • Graph a line given a point and the slope
  • Graph a line using its slope and intercept
  • Choose the most convenient method to graph a line
  • Graph and interpret applications of slope–intercept
  • Use slopes to identify parallel and perpendicular lines

Before you get started, take this readiness quiz.

  1. Simplify: \frac{\left(1-4\right)}{\left(8-2\right)}.

    If you missed this problem, review (Figure).

  2. Divide: \frac{0}{4},\frac{4}{0}.

    If you missed this problem, review (Figure).

  3. Simplify: \frac{15}{-3},\frac{-15}{3},\frac{-15}{-3}.

    If you missed this problem, review (Figure).

Find the Slope of a Line

When you graph linear equations, you may notice that some lines tilt up as they go from left to right and some lines tilt down. Some lines are very steep and some lines are flatter.

In mathematics, the measure of the steepness of a line is called the slope of the line.

The concept of slope has many applications in the real world. In construction the pitch of a roof, the slant of the plumbing pipes, and the steepness of the stairs are all applications of slope. and as you ski or jog down a hill, you definitely experience slope.

We can assign a numerical value to the slope of a line by finding the ratio of the rise and run. The rise is the amount the vertical distance changes while the run measures the horizontal change, as shown in this illustration. Slope is a rate of change. See (Figure).

This figure has a diagram of two arrows. The first arrow is vertical and pointed up and labeled “rise”. The second arrow starts at the end of the first. The second arrow is horizontal and pointed right and labeled “run”.
Slope of a Line

The slope of a line is m=\frac{\text{rise}}{\text{run}}.

The rise measures the vertical change and the run measures the horizontal change.

To find the slope of a line, we locate two points on the line whose coordinates are integers. Then we sketch a right triangle where the two points are vertices and one side is horizontal and one side is vertical.

To find the slope of the line, we measure the distance along the vertical and horizontal sides of the triangle. The vertical distance is called the rise and the horizontal distance is called the run,

Find the slope of a line from its graph using m=\frac{\text{rise}}{\text{run}}.
  1. Locate two points on the line whose coordinates are integers.
  2. Starting with one point, sketch a right triangle, going from the first point to the second point.
  3. Count the rise and the run on the legs of the triangle.
  4. Take the ratio of rise to run to find the slope: m=\frac{\text{rise}}{\text{run}}.

Find the slope of the line shown.

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 1 to 9. The y-axis runs from negative 1 to 7. The line goes through the points (0, 5), (3, 3), and (6, 1).

Locate two points on the graph whose

coordinates are integers.

\left(0,5\right) and \left(3,3\right)
Starting at \left(0,5\right), sketch a right triangle to

\left(3,3\right) as shown in this graph.

.
Count the rise— since it goes down, it is negative. The rise is -2.
Count the run. The run is 3.
Use the slope formula. m=\frac{\text{rise}}{\text{run}}
Substitute the values of the rise and run. m=\frac{-2}{3}
Simplify. m=-\frac{2}{3}
The slope of the line is -\frac{2}{3}.
So y decreases by 2 units as x increases by 3 units.

Find the slope of the line shown.

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 1 to 5. The y-axis runs from negative 6 to 1. The line goes through the points (0, negative 2) and (3, negative 6).

-\frac{4}{3}

Find the slope of the line shown.

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 3 to 6. The y-axis runs from negative 3 to 2. The line goes through the points (0, 1) and (5, negative 2).

-\frac{3}{5}

How do we find the slope of horizontal and vertical lines? To find the slope of the horizontal line, y=4, we could graph the line, find two points on it, and count the rise and the run. Let’s see what happens when we do this, as shown in the graph below.

The figure then shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 1 to 6. The y-axis runs from negative 1 to 8. The line goes through the points (0, 4) and (3, 4). What is the rise? The rise is 0. What is the run? The run is 3. What is the slope? m equals rise divided by run. m equals 0 divided by 3. m equals 0. The slope of the horizontal line y equals 4 is 0.

\begin{array}{cc}\text{What is the rise?}\hfill & \text{The rise is 0.}\hfill \\ \text{What is the run?}\hfill & \text{The run is 3.}\hfill \\ \text{What is the slope?}\hfill & m=\frac{\text{rise}}{\text{run}}\hfill \\ & m=\frac{0}{3}\hfill \\ & m=0\hfill \\ & \text{The slope of the horizontal line}\phantom{\rule{0.2em}{0ex}}y=4\phantom{\rule{0.2em}{0ex}}\text{is 0.}\hfill \end{array}

Let’s also consider a vertical line, the line x=3, as shown in the graph.

The figure then shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 2 to 6. The y-axis runs from negative 3 to 3. The line goes through the points (3, 0) and (3, 2). What is the rise? The rise is 2. What is the run? The run is 0. What is the slope? m equals rise divided by run. m equals 2 divided by 0.

\begin{array}{cc}\text{What is the rise?}\hfill & \text{The rise is 2.}\hfill \\ \\ \text{What is the run?}\hfill & \text{The run is 0.}\hfill \\ \\ \text{What is the slope?}\hfill & m=\frac{\text{rise}}{\text{run}}\hfill \\ & m=\frac{2}{0}\hfill \end{array}

The slope is undefined since division by zero is undefined. So we say that the slope of the vertical line x=3 is undefined.

All horizontal lines have slope 0. When the y-coordinates are the same, the rise is 0.

The slope of any vertical line is undefined. When the x-coordinates of a line are all the same, the run is 0.

Slope of a Horizontal and Vertical Line

The slope of a horizontal line, y=b, is 0.

The slope of a vertical line, x=a, is undefined.

Find the slope of each line: x=8 y=-5.

x=8

This is a vertical line. Its slope is undefined.

y=-5

This is a horizontal line. It has slope 0.

Find the slope of the line: x=-4.

undefined

Find the slope of the line: y=7.

0

Quick Guide to the Slopes of Lines

The image shows four arrows. The first arrow is slanted and pointing up and to the right and is labeled “positive”. The second arrow is slanted and pointing down and to the right and labeled “negative”. The third arrow is horizontal and labeled “zero”. The fourth arrow is vertical and labeled “undefined”.

Sometimes we’ll need to find the slope of a line between two points when we don’t have a graph to count out the rise and the run. We could plot the points on grid paper, then count out the rise and the run, but as we’ll see, there is a way to find the slope without graphing. Before we get to it, we need to introduce some algebraic notation.

We have seen that an ordered pair \left(x,y\right) gives the coordinates of a point. But when we work with slopes, we use two points. How can the same symbol \left(x,y\right) be used to represent two different points? Mathematicians use subscripts to distinguish the points.

\begin{array}{cc}\left({x}_{1},{y}_{1}\right)\hfill & \text{read ``}x\phantom{\rule{0.2em}{0ex}}\text{sub 1,}\phantom{\rule{0.2em}{0ex}}y\phantom{\rule{0.2em}{0ex}}\text{sub 1''}\hfill \\ \left({x}_{2},{y}_{2}\right)\hfill & \text{read ``}x\phantom{\rule{0.2em}{0ex}}\text{sub 2,}\phantom{\rule{0.2em}{0ex}}y\phantom{\rule{0.2em}{0ex}}\text{sub 2''}\hfill \end{array}

We will use \left({x}_{1},{y}_{1}\right) to identify the first point and \left({x}_{2},{y}_{2}\right) to identify the second point.

If we had more than two points, we could use \left({x}_{3},{y}_{3}\right),\left({x}_{4},{y}_{4}\right), and so on.

Let’s see how the rise and run relate to the coordinates of the two points by taking another look at the slope of the line between the points \left(2,3\right) and \left(7,6\right), as shown in this graph.

The figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 1 to 7. The y-axis runs from negative 1 to 7. The line goes through the points (2, 3) and (7, 6). A right triangle is drawn by connecting the three points (2, 3), (2, 6), and (7, 6). The point (2, 3) is labeled (x 1, y 1). The point (7, 6) is labeled (x 2, y 2). The vertical side of the triangle has labels y 2 minus y 1, 6 minus 3, and 3. The horizontal side of the triangle has labels x 2 minus x 1, 7 minus 2, and 5.

\begin{array}{cccc}\text{Since we have two points, we will use subscript notation.}\hfill & & & \left(\stackrel{{x}_{1},}{2,}\stackrel{{y}_{1}}{3}\right)\phantom{\rule{0.2em}{0ex}}\left(\stackrel{{x}_{2},{y}_{2}}{7,6}\right)\hfill \\ & & & m=\frac{\text{rise}}{\text{run}}\hfill \\ \text{On the graph, we counted the rise of 3 and the run of 5.}\hfill & & & m=\frac{3}{5}\hfill \\ \text{Notice that the rise of 3 can be found by subtracting the}\hfill & & & \\ y\text{-coordinates, 6 and 3, and the run of 5 can be found by}\hfill & & & \\ \text{subtracting the}\phantom{\rule{0.2em}{0ex}}x\text{-coordinates 7 and 2.}\hfill & & & \\ \text{We rewrite the rise and run by putting in the coordinates.}\hfill & & & m=\frac{6-3}{7-2}\hfill \\ \\ \\ \text{But 6 is}\phantom{\rule{0.2em}{0ex}}{y}_{2},\phantom{\rule{0.2em}{0ex}}\text{the}\phantom{\rule{0.2em}{0ex}}y\text{-coordinate of the second point and 3 is}\phantom{\rule{0.2em}{0ex}}{y}_{1},\phantom{\rule{0.2em}{0ex}}\text{the}\phantom{\rule{0.2em}{0ex}}y\text{-coordinate}\hfill & & & \\ \text{of the first point. So we can rewrite the slope using subscript notation.}\hfill & & & m=\frac{{y}_{2}-{y}_{1}}{7-2}\hfill \\ \\ \\ \text{Also 7 is the}\phantom{\rule{0.2em}{0ex}}x\text{-coordinate of the second point and 2 is the}\phantom{\rule{0.2em}{0ex}}x\text{-coordinate}\hfill & & & \\ \text{of the first point. So again we rewrite the slope using subscript notation.}\hfill & & & m=\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}\hfill \\ \\ \end{array}

We’ve shown that m=\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}} is really another version of m=\frac{\text{rise}}{\text{run}}. We can use this formula to find the slope of a line when we have two points on the line.

Slope of a line between two points

The slope of the line between two points \left({x}_{1},{y}_{1}\right) and \left({x}_{2},{y}_{2}\right) is:

m=\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}.

The slope is:

\begin{array}{c}y\phantom{\rule{0.2em}{0ex}}\text{of the second point minus}\phantom{\rule{0.2em}{0ex}}y\phantom{\rule{0.2em}{0ex}}\text{of the first point}\hfill \\ \hfill \text{over}\hfill \\ x\phantom{\rule{0.2em}{0ex}}\text{of the second point minus}\phantom{\rule{0.2em}{0ex}}x\phantom{\rule{0.2em}{0ex}}\text{of the first point.}\hfill \end{array}

Use the slope formula to find the slope of the line through the points \left(-2,-3\right) and \left(-7,4\right).

\begin{array}{cc}\text{We'll call}\phantom{\rule{0.2em}{0ex}}\left(-2,-3\right)\phantom{\rule{0.2em}{0ex}}\text{point}\phantom{\rule{0.2em}{0ex}}\text{#}1\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}\left(-7,4\right)\phantom{\rule{0.2em}{0ex}}\text{point}\phantom{\rule{0.2em}{0ex}}\text{#}2.\hfill & \phantom{\rule{4em}{0ex}}\left(\begin{array}{cc}{x}_{1},\hfill & {y}_{1}\hfill \\ -2,\hfill & -3\hfill \end{array}\right)\phantom{\rule{0.2em}{0ex}}\left(\begin{array}{cc}{x}_{2},\hfill & {y}_{2}\hfill \\ -7,\hfill & 4\hfill \end{array}\right)\hfill \\ \text{Use the slope formula.}\hfill & \phantom{\rule{4em}{0ex}}m=\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}\hfill \\ \text{Substitute the values.}\hfill & \\ y\phantom{\rule{0.2em}{0ex}}\text{of the second point minus}\phantom{\rule{0.2em}{0ex}}y\phantom{\rule{0.2em}{0ex}}\text{of the first point}\hfill \\ x\phantom{\rule{0.2em}{0ex}}\text{of the second point minus}\phantom{\rule{0.2em}{0ex}}x\phantom{\rule{0.2em}{0ex}}\text{of the first point}\hfill & \phantom{\rule{4em}{0ex}}m=\frac{4-\left(-3\right)}{-7-\left(-2\right)}\hfill \\ \text{Simplify.}\hfill & \phantom{\rule{4em}{0ex}}\begin{array}{c}m=\frac{7}{-5}\hfill \\ m=-\frac{7}{5}\hfill \end{array}\hfill \end{array}

Let’s verify this slope on the graph shown.The figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 8 to 2. The y-axis runs from negative 6 to 6. The line goes through the points (negative 7, 4) and (negative 2, negative 3). A right triangle is drawn by connecting the three points (negative 7, 4), (negative 7, negative 3), and (negative 2, negative 3). The vertical side of the triangle is labeled “rise”. The horizontal side of the triangle is labeled “run”.

*** QuickLaTeX cannot compile formula:
\begin{array}{}\\ \\ m=\frac{\text{rise}}{\text{run}}\hfill \\ m=\frac{7}{-5}\hfill \\ m=-\frac{7}{5}\hfill \end{array}

*** Error message:
Missing # inserted in alignment preamble.
leading text: $\begin{array}{}
Missing $ inserted.
leading text: ...ay}{}\\ \\ m=\frac{\text{rise}}{\text{run}}
Extra }, or forgotten $.
leading text: ...ay}{}\\ \\ m=\frac{\text{rise}}{\text{run}}
Missing } inserted.
leading text: ...m=\frac{\text{rise}}{\text{run}}\hfill \\ m
Extra }, or forgotten $.
leading text: ...m=\frac{\text{rise}}{\text{run}}\hfill \\ m
Missing } inserted.
leading text: ...m=\frac{\text{rise}}{\text{run}}\hfill \\ m
Extra }, or forgotten $.
leading text: ...m=\frac{\text{rise}}{\text{run}}\hfill \\ m
Missing } inserted.
leading text: ...m=\frac{\text{rise}}{\text{run}}\hfill \\ m
Extra }, or forgotten $.
leading text: ...m=\frac{\text{rise}}{\text{run}}\hfill \\ m
Missing } inserted.

Use the slope formula to find the slope of the line through the pair of points: \left(-3,4\right) and \left(2,-1\right).

-1

Use the slope formula to find the slope of the line through the pair of points: \left(-2,6\right) and \left(-3,-4\right).

10

Graph a Line Given a Point and the Slope

Up to now, in this chapter, we have graphed lines by plotting points, by using intercepts, and by recognizing horizontal and vertical lines.

We can also graph a line when we know one point and the slope of the line. We will start by plotting the point and then use the definition of slope to draw the graph of the line.

How to graph a Line Given a Point and the Slope

Graph the line passing through the point \left(1,-1\right) whose slope is m=\frac{3}{4}.

Step 1 is to plot the given point. Plot (1, negative 1). The figure then shows the graph of a point on the x y-coordinate plane. The x-axis runs from negative 2 to 6. The y-axis runs from negative 2 to 4. The point (1, negative 1) is plotted and labeled with its coordinates.Step 2 is to use the slope formula m equals rise divided by run to identify the rise and the run. Identify the rise and the run. m equals 3 divided by 4. Rise divided by run equals 3 divided by 4. Rise equals 3. Run equals 4.Step 3 is to start at the given point and count out the rise and run to mark the second point. Start at (1, negative 1) and count the rise and the run. Up 3 units, right 4 units. The figure then shows the graph of three points connected by two straight line segments on the x y-coordinate plane. The x-axis runs from negative 2 to 6. The y-axis runs from negative 2 to 4. The points (1, negative 1), (1, 2), and (5, 2) are plotted. A vertical line segment connects (1, negative 1) to (1, 2) and is labeled 3. A horizontal line segment connects (1, 2) to (5, 2) and is labeled 4.Step 4 is to connect the points with a line. Connect the two points with a line. . The figure then shows the graph of a straight line, three points, and two line segments on the x y-coordinate plane. The x-axis runs from negative 2 to 6. The y-axis runs from negative 2 to 4. The points (1, negative 1), (1, 2), and (5, 2) are plotted. A vertical line segment connects (1, negative 1) to (1, 2). A horizontal line segment connects (1, 2) to (5, 2) and is labeled 4. A straight line is drawn through the points (1, negative 1) and (5, 2) with arrows on both ends.

You can check your work by finding a third point. Since the slope is m=\frac{3}{4}, it can also be written as m=\frac{-3}{-4} (negative divided by negative is positive!). Go back to \left(1,-1\right) and count out the rise, -3, and the run, -4.

Graph the line passing through the point \left(2,-2\right) with the slopem=\frac{4}{3}.

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 12 to 12. The y-axis runs from negative 12 to 12. The line goes through the points (2, negative 2) and (5, 2).

Graph the line passing through the point \left(-2,3\right) with the slope m=\frac{1}{4}.

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 12 to 12. The y-axis runs from negative 12 to 12. The line goes through the points (negative 2, 3) and (2, 4).

Graph a line given a point and the slope.
  1. Plot the given point.
  2. Use the slope formula m=\frac{\text{rise}}{\text{run}} to identify the rise and the run.
  3. Starting at the given point, count out the rise and run to mark the second point.
  4. Connect the points with a line.

Graph a Line Using its Slope and Intercept

We have graphed linear equations by plotting points, using intercepts, recognizing horizontal and vertical lines, and using one point and the slope of the line. Once we see how an equation in slope–intercept form and its graph are related, we’ll have one more method we can use to graph lines.

See (Figure). Let’s look at the graph of the equation y=\frac{1}{2}x+3 and find its slope and y-intercept.

The figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 10 to 10. The y-axis runs from negative 10 to 10. The line goes through the points (0, 3), (2, 4), and (4, 5). A right triangle is drawn by connecting the three points (2, 4), (2, 5), and (4, 5). The vertical side of the triangle is labeled “Rise equals 1”. The horizontal side of the triangle is labeled “Run equals 2”. The line is labeled y equals 1 divided by 2 x plus 3.

The red lines in the graph show us the rise is 1 and the run is 2. Substituting into the slope formula:

*** QuickLaTeX cannot compile formula:
\begin{array}{}\\ \\ m=\frac{\text{rise}}{\text{run}}\hfill \\ m=\frac{\text{1}}{\text{2}}\hfill \end{array}

*** Error message:
Missing # inserted in alignment preamble.
leading text: $\begin{array}{}
Missing $ inserted.
leading text: ...ay}{}\\ \\ m=\frac{\text{rise}}{\text{run}}
Extra }, or forgotten $.
leading text: ...ay}{}\\ \\ m=\frac{\text{rise}}{\text{run}}
Missing } inserted.
leading text: ...m=\frac{\text{rise}}{\text{run}}\hfill \\ m
Extra }, or forgotten $.
leading text: ...m=\frac{\text{rise}}{\text{run}}\hfill \\ m
Missing } inserted.
leading text: ...m=\frac{\text{rise}}{\text{run}}\hfill \\ m
Extra }, or forgotten $.
leading text: ...m=\frac{\text{rise}}{\text{run}}\hfill \\ m
Missing } inserted.
leading text: ...m=\frac{\text{rise}}{\text{run}}\hfill \\ m
Extra }, or forgotten $.
leading text: ...m=\frac{\text{rise}}{\text{run}}\hfill \\ m
Missing } inserted.

The y-intercept is \left(0,3\right).

Look at the equation of this line.

The figure shows the equation y equals 1 divided by 2 x plus 3. The 1 divided by 2 is emphasized in red. The 3 is emphasized in blue.

Look at the slope and y-intercept.

Slope m equals 1 divided by 2 and y-intercept (0, 3). The 1 divided by 2 is emphasized in red. The 3 is emphasized in blue.

When a linear equation is solved for y, the coefficient of the x term is the slope and the constant term is the y-coordinate of the y-intercept. We say that the equation y=\frac{1}{2}x+3 is in slope–intercept form. Sometimes the slope–intercept form is called the “y-form.”

m equals 1 divided by 2; y-intercept is (0, 3). y equals 1 divided by 2 x plus 3. y equals m x plus b. The m and 1 divided by 2 are emphasized in red. The b and 3 are emphasized in blue.

Slope Intercept Form of an Equation of a Line

The slope–intercept form of an equation of a line with slope m and y-intercept, \left(0,b\right) is y=mx+b.

Let’s practice finding the values of the slope and y-intercept from the equation of a line.

Identify the slope and y-intercept of the line from the equation:

y=-\frac{4}{7}x-2x+3y=9

We compare our equation to the slope–intercept form of the equation.

Write the slope–intercept form of the equation of the line. .
Write the equation of the line. .
Identify the slope. .
Identify the y-intercept. .

When an equation of a line is not given in slope–intercept form, our first step will be to solve the equation for y.

Solve for y. x+3y=9
Subtract x from each side. .
Divide both sides by 3. .
Simplify. .
Write the slope–intercept form of the equation of the line. .
Write the equation of the line. .
Identify the slope. .
Identify the y-intercept. .

Identify the slope and y-intercept from the equation of the line.

y=\frac{2}{5}x-1x+4y=8

m=\frac{2}{5};\left(0,-1\right)

m=-\frac{1}{4};\left(0,2\right)

Identify the slope and y-intercept from the equation of the line.

y=-\frac{4}{3}x+13x+2y=12

m=-\frac{4}{3};\left(0,1\right)

m=-\frac{3}{2};\left(0,6\right)

We have graphed a line using the slope and a point. Now that we know how to find the slope and y-intercept of a line from its equation, we can use the y-intercept as the point, and then count out the slope from there.

Graph the line of the equation y=\text{−}x+4 using its slope and y-intercept.

y=mx+b
The equation is in slope–intercept form. y=\text{−}x+4
Identify the slope and y-intercept. m=-1

y-intercept is \left(0,4\right)

Plot the y-intercept. See the graph.
Identify the rise over the run. m=\frac{-1}{1}
Count out the rise and run to mark the second point. rise -1, run 1

.

Draw the line as shown in the graph.

Graph the line of the equation y=\text{−}x-3 using its slope and y-intercept.

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 10 to 10. The y-axis runs from negative 10 to 10. The line goes through the points (0, negative 3) and (1, negative 4).

Graph the line of the equationy=\text{−}x-1 using its slope and y-intercept.

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 10 to 10. The y-axis runs from negative 10 to 10. The line goes through the points (0, negative 1) and (1, negative 2).

Now that we have graphed lines by using the slope and y-intercept, let’s summarize all the methods we have used to graph lines.

The table has a title row that reads “Methods to Graph Lines”. Below this are four columns. The first column contains the following: Point Plotting. A blank table with two columns and four rows. The first row is a header row with the headers “x” and “y”. Find three points. Plot the points, make sure they line up, them draw the line. The second column contains: Slope-Intercept. Y equals m x plus b. Find the slope and y-intercept, then count the slope to get a second point. The third column: Intercepts. A table with two columns and four rows. The first row is a header row with the headers “x” and “y”. In the first row there is a 0 in the x column. In the second row there is a 0 in the y column. The remaining spaces are blank. Fourth column. Recognize vertical and horizontal lines. The equation has only one variable. X equals a vertical. Y equals b horizontal.

Choose the Most Convenient Method to Graph a Line

Now that we have seen several methods we can use to graph lines, how do we know which method to use for a given equation?

While we could plot points, use the slope–intercept form, or find the intercepts for any equation, if we recognize the most convenient way to graph a certain type of equation, our work will be easier.

Generally, plotting points is not the most efficient way to graph a line. Let’s look for some patterns to help determine the most convenient method to graph a line.

Here are five equations we graphed in this chapter, and the method we used to graph each of them.

\begin{array}{ccccc}& \mathbf{\text{Equation}}\hfill & & & \phantom{\rule{4em}{0ex}}\mathbf{\text{Method}}\hfill \\ \text{#1}\hfill & x=2\hfill & & & \phantom{\rule{4em}{0ex}}\text{Vertical line}\hfill \\ \text{#2}\hfill & y=-1\hfill & & & \phantom{\rule{4em}{0ex}}\text{Horizontal line}\hfill \\ \text{#3}\hfill & \text{−}x+2y=6\hfill & & & \phantom{\rule{4em}{0ex}}\text{Intercepts}\hfill \\ \text{#4}\hfill & 4x-3y=12\hfill & & & \phantom{\rule{4em}{0ex}}\text{Intercepts}\hfill \\ \text{#5}\hfill & y=\text{−}x+4\hfill & & & \phantom{\rule{4em}{0ex}}\text{Slope-intercept}\hfill \end{array}

Equations #1 and #2 each have just one variable. Remember, in equations of this form the value of that one variable is constant; it does not depend on the value of the other variable. Equations of this form have graphs that are vertical or horizontal lines.

In equations #3 and #4, both x and y are on the same side of the equation. These two equations are of the form Ax+By=C. We substituted y=0 to find the x– intercept and x=0 to find the y-intercept, and then found a third point by choosing another value for x or y.

Equation #5 is written in slope–intercept form. After identifying the slope and y-intercept from the equation we used them to graph the line.

This leads to the following strategy.

Strategy for Choosing the Most Convenient Method to Graph a Line

Consider the form of the equation.

  • If it only has one variable, it is a vertical or horizontal line.
    • x=a is a vertical line passing through the x-axis at a.
    • y=b is a horizontal line passing through the y-axis at b.
  • If y is isolated on one side of the equation, in the form y=mx+b, graph by using the slope and y-intercept.
    • Identify the slope and y-intercept and then graph.
  • If the equation is of the form Ax+By=C, find the intercepts.
    • Find the x– and y-intercepts, a third point, and then graph.

Determine the most convenient method to graph each line:

y=54x-5y=20x=-3y=-\frac{5}{9}x+8

y=5

This equation has only one variable, y. Its graph is a horizontal line crossing the y-axis at 5.

4x-5y=20

This equation is of the form Ax+By=C. The easiest way to graph it will be to find the intercepts and one more point.

x=-3

There is only one variable, x. The graph is a vertical line crossing the x-axis at-3.

y=-\frac{5}{9}x+8

Since this equation is in y=mx+b form, it will be easiest to graph this line by using the slope and y-intercepts.

Determine the most convenient method to graph each line:

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

intercepts horizontal line slope-intercept vertical line

Determine the most convenient method to graph each line:

x=6y=-\frac{3}{4}x+1y=-84x-3y=-1.

vertical line slope-intercept horizontal line

intercepts

Graph and Interpret Applications of Slope–Intercept

Many real-world applications are modeled by linear equations. We will take a look at a few applications here so you can see how equations written in slope–intercept form relate to real world situations.

Usually, when a linear equation models uses real-world data, different letters are used for the variables, instead of using only x and y. The variable names remind us of what quantities are being measured.

Also, we often will need to extend the axes in our rectangular coordinate system to bigger positive and negative numbers to accommodate the data in the application.

The equation F=\frac{9}{5}C+32 is used to convert temperatures, C, on the Celsius scale to temperatures, F, on the Fahrenheit scale.

Find the Fahrenheit temperature for a Celsius temperature of 0.

Find the Fahrenheit temperature for a Celsius temperature of 20.

Interpret the slope and F-intercept of the equation.

Graph the equation.

\begin{array}{cc}\text{Find the Fahrenheit temperature for a Celsius temperature of 0.}\hfill & \phantom{\rule{4.6em}{0ex}}F=\frac{9}{5}C+32\hfill \\ \text{Find}\phantom{\rule{0.2em}{0ex}}F\phantom{\rule{0.2em}{0ex}}\text{when}\phantom{\rule{0.2em}{0ex}}C=0.\hfill & \phantom{\rule{4.6em}{0ex}}F=\frac{9}{5}\left(0\right)+32\hfill \\ \text{Simplify.}\hfill & \phantom{\rule{4.6em}{0ex}}F=32\hfill \end{array}

\begin{array}{cc}\text{Find the Fahrenheit temperature for a Celsius temperature of 20.}\hfill & \phantom{\rule{4em}{0ex}}F=\frac{9}{5}C+32\hfill \\ \text{Find}\phantom{\rule{0.2em}{0ex}}F\phantom{\rule{0.2em}{0ex}}\text{when}\phantom{\rule{0.2em}{0ex}}C=20.\hfill & \phantom{\rule{4em}{0ex}}F=\frac{9}{5}\left(20\right)+32\hfill \\ \text{Simplify.}\hfill & \phantom{\rule{4em}{0ex}}F=36+32\hfill \\ \text{Simplify.}\hfill & \phantom{\rule{4em}{0ex}}F=68\hfill \end{array}

Interpret the slope and F-intercept of the equation.

Even though this equation uses F and C, it is still in slope–intercept form.

y equals m x plus b. F equals m C plus b. The y and F are emphasized in red. The x and C are emphasized in blue. F equals 9 divided by 5 C plus 32.

The slope, \frac{9}{5}, means that the temperature Fahrenheit (F) increases 9 degrees when the temperature Celsius (C) increases 5 degrees.

The F-intercept means that when the temperature is 0\text{°} on the Celsius scale, it is 32\text{°} on the Fahrenheit scale.

Graph the equation.

We’ll need to use a larger scale than our usual. Start at the F-intercept \left(0,32\right), and then count out the rise of 9 and the run of 5 to get a second point as shown in the graph.This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 40 to 80. The y-axis runs from negative 40 to 80. The line goes through the points (0, 32) and (5, 41).

The equation h=2s+50 is used to estimate a woman’s height in inches, h, based on her shoe size, s.

Estimate the height of a child who wears women’s shoe size 0.

Estimate the height of a woman with shoe size 8.

Interpret the slope and h-intercept of the equation.

Graph the equation.

50 inches

66 inches

The slope, 2, means that the height, h, increases by 2 inches when the shoe size, s, increases by 1. The h-intercept means that when the shoe size is 0, the height is 50 inches.

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 1 to 14. The y-axis runs from negative 1 to 80. The line goes through the points (0, 50) and (10, 70).

The equation T=\frac{1}{4}n+40 is used to estimate the temperature in degrees Fahrenheit, T, based on the number of cricket chirps, n, in one minute.

Estimate the temperature when there are no chirps.

Estimate the temperature when the number of chirps in one minute is 100.

Interpret the slope and T-intercept of the equation.

Graph the equation.

40 degrees

65 degrees

The slope, \frac{1}{4}, means that the temperature Fahrenheit (F) increases 1 degree when the number of chirps, n, increases by 4. The T-intercept means that when the number of chirps is 0, the temperature is 40°.

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 1 to 140. The y-axis runs from negative 1 to 80. The line goes through the points (0, 40) and (40, 50).

The cost of running some types business have two components—a fixed cost and a variable cost. The fixed cost is always the same regardless of how many units are produced. This is the cost of rent, insurance, equipment, advertising, and other items that must be paid regularly. The variable cost depends on the number of units produced. It is for the material and labor needed to produce each item.

Sam drives a delivery van. The equation C=0.5m+60 models the relation between his weekly cost, C, in dollars and the number of miles, m, that he drives.

Find Sam’s cost for a week when he drives 0 miles.

Find the cost for a week when he drives 250 miles.

Interpret the slope and C-intercept of the equation.

Graph the equation.

\begin{array}{cccc}\text{Find Sam's cost for a week when he drives 0 miles.}\hfill & & & C=0.5m+60\hfill \\ \text{Find}\phantom{\rule{0.2em}{0ex}}C\phantom{\rule{0.2em}{0ex}}\text{when}\phantom{\rule{0.2em}{0ex}}m=0.\hfill & & & C=0.5\left(0\right)+60\hfill \\ \text{Simplify.}\hfill & & & C=60\hfill \\ & & & \text{Sam's costs are ?60 when he drives 0 miles.}\hfill \end{array}

\begin{array}{cccc}\text{Find the cost for a week when he drives 250 miles.}\hfill & & & C=0.5m+60\hfill \\ \text{Find}\phantom{\rule{0.2em}{0ex}}C\phantom{\rule{0.2em}{0ex}}\text{when}\phantom{\rule{0.2em}{0ex}}m=250.\hfill & & & C=0.5\left(250\right)+60\hfill \\ \text{Simplify.}\hfill & & & C=185\hfill \\ & & & \text{Sam's costs are ?185 when he drives 250 miles.}\hfill \end{array}

Interpret the slope and C-intercept of the equation.

y equals m x plus b. C equals 0.5 p plus 60. The y and C are emphasized in red. The x and p are emphasized in blue.

The slope, 0.5, means that the weekly cost, C, increases by ?0.50 when the number of miles driven, n, increases by 1.

The C-intercept means that when the number of miles driven is 0, the weekly cost is ?60.

Graph the equation.

We’ll need to use a larger scale than our usual. Start at the C-intercept \left(0,60\right).

To count out the slope m = 0.5, we rewrite it as an equivalent fraction that will make our graphing easier.

\begin{array}{cccc}& & & \phantom{\rule{2em}{0ex}}m=0.5\hfill \\ \text{Rewrite as a fraction.}\hfill & & & \phantom{\rule{2em}{0ex}}m=\frac{0.5}{1}\hfill \\ \text{Multiply numerator and}\hfill & & & \\ \text{denominator by}\phantom{\rule{0.2em}{0ex}}100.\hfill & & & \phantom{\rule{2em}{0ex}}m=\frac{0.5\left(100\right)}{1\left(100\right)}\hfill \\ \text{Simplify.}\hfill & & & \phantom{\rule{2em}{0ex}}m=\frac{50}{100}\hfill \end{array}

So to graph the next point go up 50 from the intercept of 60 and then to the right 100. The second point will be (100, 110).

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 1 to 350. The y-axis runs from negative 1 to 350. The line goes through the points (0, 60) and (200, 160).

Stella has a home business selling gourmet pizzas. The equation C=4p+25 models the relation between her weekly cost, C, in dollars and the number of pizzas, p, that she sells.

Find Stella’s cost for a week when she sells no pizzas.

Find the cost for a week when she sells 15 pizzas.

Interpret the slope and C-intercept of the equation.

Graph the equation.

?25

?85

The slope, 4, means that the weekly cost, C, increases by ?4 when the number of pizzas sold, p, increases by 1. The C-intercept means that when the number of pizzas sold is 0, the weekly cost is ?25.

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 2 to 20. The y-axis runs from negative 10 to `00. The line goes through the points (0, 25) and (1, 29).

Loreen has a calligraphy business. The equation C=1.8n+35 models the relation between her weekly cost, C, in dollars and the number of wedding invitations, n, that she writes.

Find Loreen’s cost for a week when she writes no invitations.

Find the cost for a week when she writes 75 invitations.

Interpret the slope and C-intercept of the equation.

Graph the equation.

?35

?170

The slope, 1.8, means that the weekly cost, C, increases by \text{?}1.80 when the number of invitations, n, increases by 1.

The C-intercept means that when the number of invitations is 0, the weekly cost is ?35.

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 1 to 350. The y-axis runs from negative 1 to 350. The line goes through the points (0, 35) and (75, 170).

Use Slopes to Identify Parallel and Perpendicular Lines

Two lines that have the same slope are called parallel lines. Parallel lines have the same steepness and never intersect.

We say this more formally in terms of the rectangular coordinate system. Two lines that have the same slope and different y-intercepts are called parallel lines. See (Figure).

This figure shows the graph of a two straight lines on the x y-coordinate plane. The x-axis runs from negative 8 to 8. The y-axis runs from negative 8 to 8. The first line goes through the points (0, 3) and (5, 5). The second line goes through the points (0, negative 2) and (5, 0). The lines are parallel meaning they will always be the same distance apart and never intersect. They are slanted by the same angle.

Verify that both lines have the same slope, m=\frac{2}{5}, and different y-intercepts.

What about vertical lines? The slope of a vertical line is undefined, so vertical lines don’t fit in the definition above. We say that vertical lines that have different x-intercepts are parallel, like the lines shown in this graph.

This figure shows the graph of a two straight vertical line on the x y-coordinate plane. The x-axis runs from negative 8 to 8. The y-axis runs from negative 8 to 8. The first line goes through the points (2, 0) and (2, 1). The second line goes through the points (5, 0) and (5, 1). The lines are parallel meaning they will always be the same distance apart and never intersect.
Parallel Lines

Parallel lines are lines in the same plane that do not intersect.

  • Parallel lines have the same slope and different y-intercepts.
  • If {m}_{1} and {m}_{2} are the slopes of two parallel lines then {m}_{1}={m}_{2}.
  • Parallel vertical lines have different x-intercepts.

Since parallel lines have the same slope and different y-intercepts, we can now just look at the slope–intercept form of the equations of lines and decide if the lines are parallel.

Use slopes and y-intercepts to determine if the lines are parallel:

3x-2y=6 and y=\frac{3}{2}x+1 y=2x-3 and -6x+3y=-9.

\begin{array}{cccc}& \begin{array}{cc}\hfill \phantom{\rule{0.7em}{0ex}}3x-2y& =6\hfill \end{array}\hfill & \phantom{\rule{3em}{0ex}}\text{and}\hfill & \phantom{\rule{3em}{0ex}}\begin{array}{cc}\hfill y& =\frac{3}{2}x+1\hfill \end{array}\hfill \\ \text{Solve the first equation for}\phantom{\rule{0.2em}{0ex}}y.\hfill & \phantom{\rule{1.85em}{0ex}}\begin{array}{cc}\hfill -2y& =-3x+6\hfill \\ \hfill \frac{-2y}{-2}& =\frac{-3x+6}{-2}\hfill \end{array}\hfill & & \\ \text{The equation is now in slope-intercept form}.\hfill & \phantom{\rule{3.3em}{0ex}}\begin{array}{cc}\hfill y& =\frac{3}{2}x-3\hfill \end{array}\hfill & & \\ \begin{array}{c}\text{The equation of the second line is already}\hfill \\ \text{in slope-intercept form}.\hfill \end{array}\hfill & & & \phantom{\rule{3em}{0ex}}\begin{array}{cc}\hfill y& =\frac{3}{2}x+1\hfill \end{array}\hfill \\ \\ \\ \text{Identify the slope and}y\text{-intercept of both lines}.\hfill & \phantom{\rule{3em}{0ex}}\begin{array}{cc}\hfill y& =\frac{3}{2}x-3\hfill \\ \hfill y& =mx+b\hfill \\ \hfill m& =\frac{3}{2}\hfill \end{array}\hfill & & \phantom{\rule{3em}{0ex}}\begin{array}{cc}\hfill y& =\frac{3}{2}x+1\hfill \\ \hfill y& =mx+b\hfill \\ \hfill y& =\frac{3}{2}\hfill \end{array}\hfill \\ & y\text{-intercept is}\phantom{\rule{0.2em}{0ex}}\left(0,-3\right)\hfill & & \phantom{\rule{2em}{0ex}}y\text{-intercept is}\phantom{\rule{0.2em}{0ex}}\left(0,1\right)\hfill \end{array}

The lines have the same slope and different y-intercepts and so they are parallel.

You may want to graph the lines to confirm whether they are parallel.

\begin{array}{cccc}& \phantom{\rule{2em}{0ex}}\begin{array}{cc}\hfill y& =2x-3\hfill \end{array}\hfill & \text{and}\hfill & \phantom{\rule{1.5em}{0ex}}\begin{array}{cc}\hfill -6x+3y& =-9\hfill \end{array}\hfill \\ \text{The first equation is already in slope-intercept form}.\hfill & \phantom{\rule{2em}{0ex}}\begin{array}{cc}\hfill y& =2x-3\hfill \end{array}\hfill & & \\ \text{Solve the second equation for}\phantom{\rule{0.2em}{0ex}}y.\hfill & & & \phantom{\rule{1.5em}{0ex}}\begin{array}{cc}\hfill -6x+3y& =-9\hfill \\ \hfill 3y& =6x-9\hfill \\ \hfill \frac{3y}{3}& =\frac{6x-9}{3}\hfill \\ \hfill y& =2x-3\hfill \end{array}\hfill \\ \text{The second equation is now in slope-intercept form}.\hfill & & & \phantom{\rule{4.85em}{0ex}}\begin{array}{cc}\hfill y& =2x-3\hfill \end{array}\hfill \\ \\ \\ \text{Identify the slope and}y\text{-intercept of both lines}.\hfill & \phantom{\rule{2em}{0ex}}\begin{array}{cc}\hfill y& =2x-3\hfill \\ \hfill y& =mx+b\hfill \\ \hfill m& =2\hfill \end{array}\hfill & & \phantom{\rule{4.5em}{0ex}}\begin{array}{cc}\hfill y& =2x-3\hfill \\ \hfill y& =mx+b\hfill \\ \hfill m& =2\hfill \end{array}\hfill \\ & y\text{-intercept is}\phantom{\rule{0.2em}{0ex}}\left(0,-3\right)\hfill & & \phantom{\rule{3em}{0ex}}y\text{-intercept is}\phantom{\rule{0.2em}{0ex}}\left(0,-3\right)\hfill \end{array}

The lines have the same slope, but they also have the same y-intercepts. Their equations represent the same line and we say the lines are coincident. They are not parallel; they are the same line.

Use slopes and y-intercepts to determine if the lines are parallel:

2x+5y=5 and y=-\frac{2}{5}x-4 y=-\frac{1}{2}x-1 and x+2y=-2.

parallel not parallel; same line

Use slopes and y-intercepts to determine if the lines are parallel:

4x-3y=6 and y=\frac{4}{3}x-1 y=\frac{3}{4}x-3 and 3x-4y=12.

parallel not parallel; same line

Use slopes and y-intercepts to determine if the lines are parallel:

y=-4 and y=3 x=-2 and x=-5.

y=-4 and y=3

We recognize right away from the equations that these are horizontal lines, and so we know their slopes are both 0.

Since the horizontal lines cross the y-axis at y=-4 and at y=3, we know the y-intercepts are \left(0,-4\right) and \left(0,3\right).

The lines have the same slope and different y-intercepts and so they are parallel.

x=-2 and x=-5

We recognize right away from the equations that these are vertical lines, and so we know their slopes are undefined.

Since the vertical lines cross the x-axis at x=-2 and x=-5, we know the y-intercepts are \left(-2,0\right) and \left(-5,0\right).

The lines are vertical and have different x-intercepts and so they are parallel.

Use slopes and y-intercepts to determine if the lines are parallel:

y=8 and y=-6 x=1 and x=-5.

parallel parallel

Use slopes and y-intercepts to determine if the lines are parallel:

y=1 and y=-5 x=8 and x=-6.

parallel parallel

Let’s look at the lines whose equations are y=\frac{1}{4}x-1 and y=-4x+2, shown in (Figure).

This figure shows the graph of a two perpendicular straight lines on the x y-coordinate plane. The x-axis runs from negative 8 to 8. The y-axis runs from negative 8 to 8. The first line goes through the points (0, negative 1) and (4, 0). The first line is labeled y equals 1 divided by 4 x minus 1. The second line goes through the points (0, 2) and (1, negative 2). The second line is labeled y equals negative 4 x plus 2. The lines are perpendicular meaning they form a right angle where they intersect.

These lines lie in the same plane and intersect in right angles. We call these lines perpendicular.

If we look at the slope of the first line, {m}_{1}=\frac{1}{4}, and the slope of the second line, {m}_{2}=-4, we can see that they are negative reciprocals of each other. If we multiply them, their product is -1.

\begin{array}{c}{m}_{1}·{m}_{2}\hfill \\ \frac{1}{4}\left(-4\right)\hfill \\ -1\hfill \end{array}

This is always true for perpendicular lines and leads us to this definition.

Perpendicular Lines

Perpendicular lines are lines in the same plane that form a right angle.

  • If {m}_{1} and {m}_{2} are the slopes of two perpendicular lines, then:
    • their slopes are negative reciprocals of each other, {m}_{1}=-\frac{1}{{m}_{2}}.
    • the product of their slopes is -1, {m}_{1}·{m}_{2}=-1.
  • A vertical line and a horizontal line are always perpendicular to each other.

We were able to look at the slope–intercept form of linear equations and determine whether or not the lines were parallel. We can do the same thing for perpendicular lines.

We find the slope–intercept form of the equation, and then see if the slopes are opposite reciprocals. If the product of the slopes is -1, the lines are perpendicular.

Use slopes to determine if the lines are perpendicular:

y=-5x-4 and x-5y=5 7x+2y=3 and 2x+7y=5

\begin{array}{ccc}\text{The first equation is in slope-intercept form}.\hfill & \phantom{\rule{1.2em}{0ex}}y=-5x-4\hfill & \\ \text{Solve the second equation for}\phantom{\rule{0.2em}{0ex}}y.\hfill & & \phantom{\rule{4em}{0ex}}\begin{array}{cc}\hfill x-5y& =5\hfill \\ \hfill -5y& =-x+5\hfill \\ \hfill \frac{-5y}{-5}& =\frac{-x+5}{-5}\hfill \\ \hfill y& =\frac{1}{5}x-1\hfill \end{array}\hfill \\ \\ \\ \text{Identify the slope of each line}.\hfill & \begin{array}{cc}\hfill y& =-5x-4\hfill \\ \hfill y& =mx+b\hfill \\ \hfill {m}_{1}& =-5\hfill \end{array}\hfill & \phantom{\rule{5.3em}{0ex}}\begin{array}{cc}\hfill y& =\frac{1}{5}x-1\hfill \\ \hfill y& =mx+b\hfill \\ \hfill {m}_{2}& =\frac{1}{5}\hfill \end{array}\hfill \end{array}

The slopes are negative reciprocals of each other, so the lines are perpendicular. We check by multiplying the slopes, Since -5\left(\frac{1}{5}\right)=-1, it checks.

\begin{array}{ccc}\text{Solve the equations for}\phantom{\rule{0.2em}{0ex}}y\text{.}\hfill & \begin{array}{cc}\hfill 7x+2y& =3\hfill \\ \hfill 2y& =-7x+3\hfill \\ \hfill \frac{2y}{2}& =\frac{-7x+3}{2}\hfill \\ \hfill y& =-\frac{7}{2}x+\frac{3}{2}\hfill \end{array}\hfill & \phantom{\rule{4em}{0ex}}\begin{array}{cc}\hfill 2x+7y& =5\hfill \\ \hfill 7y& =-2x+5\hfill \\ \hfill \frac{7y}{7}& =\frac{-2x+5}{7}\hfill \\ \hfill y& =-\frac{2}{7}x+\frac{5}{7}\hfill \end{array}\hfill \\ \hfill \text{Identify the slope of each line}.& \phantom{\rule{1.9em}{0ex}}\begin{array}{cc}\hfill y& =mx+b\hfill \\ \hfill {m}_{1}& =-\frac{7}{2}\hfill \end{array}\hfill & \phantom{\rule{5.9em}{0ex}}\begin{array}{cc}\hfill y& =mx+b\hfill \\ \hfill {m}_{1}& =-\frac{2}{7}\hfill \end{array}\hfill \end{array}

The slopes are reciprocals of each other, but they have the same sign. Since they are not negative reciprocals, the lines are not perpendicular.

Use slopes to determine if the lines are perpendicular:

y=-3x+2 and x-3y=4 5x+4y=1 and 4x+5y=3.

perpendicular not perpendicular

Use slopes to determine if the lines are perpendicular:

y=2x-5 and x+2y=-6 2x-9y=3 and 9x-2y=1.

perpendicular not perpendicular

Key Concepts

  • Slope of a Line
    • The slope of a line is m=\frac{\text{rise}}{\text{run}}.
    • The rise measures the vertical change and the run measures the horizontal change.
  • How to find the slope of a line from its graph usingm=\frac{\text{rise}}{\text{run}}.
    1. Locate two points on the line whose coordinates are integers.
    2. Starting with one point, sketch a right triangle, going from the first point to the second point.
    3. Count the rise and the run on the legs of the triangle.
    4. Take the ratio of rise to run to find the slope: m=\frac{\text{rise}}{\text{run}}.
  • Slope of a line between two points.
    • The slope of the line between two points \left({x}_{1},{y}_{1}\right) and \left({x}_{2},{y}_{2}\right) is:
      m=\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}.
  • How to graph a line given a point and the slope.
    1. Plot the given point.
    2. Use the slope formula m=\frac{\text{rise}}{\text{run}} to identify the rise and the run.
    3. Starting at the given point, count out the rise and run to mark the second point.
    4. Connect the points with a line.
  • Slope Intercept Form of an Equation of a Line
    • The slope–intercept form of an equation of a line with slope m and y-intercept, \left(0,b\right) is y=mx+bThe table has a title row that reads “Methods to Graph Lines”. Below this are four columns. The first column contains the following: Point Plotting. A blank table with two columns and four rows. The first row is a header row with the headers “x” and “y”. Find three points. Plot the points, make sure they line up, them draw the line. The second column contains: Slope-Intercept. Y equals m x plus b. Find the slope and y-intercept, then count the slope to get a second point. The third column: Intercepts. A table with two columns and four rows. The first row is a header row with the headers “x” and “y”. In the first row there is a 0 in the x column. In the second row there is a 0 in the y column. The remaining spaces are blank. Fourth column. Recognize vertical and horizontal lines. The equation has only one variable. X equals a vertical. Y equals b horizontal.
  • Parallel Lines
    • Parallel lines are lines in the same plane that do not intersect.

      Parallel lines have the same slope and different y-intercepts.

      If {m}_{1} and {m}_{2} are the slopes of two parallel lines then {m}_{1}={m}_{2}.

      Parallel vertical lines have different x-intercepts.

  • Perpendicular Lines
    • Perpendicular lines are lines in the same plane that form a right angle.
    • If {m}_{1} and {m}_{2} are the slopes of two perpendicular lines, then:

      their slopes are negative reciprocals of each other, {m}_{1}=-\frac{1}{{m}_{2}}.

      the product of their slopes is -1,{m}_{1}·{m}_{2}=-1.

    • A vertical line and a horizontal line are always perpendicular to each other.

Practice Makes Perfect

Find the Slope of a Line

In the following exercises, find the slope of each line shown.

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 8 to 8. The y-axis runs from negative 8 to 8. The line goes through the points (0, negative 4) and (5, negative 2).

\frac{2}{5}

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 8 to 8. The y-axis runs from negative 8 to 8. The line goes through the points (0, negative 5) and (2, negative 2).
This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 8 to 8. The y-axis runs from negative 8 to 8. The line goes through the points (0, negative 1) and (4, 4).

\frac{5}{4}

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 8 to 8. The y-axis runs from negative 8 to 8. The line goes through the points (0, negative 2) and (3, 3).
This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 8 to 8. The y-axis runs from negative 8 to 8. The line goes through the points (0, 2) and (3, 1).

-\frac{1}{3}

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 8 to 8. The y-axis runs from negative 8 to 8. The line goes through the points (0, negative 1) and (3, negative 3).
This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 8 to 8. The y-axis runs from negative 8 to 8. The line goes through the points (0, 4) and (2, negative 1).

-\frac{5}{2}

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 8 to 8. The y-axis runs from negative 8 to 8. The line goes through the points (0, 2) and (4, negative 1).

In the following exercises, find the slope of each line.

y=3

0

y=-2

x=-5

undefined

x=4

In the following exercises, use the slope formula to find the slope of the line between each pair of points.

\left(2,5\right),\left(4,0\right)

-\frac{5}{2}

\left(3,6\right),\left(8,0\right)

\left(-3,3\right),\left(4,-5\right)

-\frac{8}{5}

\left(-2,4\right),\left(3,-1\right)

\left(-1,-2\right),\left(2,5\right)

\frac{7}{3}

\left(-2,-1\right),\left(6,5\right)

\left(4,-5\right),\left(1,-2\right)

-1

\left(3,-6\right),\left(2,-2\right)

Graph a Line Given a Point and the Slope

In the following exercises, graph each line with the given point and slope.

\left(2,5\right);m=-\frac{1}{3}

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 12 to 12. The y-axis runs from negative 12 to 12. The line goes through the points (2, 5) and (5, 4).

\left(1,4\right); m=-\frac{1}{2}

\left(-1,-4\right); m=\frac{4}{3}

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 12 to 12. The y-axis runs from negative 12 to 12. The line goes through the points (negative 1, negative 4) and (2, 0).

\left(-3,-5\right); m=\frac{3}{2}

y-intercept 3; m=-\frac{2}{5}

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 12 to 12. The y-axis runs from negative 12 to 12. The line goes through the points (0, 3) and (5, 1).

x-intercept -2; m=\frac{3}{4}

\left(-4,2\right); m=4

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 12 to 12. The y-axis runs from negative 12 to 12. The line goes through the points (negative 4, 2) and (negative 3, 6).

\left(1,5\right); m=-3

Graph a Line Using Its Slope and Intercept

In the following exercises, identify the slope and y-intercept of each line.

y=-7x+3

m=-7;\left(0,3\right)

y=4x-10

3x+y=5

m=-3;\left(0,5\right)

4x+y=8

6x+4y=12

m=-\frac{3}{2};\left(0,3\right)

8x+3y=12

5x-2y=6

m=\frac{5}{2};\left(0,-3\right)

7x-3y=9

In the following exercises, graph the line of each equation using its slope and y-intercept.

y=3x-1

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 10 to 10. The y-axis runs from negative 10 to 10. The line goes through the points (0, negative 1) and (1, 2).

y=2x-3

y=\text{−}x+3

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 10 to 10. The y-axis runs from negative 10 to 10. The line goes through the points (0, 3) and (1, 2).

y=\text{−}x-4

y=-\frac{2}{5}x-3

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 10 to 10. The y-axis runs from negative 10 to 10. The line goes through the points (0, negative 3) and (5, negative 5).

y=-\frac{3}{5}x+2

3x-2y=4

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 10 to 10. The y-axis runs from negative 10 to 10. The line goes through the points (0, negative 2) and (2, 1).

3x-4y=8

Choose the Most Convenient Method to Graph a Line

In the following exercises, determine the most convenient method to graph each line.

x=2

vertical line

y=5

y=-3x+4

slope-intercept

x-y=5

x-y=1

intercepts

y=\frac{2}{3}x-1

3x-2y=-12

intercepts

2x-5y=-10

Graph and Interpret Applications of Slope–Intercept

The equation P=31+1.75w models the relation between the amount of Tuyet’s monthly water bill payment, P, in dollars, and the number of units of water, w, used.

Find Tuyet’s payment for a month when 0 units of water are used.

Find Tuyet’s payment for a month when 12 units of water are used.

Interpret the slope and P-intercept of the equation.

Graph the equation.

?31

?52

The slope, 1.75, means that the payment, P, increases by \text{?}1.75 when the number of units of water used, w, increases by 1. The P-intercept means that when the number units of water Tuyet used is 0, the payment is ?31.

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 1 to 21. The y-axis runs from negative 1 to 80. The line goes through the points (0, 31) and (12, 52).

The equation P=28+2.54w models the relation between the amount of R and y’s monthly water bill payment, P, in dollars, and the number of units of water, w, used.

Find the payment for a month when R and y used 0 units of water.

Find the payment for a month when R and y used 15 units of water.

Interpret the slope and P-intercept of the equation.

Graph the equation.

Bruce drives his car for his job. The equation R=0.575m+42 models the relation between the amount in dollars, R, that he is reimbursed and the number of miles, m, he drives in one day.

Find the amount Bruce is reimbursed on a day when he drives 0 miles.

Find the amount Bruce is reimbursed on a day when he drives 220 miles.

Interpret the slope and R-intercept of the equation.

Graph the equation.

?42

?168.50

The slope, 0.575 means that the amount he is reimbursed, R, increases by ?0.575 when the number of miles driven, m, increases by 1. The R-intercept means that when the number miles driven is 0, the amount reimbursed is ?42.

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 50 to 250. The y-axis runs from negative 50 to 300. The line goes through the points (0, 42) and (220, 168.5).

Janelle is planning to rent a car while on vacation. The equation C=0.32m+15 models the relation between the cost in dollars, C, per day and the number of miles, m, she drives in one day.

Find the cost if Janelle drives the car 0 miles one day.

Find the cost on a day when Janelle drives the car 400 miles.

Interpret the slope and C-intercept of the equation.

Graph the equation.

Cherie works in retail and her weekly salary includes commission for the amount she sells. The equation S=400+0.15c models the relation between her weekly salary, S, in dollars and the amount of her sales, c, in dollars.

Find Cherie’s salary for a week when her sales were ?0.

Find Cherie’s salary for a week when her sales were ?3,600.

Interpret the slope and S-intercept of the equation.

Graph the equation.

?400

?940

The slope, 0.15, means that Cherie’s salary, S, increases by ?0.15 for every ?1 increase in her sales. The S-intercept means that when her sales are ?0, her salary is ?400.

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 500 to 3500. The y-axis runs from negative 200 to 1000. The line goes through the points (0, 400) and (3600, 940).

Patel’s weekly salary includes a base pay plus commission on his sales. The equation S=750+0.09c models the relation between his weekly salary, S, in dollars and the amount of his sales, c, in dollars.

Find Patel’s salary for a week when his sales were 0.

Find Patel’s salary for a week when his sales were 18,540.

Interpret the slope and S-intercept of the equation.

Graph the equation.

Costa is planning a lunch banquet. The equation C=450+28g models the relation between the cost in dollars, C, of the banquet and the number of guests, g.

Find the cost if the number of guests is 40.

Find the cost if the number of guests is 80.

Interpret the slope and C-intercept of the equation.

Graph the equation.

?1570

?5690

The slope gives the cost per guest. The slope, 28, means that the cost, C, increases by ?28 when the number of guests increases by 1. The C-intercept means that if the number of guests was 0, the cost would be ?450.

This figure shows the graph of a straight line on the x y-coordinate plane. The x-axis runs from negative 20 to 100. The y-axis runs from negative 1000 to 7000. The line goes through the points (0, 450) and (40, 1570).

Margie is planning a dinner banquet. The equation C=750+42g models the relation between the cost in dollars, C of the banquet and the number of guests, g.

Find the cost if the number of guests is 50.

Find the cost if the number of guests is 100.

Interpret the slope and C-intercept of the equation.

Graph the equation.

Use Slopes to Identify Parallel and Perpendicular Lines

In the following exercises, use slopes and y-intercepts to determine if the lines are parallel, perpendicular, or neither.

y=\frac{3}{4}x-3;\phantom{\rule{1em}{0ex}}3x-4y=-2

parallel

3x-4y=-2;\phantom{\rule{1em}{0ex}}y=\frac{3}{4}x-3

2x-4y=6;\phantom{\rule{1em}{0ex}}x-2y=3

neither

8x+6y=6;\phantom{\rule{1em}{0ex}}12x+9y=12

x=5;\phantom{\rule{1em}{0ex}}x=-6

parallel

x=-3;\phantom{\rule{1em}{0ex}}x=-2

4x-2y=5;\phantom{\rule{1em}{0ex}}3x+6y=8

perpendicular

8x-2y=7;\phantom{\rule{1em}{0ex}}3x+12y=9

3x-6y=12;\phantom{\rule{1em}{0ex}}6x-3y=3

neither

9x-5y=4;\phantom{\rule{1em}{0ex}}5x+9y=-1

7x-4y=8;\phantom{\rule{1em}{0ex}}4x+7y=14

perpendicular

5x-2y=11;\phantom{\rule{1em}{0ex}}5x-y=7

3x-2y=8;\phantom{\rule{1em}{0ex}}2x+3y=6

perpendicular

2x+3y=5;\phantom{\rule{1em}{0ex}}3x-2y=7

3x-2y=1;\phantom{\rule{1em}{0ex}}2x-3y=2

neither

2x+4y=3;\phantom{\rule{1em}{0ex}}6x+3y=2

y=2;\phantom{\rule{1em}{0ex}}y=6

parallel

y=-1;\phantom{\rule{1em}{0ex}}y=2

Writing Exercises

How does the graph of a line with slope m=\frac{1}{2} differ from the graph of a line with slope m=2?

Answers will vary.

Why is the slope of a vertical line “undefined”?

Explain how you can graph a line given a point and its slope.

Answers will vary.

Explain in your own words how to decide which method to use to graph a line.

Self Check

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

This table has 7 rows and 4 columns. The first row is a header row and it labels each column. The first column header is “I can…”, the second is “Confidently”, the third is “With some help”, and the fourth is “No, I don’t get it”. Under the first column are the phrases “find the slope of a line”, “graph a line given a point and the slope”, “graph a line using its slope and intercept”, “choose the most convenient method to graph a line”, “graph and interpret applications of slope-intercept”, and “use slopes to identify parallel and perpendicular lines”. The other columns are left blank so that the learner may indicate their mastery level for each topic.

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

Glossary

parallel lines
Parallel lines are lines in the same plane that do not intersect.
perpendicular lines
Perpendicular lines are lines in the same plane that form a right angle.

License

Icon for the Creative Commons Attribution 4.0 International License

Intermediate Algebra Copyright © 2017 by OSCRiceUniversity is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book