The line segment joining A(2,1) and B(5,−8) is trisected at the points P and Q. If P is closer to point A and lies on the line 2x−y+k=0, find the value of k.
Open in App
Solution
For point P : m1:m2=AP:PB=1:2(x1,y1)=A(2,1) and (x2,y2)=B(5,−8) ∴ Point P=(m1x2+m2x1m1+m2,m1y2+m2y1m1+m2)=(1×5+2×21+2,1×−8+2×11+2)=(3,−2)∵P(3,−2) lies on the line 2x−y+k=0 ∴ On substituting x=3 and y=−2 in the given equation 2x−y+k=0; we get : 2×3−(−2)+k=0⇒k=−8