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 ▸

Find the value of 9^(-1/2)


Work out 51% of 400?


Bob lives 2km away from Alice and the school is 1km away from Bob. Alice sets off to meet Bob at 8am and she meets him at 8:15 and they carry on walking at the same pace. School starts at 8:20. Do they get to school on time? How early/late are they?


Solve the simultaneous equations: 3x − y = 23 2x + 3y = 8