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

6279 Views

See similar Maths GCSE tutors

Related Maths GCSE answers

All answers ▸

How do you find 24% of 1546?


How do you find the tangent of an angle in a right-angled triangle?


Tom is making gift bags, each of which will contain two balloons. He wants to hide a sweet in one of the balloons. 20 balloons cost £1.33, 15 sweets cost £2.05. What is the minimum he needs to spend to make 35 bags?


Two dice are thrown at the same time. What is the probability that the sum of the numbers on the dice is greater than 7?


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