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

Related Maths A Level answers

All answers ▸

A curve has equation y=x^2 + 2x +5. Find the coordinates of the point at which the gradient is equal to 1.


If the quadratic equation kx^2+kx+1=0 has no real roots, what values of k are possible?


How would you determine what sort of stationary point this curve has? x^3 - 6x^2 + 9x - 4


The points A and B have coordinates (3, 4) and (7, 6) respectively. The straight line l passes through A and is perpendicular to AB. Find an equation for l, giving your answer in the form ax + by + c = 0, where a, b and c are integers.