### Graphs using Slope-Intercept Form

The total profit of a business is described by the equation \begin{align*}y = 15000x - 80000,\end{align*}

**Identifying Slope and \begin{align*}\mathbf{y\text{-intercept}}\end{align*}**

So far, we’ve been writing a lot of our equations in **slope-intercept form** - that is, we’ve been writing them in the form \begin{align*}y = mx + b\end{align*}, where \begin{align*}m\end{align*} and \begin{align*}b\end{align*} are both constants. It just so happens that \begin{align*}m\end{align*} is the slope and the point \begin{align*}(0, b)\end{align*} is the \begin{align*}y\text{-intercept}\end{align*} of the graph of the equation, which gives us enough information to draw the graph quickly.

Identify the slope and \begin{align*}y\text{-intercept}\end{align*} of the following equations.

a) \begin{align*}y = 3x + 2\end{align*}

Comparing

, we can see that \begin{align*}m = 3\end{align*} and \begin{align*}b = 2\end{align*}. So \begin{align*}y = 3x + 2\end{align*} has a**slope of 3**and a \begin{align*}\mathbf{y\text{-intercept}}\end{align*}

**of (0, 2).**

b) \begin{align*}y = 0.5x - 3\end{align*}

has a

**slope of 0.5**and a \begin{align*}\mathbf{y\text{-intercept}}\end{align*}

**of (0, -3).**

Notice that the intercept is **negative**. The \begin{align*}b-\end{align*}term includes the sign of the operator (plus or minus) in front of the number - for example, \begin{align*}y = 0.5x - 3\end{align*} is identical to \begin{align*}y = 0.5x + (\text{-}3)\end{align*}, and that means that \begin{align*}b\end{align*} is -3, not just 3.

c) y=-7x

At first glance, this equation doesn’t look like it’s in slope-intercept form. But we can rewrite it as \begin{align*}y = \text{-}7x + 0\end{align*}, and that means it has a **slope of -7** and a \begin{align*}\mathbf{y\text{-intercept}}\end{align*}**of (0, 0).** Notice that the slope is negative and the line passes through the origin.

d) \begin{align*}y=-4\end{align*}

We can rewrite this one as \begin{align*}y = 0x - 4,\end{align*} giving a **slope of 0** and a \begin{align*}\mathbf{y\text{-intercept}}\end{align*} **of (0, -4).** This is a horizontal line.

#### Identifying Slope and \begin{align*}y-intercept\end{align*}on a Graph

Identify the slope and \begin{align*}y\textit{-intercept}\end{align*} of the lines on the graph shown below.

The intercepts have been marked, as well as some convenient lattice points that the lines pass through.

a) **The \begin{align*}\mathbf{y\text{-intercept}}\end{align*} is (0, 5).** The line also passes through (2, 3), so the slope is \begin{align*}\frac{\Delta y}{\Delta x}=\frac{-2}{2} = -1.\end{align*}

b) **The \begin{align*}\mathbf{y\text{-intercept}}\end{align*} is (0, 2).** The line also passes through (1, 5), so the slope is \begin{align*}\frac{\Delta y}{\Delta x} = \frac {3}{1} = 3.\end{align*}

c) **The \begin{align*}\mathbf{y\text{-intercept}}\end{align*} is (0, -1).** The line also passes through (2, 3), so the slope is \begin{align*}\frac{\Delta y}{\Delta x} = \frac {4}{2} = 2.\end{align*}

d) **The \begin{align*}\mathbf{y\text{-intercept}}\end{align*} is (0, -3).** The line also passes through (4, -4), so the slope is \begin{align*}\frac{\Delta y}{\Delta x} = \frac {\text{-}1}{4} = \text{-} \frac{1}{4}\end{align*} or -0.25.

**Graphing an Equation in Slope-Intercept Form**

Once we know the slope and intercept of a line, it’s easy to graph it. Just remember what slope means. Let's look back at this example from Lesson 4.1.

*Ali is trying to work out a trick that his friend showed him. His friend started by asking him to think of a number, then double it, then add five to the result. Ali has written down a rule to describe the first part of the trick. He is using the letter \begin{align*}x\end{align*} to stand for the number he thought of and the letter \begin{align*}y\end{align*} to represent the final result of applying the rule. He wrote his rule in the form of an equation: \begin{align*}y = 2x + 5.\end{align*}*

*Help him visualize what is going on by graphing the function that this rule describes.*

In that example, we constructed a table of values, and used that table to plot some points to create our graph.

We also saw another way to graph this equation. Just by looking at the equation, we could see that the \begin{align*}y\text{-intercept}\end{align*} was (0, 5), so we could start by plotting that point. Then we could also see that the slope was 2, so we could find another point on the graph by going over 1 unit and up 2 units. The graph would then be the line between those two points.

Here’s another problem where we can use the same method.

#### Graphing a Function

Graph the following function: \begin{align*}y=\text{-}3x+5\end{align*}

To graph the function without making a table, follow these steps:

- Identify the \begin{align*}y\text{-intercept}\end{align*}: \begin{align*}b = 5\end{align*}
- Plot the intercept: (0, 5)
- Identify the slope: \begin{align*}m = \text{-}3.\end{align*} (This is equal to \begin{align*}\frac {\text{-}3}{1}\end{align*}, so the
**rise**is -3 and the**run**is 1.) - Move
**over**1 unit and**down**3 units to find another point on the line: (1, 2). - Draw the line through the points (0, 5) and (1, 2).

