# 5.1: Linear Equations in Slope-Intercept Form

## Learning Objectives

- Write an equation given slope and intercept.
- Write an equation given the slope and a point.
- Write an equation given two points.
- Write a linear function in slope-intercept form.
- Solve real-world problems using linear models in slope-intercept form.

## Introduction

We saw in the last chapter that linear graphs and equations are used to describe a variety of real-life situations. In mathematics, we want to find equations that explain a situation as presented in a problem. In this way, we can determine the rule that describes the relationship between the variables in the problem. Knowing the equation or rule is very important since it allows us to find the values for the variables. There are different ways to find an equation that describes the problem. The methods are based on the information you can gather from the problem. In graphing these equations, we will assume that the domain is all real numbers.

## Write an Equation Given Slope and y-intercept

Let’s start by learning how to write an equation in slope–intercept form .

is the intercept (*the value of* *when* . *This is the point where the line crosses the* *axis)*.

is the slope *how the quantity* *changes with each one unit of* .

**If you are given the slope and** **intercept of a line:**

- Start with the slope–intercept form of the line .
- Substitute the given values of and into the equation.

**Example 1**

a) *Write an equation with a* *and a* *intercept* .

b) *Write an equation with a* *and a* *intercept* .

c) *Write an equation with a* *and a* *intercept* .

a) **Solution**

We are given and . Plug these values into the slope–intercept form .

b) **Solution**

We are given and . Plug these values into the slope–intercept form .

c) **Solution**

We are given and . Plug these values into the slope–intercept form .

You can also write an equation in slope-intercept form if you are given the graph of the line.

**Example 2**

*Write the equation of each line in slope–intercept form.*

a)

b)

c)

d)

a) The intercept and the . Plug these values into the slope–intercept form .

**Solution**

b) The intercept and the . Plug these values into the slope–intercept form .

**Solution**

c) The intercept and the . Plug these values into the slope–intercept form .

**Solution**

d) The intercept and the . Plug these values into the slope–intercept form .

**Solution**

## Write an Equation Given the Slope and a Point

Often, we don’t know the value of the intercept, but we know the value of for a non-zero value of . In this case we can still use the slope–intercept form to find the equation of the line.

For example, we are told that the slope of a line is two and that the line passes through the point (1, 4). To find the equation of the line, we start with the slope–intercept form of a line.

Plug in the value of the slope.

We don’t know the value of but we know that the slope is two, and that point (1, 4) is on this line. Where the value is one, and the value is four. We plug this point in the equation and solve for .

Therefore the equation of this line is .

**If you are given the slope and a point on the line:**

- Start with the slope–intercept form of the line .
- Plug in the given value of into the equation.
- Plug the and values of the given point and solve for .
- Plug the value of into the equation.

**Example 3**

*Write the equation of the line in slope–intercept form.*

a) The slope of the line is 4 and the line contains point (-1, 5).

b) The slope of the line is and the line contains point (2, -2).

c) The slope of the line is -3 and the line contains point (3, -5).

**Solution**

a)

b)

c)

## Write an Equation Given Two Points

One last case is when we are just given two points on the line and we are asked to write the line of the equation in slope–intercept form.

For example, we are told that the line passes through the points (-2, 3) and (5, 2). To find the equation of the line we start with the slope–intercept form of a line

Since we don’t know the slope, we find it using the slope formula .

Now substitute the and and the and values into the slope formula to solve for the slope.

We plug the value of the slope into the slope–intercept form

We don’t know the value of but we know two points on the line. We can plug either point into the equation and solve for . Let’s use point (-2, 3).

Therefore, the equation of this line is .

**If you are given two points on the line:**

- Start with the slope–intercept form of the line
- Use the two points to find the slope using the slope formula .
- Plug the given value of into the equation.
- Plug the and values of one of the given points into the equation and solve for .
- Plug the value of into the equation.
- Plug the other point into the equation to check the values of and .

**Example 4**

*Write the equations of each line in slope–intercept form.*

a) The line contains the points (3, 2) and (-2, 4).

b) The line contains the points (-4, 1) and (-2, 3).

**Solution:**

a)

- Start with the slope–intercept form of the line .
- Find the slope of the line.
- Plug in the value of the slope.
- Plug point (3, 2) into the equation.
- Plug the value of into the equation.
- Plug point (-2, 4) into the equation to check.

b)

- Start with the slope–intercept form of the line .
- Find the slope of the line.
- Plug in the value of the slope.
- Plug point (-2, 3) into the equation.
- Plug the value of into the equation.
- Plug point (-4, 1) into the equation to check.

## Write a Linear Function in Slope-Intercept Form

Remember that you write a linear function in the form . Here represents the values of the equation or the graph. So and they are often used interchangeably. Using the functional notation in an equation gives us more information.

For instance, the expression shows clearly that is the independent variable because you **plug in** values of into the function and perform a series of operations on the value of in order to calculate the values of the dependent variable, .

In this case when you plug into the function, the function tells you to multiply it by and then add to the result. This generates all the values of you need.

**Example 5**

*Consider the linear function . Find and .*

**Solution**

All the numbers in the parentheses are the values of that you need to plug into the equation of the function.

When you plug values into a function, it is best to plug in the whole parenthesis, not just the value inside the parenthesis. We often plug expressions into the function instead of numbers, and it is important to keep the expression inside the parenthesis in order to perform the correct order of operations. For example, we want to find for the same function we used before.

