# Home > Algebra > Coordinate Geometry > Examples of Two Point Formula

# Examples of Two Point Formula

We earlier saw the explanation of two point formula for calculating the equation of a straight line. Here are a few more examples of two point formula.

In the diagram below, the points A (-2, 0), B (1, 3) and C (5, 0) are the coordinates of a triangle ABC. a. Find the gradient of each side of the triangle ABC.

Gradient of AB = mAB = = = =  1

Gradient of BC = mBC = = =  – Gradient of AC = mAC = =  0

b. Find the equation of each lines AB, BC and CA.

Equation of line AB

mAB = 1 and passes through A (-2, 0)

(y – 0) = 1(x – (-2))

y = x + 2

Equation of line BC

mBC = – and passes through B (1, 3)

(y – 3) = – (x – 1)

4(y – 3) = -3(x – 1)

4y – 12 = -3x + 3

3x + 4y – 12 – 3 = 0

3x + 4y – 15 = 0

Equation of line CA

mCA = 0 and passes through A (-2, 0)

(y – 0) = 0

y = 0 (or x-axis)

c. What is the y-intercept of each of the lines AB, BC and CA.

Equation of line AB is y = x + 2.

Therefore the y-intercept of AB = 2

Equation of line BC is 3x + 4y – 15 = 0

We find the y-intercept of BC when x = 0

4y – 15 = 0

Or y = – y-intercept

Equation of line CA is y = 0

So y-intercept = 0

d. Find the equation of the line passing through the midpoint of AB and C.

A: (-2, 0) and B: (1, 3)

Midpoint of AB = = Let’s call the above midpoint D

The line joining D and C (5, 0) is

y – 0 = (x – 5)

y = (x – 5)

= (x – 5)

11y = -3x + 15 or

3x + 11y = 15