Let us change the line into symmetric form.
x+y+z+1=0=2x−y+z+3
Put z=1 , so we get x+y+2=0 and 2x−y+4=0
We will get x=−2, y=0
∴ The point (−2,0,1) lies on the line and perpendicular vector will come from ∣i^12j^1−1k^11∣=2i^+j^−3k^
So the equation of line would be 2x+2=1y=−3z−1
And the other line αx−1=−1y+1=1z
Shortest distance would be D=∣(b1×b2)∣∣(a2−a1)⋅(b1×b2)∣
When a1=(−2i^+0j^+1k^)
a2=(i^−j^+0k^)
b1=2i^+j^−3k^
b2=αi^−j^+k^
D= ∣∣i^2αj^1−1k^−31∣∣32α−11−1−1−31∣∣
=∣−2i^−j^(2+3α)+k^(−2−α)∣∣3(1−3)+1(2+3α)+1(2+α)∣
⇒ ∣4+(2+3α)2+(2+α)2−6+2+3α+2+α∣=31
4+4+12α+9α2+4+4α+α2∣4α−2∣=31
∣10α2+16α+124α−2∣=31
⇒2α(19α−32)=0
∴α=1932