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

Related Maths GCSE answers

All answers ▸

A right-angle triangle has a hypotenuse of 8cm and an angle of 30 degrees. What is the opposite's length?


A person leaves their flat at 8:00am and travels to work at an average speed of 32 mph. They arrive at work at 9:15am. Calculate the distance they travel to work.


Given the equations: x + 3y = 1 and 2x - y = -5, solve for x and y.


Show that the lines y=3x+7 and 2y–6x=8 are parallel. Do not use a graphical method.