Straight lines: questions and answers

By Team Megalecture · Updated 22 Nov 2026

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 inclination of the line √3x + y = 5 to the positive x-axis is

  1. A
    60°
  2. B
    150°
  3. C
    120°
  4. D
    30°
Show answer

Answer: C. The gradient is −√3, so tan θ = −√3 with 0° ≤ θ < 180°, giving θ = 180° − 60° = 120°. 60° ignores the minus sign.

2. The equation of the line through (1, 2) and (3, 8) is

  1. A
    y = 3x − 1
  2. B
    y = 3x + 1
  3. C
    y = x/3 + 5/3
  4. D
    y = 3x − 5
Show answer

Answer: A. Gradient = (8 − 2)/(3 − 1) = 3, so y − 2 = 3(x − 1), which is y = 3x − 1. Check with (3, 8): 9 − 1 = 8.

3. The perpendicular from the origin to a line has length 4 and makes an angle of 60° with the positive x-axis. The equation of the line is

  1. A
    √3x + y = 8
  2. B
    x + √3y = 8
  3. C
    x + √3y = 4
  4. D
    √3x + y = 4
Show answer

Answer: B. Normal form: x cos 60° + y sin 60° = 4, that is x/2 + (√3/2)y = 4, so x + √3y = 8. Swapping cos and sin gives √3x + y = 8.

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