The equation of a line is an equation in and that is satisfied by the coordinates of every point on the line and by no other point. With it, questions about the line become algebra: to test whether a point lies on the line, substitute; to find where two lines meet, solve. This lesson finds the equations of lines parallel to the axes, and of a line given by one point and its slope, or by two of its points.
Lines parallel to the axes
Every point on a horizontal line has the same -coordinate. So the line parallel to the -axis at a distance from it is
(above the axis if , below if ). In particular, the -axis itself is .
Similarly, every point on a vertical line has the same -coordinate, so the line parallel to the -axis is
and the -axis itself is .
For example, the horizontal line through is , and the vertical line through it is .
Point-slope form
Result. The equation of the line through the point with slope is
Why. Let be any point on the line other than . The slope of the line, worked out from these two points, must be :
The point itself also satisfies this equation. Conversely, any point satisfying it gives slope with , so it lies on the line.
It is usual to give the final answer in the form with whole-number coefficients.
Example 1
Find the equation of the line through with slope .
Check: at , .
Example 2
Find the equation of the line through with inclination .
The slope is , so , that is, .
Two-point form
Result. The equation of the line through and , where , is
This is simply the point-slope form with the slope worked out from the two points. (If , the line is vertical, with equation .)
Example 3
Find the equation of the line through and .
The slope is . Then
Check with the second point: .
Lines in a triangle
Two lines connected with a triangle are often asked for.
- A median joins a vertex to the midpoint of the opposite side.
- The perpendicular bisector of a segment passes through its midpoint at right angles to it.
Example 4
The vertices of a triangle are , and . Find the equation of the median through .
The midpoint of is . The median joins to , with slope :
Example 5
Find the perpendicular bisector of the segment joining and .
The midpoint is . The slope of is , so the perpendicular slope is :
Every point on this line is the same distance from as from .
Practice
- Write the equation of the line parallel to the -axis through .
- Write the equation of the line parallel to the -axis through .
- Find the equation of the line through with slope .
- Find the equation of the line through with slope .
- Find the equation of the line through the origin with inclination .
- Find the equation of the line through and .
- Find the equation of the line through and .
- Find the equation of the line through and .
- The vertices of a triangle are , , . Find the median through .
- Find the perpendicular bisector of the segment joining and .
Answers
Show answers
- .
- .
- , that is, .
- gives , that is, .
- The slope is , so , that is, .
- The slope is : , that is, .
- The slope is : , that is, .
- The -coordinates are equal: .
- The midpoint of is , and the slope from is . So , that is, .
- The midpoint is and the slope of the segment is , so the bisector has slope : , that is, .