The line segment joining the points A(2,1) and B(5,-8) is trisected at the points P and Q such that P is nearer to A. If P also lies on the line given by , find the value of k.
In the above diagram,
AP=PQ=QB=1.
A=(2,1) and B=(5,-8).
AP:AB= 1:3 (given)
.....(1)
So P divides AB in ratio 1:2,
Section formula =
From eqn(1)
Putting values in section formula
Coordinates of P =
P(3,-2) lies on the line 2x-y+k=0
Putting value in eqn
2x-y+k=0
2(3)-(-2)+k=0
6+2+k=0
k=-8
Hence the value of k is -8.