ironfern @ docs ~/geometry/grade-9/coordinates/distance-division $

Distance and Section Formula

Given two points in the coordinate plane, we often need to find the distance between them or to locate a point that divides the segment between them in a prescribed ratio. Both tasks reduce to straightforward formulas derived from the Pythagorean theorem.

Distance Formula

Theorem — Distance Formula (Theorem 9.1)

The distance between points A(xA,yA)A(x_A,\, y_A) and B(xB,yB)B(x_B,\, y_B) is

AB=(xBxA)2+(yByA)2\boxed{|AB| = \sqrt{(x_B - x_A)^2 + (y_B - y_A)^2}}

Proof. Drop perpendiculars from AA and BB to the coordinate axes to form a right triangle ACBACB, where C=(xB,yA)C = (x_B, y_A) is the corner point. The legs of this right triangle have lengths xBxA|x_B - x_A| (horizontal) and yByA|y_B - y_A| (vertical). By the Pythagorean theorem:

AB2=AC2+CB2=(xBxA)2+(yByA)2|AB|^2 = |AC|^2 + |CB|^2 = (x_B - x_A)^2 + (y_B - y_A)^2

Taking the positive square root gives the formula. \blacktriangleleft

Special cases:

  • If AA and BB lie on a horizontal line (yA=yBy_A = y_B), then AB=xBxA|AB| = |x_B - x_A|.
  • If AA and BB lie on a vertical line (xA=xBx_A = x_B), then AB=yByA|AB| = |y_B - y_A|.
  • The distance from the origin O(0,0)O(0,0) to a point P(x,y)P(x,y) is OP=x2+y2|OP| = \sqrt{x^2 + y^2}.

Midpoint Formula

A direct corollary of the section formula (below) is the midpoint formula: if MM is the midpoint of segment ABAB, then

M=(xA+xB2,  yA+yB2)\boxed{M = \left(\frac{x_A + x_B}{2},\; \frac{y_A + y_B}{2}\right)}

Proof. A midpoint divides the segment in ratio 1:11:1. Setting m=n=1m = n = 1 in the section formula gives this result immediately. \blacktriangleleft

Section (Division) Formula

Theorem — Section Formula (Theorem 9.2)

Let CC be a point on segment ABAB (between AA and BB) that divides it internally in the ratio AC:CB=m:nAC : CB = m : n, where m,n>0m, n > 0. Then the coordinates of CC are:

xC=nxA+mxBm+n,yC=nyA+myBm+n\boxed{x_C = \frac{n\, x_A + m\, x_B}{m + n}, \qquad y_C = \frac{n\, y_A + m\, y_B}{m + n}}

Proof. Since CC lies on segment ABAB with AC:CB=m:nAC : CB = m : n, the parameter t=mm+nt = \dfrac{m}{m+n} gives the fraction of the way from AA to BB. The coordinates of CC are therefore:

xC=xA+t(xBxA)=xA+mm+n(xBxA)=(m+n)xA+m(xBxA)m+n=nxA+mxBm+nx_C = x_A + t(x_B - x_A) = x_A + \frac{m}{m+n}(x_B - x_A) = \frac{(m+n)x_A + m(x_B - x_A)}{m+n} = \frac{n\,x_A + m\,x_B}{m+n}

An identical argument applies to yCy_C. \blacktriangleleft

Memory aid: The coordinate corresponding to endpoint AA carries weight nn (the ratio part near BB), and vice versa — the numerator “crosses over.”

Worked Examples

Example — Example 1 — Distance Between Two Points

Find the distance between P(3,4)P(-3, 4) and Q(5,2)Q(5, -2).

Solution. Apply the distance formula with xA=3x_A = -3, yA=4y_A = 4, xB=5x_B = 5, yB=2y_B = -2:

PQ=(5(3))2+(24)2=82+(6)2=64+36=100=10|PQ| = \sqrt{(5 - (-3))^2 + (-2 - 4)^2} = \sqrt{8^2 + (-6)^2} = \sqrt{64 + 36} = \sqrt{100} = 10

Answer: PQ=10|PQ| = 10. \blacktriangleleft

Example — Example 2 — Section Formula

Point CC divides segment ABAB, where A(1,1)A(1, -1) and B(7,5)B(7, 5), in the ratio AC:CB=2:1AC : CB = 2 : 1. Find the coordinates of CC.

Solution. Here m=2m = 2, n=1n = 1. Apply the section formula:

xC=nxA+mxBm+n=11+272+1=1+143=153=5x_C = \frac{n \cdot x_A + m \cdot x_B}{m + n} = \frac{1 \cdot 1 + 2 \cdot 7}{2 + 1} = \frac{1 + 14}{3} = \frac{15}{3} = 5

yC=nyA+myBm+n=1(1)+253=1+103=93=3y_C = \frac{n \cdot y_A + m \cdot y_B}{m + n} = \frac{1 \cdot (-1) + 2 \cdot 5}{3} = \frac{-1 + 10}{3} = \frac{9}{3} = 3

Verification: AC=(51)2+(3(1))2=16+16=42|AC| = \sqrt{(5-1)^2 + (3-(-1))^2} = \sqrt{16+16} = 4\sqrt{2} and CB=(75)2+(53)2=22|CB| = \sqrt{(7-5)^2+(5-3)^2} = 2\sqrt{2}. Indeed AC:CB=2:1|AC|:|CB| = 2:1. \checkmark

Answer: C(5,3)C(5,\, 3). \blacktriangleleft

Example — Example 3 — Midpoint Application

The midpoint of segment PQPQ is M(2,3)M(2, -3). If P=(4,1)P = (-4, 1), find QQ.

Solution. Let Q=(x,y)Q = (x, y). By the midpoint formula:

4+x2=2    x=8,1+y2=3    y=7\frac{-4 + x}{2} = 2 \implies x = 8, \qquad \frac{1 + y}{2} = -3 \implies y = -7

Answer: Q(8,7)Q(8,\, -7). \blacktriangleleft

Exercises

Exercise

Find the distance between each pair of points.

  1. A(0,0)A(0, 0) and B(5,12)B(5, 12)
  2. A(2,3)A(-2, 3) and B(4,5)B(4, -5)
  3. A(1,1)A(1, 1) and B(4,5)B(4, 5)

Hint for (3): Form the right triangle and apply the Pythagorean theorem directly to check your answer.

Exercise

Point DD divides segment EFEF, where E(5,2)E(-5, 2) and F(7,4)F(7, -4), in the ratio ED:DF=1:3ED : DF = 1 : 3. Find the coordinates of DD.

Then verify your answer by computing ED|ED| and DF|DF| and checking their ratio.

Exercise

Three vertices of a rhombus are A(0,0)A(0, 0), B(4,0)B(4, 0), and C(5,3)C(5, 3). Find the fourth vertex DD, given that ABCDABCD is a rhombus (diagonals of a parallelogram bisect each other).

Hint: Use the midpoint formula — the diagonals of a parallelogram share the same midpoint.