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

5988 Views

See similar Maths GCSE tutors

Related Maths GCSE answers

All answers ▸

Solve the simultaneous equations: y = 4x^2 - 9x - 1 and y = 5 - 4x


Given the functions f(x) = (x + 2)/9 and g(x) = x^3 + 6, find fg(x).


How do I expand double brackets?


A cuboid has sides such that the longest side is two units more than the shortest side, and the middle length side is one unit longer than the shortest side. The total surface area of the cuboid is 52 units². Calculate the length of the shortest side.


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:

© 2025 by IXL Learning