If P(x, y) divides the segment joining A(x₁, y₁) and B(x₂, y₂) internally in the ratio m₁ : m₂ (PA : PB = m₁ : m₂), similar triangles give
x = (m₁x₂ + m₂x₁)/(m₁ + m₂), y = (m₁y₂ + m₂y₁)/(m₁ + m₂)
Memory aid: each ratio number multiplies the far end: m₁ goes with B, m₂ with A.
For a ratio k : 1: P = ((kx₂ + x₁)/(k + 1), (ky₂ + y₁)/(k + 1)).
Example: divide (4, −3) to (8, 5) in the ratio 3 : 1. x = (24 + 4)/4 = 7, y = (15 − 3)/4 = 3, so P is (7, 3).
Finding the ratio: in what ratio does (−4, 6) divide A(−6, 10) to B(3, −8)? Use k : 1: −4 = (3k − 6)/(k + 1) → −4k − 4 = 3k − 6 → k = 2/7, ratio 2 : 7. Check with y: (−16/7 + 10)/(9/7) = (54/7)/(9/7) = 6 ✓.
Only internal division here: if P lies on line AB but outside the segment, it divides AB externally. That case comes in higher classes.
Tap the diagram to enlarge it
- m₁ with B, m₂ with A
- Use k : 1 to find a ratio
- Check with the other coordinate