Suppose that you sent out a text message to all of your friends, asking them what information was needed to write the equation of a line. One of your friends responded that all you need is the slope of the line and a point on the line. Do you think that your friend was correct? If so, does it matter what point you have, and how could you use this information to come up with the equation?

### Equations Given the Slope and a Point

#### Writing an Equation Given the \begin{align*}y-\end{align*}Intercept

Previously, you learned how to graph solutions to two-variable equations in slope-intercept form. This Concept focuses on how to write an equation for a graphed line when given the slope and a point. There are two things you will need from the graph to write the equation in slope-intercept form:

- The \begin{align*}y-\end{align*}intercept of the graph
- The slope of the line

Having these two pieces of information will allow you to make the appropriate substitutions in the slope-intercept formula. Recall the following:

Slope-intercept form: \begin{align*}y=(slope)x+ (y-intercept)\end{align*} or \begin{align*}y=mx+b\end{align*}

#### Let's write an equation in slope-intercept form for each of the following situations:

- A line with a slope of 4 and a \begin{align*}y-\end{align*}intercept of (0, –3).

Slope-intercept form requires two things: the slope and \begin{align*}y-\end{align*}intercept. To write the equation, you substitute the values into the formula.

\begin{align*}y& =(slope)x+ (y-intercept)\\ y& =4x+(-3)\\ y& =4x-3\end{align*}

You can also use a graphed line to determine the slope and \begin{align*}y-\end{align*}intercept.

- The line shown in:

The \begin{align*}y-\end{align*}intercept is (0, 2). Using the slope triangle, you can determine the slope is \begin{align*}\frac{rise}{run}=\frac{-3}{-1}=\frac{3}{1}\end{align*}. Substituting the value 2 for \begin{align*}b\end{align*} and the value 3 for \begin{align*}m\end{align*}, the equation for this line is \begin{align*}y=3x+2\end{align*}.

#### Writing an Equation Given an Ordered Pair

You will not always be given the \begin{align*}y-\end{align*}intercept, but sometimes you will be given any point on the line. When asked to write the equation given a graph, it may be difficult to determine the \begin{align*}y-\end{align*}intercept. Perhaps the \begin{align*}y-\end{align*}intercept is rational instead of an integer. Maybe all you have is the slope and an ordered pair. You can use this information to write the equation in slope-intercept form. To do so, you will need to follow several steps:

**Step 1:** Begin by writing the formula for slope-intercept form: \begin{align*}y=mx+b\end{align*}.

**Step 2:** Substitute the given slope for \begin{align*}m\end{align*}.

**Step 3:** Use the ordered pair you are given \begin{align*}(x, y)\end{align*} and substitute these values for the variables \begin{align*}x\end{align*} and \begin{align*}y\end{align*} in the equation.

**Step 4:** Solve for \begin{align*}b\end{align*} (the \begin{align*}y-\end{align*}intercept of the graph).

**Step 5:** Rewrite the original equation in Step 1, substituting the slope for \begin{align*}m\end{align*} and the \begin{align*}y-\end{align*}intercept for \begin{align*}b\end{align*}.

#### Let's write an equation in slope-intercept form for the following line:

A line with a slope of 4 that contains the ordered pair (–1, 5).

**Step 1:** Begin by writing the formula for slope-intercept form.

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

**Step 2:** Substitute the given slope for \begin{align*}m\end{align*}.

\begin{align*}y=4x+b\end{align*}

**Step 3:** Use the ordered pair you are given, (–1, 5), and substitute these values for the variables \begin{align*}x\end{align*} and \begin{align*}y\end{align*} in the equation.

\begin{align*}5=(4)(-1)+b\end{align*}

**Step 4:** Solve for \begin{align*}b\end{align*} (the \begin{align*}y-\end{align*}intercept of the graph).

\begin{align*}5& =-4+b\\ 5+4& =-4+4+b\\ 9& =b\end{align*}

**Step 5:** Rewrite \begin{align*}y=mx+b\end{align*}, substituting the slope for \begin{align*}m\end{align*} and the \begin{align*}y-\end{align*}intercept for \begin{align*}b\end{align*}.

\begin{align*}y=4x+9\end{align*}

### Examples

#### Example 1

Earlier, you were asked if you only need the slope of a line and a point on the line to write the equation of a line.

You can write the equation of a line with just the slope and a point on the line. As shown in this concept, if you have the slope and the \begin{align*}y-\end{align*}intercept, you can easily write the equation in slope-intercept form \begin{align*}y=mx+b\end{align*}. If you do not have the \begin{align*}y-\end{align*}intercept and instead just have a random point on the line, you can plug the ordered pair and the slope into the general equation and solve for \begin{align*}b\end{align*} (the \begin{align*}y-\end{align*}intercept of the graph).

#### Example 2

Write the equation for a line with a slope of –3 containing the point (3, –5).

Using the five-steps from above:

\begin{align*}y& =(slope)x+(y-intercept)\\ y& =-3x+b\\ -5& =-3(3)+b\\ -5& =-9+b\\ 4& =b\\ y& =-3x+4\end{align*}

### Review

- What is the formula for slope-intercept form? What do the variables \begin{align*}m\end{align*} and \begin{align*}b\end{align*} represent?
- What are the five steps needed to determine the equation of a line given the slope and a point on the graph (not the \begin{align*}y-\end{align*}intercept)?

In 3–13, find the equation of the line in slope–intercept form.

- The line has a slope of 7 and a \begin{align*}y-\end{align*}intercept of –2.
- The line has a slope of –5 and a \begin{align*}y-\end{align*}intercept of 6.
- The line has a slope of -2 and a \begin{align*}y-\end{align*}intercept of 7.
- The line has a slope of \begin{align*}\frac{2}{3}\end{align*} and a \begin{align*}y-\end{align*}intercept of \begin{align*}\frac{4}{5}\end{align*}.
- The line has a slope of \begin{align*}-\frac{1}{4}\end{align*} and contains the point (4, –1).
- The line has a slope of \begin{align*}\frac{2}{3}\end{align*} and contains the point \begin{align*}\left(\frac{1}{2},1\right )\end{align*}.
- The line has a slope of –1 and contains the point \begin{align*}\left (\frac{4}{5},0\right )\end{align*}.
- The slope of the line is \begin{align*}-\frac{2}{3}\end{align*}, and the line contains the point (2, –2).
- The slope of the line is –3, and the line contains the point (3, –5).

### Review (Answers)

To see the Review answers, open this PDF file and look for section 5.1.