Question
Question: Let line passing through A (1,-1,1) which intersect the lines $x+y+1=0, z=0$ and $x-y=1, y+z=2$ is p...
Let line passing through A (1,-1,1) which intersect the lines x+y+1=0,z=0 and x−y=1,y+z=2 is parallel to

(0,1,1)
(1,0,1)
(1,1,0)
(0,−1,−1)
(0, 1, 1)
Solution
Let the given point be A=(1,−1,1).
The first line, L1, is given by the equations: x+y+1=0 z=0 Parametric form of L1: Let y=t. Then x=−t−1 and z=0. A point P on L1 is P(t)=(−t−1,t,0).
The second line, L2, is given by the equations: x−y=1 y+z=2 Parametric form of L2: Let y=s. Then x=s+1 and z=2−s. A point Q on L2 is Q(s)=(s+1,s,2−s).
Let the line passing through point A be L. L intersects L1 at P and L2 at Q. Thus, A,P,Q are collinear. The direction vector of L can be AP or AQ.
AP=P(t)−A=(−t−1−1,t−(−1),0−1)=(−t−2,t+1,−1) AQ=Q(s)−A=(s+1−1,s−(−1),2−s−1)=(s,s+1,1−s)
Since A,P,Q are collinear, AP and AQ are parallel: s−t−2=s+1t+1=1−s−1
From s+1t+1=1−s−1: (t+1)(1−s)=−(s+1) t−ts+1−s=−s−1 t+1=ts−1 t−ts=−2 t(1−s)=−2(∗)
From s−t−2=1−s−1: (−t−2)(1−s)=−s −t+ts−2+2s=−s ts−t=2−3s t(s−1)=2−3s
Let's re-solve using the first and third ratios: s−t−2=1−s−1 (−t−2)(1−s)=−s −t+ts−2+2s=−s ts−t+3s−2=0
And the second and third ratios: s+1t+1=1−s−1 (t+1)(1−s)=−(s+1) t−ts+1−s=−s−1 t−ts=−2 t(1−s)=−2(∗)
Substitute t=1−s−2 into the equation from the first and third ratios: (1−s−2)s−(1−s−2)+3s−2=0 1−s−2s+1−s2+3s−2=0 1−s−2s+2+3s−2=0 −(s−1)−2(s−1)+3s−2=0 2+3s−2=0 3s=0⟹s=0
Substitute s=0 into t(1−s)=−2: t(1−0)=−2⟹t=−2.
Now find the direction vector using t=−2 in AP: AP=(−(−2)−2,−2+1,−1)=(2−2,−1,−1)=(0,−1,−1). Alternatively, using s=0 in AQ: AQ=(0,0+1,1−0)=(0,1,1).
The direction vector is parallel to (0,1,1).