Find the ratio in which the point P(2,y) divides the line segment joining the point A(−2,2) and B(3,7). Also find the value of y.
Using the section formula, if a point (x,y) divides the line joining the points (x1,y1) and (x2,y2) in the ratio m:n, then (x,y)=(mx2+nx1m+n,my2+ny1m+n)
Let the ratio be k:1
Substituting (x1,y1)=(−2,2) and (x2,y2)=(3,7) in the section formula and equating its coordinate to point P, we get
(k(3)+1(−2)k+1,k(7)+1(2)k+1)=(2,y)
(3k−2k+1,7k+2k+1)=(2,y)
Comparing the x - coordinate,
⇒3k−2k+1=2
⇒3k−2=2k+2
⇒k=4
Hence, the ratio is 4:1.
Comparing the y - coordinate,
⇒7k+2k+1=y
⇒7(4)+24+1=y
⇒y=6