Learning Objectives
After completing this module, you should be able to:
- Graph functions using intercepts.
- Compute slope.
- Graph functions using slope and -intercept.
- Graph horizontal and vertical lines.
- Interpret graphs of functions.
- Model applications using slope and -intercept.
In this section, we will expand our knowledge of graphing by graphing linear functions. There are many real-world scenarios that can be represented by graphs of linear functions. Imagine a chairlift going up at a ski resort. The journey a skier takes travelling up the chairlift could be represented as a linear function with a positive slope. The journey a skier takes down the slopes could be represented by a linear function with a negative slope.
Graphing Functions Using Intercepts
Every linear equation can be represented by a unique line that shows all the solutions of the equation. We have seen that when graphing a line by plotting points, you can use any three solutions to graph. This means that two people graphing the line might use different sets of three points. At first glance, their two lines might not appear to be the same, since they would have different points labeled. But if all the work was done correctly, the lines should be exactly the same. One way to recognize that they are indeed the same line is to look at where the line crosses the -axis and the -axis. These points are called the intercepts of a line. Let us review the graphs of the lines in Figure 5.65.
The table below lists where each of these lines crosses the - and -axis. Do you see a pattern? For each line, the -coordinate of the point where the line crosses the -axis is zero. The point where the line crosses the -axis has the form and is called the -intercept of the line. The -intercept occurs when is zero. In each line, the -coordinate of the point where the line crosses the -axis is zero. The point where the line crosses the -axis has the form and is called the -intercept of the line. The -intercept occurs when is zero.
Figure | The line crosses the at: | Ordered Pair for this Point | The line crosses the at: | Ordered Pair for This Point |
---|---|---|---|---|
Figure (a) | 3 | 6 | ||
Figure (b) | 4 | |||
Figure (c) | 5 | |||
Figure (d) | 0 | 0 | ||
General Figure |
Example 5.70
Finding - and -Intercepts
Find the -intercept and -intercept on the (a) and (b) graphs in Figure 5.66.
Solution
In Figure 5.66, the graph crosses the -axis at the point . The -intercept is . The graph crosses the -axis at the point . The -intercept is . In Figure 5.66, the graph crosses the -axis at the point . The -intercept is . The graph crosses the -axis at the point . The -intercept is .
Your Turn 5.70
Example 5.71
Graphing a Function Using Intercepts
Find the intercepts of . Then graph the function using the intercepts.
Solution
Let to find the -intercept, and let to find the -intercept.
To find the -intercept, let . | To find the -intercept, let . | ||
Simplify. | Simplify. | ||
The -intercept is: | The -intercept is: |
Plot the intercepts to get the graph in Figure 5.67.
Your Turn 5.71
Computing Slope
When graphing 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. 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 of the triangle and one side is horizontal and one side is vertical. Next, we measure or calculate 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.
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 (Figure 5.68) is a rate of change.
FORMULA
To calculate slope , use the formula
where the rise measures the vertical change and the run measures the horizontal change.
The concept of slope has many applications in the real world. In construction, the pitch of a roof, the slant of plumbing pipes, and the steepness of stairs are all applications of slope. As you ski or jog down a hill, you definitely experience slope.
Example 5.72
Finding the Slope from a Graph
Find the slope of the line shown in Figure 5.69.
Solution
Step 1: Locate two points on the graph whose coordinates are integers, such as and . Starting at , sketch a right triangle to as shown in Figure 5.70.
Step 2: Count the rise; since it goes down, it is negative. The rise is −2.
Step 3: Count the run. The run is 3.
Step 4: Use the slope formula substitute the values of the rise and run.
The slope of the line is .
The solution is decreases by 2 units as increases by 3 units.
Your Turn 5.72
Sometimes we will need to find the slope of a line between two points when we don’t have a graph to measure 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. First, we need to introduce some algebraic notation.
We have seen that an ordered pair (, ) gives the coordinates of a point. But when we work with slopes, we use two points. How can the same symbol (, ) be used to represent two different points? Mathematicians use subscripts to distinguish such points. For example, (, ) would be said aloud as “ sub 1, sub 1” and (, ) read “ sub 2, sub 2.” The “sub” is a short way of saying “subscript.” We will use (, ) to identify the first point and (, ) to identify the second point in our slope equation. If we had more than two points, (if we were finding more than one slope), we could use (, ), (, ), and so on.
Let’s review 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 and , as shown in Figure 5.71.
On the graph, we count the rise of 3 and the run of 5. Notice on the graph that that (, ) is the point and (, ) is the point . The rise can be found by subtracting the -coordinates, 6 and 3, and the run can be found by subtracting the -coordinates 7 and 2.
We have shown that is really another version of . We can use this formula to find the slope of a line.
FORMULA
To find the slope of the line between two points (, ) and (, ), use the formula
Example 5.73
Finding the Slope of the Line Using Points
Use the slope formula to find the slope of the line through the points (−2, −3) and (−7, 4).
Solution
We’ll call (−2, −3) point 1 and (−7, 4) point 2.
Step 1: Use the slope formula:
Step 2: Substitute the values:
Step 3: Simplify:
Step 4: Verify the slope on the graph shown in Figure 5.72.
Your Turn 5.73
Graphing Functions Using Slope and -Intercept
We have graphed linear equations by plotting points and using intercepts. Once we see how an equation in slope-intercept form and its graph are related, we will have one more method we can use to graph lines. Review the graph of the equation in Figure 5.73 and find its slope and -intercept.
The vertical and horizontal lines in the graph show us the rise is 1 and the run is 2, respectively.
Substituting into the slope formula:
The -intercept is . Look at the equation of this line.
Look at the slope and -intercept.
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 the equation is in slope-intercept form. Sometimes the slope-intercept form is called the -form.
Example 5.74
Finding the Slope and -Intercept of a Line
Identify the slope and -intercept of the line from the equation:
Solution
- We compare our equation to the slope-intercept form of the equation.
Step 1: Write the slope-intercept form of the equation of the line.
Step 2: Write the equation of the line.
Step 3: Identify the slope.
Step 4: Identify the -intercept.
- When an equation of a line is not given in slope-intercept form, our first step will be to solve the equation for .
Step 1: Solve for .
Step 2: Subtract from each side.
Step 3: Divide both sides by 3.
Step 4: Simplify.
Step 5: Write the slope-intercept form of the equation of the line.
Step 6: Write the equation of the line.
Step 7: Identify the slope.
Step 8: Identify the -intercept.
.
Your Turn 5.74
Example 5.75
Graphing the Slope and -Intercept
Graph the line of the equation using its slope and -intercept.
Solution
The equation is in slope-intercept form .
Step 1: Identify the slope and -intercept.
, -intercept is .
Step 2: Plot the -intercept on the coordinate system (Figure 5.74).
- Identify the rise over the run.
- Count out the rise and run to mark the second point.
rise , run 1
Your Turn 5.75
Graphing Horizontal and Vertical Lines
Some linear equations have only one variable. They may have just without the , or just without an . This changes how we make a table of values to get the points to plot. Let us consider the equation . This equation has only one variable, . The equation says that is always equal to , so its value does not depend on . No matter what the value of is, the value of is always . To make a table of values, write in for all the -values. Then choose any values for . Since does not depend on , you can choose any numbers you like. But to fit the points on our coordinate graph, we will use 1, 2, and 3 for the -coordinates in the table below.
(, ) | ||
−3 | 1 | |
2 | ||
3 |
Plot the points from the table and connect them with a straight line (Figure 5.75). Notice that we have graphed a vertical line.
What is the slope? If we take the two points and then the rise is 2 and the run is 0.
Using the slope formula we get:
The slope is undefined since division by zero is undefined. We say that the slope of the vertical line is undefined. The slope of any vertical line (where is any number) will be undefined.
What if the equation has but no ? Let’s graph the equation . This time the -value is a constant, so in this equation, does not depend on . Fill in 4 for all the values in the table below and then choose any values for . We will use 0, 2, and 4 for the -coordinates.
(, ) | ||
0 | 4 | |
2 | 4 | |
4 | 4 |
In Figure 5.76, we have graphed a horizontal line passing through the -axis at 4.
What is the slope? If we take the two points and then the rise is 0 and the run is 2. Using the slope formula, we get . The slope of the horizontal line is 0. The slope of any horizontal line (where is any number) will be 0. When the -coordinates are the same, the rise is 0.
Example 5.76
Graphing A Vertical Line
Graph: .
Solution
The equation has only one variable, , and is always equal to 2. We create a table where is always 2 and then put in any values for . The graph is a vertical line passing through the -axis at 2 (Figure 5.77).
(, ) | ||
2 | 1 | |
2 | 2 | |
2 | 3 |
Your Turn 5.76
Example 5.77
Graphing A Horizontal Line
Graph: .
Solution
The equation has only one variable, . The value of is constant. All the ordered pairs in the next table have the same -coordinate. The graph is a horizontal line passing through the -axis at −1 (Figure 5.78).
(, ) | ||
0 | ||
3 | ||
Your Turn 5.77
The table below summarizes all the methods we have used to graph lines.
Interpreting Graphs of Functions
An important yet often overlooked area in algebra involves interpreting graphs. Oftentimes in math classes, students are given mathematical functions and can make graphs to represent them. But the interpretation of graphs is a more applicable skill to the real world. Being able to “read” a graph—understanding its domain and range, what the intercepts mean, and what the slope (or curve) means— that's a real-world skill.
Example 5.78
Interpreting a Graph
In Figure 5.79 the -axis on the graph represents the 120-minute bike ride Juan went on. The -axis represents how far away he was from his home.
- Interpret the - and -intercept.
- For each segment, find the slope.
- Create an interpretation of this graph (i.e., make up a story that goes with it).
Solution
- is the - and -intercept and represents Juan at home before his bike ride. The distance from home is 0 miles and 0 minutes have passed.
- In the first 30 minutes, the slope is and indicates Juan is traveling 1 mile for every 5 minutes. Between 30 and 60 minutes, the slope is 0 and indicates that he’s not riding the bike (the distance is not increasing). Then between 60 and 90 minutes, the slope is again. Finally, after 90 minutes the slope is meaning Juan is getting 4 miles closer to home every 15 minutes.
- Answers will vary. Juan left his house for a bike ride. After 30 minutes, he was 6 miles from home and he stopped for ice cream at his local ice-cream truck. He enjoyed his ice cream for 30 minutes. He then jumped back on his bike and rode to his friend’s house. He arrived there 30 minutes later. His friend’s house was 12 miles from his home. His friend was not home so he immediately turned around and quickly rode home in 45 minutes.
Your Turn 5.78
Modeling Applications Using Slope and -Intercept
Many real-world applications are modeled by linear equations. We will review a few applications here so you can understand how equations written in slope-intercept form relate to real-world situations. Usually when a linear equation model uses real-world data, different letters are used for the variables instead of using only and . The variable names often remind us of what quantities are being measured. Also, we often need to extend the axes in our rectangular coordinate system to bigger positive and negative numbers to accommodate the data in the application.
Example 5.79
Converting Temperature
The equation is used to convert temperatures from degrees Celsius () to degrees Fahrenheit ().
- Find the Fahrenheit temperature for a Celsius temperature of 0°.
- Find the Fahrenheit temperature for a Celsius temperature of 20°.
- Interpret the slope and -intercept of the equation.
- Graph the equation.
Solution
- Find the Fahrenheit temperature for a Celsius temperature of 0°.
Find when . Simplify. - Find the Fahrenheit temperature for a Celsius temperature of 20°.
Find when . Simplify. Simplify. - 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 9 degrees when the temperature Celsius () increases 5 degrees.
The -intercept means that when the temperature is 0° on the Celsius scale, it is 32° on the Fahrenheit scale.
- Graph the equation.
We will need to use a larger scale than our usual. Start at the -intercept , and then count out the rise of 9 and the run of 5 to get a second point as shown in Figure 5.80.
Your Turn 5.79
Example 5.80
Calculating Driving Costs
Sam drives a delivery van. The equation models the relation between his weekly cost, , in dollars and the number of miles, , 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 -intercept of the equation.
- Graph the equation.
Solution
- Find Sam’s cost for a week when he drives 0 miles.
Find when = 0. Simplify. Sam’s costs are $60 when he drives 0 miles.
- Find the cost for a week when he drives 250 miles.
Find when . Simplify. Sam’s costs are $185 when he drives 250 miles.
- Interpret the slope and -intercept of the equation.
The slope, 0.5, means that the weekly cost, , increases by $0.50 when the number of miles driven, , increases by 1. The -intercept means that when the number of miles driven is 0, the weekly cost is $60.
- Graph the equation (Figure 5.81).
We’ll need to use a larger scale than usual. Start at the -intercept (0, 60). To count out the slope , we rewrite it as an equivalent fraction that will make our graphing easier.
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).