The line segment joining the points A(2,1) and B(5,−8) is trisected at the point P and Q such that P is nearer to A. If P also lies on line given by 2x−y+k=0, find value of k.
Open in App
Solution
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)
Since, P and Q are points of trisection and P is nearer to A