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

6623 Views

See similar Maths GCSE tutors

Related Maths GCSE answers

All answers ▸

Solve the inequality 4m +3 > 15


A rectangle has an area of 20 cm2. Its length and width are enlarged by scale factor 3. Find the area of the enlarged rectangle.


How to complete the square to find the value of x?


A 20-foot ladder is leaning against a vertical wall. The bottom of the ladder is pulled away horizontally from the wall at 3 feet per second. How fast is the top of the ladder sliding down the wall when the bottom of the ladder is 10 feet away?


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