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)](-p) + q

Chris W. A Level Maths tutor, GCSE Maths tutor, A Level Further Mathe...

2 years ago

Answered by Chris, a GCSE Maths tutor with MyTutor

Still stuck? Get one-to-one help from a personally interviewed subject specialist


£18 /hr

Darshan S.

Degree: Mathematics & Statistics (Bachelors) - Warwick University

Subjects offered: Maths


“About Me:  I am currently studying at the University of Warwick in my first year reading Mathematics and Statistics.  Throughout secondary school, maths was always my favourite lesson not only because I excelled in it but also becaus...”

MyTutor guarantee

£18 /hr

Anna G.

Degree: Dentistry (Bachelors) - Leeds University

Subjects offered: Maths, Chemistry+ 1 more


“Hello! I’m Anna and I’m currently studying dentistry at Leeds University. Maths was one of my favourite subjects at school and I studied it all the way up to A level. However, not everyone enjoys Maths! It’s commonly known as the trick...”

£18 /hr

Kate G.

Degree: Biochemistry (Bachelors) - Exeter University

Subjects offered: Maths


“Hello everyone, I'm Kate and I'm currently in my first year studying Biochemistry at the University of Exeter. I am a member of the canoeing society and enjoy taking part in the training sessions they have on offer. I have had previou...”

MyTutor guarantee

About the author

Chris W.

Currently unavailable:

Degree: Mathematics (Bachelors) - Durham University

Subjects offered: Maths, Science+ 5 more

Further Mathematics
-Personal Statements-

“Hi! I'm Chris, a maths undergraduate at Durham University. I achieved 4 A* at A-Level and on track for a First at university. ”

You may also like...

Other GCSE Maths questions

13 - 3 × 4+2 Simple question that lots of people get wrong

How to add fractions

Simplify and solve the following equation: x^2 -8x +15=0

Make x the subject of the equation y=(3x+5)/(4-x)

View GCSE Maths tutors


We use cookies to improve our service. By continuing to use this website, we'll assume that you're OK with this. Dismiss