Assume that the points A(x₁, y₁) and B(x₂, y₂) are the endpoints of a line segment AB. A point P(x, y) lies on the segment AB and divides it internally in the ratio m : n.
Based on the construction, triangles APH and PBG are similar by AA (Angle-Angle) criterion, as both contain a right angle and the common angle ∠APB.
Using the property of similar triangles:
AH / PG = AP / PB
⟹ AH / PG = m / n
Substitute in the ratio:
(y − y₁)/(y₂ − y) = m/n
Cross-multiplying:
n(y − y₁) = m(y₂ − y)
Now solve for y:
n(y) − n(y₁) = m(y₂) − m(y) ⇒ ny + my = m(y₂) + n(y₁) ⇒ y(n + m) = m(y₂) + n(y₁) ⇒ y = (m·y₂ + n·y₁) / (m + n)
(x − x₁)/(x₂ − x) = m/n
Following the same algebraic steps:
n(x − x₁) = m(x₂ − x) ⇒ nx + mx = m(x₂) + n(x₁) ⇒ x(m + n) = m·x₂ + n·x₁ ⇒ x = (m·x₂ + n·x₁) / (m + n)
P(x, y) = ( (m·x₂ + n·x₁) / (m + n), (m·y₂ + n·y₁) / (m + n) )
Let A(2, 3) and B(6, 7), and P divides AB in the ratio 1:2.
x = (1×6 + 2×2) / (1+2) = (6 + 4) / 3 = 10/3 ≈ 3.33 y = (1×7 + 2×3) / (1+2) = (7 + 6) / 3 = 13/3 ≈ 4.33
Therefore, P ≈ (3.33, 4.33)