Here,
\(a\)is the direction vector of perpendicular line \(x = 1 + t,y = 1 - t,z = 2t\)and
\(b\)is the vector joined from the point on the required line to the point on the perpendicular line.
Let’s take the expression of perpendicular line.
\(x = 1 + t,y = 1 - t,z = 2t\)
We can rewrite the expression as follows.
\(x = 1 + t,y = 1 + ( - 1t),z = 0 + 2t\,\,\,\,\,\,\,\,\,\,\,\,\,......(3)\)
Consider the value of scalar parameter \(t\) as \(0\) and obtain the point on the perpendicular line.
We can substitute \(0\) for \(t\) in equation (3) and obtain the point on the perpendicular line.
\(\begin{array}{l}x = 1 + 0,y = 1 + ( - 1)(0),z = 0 + 2(0)\\x = 1,y = 1,z = 0\end{array}\)
The point on the perpendicular line is \((1,1,0)\).
Compare equation (\(3\)) with equation (\(1\)) and obtain the direction vector of perpendicular line (\(a\)).
\(\langle 1, - 1,2\rangle = i - j + 2k\)
Let’s take the expression to find direction vector joined from the point \(P\left( {{x_1},{y_1},{z_1}} \right)\) to \(Q\left( {{x_2},{y_2},{z_2}} \right)\).
\(v = \left\langle {\left( {{x_2} - {x_1}} \right),\left( {{y_2} - {y_1}} \right),\left( {{z_2} - {z_1}} \right)} \right\rangle \,\,\,\,\,\,\,\,\,\,\,\,.....(4)\)
The vector \(b\) is the direction vector joined from the points \((1,1,0)\) and \((0,1,2)\).