Any general point on Line 1 has the coordinates: R1=(1+aλ,1−λ,−1)
Any general point on Line 2 has the coordinates: R2=(4+2μ,0,−1+aμ)
Since the lines intersect, R1 must equal R2 component-by-component:
1−λ=0⟹λ=1
−1=−1+aμ⟹aμ=0. Since a=0 ⟹ μ=0
1+aλ=4+2μ
1+a(1)=4+2(0)
1+a=4⟹a=3
Point of intersection (x,y,z)=(4+2(0),0,−1+3(0))=(4,0,−1)
OR2=x2+y2+z2
OR2=42+02+(−1)2
OR2=16+0+1=17