17.5 The equation of a line — Learn
Prerequisites: the slope of a line from Section 17.3, solving a linear equation from Section 12.1, and substituting into an expression from Section 10.2.
Objectives: write the equation of a line as ; find the equation from a slope and a point; find the equation from two points; use the form ; find where two lines meet.
By the end of this section, you can write the equation of a straight line and use it.
The form y = mx + c
Every straight line that is not vertical can be written as
- is the slope of the line.
- is the -intercept, the value of where the line crosses the -axis.
The -intercept is the output when , because the -axis is the line .
Example 1. A line has slope 2 and passes through . Write its equation.
The point is on the -axis, so the intercept is 3. Put and .
Finding c from any point
When the point is not on the -axis, you find by substituting the point into .
Example 2. A line has slope 3 and passes through . Write its equation.
Put the slope and the point into .
So the equation is . Check it with the point: .
Example 3. A line has slope and passes through . Write its equation.
Substitute the slope and the point.
The equation is . Subtracting a negative slope adds.
The form y - y₁ = m(x - x₁)
The point-slope form uses one point and the slope directly.
Example 4. A line passes through with slope 4. Write its equation in point-slope form, and then in the form .
The point is and the slope is 4.
Expand the bracket and simplify.
Both forms describe the same line. The intercept is .
From two points
When you are given two points, first find the slope, then find the intercept.
Example 5. A line passes through and . Find its equation.
Find the slope first.
Use the point to find the intercept.
The equation is . Check with the other point: .
Where two lines meet
Two straight lines meet at one point, unless they are parallel. At that point the two equations give the same . Set them equal and solve.
Example 6. Find where meets .
At the crossing point the two -values are equal.
Subtract from both sides.
Substitute back to find .
The lines meet at . Check with the other line: .
Horizontal and vertical lines
- A horizontal line has slope 0, so its equation is . The line passes through every point with .
- A vertical line has an undefined slope, so it cannot be written as . Its equation is . The line passes through every point with .
Watch out
The -coordinate of a point is not the intercept.
Progress check
Return to the chapter problem. The main path passes through the gate with slope .
- Find the -intercept of the main path.
- Write the equation of the main path in the form .
- Check that the kiosk lies on your line.
In Section 17.6 you will write the same line in general form.
You should now be able to
- write a line as , naming the slope and the intercept ;
- find the intercept from a slope and any point, using ;
- write a line in the form ;
- find the equation of a line through two points;
- find where two lines meet by solving their equations together;
- write the equation of a horizontal line as and a vertical line as .