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
Answered by Chris W. Maths tutor

6267 Views

See similar Maths GCSE tutors

Related Maths GCSE answers

All answers ▸

Issy goes to buy some fruit. She has been told by one friend that 2 apples and 3 bananas costs £3.80. She has been told by another friend that 5 apples and a banana costs £3.65. what are the individual costs of an apple and a banana?


Calculate the mean value of 34,35,36,32,39.


For the equation, 5(7x + 8) + 3(2x + b) ≡ ax + 13. Find the values of a and b. You may use a calculator.


A line passes through coordinates (-2,4) and (8,9). Does the point with coordinates (32,55) fall on this line?


We're here to help

contact us iconContact ustelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

MyTutor is part of the IXL family of brands:

© 2026 by IXL Learning