When the graph of a linear function passes through the points A (x1, y1) and B (x2, y2), then the equation can be written as:
y−y1=y2−y1x2−x1(x−x1)
It can also be written as:
y−y1y2−y1=x−x1x2−x1
For verifying this equation let P(x,y) be any point on the given line that passes through A(x1,y1) and B(x2,y2), as shown in the graph above. From A and B, we draw AL and BN that is perpendicular to the X-axis. From point P, we draw PM that is also perpendicular to the X-axis. Also, from A draw a line that is perpendicular to AD on BN.
Consider the similar triangles ADB and ACP constructed on the graph above. By the definition of a slope and similar triangles we can deduce that:
PCBD=ACAD
Likewise,
PC = PM -CM = y- y1
BD=BN-DN = y2 – y1
AC=LM=OM-ON = x-x1
AD=LN=ON-OL=x2-x1
Substitute the point values: PCBD=ACAD
y−y1y2−y1=x−x1x2−x1
This equation can also be written as:
y−y1=y2−y1x2−x1(x−x1)
There is another way of deriving the two-point form of the equation of a line. Recall that the slope of the line AB is the ratio of the change in y to the change in x as shown in the equation below:
m=y2−y1x2−x1
Δy=mΔx
y−y1=m(x−x1)
Substitute the equation for m:
y−y1=y2−y1x2−x1(x−x1)
The two- form is the starting step to derive the standard equation of a line when two points are given.
Example 1. Find a general form equation and point-slope form equation for the line through the pair of points (-1,2) and (5,/-4)?
Let ordered pair (x1, y1) be (1, 2) and (x2, y2) be (5, -4). Substitute these values in the two-point form equation
y−y1=y2−y1x2−x1(x−x1)
y−2=−4−25−1(x−1)
y−2=−64(x−1)
4(y−2)=−6(x−1)
4y−8=−6x−6
4y+6x−8+6=0
4y+6x−2=0
The point intercept form can be written from the two-point form as:
y−2=−4−25−1(x−1)
y−2=−64(x−1)
Make y as the subject of the equation
y=−6x+64+2
y=−6x4+64+2
y=−32x+64+2
y=−32x+72
Here, m = -3/2 and b=7/2
Example 2. Write the two-point form and the general equation of the linear function y whose graph passes through the given pairs of points: (-1, 1) and (2, -4)
Plugging (x₁ , y₁) = (-1, 1) and (x₂, y₂) = (2, -4), we get:
y−1−4−1=x+12+1
Simplify the equation to get the general equation:
y−1−5=x+13
3(y−1)=−5(x+1)
3y−3=−5x−5
5x+3y+2=0
The two-point method to derive a general equation can not be used for the vertical line.
Step 1. Find the slope:
m=y2−y1x2−x1
m=4−12−2=30=undefined
We can convert the two-form equation as a function of x to obtain the general equation.
y−y1=y2−y1x2−x1(x−x1)
y−y1x2−x1y2−y1=x−x1
y−12−24−1=x−2
y−103=x−2
o=x−2
x=2