Straight lines

NUST NET Maths · Maths · Analytic geometry. The idea in plain words, the rules to remember, the mistake to avoid and a worked example, written and checked by Mega Lecture.

Test this topic freeAll NUST NET Maths 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.

In simpler words

Coordinate geometry puts shapes on a grid so you can use algebra. From two points you can find the distance between them, the midpoint and the gradient, which is how steep the line is. A line is fixed by one point on it and its gradient. Parallel lines have the same gradient. Lines at right angles have gradients that multiply to minus one. Three points are in a line if the gradients match.

An everyday comparison

The gradient is like the steepness of a road: rise over run, how many metres you climb for every metre along. Two roads with the same steepness run parallel and never meet. A road at right angles to a slope going up 2 for every 1 along must go down 1 for every 2 along, so the gradients multiply to −1. The comparison stops at direction: road signs ignore left and right, but a gradient can be negative.

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.

In the exam

For a gradient, write m = (y2 − y1)/(x2 − x1) and substitute. For a line, write y − y1 = m(x − x1) showing the point and gradient, then rearrange to the form asked for. For a perpendicular, write m2 = −1/m1 before anything else. For the distance from a point to a line, write the formula with the modulus sign, substitute, simplify the root. For parallel lines, first make the x and y coefficients identical.

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

Ask about this

Type what you are stuck on. The helper finds the explanation, worked examples and the notes to read, free and instant.

Read the full notes

Keep going

← Definite integrals and areasCircles and conic sections →Take a NUST NET Maths test