Standard symmetric form of a line:
ax−x1=by−y1=cz−z1
The given equations are:
3−x+1=−2k−y−2=2z+3
and
3k−1+x=1−1+y=5−z+6
−3x−1=2ky+2=2z+3
The direction vector for the first line is:
d1=⟨−3,2k,2⟩
3kx−1=1y−1=−5z−6
The direction vector for the second line is:
d2=⟨3k,1,−5⟩
d1⋅d2=0
(−3)(3k)+(2k)(1)+(2)(−5)=0
−9k+2k−10=0
−7k−10=0
−7k=10
k=−710