2.2: Slope of a Line
 Last updated
 Save as PDF
 Page ID
 29045
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{\!\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\ #1 \}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\ #1 \}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{\!\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{\!\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left#1\right}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)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.
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.
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}}\)
 Locate two points on the line whose coordinates are integers.
 Starting with one point, sketch a right triangle, going from the first point to the second point.
 Count the rise and the run on the legs of the triangle.
 Take the ratio of rise to run to find the slope: \(m=\frac{\text{rise}}{\text{run}}\).
Example \(\PageIndex{1}\)
Find the slope of the line shown.
SolutionLocate two points on the graph whose coordinates are integers. 
\((0,5)\) and \((3,3)\) 
Starting at \((0,5)\), sketch a right triangle to \((3,3)\) 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. 
Try It \(\PageIndex{2}\)
Find the slope of the line shown.
 Answer

\(\frac{4}{3}\)
Try It \(\PageIndex{3}\)
Find the slope of the line shown.
 Answer

\(\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.
\( \begin{array} {ll} {\text{What is the rise?}} &{\text{The rise is }0.} \\ {\text{What is the run?}} &{\text{The run is }3.} \\ {\text{What is the slope?}} &{m=\frac{\text{rise}}{\text{run}}} \\ {} &{m=\frac{0}{3}} \\ {} &{m=0} \\{}&{\text{The slope of the horizontal line } y=4 \text{ is }0.} \\ \end{array} \nonumber\)
Let’s also consider a vertical line, the line \(x=3\), as shown in the graph.
\( \begin{array} {ll} {\text{What is the rise?}} &{\text{The rise is }2.} \\ {\text{What is the run?}} &{\text{The run is }0.} \\ {\text{What is the slope?}} &{m=\frac{\text{rise}}{\text{run}}} \\ {} &{m=\frac{2}{0}} \\ \end{array} \nonumber\)
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 ycoordinates are the same, the rise is 0.
The slope of any vertical line is undefined. When the xcoordinates 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.
Example \(\PageIndex{4}\)
Find the slope of each line: a. \(x=8\) b. \(y=−5\).
Solution \(x=8\) This is a vertical line. Its slope is undefined.
 \(y=−5\) This is a horizontal line. It has slope 0.
Try It \(\PageIndex{5}\)
Find the slope of the line: \(x=−4\).
 Answer

undefined
Try It \(\PageIndex{6}\)
Find the slope of the line: \(y=7\).
 Answer

0
QUICK GUIDE TO THE SLOPES OF LINES
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 \((x,y)\) gives the coordinates of a point. But when we work with slopes, we use two points. How can the same symbol \((x,y)\) be used to represent two different points? Mathematicians use subscripts to distinguish the points.
\( \begin{array} {ll} {(x_1, y_1)} &{\text{read “} x \text{ sub } 1, \space y \text{ sub } 1 \text{”}} \\ {(x_2, y_2)} &{\text{read “} x \text{ sub } 2, \space y \text{ sub } 2 \text{”}} \\ \end{array} \nonumber\)
We will use \((x_1,y_1)\) to identify the first point and \((x_2,y_2)\) to identify the second point.
If we had more than two points, we could use \((x_3,y_3)\), \((x_4,y_4)\), 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 \((2,3)\) and \((7,6)\), as shown in this graph.
\( \begin{array} {ll} {\text{Since we have two points, we will use subscript notation.}} &{ \begin{pmatrix} x_1, & y_1 \\ 2 & 3 \end{pmatrix} \begin{pmatrix} x_2, & y_2 \\ 7 & 6 \end{pmatrix}} \\ {} &{m=\frac{\text{rise}}{\text{run}}} \\ {\text{On the graph, we counted the rise of 3 and the run of 5.}} &{m=\frac{3}{5}} \\ {\text{Notice that the rise of 3 can be found by subtracting the}} &{} \\ {y\text{coordinates, 6 and 3, and the run of 5 can be found by}} &{} \\ {\text{subtracting the xcoordinates 7 and 2.}} &{} \\ {\text{We rewrite the rise and run by putting in the coordinates.}} &{m=\frac{63}{72}} \\ {} &{} \\ {\text{But 6 is } y_2 \text{, the ycoordinate of the second point and 3 is }y_1 \text{, the ycoordinate}} &{} \\ {\text{of the first point. So we can rewrite the slope using subscript notation.}} &{m=\frac{y_2y_1}{72}} \\ {\text{Also 7 is the xcoordinate of the second point and 2 is the xcoordinate}} &{} \\ {\text{of the first point. So again we rewrite the slope using subscript notation.}} &{m=\frac{y_2y_1}{x_2x_1}} \\ \end{array} \nonumber\)
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 \((x_1,y_1)\) and \((x_2,y_2)\) is: \(m=\frac{y_2−y_1}{x_2−x_1}\).
The slope is:
\[y\text{ of the second point minus }y\text{ of the first point} \nonumber\] \[\text{over} \nonumber\] \[x\text{ of the second point minus }x\text{ of the first point} \nonumber\]
Example \(\PageIndex{7}\)
Use the slope formula to find the slope of the line through the points \((−2,−3)\) and \((7,4)\).
Solution\( \begin{array} {ll} {\text{We’ll call (−2,−3) point #1and (−7,4) point #2.}} &{ \begin{pmatrix} x_1, & y_1 \\ 2 & 3 \end{pmatrix} \begin{pmatrix} x_2, & y_2 \\ 7 & 4 \end{pmatrix}} \\ {\text{Use the slope formula.}} &{m=\frac{y_2y_1}{x_2x_1}} \\ {\text{Substitute the values.}} &{} \\ {\text{y of the second point minus y of the first point}} &{} \\ {\text{x of the second point minus x of the first point}} &{m=\frac{4(3)}{7(2)}} \\{\text{Simplify}}&{m=\frac{7}{5}} \\ {} &{m=\frac{7}{5}} \\ \end{array} \nonumber\)
Let’s verify this slope on the graph shown.
\[m=\frac{\text{rise}}{\text{run}} \nonumber\] \[m=\frac{7}{−5} \nonumber\] \[m=\frac{−7}{5} \nonumber\]
Try It \(\PageIndex{8}\)
Use the slope formula to find the slope of the line through the pair of points: \((−3,4)\) and \((2,−1)\).
 Answer

\(1\)
Try It \(\PageIndex{9}\)
Use the slope formula to find the slope of the line through the pair of points: \((−2,6)\) and \((−3,−4)\).
 Answer

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.
Example \(\PageIndex{10}\): How to graph a Line Given a Point and the Slope
Graph the line passing through the point \((1,−1)\) whose slope is \(m=\frac{3}{4}\).
SolutionStep 1. Plot the given point.  Plot \( (1, 1) \)  
Step 2. Use the slope formula \( m=\dfrac{\text{rise}}{\text{run}} \) to identify the rise and the run.  Identify the rise and the run.  \( m = \dfrac{3}{4} \\ \) \( \dfrac{\text{rise}}{\text{run}} = \dfrac{3}{4} \\ \) rise = 3 run = 4 
Step 3. Starting at the given point, count out the rise and run to mark the second point.  Start at \( (1, 1) \) and count the rise and the run. Up \(3\) units, right \(4\) units.  
Step 4. Connect the points with a line.  Connect the two points with a line. 
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 \((1,−1)\) and count out the rise, \(−3\), and the run, \(−4\).
Try It \(\PageIndex{11}\)
Graph the line passing through the point \((2,−2)\) with the slope \(m=\frac{4}{3}\).
 Answer
Try It \(\PageIndex{12}\)
Graph the line passing through the point \((−2,3)\) with the slope \(m=\frac{1}{4}\).
 Answer
GRAPH A LINE GIVEN A POINT AND THE SLOPE.
 Plot the given point.
 Use the slope formula \(m=\frac{\text{rise}}{\text{run}}\) to identify the rise and the run.
 Starting at the given point, count out the rise and run to mark the second point.
 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=12x+3\) and find its slope and yintercept.
The red lines in the graph show us the rise is 1 and the run is 2. Substituting into the slope formula:
\[m=\frac{\text{rise}}{\text{run}} \nonumber\] \[m=\frac{1}{2} \nonumber\]
The yintercept is \((0,3)\).
Look at the equation of this line. \(y = {\color{red}{\dfrac{1}{2}}}x+{\color{Cerulean}{3}} \)
Look at the slope and yintercept. slope \( m = {\color{red}{\dfrac{1}{2}}} \) and yintercept \( (0, {\color{Cerulean}{3}} ) \)
When a linear equation is solved for y, the coefficient of the x term is the slope and the constant term is the ycoordinate of the yintercept. We say that the equation \(y=\frac{1}{2}x+3\) is in slope–intercept form. Sometimes the slope–intercept form is called the “yform.”
SLOPE INTERCEPT FORM OF AN EQUATION OF A LINE
The slope–intercept form of an equation of a line with slope m and yintercept, \((0,b)\) is \(y=mx+b\).
Let’s practice finding the values of the slope and yintercept from the equation of a line.
Example \(\PageIndex{13}\)
Identify the slope and yintercept of the line from the equation: a. \(y=−\frac{4}{7}x−2\) b. \(x+3y=9\)
Solutiona. We compare our equation to the slope–intercept form of the equation.
Write the slope–intercept form of the equation of the line.  \( y = {\color{red}{m}}x + \color{Cerulean}{b} \) 
Write the equation of the line.  \( y = {\color{red}{\dfrac{4}{7}}}x \color{Cerulean}{2} \) 
Identify the slope.  \( m = {\color{red}{\dfrac{4}{7}}} \) 
Identify the yintercept.  y=intercept is \( (0, {\color{Cerulean}{2}} ) \) 
b. 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.  \( 3y = x + 9 \) 
Divide both sides by 3.  \( \dfrac{3y}{3} = \dfrac{x + 9}{3} \) 
Simplify.  \(y = \dfrac{1}{3}x+3 \) 
Write the slope–intercept form of the equation of the line.  \( y = {\color{red}{m}}x + \color{Cerulean}{b} \) 
Write the equation of the line.  \( y = {\color{red}{\dfrac{1}{3}}}x + \color{Cerulean}{3} \) 
Identify the slope.  \( m = {\color{red}{\dfrac{1}{3}}} \) 
Identify the yintercept.  y=intercept is \( (0, {\color{Cerulean}{3}} ) \) 
Try It \(\PageIndex{14}\)
Identify the slope and yintercept from the equation of the line. a. \(y=\frac{2}{5}x−1\) b. \(x+4y=8\)
 Answer

 \(m=\frac{2}{5}\); \((0,−1)\)
 \(m=−\frac{1}{4}\); \((0,2)\)
Try It \(\PageIndex{15}\)
Identify the slope and yintercept from the equation of the line. a. \(y=−\frac{4}{3} x+1\) b. \(3x+2y=12\)
 Answer

 \(m=−\frac{4}{3}\); \((0,1)\)
 \(m=−\frac{3}{2}\); \((0,6)\)
We have graphed a line using the slope and a point. Now that we know how to find the slope and yintercept of a line from its equation, we can use the yintercept as the point, and then count out the slope from there.
Example \(\PageIndex{16}\)
Graph the line of the equation \(y=−x+4\) using its slope and yintercept.
Solution\(y=mx+b\)  
The equation is in slope–intercept form.  \(y=−x+4\) 
Identify the slope and yintercept.  \(m=−1\) yintercept is \((0,4)\) 
Plot the yintercept.  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.
Try It \(\PageIndex{17}\)
Graph the line of the equation \(y=−x−3\) using its slope and yintercept.
 Answer
Try It \(\PageIndex{18}\)
Graph the line of the equation \(y=−x−1\) using its slope and yintercept.
 Answer
Now that we have graphed lines by using the slope and yintercept, let’s summarize all the methods we have used to graph lines.
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} {lll} {} &{\textbf{Equation}} &{\textbf{Method}} \\ {\text{#1}} &{x=2} &{\text{Vertical line}} \\ {\text{#2}} &{y=−1} &{\text{Horizontal line}} \\ {\text{#3}} &{−x+2y=6} &{\text{Intercepts}} \\ {\text{#4}} &{4x−3y=12} &{\text{Intercepts}} \\ {\text{#5}} &{y=−x+4} &{\text{Slope–intercept}} \\ \end{array} \nonumber\]
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 yintercept, 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 yintercept 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 xaxis at a.
 \(y=b\) is a horizontal line passing through the yaxis at b.
 If y is isolated on one side of the equation, in the form \(y=mx+b\), graph by using the slope and yintercept.
 Identify the slope and yintercept and then graph.
 If the equation is of the form \(Ax+By=C\), find the intercepts.
 Find the x and yintercepts, a third point, and then graph.
Example \(\PageIndex{19}\)
Determine the most convenient method to graph each line:
ⓐ \(y=5\) ⓑ \(4x−5y=20\) ⓒ \(x=−3\) ⓓ \(y=−\frac{5}{9}x+8\)
 Answer

ⓐ \(y=5\)
This equation has only one variable, y. Its graph is a horizontal line crossing the yaxis 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 xaxis 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 yintercepts.
Example \(\PageIndex{20}\)
Determine the most convenient method to graph each line:
ⓐ \(3x+2y=12\) ⓑ \(y=4\) ⓒ \(y=\frac{1}{5}x−4\) ⓓ \(x=−7\).
 Answer

ⓐ intercepts ⓑ horizontal line ⓒ slopeintercept ⓓ vertical line
Example \(\PageIndex{21}\)
Determine the most convenient method to graph each line:
ⓐ \(x=6\) ⓑ \(y=−\frac{3}{4}x+1\) ⓒ \(y=−8\) ⓓ \(4x−3y=−1\).
 Answer

ⓐ vertical line ⓑ slopeintercept ⓒ horizontal line
ⓓ intercepts
Graph and Interpret Applications of SlopeIntercept
Many realworld applications are modeled by linear equations. We will take a look at a few applications here so you can see how equations written in slopeintercept form relate to realworld situations.
Usually, when a linear equation models uses realworld 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.
Example \(\PageIndex{22}\)
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 Fintercept of the equation.
ⓓ Graph the equation.
 Answer

ⓐ
\( \begin{array} {ll} {\text{Find the Fahrenheit temperature for a Celsius temperature of 0.}} &{F=\frac{9}{5}C+32} \\ {\text{Find F when C=0.}} &{F=\frac{9}{5}(0)+32} \\ {\text{Simplify.}} &{F=32} \\ \end{array} \nonumber\)
ⓑ
\( \begin{array} {ll} {\text{Find the Fahrenheit temperature for a Celsius temperature of 20.}} &{F=\frac{9}{5}C+32} \\ {\text{Find F when C=20.}} &{F=\frac{9}{5}(20)+32} \\ {\text{Simplify.}} &{F=36+32} \\ {\text{Simplify.}} &{F=68} \\ \end{array} \nonumber\)
ⓒ
Interpret the slope and Fintercept of the equation.
Even though this equation uses F and C, it is still in slopeintercept form.The slope, \(\frac{9}{5}\), means that the temperature Fahrenheit (F) increases 9 degrees when the temperature Celsius (C) increases 5 degrees.
The Fintercept means that when the temperature is \(0°\) on the Celsius scale, it is \(32°\) on the Fahrenheit scale.
ⓓ Graph the equation.
We’ll need to use a larger scale than our usual. Start at the Fintercept \((0,32)\), and then count out the rise of 9 and the run of 5 to get a second point as shown in the graph.
Example \(\PageIndex{23}\)
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 hintercept of the equation.
ⓓ Graph the equation.
 Answer

ⓐ 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 hintercept means that when the shoe size is 0, the height is 50 inches.
ⓓ
Example \(\PageIndex{24}\)
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 Tintercept of the equation.
ⓓ Graph the equation.
 Answer

ⓐ 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 Tintercept means that when the number of chirps is 0, the temperature is 40°.
ⓓ
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.
Example \(\PageIndex{25}\)
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 Cintercept of the equation.
ⓓ Graph the equation.
 Answer

ⓐ
\( \begin{array} {ll} {\text{Find Sam’s cost for a week when he drives 0 miles.}} &{C=0.5m+60} \\ {\text{Find C when m=0.}} &{C=0.5(0)+60} \\ {\text{Simplify.}} &{C=60} \\ {} &{\text{Sam’s costs are }$\text{60 when he drives 0 miles.}} \\ \end{array} \nonumber \)
ⓑ
\( \begin{array} {ll} {\text{Find Sam’s cost for a week when he drives 250 miles.}} &{C=0.5m+60} \\ {\text{Find C when m=250.}} &{C=0.5(250)+60} \\ {\text{Simplify.}} &{C=185} \\ {} &{\text{Sam’s costs are }$\text{185 when he drives 250 miles.}} \\ \end{array} \nonumber \)
ⓒ Interpret the slope and Cintercept of the equation.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 Cintercept 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 Cintercept \((0,60)\).To count out the slope \(m= 0.5\), we rewrite it as an equivalent fraction that will make our graphing easier.
\( \begin{array} {ll} {} &{m=0.5} \\ {\text{Rewrite as a fraction.}} &{m=\frac{0.5}{1}} \\ {\text{Multiply numerator and}} &{} \\ {\text{denominator by 100}} &{m=\frac{0.5(100)}{1(100)}} \\ {\text{Simplify.}} &{m=\frac{50}{100}} \\ \end{array} \nonumber \)
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)\).
Example \(\PageIndex{26}\)
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 Cintercept of the equation.
ⓓ Graph the equation.
 Answer

ⓐ $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 Cintercept means that when the number of pizzas sold is 0, the weekly cost is $25.
ⓓ
Example \(\PageIndex{27}\)
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 Cintercept of the equation.
ⓓ Graph the equation.
 Answer

ⓐ $35
ⓑ $170
ⓒ The slope, \(1.8\), means that the weekly cost, C, increases by \($1.80\) when the number of invitations, n, increases by 1.
The Cintercept means that when the number of invitations is 0, the weekly cost is $35.
ⓓ
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 yintercepts are called parallel lines. See Figure.
Verify that both lines have the same slope, \(m=\frac{2}{5}\), and different yintercepts.
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 xintercepts are parallel, like the lines shown in this graph.
PARALLEL LINES
Parallel lines are lines in the same plane that do not intersect.
 Parallel lines have the same slope and different yintercepts.
 If \(m1\) and \(m2\) are the slopes of two parallel lines then \(m1=m2\).
 Parallel vertical lines have different xintercepts
Since parallel lines have the same slope and different yintercepts, we can now just look at the slope–intercept form of the equations of lines and decide if the lines are parallel.
Example \(\PageIndex{28}\)
Use slopes and yintercepts to determine if the lines are parallel:
ⓐ \(3x−2y=6\) and \(y=\frac{3}{2}x+1\) ⓑ \(y=2x−3\) and \(−6x+3y=−9\).
 Answer

ⓐ
\( \begin{array} {llll} {} &{3x−2y=6} &{\text{and}} &{y=\frac{3}{2}x+1} \\ {} &{−2y=−3x+6} &{} &{} \\ {\text{Solve the first equation for y.}} &{\frac{2y}{2}=\frac{3x+6}{2}} &{} &{} \\ {\text{The equation is now in slope–intercept form.}} &{y=\frac{3}{2}x−3} &{} &{} \\ {\text{The equation of the second line is already}} &{} &{} &{} \\ {\text{in slope–intercept form.}} &{} &{} &{y=\frac{3}{2}x+1} \\ {} &{} &{} &{} \\ {} &{y=\frac{3}{2}x−3} &{} &{y=\frac{3}{2}x+1} \\ {Identify the slope andyintercept of both lines.} &{y=mx+b} &{} &{y=mx+b} \\ {} &{m=\frac{3}{2}} &{} &{y=\frac{3}{2}} \\ {} &{\text{yintercept is }(0,−3)} &{} &{\text{yintercept is }(0,1)} \\ \end{array} \nonumber\)
The lines have the same slope and different yintercepts and so they are parallel.
You may want to graph the lines to confirm whether they are parallel.
ⓑ
\( \begin{array} {llll} {} &{y=2x−3} &{\text{and}} &{−6x+3y=−9} \\ {\text{The first equation is already in slope–intercept form.}} &{y=2x−3} &{} &{} \\ {} &{} &{} &{−6x+3y=−9} \\ {} &{} &{} &{3y=6x−9} \\ {\text{Solve the second equation for y.}} &{} &{} &{\frac{3y}{3}=\frac{6x−9}{3}} \\ {} &{} &{} &{y=2x−3} \\ {\text{The second equation is now in slope–intercept form.}} &{} &{} &{y=2x−3} \\ {} &{} &{} &{} \\ {} &{y=2x−3} &{} &{y=2x−3} \\ {\text{Identify the slope andyintercept of both lines.}} &{y=mx+b} &{} &{y=mx+b} \\ {} &{m=2} &{} &{m=2} \\ {} &{\text{yintercept is }(0,−3)} &{} &{\text{yintercept is }(0,3)} \\ \end{array} \nonumber\)
The lines have the same slope, but they also have the same yintercepts. Their equations represent the same line and we say the lines are coincident. They are not parallel; they are the same line.
Example \(\PageIndex{29}\)
Use slopes and yintercepts 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\).
 Answer

ⓐ parallel ⓑ not parallel; same line
Example \(\PageIndex{30}\)
Use slopes and yintercepts 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\).
 Answer

