Chapter 3 ยท Parallel and Perpendicular Lines
Writing Equations of Lines
You will write the equation of a line from a slope and a point or from two points, using slope-intercept form and point-slope form.
You can already find the slope of a line from two points. In this lesson, you use that slope to write the line's equation.
An equation of a line is an equation in and whose solutions are exactly the points on that line. This definition works in both directions: a point on the line makes the equation true, and a point that makes the equation true is on the line.
Remember that slope is the change in over the change in , for a nonzero change in . A vertical line, where every point has the same -coordinate, has undefined slope, because its change in is and you cannot divide by . Any other line is nonvertical, and any two of its points give the same slope. A horizontal line, where every point has the same -coordinate, is nonvertical and has slope , because its change in is .
Key concept
A slope and a point fix a nonvertical line
Through a given point, exactly one line has a given slope. So a slope and a known point fix one nonvertical line. The small just marks the known point. Let stand for any other point with . That point is on the line exactly when the slope from to equals . The two equation forms in this lesson both write this fact in algebra. A vertical line has undefined slope, so this idea does not apply to it, and it needs a different kind of equation.
The y-intercept of a line is the -coordinate of the point where the line crosses the -axis, the point with . Every nonvertical line crosses the -axis exactly once.
Given: a nonvertical line has slope and -intercept , so is on it. Take any other point on the line. Because the line is nonvertical, no two of its points share an -coordinate, so . The definition of slope gives , which is . Multiply both sides by the nonzero number to get . Then add to both sides to get slope-intercept form, shown below. The point satisfies it too, because .
So every point on the line satisfies the equation. The steps also run backward, so the converse, the statement with its two parts swapped, holds too: a point that satisfies the equation is on the line.
When you know the slope and one point, substitute them into this form and solve for .
Worked example
From a slope and a point
Given: a line has slope and passes through . Find: its equation in slope-intercept form.
A line with a defined slope is nonvertical, so slope-intercept form applies. Put the given slope, 2, in place of m.
The point (3, 1) is on the line. By the definition of an equation of a line, its coordinates make the equation true. Substitute 3 for x and 1 for y.
Multiply 2 by 3, following the order of operations.
Subtract 6 from both sides, using the subtraction property of equality, so that b stands alone.
Put -5 in place of b. Adding -5 is the same as subtracting 5.
Check in the other direction of the definition: a point that makes the equation true is on the line. Substituting x = 3 gives y = 1, so (3, 1) is on the line. The number multiplying x is 2, the given slope.
Answer
The equation of the line in slope-intercept form is .
In the figure above, the horizontal axis is the -axis and the vertical axis is the -axis. Line A is the line . Point A is the given point . Point B is , because gives . So is the -coordinate at , while the given point's -coordinate is .
The slope matches too. From Point B to Point A, the change in is and the change in is , so the slope is . These facts come from the stated coordinates and the algebra, not from how the drawing looks.
Now suppose you know two points instead of a slope. By the postulate that through any two different points there is exactly one line, those points fix one line. A postulate is a statement accepted without proof. If the points and have , the change in is nonzero, so the definition of slope gives . You then have a slope and a point, the same problem you just solved. Either given point works, because both are on the line.
Worked example
An equation through two points
Given: a line passes through and . Find: its equation in slope-intercept form.
The x-coordinates, -3 and 3, differ, so the change in x is nonzero and the line is nonvertical. Use the definition of slope, subtracting in the same order on the top and the bottom.
By the definition of an equation of a line, the point (-3, 5) makes y = mx + b true. Substitute the slope, -3 for x and 5 for y.
Multiply, keeping the fraction exact. A negative times a negative is positive.
Subtract 2 from both sides, using the subtraction property of equality.
Put the slope and the value of b into slope-intercept form.
Check the other given point, (3, 1). Substituting x = 3 gives y = 1, so by the definition of an equation of a line, (3, 1) is on this line too.
Answer
The equation of the line through and is .
Two different points can also give a slope of or no slope at all, so compare their coordinates before you start. In the figure below, the horizontal axis is the -axis and the vertical axis is the -axis.
Point A at and Point B at share a -coordinate. Their slope is , so Line A through them is horizontal. Substituting into gives , so and the equation is .
Point C at and Point D at share an -coordinate. The change in is , so the slope is undefined and Line B through them is vertical. Slope-intercept form needs a slope, so it does not apply. Every point on Line B has -coordinate , and every point with -coordinate is on Line B, so by the definition of an equation of a line, its equation is .
Point-slope form writes a line's equation directly from its slope and one of its points, so you do not need to find .
Given: a nonvertical line has slope and passes through . To show: a point is on the line exactly when it satisfies the equation displayed below.
First, take any other point on the line. Because the line is nonvertical, no two of its points share an -coordinate, so . The definition of slope gives . Multiplying both sides by the nonzero number gives . The point satisfies this too, because both sides equal .
For the converse, start with a point that satisfies the equation. If , dividing both sides by shows that its slope from is , so the key concept puts it on the line. If , the equation forces , so it is the known point. A vertical line has no slope to use as , so this form does not apply to it.
Worked example
Point-slope form with negative coordinates
Given: a line has slope and passes through . Find: its equation in point-slope form.
A defined slope means the line is nonvertical, so point-slope form applies. Substitute the slope 1/2, the x-coordinate -2 and the y-coordinate -3, keeping each subtraction in place.
By the definition of subtraction, subtracting a number means adding its opposite. So subtracting -3 means adding 3, and subtracting -2 means adding 2.
Check the given point by substituting x = -2 and y = -3. Both sides equal 0, so by the definition of an equation of a line, (-2, -3) is on the line. The number multiplying the parentheses is 1/2, the given slope.
Answer
The equation of the line in point-slope form is .
Worked example
Point-slope form from two points
Given: a line passes through and . Find: an equation in point-slope form using each point, and show that both equations describe the same line.
The x-coordinates differ, so the change in x is nonzero and the line is nonvertical. Use the definition of slope.
Substitute the slope and the point (-3, 2) into point-slope form, then apply the definition of subtraction.
Do the same with the point (1, -4).
To compare them, rewrite the first equation in slope-intercept form. Use the distributive property, then add 2 to both sides by the addition property of equality.
Rewrite the second equation. Use the distributive property, then subtract 4 from both sides by the subtraction property of equality.
Check both given points in the result. Each one makes the equation true.
Answer
Both and are correct, and each simplifies to , so they describe the same line.
Takeaway: a slope and a point fix a nonvertical line, and two points with different -coordinates give you that slope. You can write the line as by solving for , or as by substituting directly. If two different points share an -coordinate, the slope is undefined, the line is vertical, and its equation is , where is that shared coordinate. Next, you will write the equation of a line parallel or perpendicular to a given line through a point.