Parallel and perpendicular lines

Parallel and perpendicular lines

IB MYP Maths Extended: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Parallel lines have the same gradient: m1=m2m_1=m_2.
  • Perpendicular lines have gradients that multiply to −1-1: flip the fraction and change the sign.
  • Put the equation in y=mx+cy=mx+c before reading the gradient.
  • For a parallel or perpendicular line through a point, find the gradient, then substitute the point to find cc.
  • The perpendicular from a point to a line gives the shortest distance.

Parallel lines

Parallel lines never meet because they have the same gradient.

y=3x−2y=3x-2, y=3x+5y=3x+5 and y=3xy=3x are all parallel, because each has gradient 33. They differ only in their yy-intercept.

−4−3−2−11234−10−5510xyy = 3x − 2y = 3x + 5y = 3x
Three parallel lines, all with gradient 3
  • Parallel linesm1=m2m_1=m_2

Which line is parallel to y=3x−2y=3x-2?

Perpendicular lines

Perpendicular lines meet at 90° and their gradients multiply to −1.

To find a perpendicular gradient, flip the fraction and change the sign.

y=2x+7y=2x+7 and y=−12x+1y=-\frac12x+1 are perpendicular because 2×(−12)=−12\times\left(-\frac12\right)=-1.

O
y = 2x and y = −x/2 meet at a right angle
  • Perpendicular linesm1×m2=−1m_1\times m_2=-1

Gradient 3

  • −13-\frac13

Gradient −1/2

  • 2

Gradient 2/3

  • −32-\frac32

What is the gradient of a line perpendicular to y=−14x+3y=-\frac14x+3?

Gradient from an equation

Rearrange into y = mx + c, dividing every term, then read off the gradient.

For 2x+4y=82x+4y=8: subtract 2x2x to get 4y=−2x+84y=-2x+8, then divide every term by 44.

−2−11234567−2−112345xy(0, 2)(4, 0)2x + 4y = 8
2x + 4y = 8 has gradient −1/2 and y-intercept 2

Worked example

Find the gradient of the line 2x+4y=82x+4y=8.

Find the gradient of 3x+y=73x+y=7.

A parallel line through a point

Use the same gradient, then substitute the point to find c.

  1. Find the gradient of the given line.
  2. Use the same gradient in y=mx+cy=mx+c.
  3. Substitute the point to find cc.
−2−112345−8−6−4−2246810xy(2, 1)y = 3x − 2y = 3x − 5
y = 3x − 5 is parallel to y = 3x − 2 and passes through (2, 1)

Worked example

Find the line parallel to y=3x−2y=3x-2 through (2,1)(2,1).

Find the line parallel to y=2x+1y=2x+1 through (3,4)(3,4).

A perpendicular line through a point

Take the negative reciprocal of the gradient, then substitute the point to find c.

The perpendicular from a point to a line gives the shortest distance. Find where the lines meet, then use Pythagoras.

The lines meet where 12x+1=−2x+13\frac12x+1=-2x+13, so x=4.8x=4.8 and y=3.4y=3.4. The shortest distance from PP is 0.82+1.62≈1.79\sqrt{0.8^2+1.6^2}\approx1.79.

P(4, 5)F(4.8, 3.4)
The perpendicular from P meets the line at F(4.8, 3.4)

Worked example

Find the line perpendicular to y=12x+1y=\frac12x+1 through P(4,5)P(4,5).

Two lines have gradients 25\frac25 and −52-\frac52. Are they perpendicular?

Try an exam question

Find the equation of the line perpendicular to y=12x+1y=\frac12x+1 that passes through P(4,5)P(4,5).

[3 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

What is the gradient of any line parallel to LL?

1 mark, marked against the mark scheme

Revision notes