I have to find the line that passes through $(3, 1, -2)$ and intersects under right angle the line $x=-1+t, y=-2+t, z=-1+t$.
(HINT: If $(x_0, y_0, z_0)$ the intersection point, find the coordinates.)
I have done the following:
The line that passes through $(3, 1, -2)$ is of the form $$\overrightarrow{l}(t)=(3, 1, -2)+t\overrightarrow{u}$$ where $\overrightarrow{u}$ is a vector parallel to the line.
Let $(x_0, y_0, z_0)$ be the intersection point of the line $\overrightarrow{l}$ and the line $x=-1+t, y=-2+t, z=-1+t$, then we have the folowing:
$$x_0=3+tu_1=-1+t, \\ y_0=1+tu_2=-2+t, \\ z_0=-2+tu_3=-1+t$$
Is it correct so far??
How could I continue??
Do we have to use the fact that the two lines intersect under right angle??
You are on the right track, but you want to use another parameter besides t for the second line.
Using s instead, we have the equations
$x_0=3+su_1=-1+t,\;\; y_0=1+su_2=-2+t,\;\; z_0=-2+su_3=-1+t$.
Since the lines are perpendicular, we have that $\langle1,1,1\rangle\cdot\langle u_1,u_2,u_3\rangle=u_1+u_2+u_3=0$.
Adding the 3 equations gives $2=-4+3t$, so $t=2$ and the lines intersect at $(1,0,1)$.
Thus we can take $\langle u_1,u_2,u_3\rangle=\langle2,1,-3\rangle$, so the second line has parametric equations
$x=3+2s,\;\; y=1+s,\;\; z=-2-3s$.
Alternate solution:
The plane which is perpendicular to the given line and passes through $(3,1,-2)$ has equation
$\;\;\;x+y+z=2$, so the plane and line intersect where
$\;\;\;(-1+t)+(-2+t)+(-1+t)=2$, so $3t=6$ and $t=2$.
Then $(1,0,1)$ is the point of intersection, so the perpendicular line we want is parallel to
$\vec{u}=\langle3-1,1-0,-2-1\rangle=\langle2,1,-3\rangle$; and therefore it has parametric equations
$x=3+2s,\;\; y=1+s,\;\; z=-2-3s$.