This lesson will cover the equation of the line, which passes through two given points, say (x1, y1) and (x2, y2). We call this the two-point form of the equation of a line.
We’ll derive the equation using the point-slope form of the equation.
Let’s assume the slope of the line to be m. Then, since the line passes through the point (x1, y1), it’s equation will be:
y – y1 = m(x – x1) … I
But we do not know the value of m. Instead, we’ve been given another point (x2, y2), through which the line passes.
That means, the coordinates (x2, y2) must satisfy the above equation. We’ll get:
y2 – y1 = m(x2 – x1)
⇒ m = (y2 – y1)/(x2 – x1)
And that’s it – we’ve found the slope. On substituting this in equation (I), we’ll get the required equation as
y – y1 = {(y2 – y1)/(x2 – x1)}(x – x1)
This also tells me one more thing – the slope of the line joining two points, (x1, y1) and (x2, y2) equals:
(y2 – y1)/(x2 – x1)
Have a look.
The slope of the line AB equals tanθ or AC/BC or (y2 – y1)/(x2 – x1). This expression will be quite useful as we’ll see later.
The second method (i.e. starting from scratch) is left for you as an exercise.
Here’s a simulation where you can observe the two-point form of the equation of a line.
You can drag the two points and see how the equation changes. Also, try substituting these coordinates in the equation that we derived. Do you get the same equation as shown in the simulation?
Lesson Summary
- The equation of the line joining two points (x1, y1) and (x2, y2) is given by y – y1={(y2 – y1)/(x2 – x1)}(x – x1).
- The slope of the line joining two points (x1, y1) and (x2, y2) equals (y2 – y1)/(x2 – x1).
In the next lesson, I’ll cover a few examples on the two-point form. See you there!