How do I find the equation of a line connecting points a(p,q) and b(r,s)?

First we need to find the gradient of the line connecting points a and b:
gradient m = (change in y)/(change in x) = (q - s)/(p -r)

Now we use the following equation:

y - y1 = m(x - x1)

substituting suitable values for (x1, y1) (can be points a or b but we'll use point a this time) and m (calculated above):

Using point a:

y - q = [(q-s)/(p-r)](x - p)

and so the equation in the form y = f(x) is:
y = [(q-s)/(p-r)]x + (q-s)/(p-r) + q

CW

Related Maths GCSE answers

All answers ▸

If a train leaves for a 130 mile journey at 1.30pm, and travels at a constant speed of 50 miles per hour, at what time will it arrive?


Factorise the equation below (1)


White paint costs £2.80 per litre. Blue paint costs £3.50 per litre. White paint and blue paint are mixed in the ratio 3 : 2 Work out the cost of 18 litres of the mixture.


What's the best way to work out any percentage of a given number, e.g. 63% of 450?