Have you ever studied banana plants? Take a look at this dilemma.

Mr. Thomas' class is having a discussion on the rainforest. The students have been doing some research, and now they are ready to talk about their findings.

“The vegetation of the rainforest was very interesting,” Carmen commented in Mr. Thomas’ class.

“There were so many different things growing,” Mark agreed.

The students began having a discussion about the things that had intrigued them about the plant life of the rainforest. One of the points that was brought up is that there are plants in the rainforest that can’t be found anywhere else in the world. Mr. Thomas spotted the opportunity and wrote the following problem.

**
You buy a banana tree that is 8 inches tall. It grows 4 inches per day. Its height (in inches)
\begin{align*}h\end{align*}
is a function of time (in days)
@$\begin{align*}d\end{align*}@$
.
**

**
You can express this function as an equation. This Concept will show you how to write linear equations.
**

### Guidance

The @$\begin{align*}y=mx+b\end{align*}@$ form of an equation was most useful in rapidly identifying both the slope, @$\begin{align*}m\end{align*}@$ , and the @$\begin{align*}y\end{align*}@$ -intercept, @$\begin{align*}b\end{align*}@$ . In fact, if we know what the slope of an equation is and we know its @$\begin{align*}y\end{align*}@$ -intercept, then we can just as easily write the equation. All you have to do is plug in the slope for @$\begin{align*}m\end{align*}@$ in the @$\begin{align*}y=mx+b\end{align*}@$ form and the @$\begin{align*}y\end{align*}@$ -intercept for @$\begin{align*}b\end{align*}@$ .

Take a look at this situation.

@$\begin{align*}m = 4, y-intercept = 3\end{align*}@$

**
We know that we are going to use the form of the equation
@$\begin{align*}y=mx+b\end{align*}@$
, so we can substitute these values into the equation and write it.
**

@$\begin{align*}y=4x+3\end{align*}@$

**
This is the answer. The key is to always watch for negative signs and be sure to include them when you write your equation.
**

Sometimes, we can also be given the slope and a point that the line crosses through. We can also use this information to write an equation of a line.

@$\begin{align*}\text{Slope} = -2\end{align*}@$ , the line passes through the point (0,-3)

**
With this example, we know the slope, so that can be easily substituted into the slope-intercept form. The point has a 0 for the
@$\begin{align*}x\end{align*}@$
value, so that means that we have been given the coordinate of the
@$\begin{align*}y\end{align*}@$
– intercept.
**

@$\begin{align*}y= -2x-3\end{align*}@$

**
This is the answer.
**

**
What if you only know two points and you don’t know the slope? It’s a similar operation that we can use in order to write the equation.
**

Do you recall that the slope formula is @$\begin{align*}m=\frac{{y_2}-{y_1}}{{x_2}-{x_1}}\end{align*}@$ ? In other words, given any two points @$\begin{align*}(x_1, y_1)\end{align*}@$ and @$\begin{align*}(x_2, y_2)\end{align*}@$ , we can use the slope formula to calculate the slope of the line that passes through those points. Even when you only know two points, finding the slope is just a matter of using the formula. But then what?

We will use the notion below.

if @$\begin{align*}m=\frac{{y_2}-{y_1}}{{x_2}-{x_1}}\end{align*}@$ then @$\begin{align*}m=\frac{{y}-{y_1}}{{x}-{x_1}}\end{align*}@$ because the slope is the same on any part of a line. In other words, we can use a formula similar to the slope formula for finding the equation. This time, however, we will leave @$\begin{align*}x\end{align*}@$ and @$\begin{align*}y\end{align*}@$ as variables because the relationship is true for any values of @$\begin{align*}x\end{align*}@$ and @$\begin{align*}y\end{align*}@$ in that equation.

Write the equation of the line that passes through the points @$\begin{align*}(3,7)\end{align*}@$ and @$\begin{align*}(5,11)\end{align*}@$ . First we will find the slope using the slope formula for @$\begin{align*}{x_1}=3,{y_1}=7,{x_2}=5,{y_2}=11\end{align*}@$ .

@$$\begin{align*}m &=\frac{{y_2}-{y_1}}{{x_2}-{x_1}}\\ m &=\frac{11-7}{5-3}\\ m &=\frac{4}{2}\\ m &=2\end{align*}@$$

Now plug in our known values of @$\begin{align*}m, x_1\end{align*}@$ , and @$\begin{align*}y_1\end{align*}@$ .

@$$\begin{align*}m &=\frac{y-{y_1}}{x-{x_1}}\\ \frac{2}{1} &=\frac{y-3}{x-7}\end{align*}@$$

Do you see that we have a proportion? This can be solved by cross multiplying.

@$$\begin{align*}\frac{2}{1} &=\frac{y-3}{x-7}\\ 1(y-3) &=2(x-7)\\ y-3 &=2x-14\\ y &=2x-11\end{align*}@$$

**
This is the answer.
**

**
What about when you have been given a table of values? Well, there is a way to figure out the equation quite simply when you have a table of values. Take a look.
**

@$\begin{align*}x\end{align*}@$ | @$\begin{align*}y\end{align*}@$ |
---|---|

0 | 5 |