ⓐ parallel ⓑ not parallel; same line
Example \(\PageIndex{31}\)
Use slopes and yintercepts to determine if the lines are parallel:
ⓐ \(y=−4\) and \(y=3\) ⓑ \(x=−2\) and \(x=−5\).
 Answer

ⓐ \(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 yaxis at y=−4y=−4 and at y=3,y=3, we know the yintercepts are (0,−4)(0,−4) and (0,3).(0,3).
The lines have the same slope and different yintercepts 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 xaxis at \(x=−2\) and \(x=−5\), we know the yintercepts are \((−2,0)\) and \((−5,0)\).
The lines are vertical and have different xintercepts and so they are parallel.
Example \(\PageIndex{32}\)
Use slopes and yintercepts to determine if the lines are parallel:
ⓐ \(y=8\) and \(y=−6\) ⓑ \(x=1\) and \(x=−5\).
 Answer

ⓐ parallel ⓑ parallel
Example \(\PageIndex{33}\)
Use slopes and yintercepts to determine if the lines are parallel:
ⓐ \(y=1\) and \(y=−5\) ⓑ \(x=8\) and \(x=−6\).
 Answer

ⓐ parallel ⓑ parallel
Let’s look at the lines whose equations are \(y=\frac{1}{4}x−1\) and \(y=−4x+2\), shown in Figure.
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} {l} {m_1·m_2} \\ {14(−4)} \\ {−1} \\ \end{array} \nonumber\]
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.
Example \(\PageIndex{34}\)
Use slopes to determine if the lines are perpendicular:
ⓐ \(y=−5x−4\) and \(x−5y=5\) ⓑ \(7x+2y=3\) and \(2x+7y=5\)
 Answer

