Processing math: 100%

Straight Lines: two-point form

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:

yy1=y2y1x2x1(xx1)

It can also be written as:

yy1y2y1=xx1x2x1

two-point-form

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

yy1y2y1=xx1x2x1

This equation can also be written as:

yy1=y2y1x2x1(xx1)

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=y2y1x2x1

Δy=mΔx

yy1=m(xx1)

Substitute the equation for m:

yy1=y2y1x2x1(xx1)

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

yy1=y2y1x2x1(xx1)

y2=4251(x1)

y2=64(x1)

4(y2)=6(x1)

4y8=6x6

4y+6x8+6=0

4y+6x2=0
The point intercept form can be written from the two-point form as:

y2=4251(x1)

y2=64(x1)

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:

y141=x+12+1

Simplify the equation to get the general equation:

y15=x+13

3(y1)=5(x+1)

3y3=5x5

5x+3y+2=0

The two-point method to derive a general equation can not be used for the vertical line.

graph vertical line

Step 1. Find the slope:

m=y2y1x2x1

m=4122=30=undefined

We can convert the two-form equation as a function of x to obtain the general equation.

yy1=y2y1x2x1(xx1)

yy1x2x1y2y1=xx1

y12241=x2

y103=x2

o=x2

x=2