If x co-ordinates of a point P of line joining the points Q(2, 2, 1) and R(5, 2, -2) is 4, then the z-coordinates of P is
[RPET 2000]
-1
Suppose P divides QR in the ratio λ:1.
Then co-ordinates of P are (5λ+2λ+1,λ+2λ+1,−2λ+1λ+1.)
It is given that the x-coordinate of P is 4. i.e., 5λ+2λ+1=4 ⇒ λ=2,
So, z-coordinate of P is −2λ+1λ+1=−4+12+1=−1.