Equations of straight lines

Maths: Applications and Interpretation · Functions. 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 Maths: Applications and Interpretation topics

The idea

The gradient of a line measures how steep it is: the change in y for each increase of 1 in x. A positive gradient goes up from left to right and a negative gradient goes down.

The same line can be written in three forms. y = mx + c shows the gradient m and the y-intercept c directly. The general form ax + by + d = 0 must be rearranged to read them. The point-gradient form is the quickest way to build an equation from a point and a gradient.

In a linear model the gradient is a rate of change (for example dollars per minute) and the intercept is the starting value when x = 0.

In simpler words

The gradient shows how steep a line is. It is how much y goes up when x goes up by 1. A positive gradient goes uphill. A negative one goes downhill. In y = mx + c, m is the gradient and c is where the line crosses the y-axis. Parallel lines have the same gradient.

An everyday comparison

The gradient is like the steepness sign on a road. A 1 in 10 hill rises 1 metre for every 10 metres along. In a taxi fare model, the gradient is the price per kilometre and the intercept is the starting charge. The comparison stops working because a line's gradient can be negative or zero, and it never changes along the line.

Rules to remember

Common mistake

For a perpendicular line students only change the sign or only turn the fraction over. You must do both: perpendicular to gradient 3 is −1/3, not −3 and not 1/3.

In the exam

Write the gradient formula, substitute the two points and simplify. Choose the form asked for: y = mx + c, point-gradient y − y1 = m(x − x1), or general form ax + by + d = 0 with integer coefficients. For a perpendicular line, state the new gradient as −1/m. In a model, interpret m as a rate of change with units and c as the starting value.

Worked example

Line L passes through (1, 3) and (5, 11). Find the equation of the line through (4, 1) that is perpendicular to L.

  1. Gradient of L = (11 − 3) ÷ (5 − 1) = 8 ÷ 4 = 2.
  2. Perpendicular gradient = −1/2, because 2 × (−1/2) = −1.
  3. y − 1 = −(1/2)(x − 4), so y = −(1/2)x + 2 + 1.

Answer: y = −(1/2)x + 3

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

← Systems of linear equations and polynomial equations (technology)Functions, graphs and their key features →Take a Maths: Applications and Interpretation test