IB Maths AI SLTopic 2 — Linear FunctionsPaper 1 & 2Gradient rules~6 min read
Parallel & Perpendicular Lines
Two simple gradient rules tell you exactly how a pair of lines relate: same gradient means parallel; gradients that multiply to −1 means perpendicular.
📘 What you need to know
Parallel lines: same gradient, m1 = m2. Never intersect.
Perpendicular lines: gradients are negative reciprocals, m1 × m2 = −1. Meet at 90°.
To find the perpendicular gradient: flip the fraction AND change the sign. e.g. m = 2 → perp gradient = −1/2.
To check the relationship: rearrange both lines into y = mx + c and compare gradients.
Special case: a horizontal line (y = q) and a vertical line (x = p) are perpendicular — the m × m = −1 rule doesn’t apply because vertical lines have undefined gradient.
Perpendicular bisector: passes through the midpoint of a segment, perpendicular to it. Common application.
The two gradient rules
Both rules — learn together
Parallel: m1 = m2 • Perpendicular: m1 × m2 = −1
Parallel: gradients match → lines stay equidistant. Perpendicular: gradients multiply to −1 → lines cross at exactly 90°.
Finding the perpendicular gradient
Given any non-zero gradient m1, the perpendicular gradient is m2 = −1/m1. In practice: flip the fraction, then change the sign.
Quick conversions: m = 3 → perp = −1/3 • m = −2/5 → perp = 5/2 • m = 1 → perp = −1 • m = 0 → perp is vertical (undefined).
🧭 Recipe — parallel / perpendicular problems
Rearrange the given line into y = mx + c form to read its gradient.
Determine whether the lines y = 4x − 3 and 8x − 2y + 5 = 0 are parallel.
Line A is already in y = mx + c formm_A = 4Rearrange Line B into y = mx + c8x − 2y + 5 = 0−2y = −8x − 5y = 4x + 5/2m_B = 4Compare gradientsm_A = m_B = 4yes, the lines are parallelthey have different y-intercepts (−3 and 5/2) so they’re distinct lines, not the same one.
WE 4
Are these lines perpendicular?
Determine whether the lines 2x + 3y = 6 and 3x − 2y + 4 = 0 are perpendicular. Justify your answer.
A is the point (2, 1) and B is the point (8, 9). Find the equation of the perpendicular bisector of AB in the form ax + by + d = 0 with integer coefficients.
If gradients aren’t fractions, check both ways: m1 × m2 should give exactly −1.
⚠ Common mistakes
Reciprocal without changing sign: m = 2 → perp is −1/2, NOT 1/2.
Same gradient for perpendicular: parallel lines have the same gradient; perpendicular lines do NOT.
Forgetting the negative sign in (−1/m): perp of 5 is −1/5, not 1/5.
Confusing “same line” with “parallel”: two parallel lines must have DIFFERENT y-intercepts; if they match, it’s the same line.
That completes Linear Functions & Graphs. Up next per the syllabus: more function families (quadratics, exponentials, piecewise) and how to use them as models.
Need help with AI SL Linear Functions?
Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.