Method · Coordinate Geometry
Finding the equation of a straight line
Fix the direction of the line with its gradient , then anchor it to one known point using , and rearrange into .
What this method is for
This method turns geometric information into the algebraic equation of a straight line, usually in gradient-intercept form or the general form . The information can be two points that lie on the line, a single point together with the gradient, or a point together with a line that the new line is parallel or perpendicular to.
It answers questions such as 'find the equation of the line joining and ', 'find the equation of the line through with gradient ', or 'find the equation of the perpendicular bisector of '. Once you have the equation you can find its axis intercepts, test whether a point lies on it, or find where it meets another line, so it is one of the most reused skills in the whole Coordinate Geometry chapter.
When to reach for it
Reach for this method whenever a question asks you to 'find the equation of the straight line' and gives enough to fix both its direction (a gradient) and its position (one point it passes through). The common signals are: two named points on the line, a single point plus a stated gradient, or a point plus a parallel or perpendicular condition such as 'parallel to ' or 'perpendicular to '.
If only a gradient is given with no point, the line is not yet pinned down, search the question for the point. When a parallel or perpendicular line is mentioned, first read off that line's gradient, then convert it: keep the same value for a parallel line, or take the negative reciprocal for a perpendicular line, before you substitute a point.
The steps
- 1
Identify what you are given
Two points, or one point and a gradient, or one point and a parallel/perpendicular line.
- 2
Find the gradient
From two points use . For a parallel line use the same gradient; for a perpendicular line use .
- 3
Choose one point
Pick a point that the line passes through, either one works if you have two.
- 4
Substitute into point-gradient form
Write using your gradient and chosen point.
- 5
Expand and rearrange
Multiply out the bracket and collect terms into , or the general form if the question asks for it.
- 6
Check with the other point
Substitute a second known point into your equation; both sides should agree.
Worked example
Find the equation of the straight line that passes through the points and . Give your answer in the form .
Show worked solution
First find the gradient using the two points. Take and .
Now substitute the gradient and the point into the point-gradient form.
Expand the bracket and rearrange to make the subject.
So the equation of the line is . Check with the other point : substituting gives , which matches the -coordinate of .
The answer is confirmed.
Common pitfalls
- Subtracting the coordinates in a different order on the top and bottom of the gradient, for example , which reverses the sign.
- Getting the perpendicular gradient wrong: the negative reciprocal of is , not or .
- Forgetting to expand the bracket in , or dropping the sign when the coordinate is negative.
- Leaving the answer as when the question asked for or the general form.
- Swapping which point is partway through, the gradient is the same either way, but you must stay consistent.
How a teacher helps
The step that costs the most marks is the gradient sign, students subtract one way and the other, and the whole line tilts the wrong way. In one-to-one lessons our teachers watch you set up and insist you label and before any numbers go in, so the subtraction stays consistent top and bottom.
For perpendicular questions we pause on the negative reciprocal until it is automatic. Because SPM Add Math uses analytic marking, we also show you how a clean gradient line earns method marks even if a later arithmetic slip changes .
Every teacher on spmaddmath.com.my is experienced. Lessons are online and taught in English, at your own pace.
Get 1-to-1 help.
Book a Trial ClassFrequently asked questions
What form should my final answer be in?
If the question names a form, or , give exactly that. Otherwise is the standard, always-accepted answer.
Because marking is analytic, correct working earns method marks even before the final simplification.
What if I am only given the gradient and one point?
That is enough. Substitute the gradient and the point straight into , then expand and rearrange into .
You do not need a second point when the gradient is already known.
How does a perpendicular line change the method?
Only the gradient step changes. Read the gradient of the given line, then use the negative reciprocal as your gradient.
Everything after that, substituting a point and rearranging, is the same.
Do I still earn marks if I slip up in the arithmetic?
Yes. SPM Add Math uses analytic marking, so a correct gradient and a correctly substituted point-gradient equation earn method marks, even if a numerical slip changes the final constant.
Source:SRC-DSKP-EN