How does one find the equation of a line passing through 2 points of a graph?

The general equation for a line on a graph is: y = mx + b ,where a is called the slope of the graph and b is the y-intercept(or the point where the line crosses the y axis). Let's assume the 2 points have the following coordinates (x1 , y1) and (x2 , y2). Subtracting the 2 equations from one another to get, y1 -y2 = mx1 + b - mx2 -b . The b's could be cancelled out and the m is a common multiplier , which means the equation could be written as:y1-y2 = m(x1-x2) or m = (y1-y2)/(x1-x2). Assuming we know all x's and y's m could be calculated. The final step of finding b could be done by substituting m and a pair of x and y into the first equation(y=mx+b)

DD
Answered by Dimitar D. Maths tutor

4869 Views

See similar Maths A Level tutors

Related Maths A Level answers

All answers ▸

What is the difference between definite and indefinite integrals?


Express 8/((root3) -1)) in the form a(root3) +b, where a and b are integers.


You are given the function f(x)=x^3-x^2-7x+3, and that x=3 is a root of f(x)=0. Find the exact values of the other 2 roots. (6 marks)


The line PQ is the diameter of a circle, where points P and Q have the coordinates (4,7) and (-8,3) respectively. Find the equation of the circle.


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