# Slope Intercept Form – Equation of a Line Example 1

Slope intercept form is a function of a straight line  with the form

y = mx + b
where
m is the slope of the line and
b is the y-intercept.

Slope refers to how steep the line changes as the values of x change where the y-intercept is where the line crosses the y-axis.

Here are a pair of worked examples to show how to find the equation of a line from different initial conditions.

### Slope Intercept Form Example 1

This example shows how to find the equation of the line when given the slope and one point on the line.

Q: What is the Slope intercept form of the line with slope 23 and passes through the point (-3, -4)

Here’s the graph of that line. A slope of 23 means the line will rise 2 points for every 3 points of x to the right. If we start at the point (-3, -4) we can count 2 up and three over to see the way the line will progress.

The slope intercept form is

y = mx + b

To solve this, we need to know both the slope and the y-intercept. We know the slope, so we need to find the value of b. We know from the given:
m = 23
x = -3
y = -4

Plug these into the equation

-4 = 23 (-3) + b
-4 = -2 + b
-2 = b

Now we have all we need for the equation of the line.

y = 23 x + (-2)
y = 23 x – 2

We can see from the graph the line crosses the y-axis at -2 but it nice to have a second opinion.

### Slope Intercept Form Example 1 – Alternate Method

There is an alternate method to solve this problem where you can memorize an equation to eliminate the first couple steps. That formula is

(y – y1) = m(x – x1)

where x1 and yare the coordinates of the given point.

Let’s plug in the point (-3, -4) from above.

(y – y1) = m(x – x1)
(y – (-4)) = 23(x – (-3))
y + 4 = 23(x + 3)
y + 4 = 23x + 23(3)
y + 4 = 23x + 2
y = 23x + 2 – 4
y = 23x – 2

### Slope Intercept Form Example 2

The second example, two points of the line are given in the initial conditions.
Let’s find the same line as before. The red line passes through points (-6, -6) and (9, 4). Find the equation of the line.

First we need to find the slope.

The formula to find slope between two points (x1, y1) and (x2, y2) is

For our two points:
x1 = -6
y1 = -6
x2 = 9
y2 = 4

Plug these into the formula  m = 1015
reduce the fraction by factoring out a 5
m = 23

Now we can find the y-intercept in the same way we did above. Choose one of the points for x and y. Let’s try the (-6, -6) point.

y = mx + b
-6 = 23(-6) + b
-6 = –123 + b
-6 = -4 + b
-2 = b

Just to show it doesn’t matter which point you choose, let’s use the (9, 4) point.

y = mx + b
4 = 2(9) + b
4 = 183 + b
4 = 6 + b
-2 = b

Plug into the slope intercept formula

y = 23 x + (-2)
y = 23 x – 2

Which matches what we expected to see from the first example.

The key to this type of problem is to find the slope of the line. Once you have the slope, finding the y-intercept is easy. For more examples of finding the slope, check out the What is Slope? page and examples