Internal and external division points
We find points that divide a segment in a given ratio. Consider the segment joining A(1,1) and B(7,4).
An internal division point divides the segment inside, in the given ratio. The point P with AP:PB=2:1 is found by mixing the coordinates of A and B with weights 1:2 (the nearer endpoint gets the larger weight).
P=(2+11⋅1+2⋅7, 2+11⋅1+2⋅4)=(315,39)=(5,3) In general, the point dividing A(x1,y1) and B(x2,y2) in the ratio m:n internally is (m+nnx1+mx2,m+nny1+my2).
An external division point divides on the extension outside the segment. Dividing in the ratio m:n externally is obtained by replacing n with −n: (m−n−nx1+mx2,m−n−ny1+my2). The point dividing 2:1 externally is (1−1+14,1−1+8)=(13,7), beyond B outside the segment.
The line on the graph passes through A and B, and the large dots are A(1,1), B(7,4), and the 2:1 internal division point (5,3).