Skip to main content
Examonaut

Topic 3 · Lesson 1 of 4

Straight lines

Straight lines: gradient and equation

The gradient of a line measures its steepness: how far it goes up for each 1 across. Between two points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2),

m=y2−y1x2−x1=riserunm = \frac{y_2 - y_1}{x_2 - x_1} = \frac{\text{rise}}{\text{run}}

A line is fixed by its gradient and one point on it. If (x,y)(x, y) is any other point on the line, the gradient from (x1,y1)(x_1, y_1) to (x,y)(x, y) must be mm: y−y1x−x1=m\frac{y - y_1}{x - x_1} = m. Multiplying up gives the most useful form of a line at A level:

y−y1=m(x−x1)y - y_1 = m(x - x_1)

It is quicker than y=mx+cy = mx + c because you don't need to find cc first. Questions often ask for the final answer in the form ax+by+c=0ax + by + c = 0 with integers aa, bb, cc: multiply out, clear any fractions and bring everything to one side.

Parallel and perpendicular lines

Parallel lines have equal gradients. For perpendicular lines, the diagram below shows the reason for the rule. A line with gradient 12\frac{1}{2} has a gradient triangle with run 4 and rise 2. Turn the whole picture through 90°: the run of 4 becomes a rise of 4, and the rise of 2 becomes a run of 2 backwards. So the new gradient is 4−2=−2\frac{4}{-2} = -2.

xyOrun 4rise 242 backm = 2/4 = ½m = 4/(−2) = −2triangle turned through 90°

In general, turning a triangle with run 1 and rise mm gives rise 1 and run −m-m, so the perpendicular gradient is −1m-\frac{1}{m}:

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

"Flip the fraction and change the sign": perpendicular to 23\frac{2}{3} is −32-\frac{3}{2}; perpendicular to −4-4 is 14\frac{1}{4}.

How to find the equation of a line

  1. Step 1: Find the gradient: from two points, from a parallel line (same), or from a perpendicular line (negative reciprocal).
  2. Step 2: Substitute the gradient and a known point into y−y1=m(x−x1)y - y_1 = m(x - x_1).
  3. Step 3: Rearrange into the form asked for.

Worked example

A perpendicular bisector

AA is (−2,5)(-2, 5) and BB is (4,1)(4, 1). Find the perpendicular bisector of ABAB in the form ax+by+c=0ax + by + c = 0.

Show solution

The perpendicular bisector is the line that cuts ABAB in half at right angles. Every point on it is the same distance from AA as from BB, which is why it appears in circle questions.

  1. It passes through the midpoint of ABAB: (−2+42,5+12)=(1,3)\left(\frac{-2 + 4}{2}, \frac{5 + 1}{2}\right) = (1, 3).
  2. Gradient of ABAB: 1−54−(−2)=−46=−23\frac{1 - 5}{4 - (-2)} = -\frac{4}{6} = -\frac{2}{3}. The perpendicular gradient is 32\frac{3}{2}.
  3. y−3=32(x−1)y - 3 = \frac{3}{2}(x - 1). Multiply by 2: 2y−6=3x−32y - 6 = 3x - 3.
  4. So 3x−2y+3=03x - 2y + 3 = 0.

Straight-line models

Many real relationships are roughly linear over a range. If a taxi fare is modelled by C=2.8+1.6dC = 2.8 + 1.6d, where CC is the cost in pounds and dd the distance in km, then the gradient 1.6 means "each extra kilometre costs £1.60", and the intercept 2.8 is the fixed charge before the taxi moves. Exam questions ask you to interpret the gradient and intercept in context, with units, and to criticise the model: for example, real fares may rise in steps, or have a different rate at night, and the model should not be used far outside the data it was based on.

Practise this topic

Both are part of Premium.