# Slope intercept form: y = mx + b

## What is Slope Intercept Form

Slope intercept form is one of the three forms we can use to express a straight line. The other forms are called point slope form and standard form, but we will mostly be using slope intercept form in this section. Using slope intercept form, we express the equation of a line to be:

$y = mx + b$

You may know $x$ and $y$ to be coordinates of a point on a graph, but what are $m$ and $b$?

## What is b in y=mx+b?

The letter b is a number that represents when the line touches the y-axis. We also refer to this as the "y-intercept". For example, let's draw a straight line on the coordinate plane.

If you were to look closely at the y-axis, the straight line touches the y-axis at a specific place. Where is that place? That would be the number 3 because that is where the y-axis and the line intersect. This means we can conclude that b = 3.

## What is m in slope intercept form?

The letter m is a number that represents the slope of the line. Some people refer to the slope as rise over run. Recall that if we have two points, then we are able to find the slope of the two points by using the slope formula

$m = \frac{rise}{run} = \frac{y_{2} - y_{1}}{x_{2} - x_{1}}$

The same idea works here. If we take any two points on a straight line, then we can find the slope of the line using the above formula! For example, let's use this line.

Notice the points (2, 3) and (0, 1) are on this graph. So why don't we use these two points to find the slope of the line? Using the formula, we would get:

$m = \frac{y_{2} - y_{1}}{x_{2} - x_{1}} = \frac{1 - 3}{0 - 2}$

$= \frac{-2}{-2}$

$= 1$

That means the slope of this line is $1$!

You can also use the rise over run concept here as well. To go from the point (0, 1) to (2, 3), we have to go $2$ units right and $2$ units up. That means rise is $2$ and run is $2$, thus $\frac{2}{2} = 1$.

The special thing about slopes is that we can use any two points on the line to find it. So if you took two different points on this line, you would still get that the slope is $1$.

## How to write an equation in slope intercept form?

You may know what the slope intercept form looks like, but half the time you will be given equations that are not in that form. So it is your job to turn it into slope-intercept form. How do we do that? The goal is to always isolate the $y$ term. For example, let's say you're given the equation

$6x + 4 + 2y = 0$

To isolate $y$, we move the $6x + 4$ to the right side of the equation

$2y = -6x - 4$

Now the $2$ is in the way of $y$, so we are going to get rid of it by dividing both sides of the equation by $2$.

$\frac{2y}{2} = \frac{-6x - 4}{2}$

$y = -\frac{6x}{2} - \frac{4}{2}$

$y = -3x - 2$

Since $y$ is isolated, you can see that it is in slope intercept form $y = mx + b$ where $m = -3$, and $b = -2$.

Now that we know the y intercept and slope really well, why don't we look at specific questions about finding them!

## How to find y intercept?

Question 1: Using the linear equation $y = \frac{1}{2} x + 5$, find y intercept.

Notice here that the equation is already in the slope intercept form $y = mx + b$. We just need to find out what $b$ is. We can see that $b = 5$, so the y intercept is $5$.

Let's do a slightly harder question.

Question 2: Determine the y-intercept of $2x - 4y = 8$

Now this linear equation is not in slope intercept form, so we have to change it into that form first. Our goal is to isolate $y$ in this equation.

See that if we move the $2x$ to the right side of equation, we will have:

$-4y = 8 - 2x$

Now dividing both sides by $-4$, we will get:

$\frac{-4y}{-4} = \frac{8 - 2x}{-4}$

$y = \frac{8}{-4} - \frac{2x}{-4}$

$y = -2 + \frac{1}{2}x$

Now switching the positions of the two terms gives us:

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

We can clearly see that the equation is in slope intercept form $y = mx + b$. Just by looking at the equation, we can see that $= -2$, and so the y intercept is $-2$. Let's do another similar question.

Question 3: Determine the y intercept of $4y - 8 = 0$.

This may look a bit weird because there is no $x$ term, but our goal remains the same. We are going to isolate $y$.

Moving the $-8$ to the right side of the equation gives us:

$4y = 8$

Dividing both sides of the equation by $4$ gives us

$\frac{4y}{4} = \frac{8}{4}$

$y = 2$

Now this may not look like it, but the equation is in slope intercept form. It's just that $m = 0$, so the entire $mx$ term has disappeared. Just rewrite the equation as

$y = 0m + 2$

From observing, you can tell that $b = 2$, and so the y intercept is $2$. Let's do one more question.

Question 4: Determine (if possible) the y intercept of $5x - 15 = 0$.

