We begin with the first line, written in symmetric form as 0x−1=−1y+1=1z.
The denominator 0 under x−1 forces x−1=0, that is x=1 for every point on the line. Let the common ratio be t. Stating this explicitly, we have
−1y+1=tand1z=t.
So
y+1=−t⇒y=−1−t,
z=t.
Hence each point of the first line can be parametrised as
P1(t)(1,−1−t,t).
Differentiating the position vector with respect to the parameter gives the direction vector of the line. Thus the direction vector is
a=(0,−1,1).
Now consider the second line, which is the intersection of the two planes
x+y+z+1=0,
2x−y+z+3=0.
The normal vectors of these planes are
n1=(1,1,1),n2=(2,−1,1).
The direction vector of the line of intersection equals the cross product of the normals. Using the formula n1×n2=i12j1−1k11, we calculate
b=i(1⋅1−1⋅(−1))−j(1⋅1−1⋅2)+k(1⋅(−1)−1⋅2)=i2+j1+k(−3),
so
b=(2,1,−3).
To obtain one concrete point on this line, we solve the plane equations simultaneously. Put z=1 to keep numbers integral; then
x+y+1+1=0⇒x+y=−2,
2x−y+1+3=0⇒2x−y=−4.
Solving gives x=−2,y=0, whence a convenient point is
P2(−2,0,1).
We are now ready to compute the shortest distance between the skew lines. The standard formula is
D=∥a×b∥(P2P1)⋅(a×b),
where P2P1=P2−P1(0) and P1(0)=(1,−1,0) is the point on the first line corresponding to t=0.
Thus
P2P1=(−2−1,0−(−1),1−0)=(−3,1,1).
Next, evaluate the cross product a×b. Using
a×b=i02j−11k1−3,
we get
a×b=i((−1)(−3)−1⋅1)+j(−(0⋅(−3)−1⋅2))+k(0⋅1−(−1)⋅2)=(2,2,2).
The dot product appearing in the numerator is
(P2P1)⋅(a×b)=(−3,1,1)⋅(2,2,2)=−3⋅2+1⋅2+1⋅2=−6+2+2=−2.
Taking absolute value gives ∣−2∣=2.
The magnitude of the cross product is
∥a×b∥=22+22+22=12=23.
Substituting these results into the distance formula, we find
D=232=31.
Hence, the correct answer is Option B.