The correct option is D 2−√5
we know,
D.C′s of y−axis is (0,1,0) and
D.R′s of given line =(1+λ,1−λ,2)
So, angle between two lines,
cosθ=a1a2+b1b2+c1c2√a21+b21+c21√a22+b22+c22
12=1−λ√(1+λ)2+(1−λ)2+4×√1
squaring both sides and simplifying we get,
⇒2λ2+6=4(λ2−2λ+1)⇒λ2−4λ−1=0
⇒λ=2±√5