ⓐ
The first equation is in slope–intercept form.Solve the second equation fory.Identify the slope of each line.y=−5x−4yym1=−5x−4=mx+b=−5x−5y−5y−5y−5y=5=−x+5=−x+5−5=15x−1yym2=15x−1=mx+b=15The first equation is in slope–intercept form.y=−5x−4Solve the second equation fory.x−5y=5−5y=−x+5−5y−5=−x+5−5y=15x−1Identify the slope of each line.y=−5x−4y=mx+bm1=−5y=15x−1y=mx+bm2=15
The slopes are negative reciprocals of each other, so the lines are perpendicular. We check by multiplying the slopes, Since −5(15)=−1,−5(15)=−1, it checks.
ⓑ
Solve the equations fory.Identify the slope of each line.7x+2y2y2y2y=3=−7x+3=−7x+32=−72x+32ym1=mx+b=−722x+7y7y7y7y=5=−2x+5=−2x+57=−27x+57ym1=mx+b=−27Solve the equations fory.7x+2y=32y=−7x+32y2=−7x+32y=−72x+322x+7y=57y=−2x+57y7=−2x+57y=−27x+57Identify the slope of each line.y=mx+bm1=−72y=mx+bm1=−27
The slopes are reciprocals of each other, but they have the same sign. Since they are not negative reciprocals, the lines are not perpendicular.
Example \(\PageIndex{3}\)
Use slopes to determine if the lines are perpendicular:
ⓐ \(y=−3x+2\) and \(x−3y=4\) ⓑ \(5x+4y=1\) and \(4x+5y=3\).
 Answer

