Straight lines

NUST NET (Engineering) · Maths · Analytic geometry. A short explanation of the idea, the rules to remember, the mistake to avoid, a worked example and practice questions with answers.

Test this topic freeAll NUST NET (Engineering) topics

The idea

Coordinate geometry turns geometry into algebra. Two points give you a distance, a midpoint and a gradient. The gradient m measures the steepness of a line and equals tan θ, where θ is the angle the line makes with the positive x-axis.

A line is fixed by one point and a gradient, so most questions come down to finding m and then using y − y1 = m(x − x1). For a line written as ax + by + c = 0, read the gradient straight off as −a/b.

Parallel lines have equal gradients. Perpendicular lines have gradients that multiply to −1. Three points are collinear when the gradients between them are equal.

Rules to remember

Common mistake

Using the parallel-lines distance formula before the two equations have the same x and y coefficients. Multiply or divide one equation first so that a and b match, then compare the constants.

Worked example

Find the equation of the line through (1, 2) perpendicular to 2x − 3y + 5 = 0.

  1. Gradient of the given line = −a/b = −2/(−3) = 2/3, so the perpendicular gradient is −3/2.
  2. y − 2 = (−3/2)(x − 1), so 2y − 4 = −3x + 3.
  3. Rearrange: 3x + 2y − 7 = 0. Check with (1, 2): 3 + 4 − 7 = 0.

Answer: 3x + 2y − 7 = 0

Practice questions

Try each one, then open the answer.

1. The midpoint of the segment joining (3, −4) and (−7, 8) is

  1. A
    (5, −6)
  2. B
    (−4, 4)
  3. C
    (2, −2)
  4. D
    (−2, 2)
Show answer

Answer: D. Midpoint = ((3 − 7)/2, (−4 + 8)/2) = (−2, 2). (−4, 4) adds the coordinates but forgets to halve.

2. The line through (2, k) and (5, 7) has gradient 2. The value of k is

  1. A
    13
  2. B
    −1
  3. C
    1
  4. D
    5
Show answer

Answer: C. (7 − k)/(5 − 2) = 2 gives 7 − k = 6, so k = 1. Writing (k − 7)/3 = 2 gives 13.

3. The acute angle between the lines y = 3x + 1 and y = −2x + 5 is

  1. A
    30°
  2. B
    60°
  3. C
    45°
  4. D
    90°
Show answer

Answer: C. tan θ = |(m1 − m2)/(1 + m1m2)| = |(3 + 2)/(1 − 6)| = 1, so θ = 45°.

More questions on this topic

Read the full notes

Keep going

← Definite integrals and areasCircles and conic sections →All rules on one pageStuck? Ask a question