This one is interesting because the equation has no $y$ term. So how are we supposed to put it in slope intercept form? Well, the only thing we can do right now is isolate for $x$, so let's try that for now.

Moving the $15$ to the right hand side of equation we have:

$5x = 15$

Dividing both sides of the equation gives:

$\frac{5x}{5} = \frac{15}{5}$

$x = 3$

Now we are going to draw this on a graph. Notice that in this equation, $x$ is forced to be $3$ and cannot be anything else. However, it doesn't say anything about $y$, so $y$ can be anything it likes. If we were to write a table of values, we get:

If we plot these points on a coordinate plane and draw the line, we have:

Notice how the line never touches the y-axis. This means the equation does not have a y intercept. Now that we covered all the cases of finding the y intercept, let's look at questions which ask us to find the slope!

## How to find the slope of an equation?

Question 5: Find the slope of $y = \frac{3}{2}x + 1$

Notice here that this is in the slope intercept form $y = mx + b$, so by observing, we already know that $m = \frac{3}{2}$. Hence, the slope is $\frac{3}{2}$!

Question 6: Determine the slope of the linear equation $6x - 6y = 0$

As you can see, the equation is not in slope intercept form, so we have to convert it into that form first. Our goal is to isolate $y$.

Moving $6x$ to the right side of the equation gives:

$-6y = -6x$

Dividing both sides by $-6$ gives:

$\frac{-6y}{-6} = \frac{-6x}{-6}$

$y = x$

Notice that this is actually in slope intercept form $y = mx + b$. It's just that the y intercept $b$ in this case is $0$, and $x$ is the same as $1x$. So we can rewrite the equation to:

$y = 1x + 0$

Now by observing, we see that $m = 1$. Since $m$ is the slope, then the slope must be $1$. Let's do a slightly harder one

Question 7: Determine the slope of $2y - 4 = 0$

Again, this is a little weird because we have no $x$ term. However, our goal to isolate $y$ stays the same.

Moving $-4$ to the right side of the equation we have:

$2y = 4$

Dividing both sides of the equation by $2$ gives:

$\frac{2y}{2} = \frac{4}{2}$

$y = 2$

See here that it is now in slope intercept form, except the term $mx$ is hidden because $m = 0$. So we can rewrite our equation as:

$y = 0x + 2$

Since $m = 0$, then we have a zero slope. If you are wondering what a line with $0$ slope looks like, then here is a graph for you to see.

Question 8: Find (if possible) the slope of the linear equation $16 - 4x = 0$

In this case, $y$ cannot be isolated because there is no $y$ term. So the only thing we can do is to isolate $x$.

Moving $16$ to the right side of the equation gives:

$-4x = -16$

Dividing both sides by $-4$, we get:

$\frac{-4x}{-4} = \frac{-16}{-4}$

$x = 4$

This is still not in slope intercept form, so our only hope of attaining the slope is to draw a graph of this line. Again, we see that $x$ is always forced to be $4$, but $y$ can be anything it likes because there is no $y$ term. If we were to write a table of values, we get:

If we plot these points on a coordinate plane and draw the line, we have:

This is a vertical line. So what is the slope of a vertical line? Let's try to figure that out by finding the rise and the run. See how this line is always rising infinitely, but there is no run whatsoever. So that means run is $0$. So if we calculate the slope, then we will get:

$m = \frac{rise}{run} = \frac{rise}{0} = undefined$

We cannot divide by $0$, so we actually have an undefined slope.

## What is an undefined slope?

An undefined slope is a slope that goes straight up in the graph. As seen in the graph above, the slope rises infinitely and has no run. As a result, we get an undefined slope because we cannot divide by $0$.

In general, we always get an undefined slope whenever we get a straight vertical line!

Let's look at some other unique questions!

## Finding equation from one point

Question 9: A point (2, 6) passes through an equation of $y = -5x + b$. Find "$b$".

Notice here that (2, 6) is a coordinate that tells us when $x = 2$, then $y = 6$. So to solve for $b$, we simply plug the $x$ and $y$ values into the equation.

$6 = -5(2) + b$

Isolating and solving for $b$ gives:

$6 = -10 + b$

$b = 16$

Recall that $b$ is also known as the y-intercept, so the y intercept is $16$ as well!

## Finding slope from two points

Question 10: Given two points (6, 1) and (-10, 9), find the slope of the line.

Recall that to find the slope of the line, we use the slope equation

$m = \frac{y_{2} - y_{1}}{x_{2} - x_{1}}$

Hence using this formula gives us:

