IB Maths AA HL Topic 2 — Functions Paper 1 & 2 ~8 min read

Parallel & Perpendicular Lines

Now that you’ve got the three forms of a line down, here’s where the gradient really earns its keep. Two lines tell you everything about how they sit on the plane just by their gradients. Same gradient → parallel (they never meet). Gradients multiply to give −1 → perpendicular (they cross at a right angle). That’s the whole rule. Most exam questions on this topic are some variation of “find the line through this point that’s parallel/perpendicular to that one” — once you know the gradient game, the rest is just plugging into point-gradient form from the previous note.

📘 What you need to know

Parallel lines — same gradient, no meeting

Two lines are parallel when they go in exactly the same direction — they’re equidistant everywhere and never cross. In gradient terms:

Parallel lines m1 = m2  ⟺  lines are parallel

Just compare the gradients. If they’re equal, the lines are parallel. If the equations are not in y = mx + c form, rearrange them first.

A quick warning: same gradient AND same y-intercept means the two equations describe the same line — not two parallel lines. Two genuinely different parallel lines must have the same gradient but different y-intercepts.

Perpendicular lines — meet at 90°

Two lines are perpendicular when they cross at a right angle. The relationship between their gradients is:

Perpendicular lines m1 × m2 = −1  ⟺  lines are perpendicular

So if one gradient is m, the perpendicular gradient is −1/m. That’s the “negative reciprocal” — flip and negate.

Examples
m = 5 → perp m = −1/5
m = 2/3 → perp m = −3/2
m = −1/4 → perp m = 4
flip the fraction, swap the sign
Quick check
multiply them
if the product is −1, they’re perpendicular. Anything else (including −2 or +1) → not perpendicular.

🤔 Why does m1 × m2 = −1?

Picture rotating a line by 90° about a point. A line going up at gradient m (rise m, run 1) becomes a line where the “rise” and “run” swap roles, and one of them flips sign. So the new gradient becomes −1/m. Multiplying the old and new gradients gives m × (−1/m) = −1. The minus sign comes from the 90° rotation reversing direction.

The special case — horizontal and vertical lines

The rule “gradients multiply to −1” runs into a snag for horizontal and vertical lines:

Horizontal
y = k
gradient = 0 (no rise)
Vertical
x = h
gradient is undefined (run = 0)

You can’t multiply 0 by “undefined” and get −1, but it’s still true geometrically that horizontal and vertical lines are perpendicular. So just remember this as a special case.

Horizontal & horizontal:  always parallel (both gradient 0).   Vertical & vertical:  always parallel.   Horizontal & vertical:  always perpendicular.

What it looks like on a diagram

Parallel: same gradient.  Perpendicular: gradients multiply to −1
PARALLEL — m₁ = m₂ x y m₁ m₂two lines with the same slope — they never meet PERPENDICULAR — m₁ × m₂ = −1 x y m₁ = 2 m₂ = −1/2 two lines that cross at 90° — gradients are negative reciprocals

How to use these in exam questions

Most questions follow one of two patterns. Here’s the recipe for both:

🧭 Recipe — find a line parallel to a given line through a given point

  1. Rearrange the given line into y = mx + c if needed, and read off its gradient.
  2. Use the same gradient for your new line.
  3. Plug the gradient and given point into point-gradient form: yy1 = m(xx1).
  4. Rearrange to whatever form the question asks for.

🧭 Recipe — find a line perpendicular to a given line through a given point

  1. Find the gradient of the given line.
  2. Take the negative reciprocal — flip the fraction and change the sign.
  3. Plug into point-gradient form with the new gradient and the given point.
  4. Rearrange to the form the question asks for.

Worked examples

WE 1

Determine if two lines are parallel

Are the lines l1: y = 2x + 5  and  l2: 4x − 2y + 3 = 0 parallel?

Step 1: Read off the gradient of l₁ l₁: y = 2x + 5 → m₁ = 2 Step 2: Rearrange l₂ into y = mx + c form 4x − 2y + 3 = 0 2y = 4x + 3 y = 2x + 3/2 → m₂ = 2 Step 3: Compare gradients m₁ = 2 and m₂ = 2 → equal yes, the lines are parallel ✓ they have different y-intercepts (5 vs 3/2) so they’re genuinely two different parallel lines, not the same line
WE 2

