Internal and external division points

We find points that divide a segment in a given ratio. Consider the segment joining A(1,1)A(1, 1) and B(7,4)B(7, 4).

An internal division point divides the segment inside, in the given ratio. The point PP with AP:PB=2:1AP : PB = 2 : 1 is found by mixing the coordinates of AA and BB with weights 1:21 : 2 (the nearer endpoint gets the larger weight).

P=(11+272+1, 11+242+1)=(153,93)=(5,3)P = \left(\dfrac{1 \cdot 1 + 2 \cdot 7}{2 + 1}, \ \dfrac{1 \cdot 1 + 2 \cdot 4}{2 + 1}\right) = \left(\dfrac{15}{3}, \dfrac{9}{3}\right) = (5, 3)

In general, the point dividing A(x1,y1)A(x_1, y_1) and B(x2,y2)B(x_2, y_2) in the ratio m:nm : n internally is (nx1+mx2m+n,ny1+my2m+n)\left(\dfrac{n x_1 + m x_2}{m + n}, \dfrac{n y_1 + m y_2}{m + n}\right).

An external division point divides on the extension outside the segment. Dividing in the ratio m:nm : n externally is obtained by replacing nn with n-n: (nx1+mx2mn,ny1+my2mn)\left(\dfrac{-n x_1 + m x_2}{m - n}, \dfrac{-n y_1 + m y_2}{m - n}\right). The point dividing 2:12 : 1 externally is (1+141,1+81)=(13,7)\left(\dfrac{-1 + 14}{1}, \dfrac{-1 + 8}{1}\right) = (13, 7), beyond BB outside the segment.

The line on the graph passes through AA and BB, and the large dots are A(1,1)A(1, 1), B(7,4)B(7, 4), and the 2:12 : 1 internal division point (5,3)(5, 3).