$m = \frac{9 - 1}{-10 - 6} = \frac{8}{-16}$

$= \frac{1}{-2}$

What if we are supposed to find the entire equation of a line instead?

## Equation of a line given two points

Question 11: Given two points (-6, 1) and (2, 6), find the slope intercept form equation.

We are basically trying to find the equation in the form of $y = mx + b$. In order to do this, we need to look for $m$ and $b$.

Recall that to find $m$, we use the slope equation

$m = \frac{y_{2} - y_{1}}{x_{2} - x_{1}}$

Hence using this formula gives us:

$m = \frac{6 - 1}{2 - (-6)} = \frac{5}{8}$

$\frac{5}{8}$

So now we have the equation

$y = \frac{5}{8}x + b$

Now we have to look for $b$. To solve $b$, we pick either of the given points and plug it into the equation. We can do that because both points lie on the line, and any points on the line would satisfy the equation. Let's use the point (2, 6). See that:

$6 = \frac{5}{8}(2) + b$

Isolating $b$ gives:

$6 = \frac{10}{8} + b$

$b = 6 - \frac{10}{8}$

$b = \frac{48}{8} - \frac{10}{8}$

$b = \frac{38}{8}$

Putting this in decimal form, we get that $b = 4.75$. Hence, our slope intercept form equation is:

$y = \frac{5}{8}x + 4.75$

The last thing to cover in this section is to find the domain and range of a line.

## How to find domain and range?

To find the domain of a line, we are basically asking ourselves this question: what can $x$ be? If $x$ can be those values, then we add them into the domain.

The same thing goes for range. What can $y$ be? If $y$ can be those values, then we add them in the range. Let's do an example.

Question 12: Find the domain and range of the equation $y = 2x + 1$.

Notice that if we draw the graph of this line, then we will get:

What can $x$ be in this line? Notice that $x$ can be anything because with any $x$ value, we can get a point that is on the line. The same goes for y. We can always pick a $y$ value that gives us a point on a line. So we say that

Domain: {x$\in$R}

Range: {y$\in$R}

where R means "all real numbers". Let's do a harder one.

Question 13: Find the domain and range of the equation $y = -2$.

Now if we draw this line on a graph, we will get:

Notice that $x$ can be anything because with any $x$ value, we can get a point that is on the line as long as $y = -2$. However, look at $y$. You see that $y$ is forced to $-2$ and cannot be anything else. The moment you pick another $y$ value (like $1$), then that point is going to be out of the line. So that means:

Domain: {x $\in$ R}

Range: {y = -2}

Question 14: Find the domain and range of the equation $x = 1$.

Now if we draw this line on a graph, we will get:

You see that $x$ is forced to $1$ and cannot be anything else. The moment you pick another $x$ value (like $2$), then that point is going to be out of the line.However, look at $y$. Notice that $y$ can be anything because with any $y$ value, we can get a point that is on the line as long as $x = 1$

So that means:

Domain: {x=1}

Range: {y$\in$R}

If you had a lot of problems drawing the graphs to obtain the domain and range, I recommend you use this calculator.

https://www.desmos.com/calculator/2rnqgoa6a4

It teaches you how to graph a linear equation. All you have to do is type the values of $m$ and $b$ in. Then it will automatically draw the line for you! This is also useful when you are trying to find the slope intercept form.

### Slope intercept form: y = mx + b

The slope intercept form is used to find the y-intercept and the slope of a straight line. If you look closely, it is a linear function too; meaning the function can tell you its domain and range.

#### Lessons

• Introduction
a)
Overview: Slopes of lines

b)
What is Slope intercept form?
• What is so important about it?

c)
Slope intercept form VS. General form VS. Slope-point form

• 1.
Determine the Slope-Y-int form from the graph.
a)

b)

• 2.
Determine the slope, Y-int, domain, and range of the following linear function.
a)
$y = {3 \over 2}x +1$

b)
$3x - 5y = 8$

c)
$4x - 15 = 0$

• 3.
Given the slope & Y-Int, write the equation in the slope -intercept form
a)
$m = 7, b = -2$

• 4.
A point $(2,6)$ passes through an equation of $y = -5x + b$. Find "$b$".

• 5.
A point $(1,4)$ passes through an equation of $y = mx - 5$. Find "$m$".

• 6.
Given two points through a line, find the slope-intercept form
a)
$(-6, 1)$ & $(2, 6)$

b)
$({-4 \over 7}, 4)$ & $(2, {3 \over4})$

c)
$(6, 1)$ & $(-10, 9)$