Slope of a Line
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. Slope is a rate of 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. 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 .
- 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: .
Example. Find the slope of the line shown.
Locate two points on the graph whose coordinates are integers: and . Starting at , sketch a right triangle to . Count the rise—since it goes down, it is negative. The rise is . Count the run. The run is . Use the slope formula and substitute the values:
The slope of the line is . So decreases by units as increases by units.
Find the slope of the line through the points and .
From the left point to the right point, the rise is and the run is .Find the slope of the line through the points and .
Count the vertical change and horizontal change, then form rise over run.How do we find the slope of horizontal and vertical lines? For the horizontal line , the rise is and the run is , so . For the vertical line , the rise is and the run is . Its slope is undefined since division by zero is undefined.
Example. Find the slope of each line: (a) (b) .
(a) is a vertical line. Its slope is undefined.
(b) is a horizontal line. It has slope .
Find the slope of the line .
A vertical line has a run of zero.Find the slope of the line .
A horizontal line has a rise of zero.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 there is a way to find the slope without graphing.
We use to identify the first point and to identify the second point. The rise can be found by subtracting the -coordinates, and the run can be found by subtracting the -coordinates.
Slope of a line between two points. The slope of the line between two points and is
The slope is of the second point minus of the first point, over of the second point minus of the first point.
Example. Use the slope formula to find the slope of the line through the points and .
We’ll call point #1 and point #2. Use the slope formula, substitute the values, and simplify:
Use the slope formula to find the slope through and .
Substitute the coordinates into .Use the slope formula to find the slope through and .
Keep the subtraction order the same in numerator and denominator.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. How to graph a line given a point and the slope. Graph the line passing through the point whose slope is .
Plot . Identify the rise and run: , so rise and run . Start at and count up units and right units. Connect the two points with a line.
You can check your work by finding a third point. Since the slope is , it can also be written as (negative divided by negative is positive!). Go back to and count out the rise, , and the run, .
Graph the line through with slope . Starting at the given point and using the rise and run, enter the second point.
Move up and right from .Graph a line given a point and the slope.
- Plot the given point.
- Use 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.
Let’s look at the graph of and find its slope and -intercept.
The red lines in the source graph show us the rise is and the run is . Substituting into the slope formula gives . The -intercept is .
When a linear equation is solved for , the coefficient of the term is the slope and the constant term is the -coordinate of the -intercept. We say that is in slope-intercept form. Sometimes the slope-intercept form is called the “-form.”
Slope-intercept form of an equation of a line. The slope-intercept form of an equation of a line with slope and -intercept is
Example. Identify the slope and -intercept of the line from each equation: (a) (b) .
(a) Compare to . The slope is and the -intercept is .
(b) When an equation of a line is not given in slope-intercept form, our first step will be to solve the equation for :
The slope is and the -intercept is .
Identify the slope of .
Solve the equation for .Example. Graph using its slope and -intercept.
The equation is in slope-intercept form. Identify and the -intercept . Plot the -intercept. Write , so the rise is and the run is . Count out the rise and run to mark the second point. Draw the line.
Graph using its slope and y-intercept. Enter the y-intercept.
In , the y-intercept is .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.
| Equation | Method |
|---|---|
| Vertical line | |
| Horizontal line | |
| Intercepts | |
| Intercepts | |
| Slope-intercept |
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.
- is a vertical line passing through the -axis at .
- is a horizontal line passing through the -axis at .
- If is isolated on one side of the equation, in the form ,
graph by using the slope and -intercept.
- Identify the slope and -intercept and then graph.
- If the equation is of the form , find the intercepts.
- Find the - and -intercepts, a third point, and then graph.
Example. Determine the most convenient method to graph each line: (a) (b) (c) (d) .
(a) This equation has only one variable, . Its graph is a horizontal line crossing the -axis at .
(b) This equation is of the form . The easiest way to graph it will be to find the intercepts and one more point.
(c) There is only one variable, . The graph is a vertical line crossing the -axis at .
(d) Since this equation is in form, it will be easiest to graph this line by using the slope and -intercept.
What is the most convenient method to graph ?
The equation is in the form .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 and . 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. The equation is used to convert temperatures, , on the Celsius scale to temperatures, , on the Fahrenheit scale.
(a) Find the Fahrenheit temperature for a Celsius temperature of .
(b) Find the Fahrenheit temperature for a Celsius temperature of .
(c) Interpret the slope and -intercept of the equation. Even though this equation uses and , it is still in slope-intercept form. The slope, , means that the temperature Fahrenheit () increases degrees when the temperature Celsius () increases degrees. The -intercept means that when the temperature is on the Celsius scale, it is on the Fahrenheit scale.
(d) Graph the equation. Start at the -intercept , and then count out the rise of and the run of to get a second point.
The equation estimates a woman's height in inches from shoe size . Estimate the height when .
inchesSubstitute into the equation.The cost of running some types of business has two components—a fixed cost and a variable cost. The fixed cost is always the same regardless of how many units are produced. The variable cost depends on the number of units produced. It is for the material and labor needed to produce each item.
Example. Sam drives a delivery van. The equation models the relation between his weekly cost, , in dollars and the number of miles, , that he drives.
(a) Find Sam’s cost for a week when he drives miles: . Sam’s costs are $60 when he drives miles.
(b) Find the cost for a week when he drives miles: . Sam’s costs are $185 when he drives miles.
(c) Interpret the slope and -intercept. The slope, , means that the weekly cost, , increases by $0.50 when the number of miles driven, , increases by . The -intercept means that when the number of miles driven is , the weekly cost is $60.
(d) Graph the equation. Start at the -intercept . To count out the slope , rewrite it as an equivalent fraction: . Go up from the intercept of and then right . The second point is .
Stella's weekly cost is . Find her cost when she sells pizzas.
$85Substitute into .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. Two lines that have the same slope and different -intercepts are called parallel lines.
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 -intercepts are parallel.
Parallel lines. Parallel lines are lines in the same plane that do not intersect.
- Parallel lines have the same slope and different -intercepts.
- If and are the slopes of two parallel lines then .
- Parallel vertical lines have different -intercepts.
Example. Use slopes and -intercepts to determine if the lines are parallel: (a) and (b) and .
(a) Solve the first equation for :
The second line is already . The lines have the same slope and different -intercepts and so they are parallel.
(b) Solving gives . The lines have the same slope, but they also have the same -intercepts. Their equations represent the same line and we say the lines are coincident. They are not parallel; they are the same line.
Example. Use slopes and -intercepts to determine if the lines are parallel: (a) and (b) and .
(a) These are horizontal lines and so their slopes are both . Their -intercepts are and . The lines have the same slope and different -intercepts and so they are parallel.
(b) These are vertical lines and their slopes are undefined. They cross the -axis at and . The lines are vertical and have different -intercepts and so they are parallel.
Are the lines and parallel?
Both are horizontal lines with slope zero and different y-intercepts.The lines and lie in the same plane and intersect in right angles. We call these lines perpendicular. Their slopes are negative reciprocals of each other, and their product is :
Perpendicular lines. Perpendicular lines are lines in the same plane that form a right angle.
- If and are the slopes of two perpendicular lines, then their slopes are negative reciprocals, , and the product of their slopes is , .
- A vertical line and a horizontal line are always perpendicular to each other.
Example. Use slopes to determine if the lines are perpendicular: (a) and (b) and .
(a) The first equation is in slope-intercept form. Solve the second equation for : , , . The slopes are and . They are negative reciprocals, so the lines are perpendicular. Since , it checks.
(b) Solve the equations for : and . The slopes are reciprocals of each other, but they have the same sign. Since they are not negative reciprocals, the lines are not perpendicular.
Are and perpendicular?
The second line has slope ; multiply the slopes.Key terms
slope — the measure of the steepness of a line; the ratio of rise to run. slope formula — , used to find the slope between two points. slope-intercept form — , where is the slope and is the -intercept. fixed cost — a business cost that does not change with the number of units produced. variable cost — a business cost that changes with the number of units produced. parallel lines — lines in the same plane that do not intersect. perpendicular lines — lines in the same plane that form a right angle.
This section is adapted from Intermediate Algebra 2e, Section 3.2: Slope of a Line by Lynn Marecek, MaryAnne Anthony-Smith, and Andrea Honeycutt Mathis, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: recreated coordinate-plane figures as accessible interactive graphs; omitted the Be Prepared quiz, Media links, self-check, and section exercises; and converted the source Try Its into interactive exercises with instant feedback.