[Math] how to find vector parallel to a plane and perpendicular to another vector

analytic geometryvectors

If a vector line, with equation:
$$l=\begin{pmatrix}1 \\ 1 \\ 1\end{pmatrix} + u\begin{pmatrix}2 \\ 2 \\ 1 \end{pmatrix}$$
Intersects a plane with equation:
$$\Pi=\begin{pmatrix}3 \\ 4 \\ 5 \end{pmatrix} + \begin{pmatrix} 2 \\ 4 \\ 6 \end{pmatrix}s + \begin{pmatrix}5 \\ 5 \\ 4\end{pmatrix}t$$

How can you find a vector that is parallel to the plane and also perpendicular to the vector line?

I am not sure of how to find this vector but I was considering crossing the direction vector of the vector line with the cross product of the two direction vectors of the plane (For example: $u \times (s \times t)$).

Any help will be very much appreciated.

Best Answer

Note that, the vector parallel to plane will be in the span of $(2,4,6)$ and $(5,5,4)$ and we want it to be perpendicular to the line, so we have following $<(2,4,6)s+(5,5,4)t, (2,2,1)>=0 \rightarrow3s+4t=0$. Choose $s=-4$ and $t=3$. The desired vector is $-4(2,4,6)+3(5,5,4)$