Equation of a Straight Line (AA HL)
A straight line has equation (gradient-intercept form), (point-gradient form) or (general form). To build an equation, find the gradient from two points or use the one given, substitute a point into the point-gradient form, then rearrange into the form the question asks for. It's part of the broader Straight Lines topic.
18 questions on this sub-topic.
Syllabus
| Code | Syllabus content |
|---|---|
| SL2.1 | Different forms of the equation of a straight line: (gradient-intercept form), (general form), and (point-gradient form). Gradient and intercepts. Parallel lines . Perpendicular lines . |
Official IB source: Mathematics: analysis and approaches subject brief (PDF, ibo.org).
Skills practised on this page:
- Find the equation of a straight line given the gradient and a point, or two points, expressing it in gradient-intercept, general, or point-gradient form.
- Determine whether two lines are parallel or perpendicular from their gradients.
The three forms
None of these are printed in the formula booklet - they're treated as prior knowledge.
Gradient-intercept form
Best when you know (or want) the gradient and the -intercept directly.
General form
Whole-number coefficients; rearrange to to read off the gradient .
Point-gradient form
The fastest route from "a gradient and a point" to a full equation - expand and simplify from there.
Need the full syllabus wording and formula-booklet reference table? See Straight Lines.
Key terms
What is gradient-intercept form?
The form shows the gradient and the -intercept directly.
e.g. has gradient and passes through .
What is point-gradient form?
The form gives the line with gradient through the point , so it is the quickest form to write down.
e.g. Gradient through : , which gives .
What is general form?
General form is , usually with integer coefficients and all terms on one side.
e.g. becomes , so .
How do you find the intercepts of a line?
For the -intercept set , and for the -intercept set .
e.g. For , the -intercept is and the -intercept is .
Worked examples
Find the equation of the line through and
(a)(i) State the gradient.
(a)(ii) State the y-intercept.
Worked solution
(a)(i) M1
A1
(a)(ii) M1
A1
Find the equation of the line through parallel to the segment joining and
(a)(i) State the gradient.
(a)(ii) State the y-intercept.
Worked solution
(a)(i) Gradient of segment M1 A1
(a)(ii) M1
A1
Find the equation of the line parallel to passing through
(a)(i) State the gradient.
(a)(ii) State the y-intercept.
Worked solution
(a)(i) Parallel lines have equal gradient M1
(a)(ii) Through : A1
A1
Find the equation of the line perpendicular to passing through
(a)(i) State the gradient.
(a)(ii) State the y-intercept.
Worked solution
(a)(i) Gradient of is Perpendicular gradient M1A1
(a)(ii) M1
A1
Common mistakes
- Sign errors rearranging general form. Dividing through by to reach is a common place to lose a minus sign, especially when itself is negative.
- Substituting the wrong point into point-gradient form. works with either given point, but mixing coordinates from two different points in the same substitution gives a completely wrong line.
- Stopping before rearranging into . A question that asks for the equation "in the form " wants the final expanded and simplified line, not the point-gradient form left half-finished.
Quick questions
How do I find the equation of a line through two points?
First find the gradient , then substitute that gradient and either point into and rearrange into .
What's the difference between gradient-intercept and general form?
Gradient-intercept form, , shows the gradient and -intercept directly. General form, , uses whole-number coefficients and needs rearranging (gradient ) before either feature is visible. A GDC can also confirm a gradient graphically - see Straight Lines.
Which form should I give my answer in?
Give the form the question asks for. If no form is stated, any correct equation is valid, but is a clear choice. For example, and are the same line.
How do I check whether a point lies on a line?
Substitute its coordinates into the equation and see whether both sides are equal. For , the point lies on the line since , but does not since .
How do I find the equation of a line from its graph?
Read two clear points, calculate the gradient, and use the -intercept or point-gradient form. For points and , , so .
Ready to practise properly?
18 equation-of-a-line questions, marked instantly like the real exam.