1 | 7 |

2 | 9 |

3 | 11 |

4 | 13 |

**
First, notice that the
@$\begin{align*}y\end{align*}@$
– intercept is the value that has an
@$\begin{align*}x\end{align*}@$
value of 0. With an
@$\begin{align*}x\end{align*}@$
**
**
value
**

**of 0, we know that the @$\begin{align*}y\end{align*}@$ – intercept is 5.**

**
Now we need to figure out the slope. Look at the y values in the table. Can you see a pattern? If you look carefully, you will see that the values jump by +2 each time. This is the slope. Think about how the line would move when graphed. The pattern of the
@$\begin{align*}y\end{align*}@$
**
**
values
**

**represents the slope of the line.**

@$\begin{align*}y=2x+5\end{align*}@$

**
This is the answer.
**

What about function notation? Well first, think about independent and dependent variables.

In science, an
**
independent variable
**
is a parameter that is manipulated or chosen by a scientist while the

**is a parameter that is measured. Scientists oftentimes look for a correlation between an independent variable and a dependent variable—they want to know if the dependent variable**

*dependent variable**depends*on the independent variable. For example, a scientist might measure the speed at which a car is moving and the force upon impact when the car hits a wall. The scientist can manipulate the speed of the car—she can make the car move slower or faster. She would then measure the force of impact related to the given speed. Then, a conclusion can be drawn about their relatedness and cars, in this case, might be designed based on that relation.

**The independent variable will be shown in the left column of a t-table and on the @$\begin{align*}x\end{align*}@$ -axis of a graph. The dependent variable will be shown in the right column of a t-table and on the @$\begin{align*}y\end{align*}@$ -axis of a graph.**

@$\begin{align*}f(x)=4x+1\end{align*}@$

**
Here we know that the function of
@$\begin{align*}x\end{align*}@$
is dependent on 4 times that value,
@$\begin{align*}x\end{align*}@$
and one.
**

Write a linear equation by using the given information.

#### Example A

@$\begin{align*}m = 2, y-intercept = 5\end{align*}@$

**
Solution:
@$\begin{align*}y=2x+5\end{align*}@$
**

#### Example B

@$\begin{align*}m = -4, y-intercept = 6\end{align*}@$

**
Solution:
@$\begin{align*}y=-4x+6\end{align*}@$
**

#### Example C

@$\begin{align*}m = 8, y-intercept = -2\end{align*}@$

**
Solution:
@$\begin{align*}y=8x-2\end{align*}@$
**

Now let's go back to the dilemma from the beginning of the Concept.

**
First, we need to write an equation. We can use the
@$\begin{align*}h\end{align*}@$
to represent the height of the banana tree. We can use the
@$\begin{align*}d\end{align*}@$
to represent the number of days. The 8 is the height that the tree started with. Here is our equation.
**

@$\begin{align*}h=4d+8\end{align*}@$

**
This is our answer.
**

### Guided Practice

Here is one for you to try on your own.

Write an equation in slope-intercept form with a slope of -4 and a y-intercept of 13.

**
Solution
**

To do this, we can take slope-intercept form and substitute in the given values.

@$\begin{align*}y=mx+b\end{align*}@$

The @$\begin{align*}m\end{align*}@$ represents the slope.

The @$\begin{align*}b\end{align*}@$ represents the y-intercept.

@$\begin{align*}y=-4x+13\end{align*}@$

**
This is our answer.
**

### Video Review

### Explore More

Directions: Write the equation of a line with the following slopes and @$\begin{align*}y\end{align*}@$ – intercepts.

- @$\begin{align*}\text{slope} = 2, \ y \ \text{int} = 4\end{align*}@$
- @$\begin{align*}\text{slope} = -3, \ y \ \text{int} = 2\end{align*}@$
- @$\begin{align*}\text{slope} = -4, \ y \ \text{int} = 4\end{align*}@$
- @$\begin{align*}\text{slope} = 3, \ y \ \text{int} = -5\end{align*}@$
- @$\begin{align*}\text{slope} = \frac{1}{2}, \ y \ \text{int} = -2\end{align*}@$
- @$\begin{align*}\text{slope} = -\frac{1}{3}, \ y \ \text{int} = 2\end{align*}@$
- @$\begin{align*}\text{slope} = 1, \ y \ \text{int} = 8\end{align*}@$
- @$\begin{align*}\text{slope} = -2, \ y \ \text{int} = 4\end{align*}@$
- @$\begin{align*}\text{slope} = -1, \ y \ \text{int} = -1\end{align*}@$
- @$\begin{align*}\text{slope} = 5, \ y \ \text{int} = -2\end{align*}@$

Directions: Write the following horizontal or vertical line equations.

- A horizontal line with a @$\begin{align*}b\end{align*}@$ value of 7.
- A horizontal line with a @$\begin{align*}b\end{align*}@$ value of -4.
- A vertical line with an @$\begin{align*}x\end{align*}@$ value of 2
- A vertical line with an @$\begin{align*}x\end{align*}@$ value of -5

Directions: Write the equation of a line that passes through the following points.

- (3, -3) and (-3, 1)
- (2, 3) and (0, -3)