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?
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+(y−intercept) or y=mx+b
Slope-intercept form requires two things: the slope and y−intercept. To write the equation, you substitute the values into the formula.
You can also use a graphed line to determine the slope and y−intercept.
The y−intercept is (0, 2). Using the slope triangle, you can determine the slope is riserun=−3/−1=3/1. Substituting the value 2 for b and the value 3 for m, the equation for this line is y=3x+2.
You will not always be given the y−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−intercept. Perhaps the y−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.
Step 2: Substitute the given slope for m.
Step 3: Use the ordered pair you are given (x,y) and substitute these values for the variables x and y in the equation.
Step 4: Solve for b (the y−intercept of the graph).
Step 5: Rewrite the original equation in Step 1, substituting the slope for m and the y−intercept for b.
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.
Step 2: Substitute the given slope for m.
Step 3: Use the ordered pair you are given, (–1, 5), and substitute these values for the variables x and y in the equation.
Step 4: Solve for b (the y−intercept of the graph).
Step 5: Rewrite y=mx+b, substituting the slope for m and the y−intercept for b.
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.
Solution
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 y−intercept, you can easily write the equation in slope-intercept form y=mx+b. If you do not have the y−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 b (the y−intercept of the graph).
Write the equation for a line with a slope of –3 containing the point (3, –5).
Solution
Using the five-steps from above:
In 3–13, find the equation of the line in slope–intercept form.
To see the Review answers, open this PDF file and look for section 5.1.
| Term | Definition |
|---|---|
| undefined slope | An undefined slope cannot be computed. Vertical lines have undefined slopes. |
| zero slope | A line with zero slope is a line without any steepness, or a horizontal line. |
| Intercept | The intercepts of a curve are the locations where the curve intersects the x and y axes. An x intercept is a point at which the curve intersects the x-axis. A y intercept is a point at which the curve intersects the y-axis. |
Video: Writing Linear Equations in Point-Slope Form Given Information
Activity: Write an Equation Given the Slope and a Point Discussion Questions
Study Aid: Determining the Equation of a Line Study Guide
Practice: Write an Equation Given the Slope and a Point
Real World Application: Bangladesh
This page titled 4.7.2: Write an Equation Given the Slope and a Point is shared under a CC BY-NC license and was authored, remixed, and/or curated by CK-12 Foundation via source content that was edited to the style and standards of the LibreTexts platform.