Find a parallel line through a given point

Find the equation of the line passing through (1, 2) and parallel to y = −3x + 4. Give your answer in the form y = mx + c.

Step 1: Read off the gradient of the given line y = −3x + 4 → m = −3 Step 2: Parallel → use the same gradient new line: m = −3 Step 3: Plug into point-gradient form using (1, 2) y − 2 = −3(x − 1) y − 2 = −3x + 3 y = −3x + 5 y = −3x + 5 check: (1, 2) → −3(1) + 5 = 2 ✓  and the gradient matches the original line
WE 3

Find a perpendicular line through a given point

Find the equation of the line passing through (2, 5) and perpendicular to y = 12x − 7. Give your answer in the form y = mx + c.

Step 1: Read off the gradient of the given line y = (1/2)x − 7 → m₁ = 1/2 Step 2: Take the negative reciprocal for the perpendicular gradient m₂ = −1/m₁ = −2 check: m₁ × m₂ = (1/2)(−2) = −1 ✓ Step 3: Plug into point-gradient form using (2, 5) y − 5 = −2(x − 2) y − 5 = −2x + 4 y = −2x + 9 y = −2x + 9 check: (2, 5) → −2(2) + 9 = 5 ✓ — point lies on the line
WE 4

Determine if two lines are perpendicular

Are the lines l1: 2x + 3y = 6  and  l2: 3x − 2y = 4 perpendicular? Justify your answer.

Step 1: Rearrange l₁ to find gradient 2x + 3y = 6 → 3y = −2x + 6 → y = −(2/3)x + 2 m₁ = −2/3 Step 2: Rearrange l₂ to find gradient 3x − 2y = 4 → 2y = 3x − 4 → y = (3/2)x − 2 m₂ = 3/2 Step 3: Multiply the gradients m₁ × m₂ = (−2/3)(3/2) = −6/6 = −1 yes, l₁ and l₂ are perpendicular because m₁ × m₂ = −1 ✓ notice m₁ and m₂ are negative reciprocals: flip 2/3 and change sign → −3/2… wait, that’s the negative of m₂. They check out: −2/3 and 3/2 ARE negative reciprocals of each other.
WE 5

Perpendicular line in general form

Find the equation of the line passing through (3, 4) and perpendicular to the line 2x + y = 5. Give your answer in the form ax + by + d = 0 with integer coefficients.

Step 1: Find gradient of the given line 2x + y = 5 → y = −2x + 5 → m₁ = −2 Step 2: Perpendicular gradient m₂ = −1/m₁ = −1/(−2) = 1/2 Step 3: Plug into point-gradient form using (3, 4) y − 4 = (1/2)(x − 3) Step 4: Multiply through by 2 to clear the fraction 2(y − 4) = x − 3 2y − 8 = x − 3 Step 5: Move everything to the left 0 = x − 3 − 2y + 8 x − 2y + 5 = 0 x − 2y + 5 = 0  (integer coefficients ✓) always clear fractions BEFORE moving things across the equals sign — saves arithmetic mistakes
WE 6

Show a triangle is right-angled

The points A(−1, 0), B(2, 4) and C(6, 1) form a triangle. Show that triangle ABC has a right angle at B.

Step 1: Find the gradient of side AB m_AB = (4 − 0) / (2 − (−1)) m_AB = 4 / 3 Step 2: Find the gradient of side BC m_BC = (1 − 4) / (6 − 2) m_BC = −3 / 4 Step 3: Multiply the two gradients m_AB × m_BC = (4/3) × (−3/4) = −12/12 = −1 since m_AB × m_BC = −1, AB ⊥ BC, so the triangle has a right angle at B ✓ to find the right angle in a triangle, check the gradients of the two sides meeting at each vertex — only one pair will multiply to −1

💡 Top tips

⚠ Common mistakes

Parallel and perpendicular questions are some of the easiest marks in the IB exam — once you know the gradient rules, the rest is just plugging into point-gradient form. Get really fluent with the “flip the fraction, swap the sign” move because perpendicular gradients show up everywhere later: in normals to curves (calculus), perpendicular bisectors (geometry), and even vector dot products. The next section moves to quadratic functions, where the graph stops being a straight line and starts curving — but the same point-by-point thinking still applies.

Need help with Parallel & Perpendicular Lines?

Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.

Book Free Session →