a) Parametrize the line $L$ through $P = (2, 1, 2)$ that intersects the line
$x = 1 + t$, $y = 1 − t$, $z = 2t$
perpendicularly.
b) Parametrize the $z$ axis.
c) What is the distance from this line $L$ to the $z$-axis?
My work For the part a), I got the equation was $x = 2 + \frac{t}{6}$ ; $y = 1 + \frac{5t}{6}$ ; $z = 2 + \frac{t}{3}$.
Stuck with the last 2 parts. Anyone want to give this math novice a hand? :D
A parametrization of the $z$ axis is $x=0$, $y=0$, $z=s$ with $s\in\mathbb{R}$.
Therefore the squared distance between $P$ along the line $L$, and $Q$ along the $z$-axis, is the $2$-variable function $$f(t,s)=(2 + (1/6)t-0)^2+(1 + (5/6)t-0)^2+( 2 + (1/3)t-s)^2.$$ Note that the minimum distance will be attained when the partial derivatives are zero: $$f_t(t,s)=\frac{-2t+6s-12}{3}=0\quad f_s=\frac{5t-2s+11}{3}=0\implies t=-\frac{21}{13}\; s =\frac{19}{13}$$ Therefore the distance between the line $L$ and the $z$ axis is $$\sqrt{f(-21/13,19/13)}=\frac{9}{\sqrt{26}}.$$