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 ▸

The equation of a curve is y = x^2 + ax + b where a and b are integers. The points (0,-5) and (5,0) lie on the curve. Find the coordinates of the turning point of the curve.


How do you use the product rule?


Write x^2 – 10x + 12 in the form (x – a)^2 + b , where a and b are integers.


Given that x^2+10x+3 can be written in the form (x+a)^2+b, find the values of a and b.