Equations of straight lines
The equation of a line is a rule that every point on the line obeys and no other point does. Paper 1 expects you to find that rule from "sufficient information" (two points, or a point and a gradient), to move between the three standard forms, and to use lines to find intersections, perpendicular bisectors, feet of perpendiculars and areas. These skills appear in nearly every paper, either as a standalone question or as the first part of a circle or calculus question.
What an equation of a line means
A point lies on a line exactly when its coordinates satisfy the line's equation. So:
- to check whether a point is on a line, substitute it in;
- to find where two lines meet, find the point that satisfies both equations at once;
- to find where a line meets an axis, put (for the -axis) or (for the -axis).
Every line that is not vertical has a gradient (see Length, gradient and midpoint), and its equation can be built from the gradient and one point.
The three forms
Gradient and one point
Suppose a line has gradient and passes through the fixed point . Take any other point on the line. The gradient from to must be :
This is the most useful form, because exam questions nearly always give you a point and a way to find the gradient.
Gradient and intercept
Choosing the point , where the line crosses the -axis, gives , that is . Here is the -intercept. This form is best for reading off the gradient and for sketching.
The general form
Multiplying out and collecting everything on one side gives . Questions often ask for this form "where , and are integers", which simply means clear the fractions.
| Form | When to use it |
|---|---|
| you know a point and the gradient (the usual starting point) | |
| you want to read off the gradient or -intercept, or sketch | |
| the question asks for integer coefficients |
To read the gradient from , rearrange to , so the gradient is .
Vertical lines have equations ; horizontal lines have equations .
- Find the gradient : from two points, or from a parallel line (same ), or from a perpendicular line ().
- Choose a point on the line.
- Substitute into .
- Rearrange into the form asked for. If integer coefficients are wanted, multiply through by the denominator.
- Check: substitute your known point(s) back into the final equation.
The line through and has gradient and -intercept : , or .
Perpendicular bisectors
The perpendicular bisector of is the line that passes through the midpoint of and is perpendicular to . Every point on it is the same distance from as from . That property makes it essential for circles: the centre of any circle through and lies on the perpendicular bisector of (see Circles).
- Find the midpoint of .
- Find the gradient of , then the perpendicular gradient .
- Use .
Intersections of two lines
Two lines that are not parallel meet at exactly one point. Solve their equations simultaneously, by substitution if one is already in the form , and by elimination otherwise. Parallel lines (equal gradients, different intercepts) never meet: the simultaneous equations have no solution.
The foot of a perpendicular and the distance to a line
The shortest distance from a point to a line is measured along the perpendicular from to . The point where this perpendicular meets is called the foot of the perpendicular.
- Find the gradient of , then the perpendicular gradient.
- Write the equation of the line through with the perpendicular gradient.
- Solve simultaneously with to find .
- The shortest distance from to is the length .
The same construction gives the reflection of in : the image is on the other side, with as the midpoint of .
In the figure, , the line , the foot and the reflection .
There is a formula for the perpendicular distance from a point to a line, but it is not on the 9709 syllabus and is not in the formula list. The method above always works and shows the examiner every step.
Worked examples
Find the equation of the line through and , giving your answer in the form .
Solution
Using :
Check with : . Correct.
Find the equation of the line through that is perpendicular to .
Solution
Rearrange the given line: , so , gradient . The perpendicular gradient is .
Multiply by : , so .
The points and are and . Find the equation of the perpendicular bisector of .
Solution
Midpoint . Gradient of , so the perpendicular gradient is .
Check: gives .
The line has equation and the point is .
(a) Find the coordinates of the foot of the perpendicular from to .
(b) Find the shortest distance from to .
(c) Find the coordinates of the reflection of in .
Solution
(a) The perpendicular gradient is . The line through : . At the intersection with :
and . The foot is .
(b) .
(c) is the midpoint of . The step from to is ; repeating it from gives .
The points and are and . The line through perpendicular to meets the -axis at .
(a) Find the equation of and the coordinates of .
(b) Find the area of triangle .
Solution
(a) , so :
At , , so : .
(b) The angle at is , so and are the base and height:
The line passes through and has negative gradient . It meets the -axis at and the -axis at , and is the origin.
(a) Find the coordinates of and in terms of .
(b) Given that the area of triangle is , find and the equation of .
Solution
(a) The line is .
At , : , so .
At , : , so and .
Since , both and are positive, so and are on the positive axes.
(b)
Multiply by (remembering ):
So (a repeated root, so this is the only such line). Then , , and is
Check: area . The repeated root means is the smallest area any such triangle can have.
Using the gradient of the wrong line. In "perpendicular to ", the gradient of the given line is , not or . Rearrange to before reading it off.
Dropping a sign when multiplying out. gives . Write the bracket expansion as a separate line.
Leaving fractions when integers are asked for. "" is correct but not in the form with integer coefficients; multiply by .
Confusing the perpendicular bisector with any perpendicular line. It must pass through the midpoint.
Reading the shortest distance as the distance to an intercept. The shortest distance to a line is along the perpendicular, not to where the line crosses an axis.
- "Sufficient information". If a question gives you a point and a direction (parallel, perpendicular, through another point), you have enough. Start with .
- Form of the answer. Follow the requested form exactly. "In the form " and "in the form " are different, and the final mark is for the right form.
- Exact coordinates. Keep fractions exact. Intersections and feet of perpendiculars are often reused in later parts, and rounded values lose accuracy marks there.
- Areas. If a triangle has a right angle or a side along an axis, use base height. For other triangles, see the methods in Proving properties of shapes.
- Check one point. Substituting a known point into your final equation takes ten seconds and catches most slips.
- : line with gradient through . Use it as the default.
- : gradient , -intercept . has gradient .
- Vertical lines are ; horizontal lines are .
- Parallel lines share a gradient; perpendicular gradients multiply to .
- Perpendicular bisector: through the midpoint, perpendicular to the segment.
- Intersection: solve simultaneously. Axis intercepts: put or .
- Shortest distance to a line: find the foot of the perpendicular, then the length. The reflection has the foot as its midpoint.
Practice questions
- Find the equation of the line with gradient through , in the form .
- Find the equation of the line through and , in the form with integer coefficients.
- Find the equation of the line through parallel to .
- Find the equation of the perpendicular bisector of the line joining and .
- Find the point of intersection of and .
- The line meets the -axis at and the -axis at . Find the exact length of and the area of triangle , where is the origin.
- Find the foot of the perpendicular from to the line . Hence find the shortest distance from to the line, and the reflection of in the line.
- The lines and meet at . Find the equation of the line through perpendicular to .
- The points and are and . The line through perpendicular to meets the -axis at . Find the coordinates of and the area of triangle .
- The line has equation . The line passes through and is perpendicular to . (a) Find the equation of and the point where and meet. (b) Find the reflection of in . (c) Find the shortest distance from to , in exact form.
Answers
-
, so .
-
. ; multiply by : , so .
-
has gradient . , so , giving . (A parallel line keeps the left-hand side ; only the constant changes.)
-
Midpoint ; gradient of segment , so perpendicular gradient . , so .
-
From the second equation . Then , so and , . The point is .
-
and . . Area .
-
The line has gradient , so the perpendicular has gradient : , i.e. . Substituting: , so , , . Foot . Distance . Reflection: step from to is , so the image is .
-
, so , , : . The perpendicular gradient to is : , so .
-
, so the perpendicular gradient is : . At : , so . , . The angle at is , so area .
-
(a) has gradient , so has gradient and equation . Then , so , , : . (b) is the midpoint of and its image. Step is , so the image is . (c) .