ⓐ perpendicular ⓑ not perpendicular
Example \(\PageIndex{3}\)
Use slopes to determine if the lines are perpendicular:
ⓐ \(y=2x−5\) and \(x+2y=−6\) ⓑ \(2x−9y=3\) and \(9x−2y=1\).
 Answer

ⓐ 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 using \(m=\frac{\text{rise}}{\text{run}}\).
 Locate two points on the line whose coordinates are integers.
 Starting with one point, sketch a right triangle, going from the first point to the second point.
 Count the rise and the run on the legs of the triangle.
 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 \((x_1,y_1)\) and \((x_2,y_2)\) is:
\[m=\frac{y_2−y_1}{x_2−x_1} \nonumber\].
 The slope of the line between two points \((x_1,y_1)\) and \((x_2,y_2)\) is:
 How to graph a line given a point and the slope.
 Plot the given point.
 Use the slope formula \(m=\frac{\text{rise}}{\text{run}}\) to identify the rise and the run.
 Starting at the given point, count out the rise and run to mark the second point.
 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 yintercept, \((0,b)\) is \(y=mx+b\)
 Parallel Lines
 Parallel lines are lines in the same plane that do not intersect.
Parallel lines have the same slope and different yintercepts.
If \(m_1\) and \(m_2\) are the slopes of two parallel lines then \(m_1=m_2\).
Parallel vertical lines have different xintercepts.
 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.
 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.
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.