Math Explainer.

Parallel and perpendicular lines: what the gradients tell you

Ages 14–16GCSE (A9b)

What you will learn

The gradients of two lines tell you how the lines lie: whether they are parallel, or perpendicular, which means they cross at a right angle.

Think first: line 1 has gradient 22. With which gradient does line 2 never meet it? And with which is there a right angle? Then check: move only the slider for line 2.

Two lines on a coordinate grid and the angle between themA coordinate grid from −6 to 6 on both axes; the numbers are at the left and bottom edges of the grid. Line 1 is green and crosses the y-axis at 1; line 2 is dark and crosses it at −2. Two sliders set the gradients of the two lines, from −3 to 3 in steps of a half. If the point of intersection lies on the grid, a dot marks it; if the lines are perpendicular, a small square there shows the right angle. Under the sliders are the two equations and the product of the two gradients.y−6−4−20246−6−4−20246x
y=2x+1y = 2x + 1
y=x−2y = x - 2
m1×m2=2×1=2\begin{aligned} m_{1} \times m_{2} &= 2 \times 1 \\ &= 2 \end{aligned}

The lines y = 2x + 1 and y = x − 2 cross at an angle of about 18°. The product of their gradients is 2: they are neither parallel nor perpendicular.

Parallel: the same gradient

With gradient 22, line 2 never meets line 1; with −0.5-0.5 it crosses it at a right angle.

Two lines y=mx+cy = mx + c are parallel if they have the same gradient mm but different yy-intercepts. They are equally steep and never get closer to each other. With the same cc they would be one and the same line.

The same triangle fits both lines: 11 to the right, 22 up.

Self-check

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

Your answer
Show the solution

y=3x+5y = 3x + 5: the gradient is 33, as in y=3x−2y = 3x - 2; only the yy-intercept is different. y=−3x−2y = -3x - 2 has the same yy-intercept but gradient −3-3. And y=13x+1y = \frac{1}{3}x + 1 has gradient 13\frac{1}{3}.

Example 1

Find the equation of the line that is parallel to y=2x+1y = 2x + 1 and passes through the point P(1,5)P(1, 5).

  1. 01

    Parallel lines have the same gradient. Read it off from the equation.

    m=2m = 2
  2. 02

    Substitute m=2m = 2 and the coordinates of P into y=mx+cy = mx + c.

    5=2×1+c5 = 2 \times 1 + c
  3. 03

    Solve for cc: subtract 22 from both sides.

    c=5−2=3c = 5 - 2 = 3
  4. 04

    Substitute mm and cc into the equation.

    y=2x+3y = 2x + 3
Answer

The parallel line is y=2x+3y = 2x + 3. Check: it has gradient 22, like y=2x+1y = 2x + 1, and for x=1x = 1, y=2×1+3=5y = 2 \times 1 + 3 = 5: P lies on it.

Perpendicular: the product is −1

Two lines with gradients m1m_1 and m2m_2 are perpendicular exactly when

m1×m2=−1m_1 \times m_2 = -1

The gradient of the perpendicular is the reciprocal with the opposite sign, the negative reciprocal: 33 becomes −13-\frac{1}{3}, and −34-\frac{3}{4} becomes 43\frac{4}{3}. Only 00 has no reciprocal: the line perpendicular to a horizontal line is a vertical line x=ax = a, which has no gradient.

The quarter turn swaps the two sides of the triangle, and ‘up’ becomes ‘down’ here: the gradient 12\frac{1}{2} becomes −2-2.

Example 2

Find the equation of the line that is perpendicular to y=2x+1y = 2x + 1 and passes through the point P(4,1)P(4, 1).

  1. 01

    Read off the gradient of the given line.

    m1=2m_1 = 2
  2. 02

    Take the reciprocal and change the sign: that is the gradient of the perpendicular.

    m2=−12m_2 = -\frac{1}{2}
  3. 03

    Substitute m2m_2 and the coordinates of P into y=mx+cy = mx + c and work out the product.

    1=−12×4+c=−2+c1 = -\frac{1}{2} \times 4 + c = -2 + c
  4. 04

    Solve for cc: add 22 to both sides.

    c=1+2=3c = 1 + 2 = 3
  5. 05

    Substitute the gradient and cc into the equation.

    y=−12x+3y = -\frac{1}{2}x + 3
Answer

The perpendicular is y=−12x+3y = -\frac{1}{2}x + 3, or, with a decimal, y=−0.5x+3y = -0.5x + 3. Check: 2×(−12)=−12 \times \left(-\frac{1}{2}\right) = -1, and for x=4x = 4, y=−2+3=1y = -2 + 3 = 1: P lies on it.

Self-check

A line is perpendicular to y=4xy = 4x. What is its gradient? Give it as a decimal.

Show the solution

The reciprocal of 44 is 14\frac{1}{4}; with the opposite sign that is −14=−0.25-\frac{1}{4} = -0.25. Check: 4×(−0.25)=−14 \times (-0.25) = -1.

Self-check

What is true of the lines y=23x+3y = \frac{2}{3}x + 3 and y=−32x−1y = -\frac{3}{2}x - 1?

Your answer
Show the solution

They are perpendicular: 23×(−32)=−1\frac{2}{3} \times \left(-\frac{3}{2}\right) = -1. The gradient −32-\frac{3}{2} is the reciprocal of 23\frac{2}{3} with the opposite sign. The lines would be parallel only with equal gradients.

For teachers: a lesson plan (45 min)
  1. 5 min

    Starter

    Write y=2x+1y = 2x + 1 on the board and first ask without the simulation: what gradient does a second line need so that it never meets this one? And what gradient for a right angle? The class notes down its guesses. Then open the simulation with ‘Full screen’: someone moves only the slider for line 2.

  2. 10 min

    Parallel

    The figure with the two parallel lines: how can two lines still differ when their triangle is the same? Then the first self-check. Reveal Example 1 step by step together.

  3. 10 min

    Perpendicular

    The figure with the turned triangle: what does ‘33 to the right, 11 up’ become when you turn it through a quarter turn? The class draws it in their exercise books and reads off both gradients. Discuss the ‘Watch out’ box.

  4. 15 min

    Practice

    Let pupils try Example 2 on their own first, then reveal it and compare. The second and third self-checks, alone or in pairs. Anyone who finishes early looks in the simulation for all the pairs of gradients that give a right angle and thinks about why 1.51.5 has no partner on the slider.

  5. 5 min

    Plenary

    Read the ‘Remember’ box together. Ask: why can you not find a perpendicular to a horizontal line with the sliders?

Got an exercise on paper?

Take a photo of it and Math Explainer turns it into an explainer video with every step of the solution.

Upload a photo