Notice that to graph this equation based on its slope, we had to find the rise and run - and it was easiest to do that when the slope was expressed as a fraction. That’s true in general: to graph a line with a particular slope, it’s easiest to first express the slope as a fraction in simplest form, and then read off the numerator and the denominator of the fraction to get the rise and run of the graph.

#### Finding the Rise and the Run

Find integer values for the **rise** and **run** of the following slopes, then graph lines with corresponding slopes.

a) \begin{align*}m=3\end{align*}

b) \begin{align*}m=-2\end{align*}

**Changing the Slope or Intercept of a Line**

The following graph shows a number of lines with different slopes, but all with the same \begin{align*}y\text{-intercept}:\end{align*} (0, 3).

You can see that all the functions with positive slopes increase as we move from left to right, while all functions with negative slopes decrease as we move from left to right. Another thing to notice is that the greater the slope, the steeper the graph.

This graph shows a number of lines with the same slope, but different \begin{align*}y\text{-intercepts.}\end{align*}

Notice that changing the intercept simply translates (shifts) the graph up or down. Take a point on the graph of \begin{align*}y = 2x\end{align*}, such as (1, 2). The corresponding point on \begin{align*}y = 2x + 3\end{align*} would be (1, 5). Adding 3 to the \begin{align*}y\text{-intercept}\end{align*} means we also add 3 to every other \begin{align*}y\end{align*} value on the graph. Similarly, the corresponding point on the \begin{align*}y = 2x - 3\end{align*} line would be (1, -1); we would subtract 3 from the \begin{align*}y\end{align*} value and from every other \begin{align*}y\end{align*} value.

Notice also that these lines all appear to be parallel. Are they truly parallel?

To answer that question, we’ll use a technique that you’ll learn more about in a later chapter. We’ll take 2 of the equations - say, \begin{align*}y = 2x\end{align*} and \begin{align*}y = 2x + 3\end{align*} - and solve for values of \begin{align*}x\end{align*} and \begin{align*}y\end{align*} that satisfy both equations. That will tell us at what point those two lines intersect, if any. (Remember that **parallel lines**, by definition, are lines that don’t intersect.)

So what values would satisfy both \begin{align*}y = 2x\end{align*} and \begin{align*}y = 2x + 3?\end{align*} Well, if both of those equations were true, then \begin{align*}y\end{align*} would be equal to both \begin{align*}2x\end{align*} and \begin{align*}2x + 3,\end{align*} which means those two expressions would also be equal to each other. So we can get our answer by solving the equation \begin{align*}2x = 2x + 3.\end{align*}

What happens when we try to solve that equation? If we subtract \begin{align*}2x\end{align*} from both sides, we end up with \begin{align*}0 = 3\end{align*}. That can’t be true no matter what \begin{align*}x\end{align*} equals. And that means that there just isn’t any value for \begin{align*}x\end{align*} that will make both of the equations we started out with true. In other words, there isn’t any point where those two lines intersect. They are parallel, just as we thought.

We’d find out the same thing no matter which two lines we’d chosen. In general, since changing the intercept of a line just results in shifting the graph up or down, the new line will always be parallel to the old line as long as the slope stays the same.

Any two lines with identical slopes are parallel.

### Examples

Find integer values for the **rise** and **run** of the following slopes, then graph lines with corresponding slopes.

#### Example 1

\begin{align*}m=0.75\end{align*}

#### Example 2

\begin{align*}m=-.375\end{align*}

### Review

Identify the slope and \begin{align*}y\text{-intercept}\end{align*} for the following equations.

- \begin{align*}y=2x+5\end{align*}
- \begin{align*}y=\text{-}0.2x+7\end{align*}
- \begin{align*}y=x\end{align*}
- \begin{align*}y=3.75\end{align*}

Identify the slope of the following lines.

Identify the slope and \begin{align*}y\text{-intercept}\end{align*} for the following functions.

For 7-10, plot the following functions on a graph.

- \begin{align*}y=2x+5\end{align*}
- \begin{align*}y=\text{-}0.2x+7\end{align*}
- \begin{align*}y=x\end{align*}
- \begin{align*}y=3.75\end{align*}

- Which two of the following lines are parallel?
- \begin{align*}y=2x+5\end{align*}
- \begin{align*}y=\text{-}0.2x+7\end{align*}
- \begin{align*}y=x\end{align*}
- \begin{align*}y=3.75\end{align*}
- \begin{align*}y= \text{-}\frac{1}{5}x-11\end{align*}
- \begin{align*}y=\text{-}5x+5\end{align*}
- \begin{align*}y=\text{-}3x+11\end{align*}
- \begin{align*}y=3x+3.5\end{align*}

- What is the \begin{align*}y\text{-intercept}\end{align*} of the line passing through (1, -4) and (3, 2)?
- What is the \begin{align*}y\text{-intercept}\end{align*} of the line with slope -2 that passes through (3, 1)?
- Line \begin{align*}A\end{align*} passes through the points (2, 6) and (-4, 3). Line \begin{align*}B\end{align*} passes through the point (3, 2.5), and is parallel to line \begin{align*}A\end{align*}
- Write an equation for line \begin{align*}A\end{align*} in slope-intercept form.
- Write an equation for line \begin{align*}B\end{align*} in slope-intercept form.

- Line \begin{align*}C\end{align*} passes through the points (2, 5) and (1, 3.5). Line \begin{align*}D\end{align*} is parallel to line \begin{align*}C\end{align*}, and passes through the point (2, 6). Name another point on line \begin{align*}D\end{align*}. (Hint: you can do this without graphing or finding an equation for either line.)

### Review (Answers)

To view the Review answers, open this PDF file and look for section 4.8.