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

6285 Views

See similar Maths GCSE tutors

Related Maths GCSE answers

All answers ▸

A perfect sphere of lead has radius 6 cm, and weighs 1710 grams. What is its density? Give your answer in g/cm^3. [Density = mass/volume]


How would you solve the simultaneous equations 2x + y = 7 and 3x - y = 8


Find the values of x given the equation (4x^2)-3x+1=2 using the quadratic formula.


A cone has radius 6cm and height 5cm. Work out its volume in terms of pi. (Formula for the volume of a cone is V=(1/3)pi(r)^2h)


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