<img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=iA1Pi1a8Dy00ym" style="display:none" height="1" width="1" alt="" />

# Write an Equation Given the Slope and a Point

## Solving y=mx+b for 'b'

Estimated6 minsto complete
%
Progress
Practice Write an Equation Given the Slope and a Point

MEMORY METER
This indicates how strong in your memory this concept is
Progress
Estimated6 minsto complete
%
Write an Equation Given the Slope and a Point

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? In this Concept, you'll get answers to these questions so that you can judge the merits of your friend's advice.

### Guidance

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:

1. The y\begin{align*}y-\end{align*}intercept of the graph
2. 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: y=(slope)x+(yintercept)\begin{align*}y=(slope)x+ (y-intercept)\end{align*} or y=mx+b\begin{align*}y=mx+b\end{align*}

#### Example A

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

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

yyy=(slope)x+(yintercept)=4x+(3)=4x3\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 y\begin{align*}y-\end{align*}intercept.

#### Example B

Use the graph below to write an equation in slope-intercept form.

Solution:

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

Writing an Equation Given the Slope and a Point

You will not always be given the y\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 y\begin{align*}y-\end{align*}intercept. Perhaps the y\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: y=mx+b\begin{align*}y=mx+b\end{align*}.

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

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

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

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

#### Example C

Write an equation for a line with a slope of 4 that contains the ordered pair (–1, 5).

Solution:

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

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

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

y=4x+b\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 x\begin{align*}x\end{align*} and y\begin{align*}y\end{align*} in the equation.

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

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

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

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

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

### Guided Practice

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

Solution:

Using the five-steps from above:

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

### Practice

Sample explanations for some of the practice exercises below are available by viewing the following video. Note that there is not always a match between the number of the practice exercise in the video and the number of the practice exercise listed in the following exercise set. However, the practice exercise is the same in both. CK-12 Basic Algebra: Linear Equations in Slope-Intercept Form (14:58)

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

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

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

### Notes/Highlights Having trouble? Report an issue.

Color Highlighted Text Notes