The line $r$ has the following equation: $ \begin{cases} x-y+2=0 \\ 2x-z+1=0 \end{cases} $
What's the equation of the line perpendicular to $r$ and going through $P(0,0,-1)$, written in the same form as $r$?
I started solving the system of equations and got $\begin{cases} x=-\dfrac{1}{2} + \dfrac{1}{2} t \\ y = \dfrac{3}{2} + \dfrac{1}{2}t \\ z=t\end{cases}$ but I'm not sure what to do from here.
Thanks in advance.
Now you have a parametric equation $R: \mathbb R\to\mathbb R^3$ for $r$.
Then solve for the $t$ such that $P-R(t)$ is perpendicular to the direction of $r$.