If A and B are two points with position vectors a and b respectively and C is a point which divides AB internally in the ratio m: n, then the position vector of C is given by OC = (mb + na)/ (m + n). This is termed as internal division.which is shown by below figure.
If A and B are two points with position vectors a and b respectively and C is a point which divides AB externally in the ratio m : n, then the position vector of C is given by OC = (mb - na)/ (m-n)