Given: L1:x=py+q,z=ry+s
⇒y=x−qp=z−sr
⇒x−qp=y−01=z−sr
So, the vector parallel to the line L1 is : p^i+^j+r^k=→a (say)
Given: L2:x=p′y+q′,z=r′y+s′
⇒y=x−q′p′=z−s′r′
⇒x−q′p′=y−01=z−s′r′
So, the vector parallel to the line L2 is: p′^i+^j+r′^k=→b( say )
Angle between two lines is as same as the angle between the parallel vectors to the lines. The lines L1 and L2 is perpendicular, if the vectors →a and →b are perpendicular, so we get →a.....→b=0