Functional notation is a very compact way of giving information. For example you are told that .

To read this information, remember a few things.

The value inside the parentheses is the value.

The value equal to the function is the dependent value (i.e. the value for lines).

So, tells you that and or that point (3, 2) is on the line.

We will now use functional notation to write equations of lines in slope–intercept form.

**Example 6**

*Find the equation of the following lines in slope–intercept form*

a) *and* .

b) *and* .

c) *and* .

**Solution**

a) We are told that and the line contains point (0, 5), so .

Plug the values of and into the slope–intercept form .

b) We are told that and line contains point (-2, 1).

c) We are told that the line contains the points (-1, 1) and (1, -1).

## Solve Real-World Problems Using Linear Models in Slope-Intercept Form

Let’s apply the methods we just learned to a few application problems that can be modeled using a linear relationship.

**Example 7**

*Nadia has $200 in her savings account. She gets a job that pays $7.50 per hour and she deposits all her earnings in her savings account. Write the equation describing this problem in slope–intercept form. How many hours would Nadia need to work to have $500 in her account?*

Let’s define our variables

amount of money in Nadia’s savings account

number of hours

You can see that the problem gives us the intercept and the slope of the equation.

We are told that Nadia has $200 in her savings account, so .

We are told that Nadia has a job that pays $7.50 per hour, so .

If we plug these values in the slope–intercept form we obtain .

To answer the question, we plug in and solve for . .

**Solution**

Nadia must work 40 hours if she is to have $500 in her account.

**Example 8**

*A stalk of bamboo of the family Phyllostachys nigra grows at steady rate of 12 inches per day and achieves its full height of 720 inches in 60 days. Write the equation describing this problem in slope–intercept form.*

*How tall is the bamboo 12 days after it started growing?*

Let’s define our variables

the height of the bamboo plant in inches

number of days

You can see that the problem gives us the slope of the equation and a point on the line.

We are told that the bamboo grows at a rate of 12 inches per day, so .

We are told that the plant grows to 720 inches in 60 days, so we have the point (60, 720).

To answer the question, plug in to obtain .

**Solution**

The bamboo is 144 inches (12 feet!) tall 12 days after it started growing.

**Example 9**

*Petra is testing a bungee cord. She ties one end of the bungee cord to the top of a bridge and to the other end she ties different weights and measures how far the bungee stretches. She finds that for a weight of 100 lb, the bungee stretches to 265 feet and for a weight of 120 lb, the bungee stretches to 275 feet. Physics tells us that in a certain range of values, including the ones given here, the amount of stretch is a linear function of the weight. Write the equation describing this problem in slope–intercept form. What should we expect the stretched length of the cord to be for a weight of 150 lbs?*

Let’s define our variables

the stretched length of the bungee cord in feet in feet

the weight attached to the bungee cord in pounds

You can see that the problem gives us two points on the line.

We are told that for a weight of 100 lbs the cord stretches to 265 feet, so we have point (100, 265).

We are told that for a weight of 200 lbs the cord stretches to 275 feet, so we have point (120, 270).

To answer the question, we plug in .

**Solution**

For a weight of 150 lbs we expect the stretched length of the cord to be 277.5 feet.

## Lesson Summary

- The equation of a line in
**slope-intercept**form is .

Where is the slope and is the intercept).

- If you are
**given the slope and****intercept**of a line:

- Simply plug and into the equation.

- If you are
**given the slope and a point**on the line:

- Plug in the given value of into the equation.
- Plug the and values of the given point and solve for .
- Plug the value of into the equation.

- If you are given two points on the line:

- Use the two points to find the slope using the slope formula .
- Plug the value of into the equation.
- Plug the and values of one of the given points and solve for .
- Plug the value of into the equation.
- Plug the other point into the equation to check the values of and .

## Review Questions

Find the equation of the line in slope–intercept form.

- The line has slope of 7 and intercept of -2.
- The line has slope of -5 and intercept of 6.
- The line has slope of and contains point (4, -1).
- The line has slope of and contains point .
- The line has slope of -1 and contains point .
- The line contains points (2, 6) and (5, 0).
- The line contains points (5, -2) and (8, 4).
- The line contains points (3, 5) and (-3, 0).
- The line contains points (10, 15) and (12, 20).

Write the equation of each line in slope-intercept form.

Find the equation of the linear function in slope–intercept form.

- To buy a car, Andrew puts a down payment of $1500 and pays $350 per month in installments. Write an equation describing this problem in slope-intercept form. How much money has Andrew paid at the end of one year?
- Anne transplants a rose seedling in her garden. She wants to track the growth of the rose so she measures its height every week. On the third week, she finds that the rose is 10 inches tall and on the eleventh week she finds that the rose is 14 inches tall. Assuming the rose grows linearly with time, write an equation describing this problem in slope-intercept form. What was the height of the rose when Anne planted it?
- Ravi hangs from a giant spring whose length is 5 m. When his child Nimi hangs from the spring its length is 2 m. Ravi weighs 160 lbs. and Nimi weighs 40 lbs. Write the equation for this problem in slope-intercept form. What should we expect the length of the spring to be when his wife Amardeep, who weighs 140 lbs., hangs from it?

## Review Answers

- or