The first plane

has normal n
=[0,1,-1] (just the coefficients on x,y,z). The second plane

has normal n
=[2,1,1]. Let's call the direction our line has v. Notice that since v is an intersection of the two planes then by definition it is on plane 1 and plane 2. Therefore

Therefore we seek v so that it is orthogonal to both normal vectors. The cross product, by definition, provides this direction. Therefore,
![{\displaystyle \mathbf {v} =\mathbf {n} _{1}\times \mathbf {n} _{2}=[0,1,-1]\times [2,1,1]=[2,-2,-2].}](https://wiki.ubc.ca/api/rest_v1/media/math/render/svg/bd5ad7664a7c2eada549134808032d760c924490)
We want this to have length 1 and so we see that

Therefore we get that the unit norm vector,
is
![{\displaystyle \mathbf {\hat {v}} ={\frac {1}{\sqrt {3}}}[1,-1,-1].}](https://wiki.ubc.ca/api/rest_v1/media/math/render/svg/983539266a9287d96dba0957489ae6c86199726a)