"Consider the cone
$$ C := \{ (x,y,z) \in \mathbf{R}^{3} : x^{2}+y^{2} = z^{2}\}$$
and the point $ P:=(1,2,3) $. Find the least diatance between $P$ and any point $Q\in C$ and the coordinates of this point."
Here's what I did. Project everything (the cone and the point $P$) onto the $xy$-plane. $P$ lies on the $y = 2x$ line so if a $Q\in C$ is going to have minimal distance to $P$ it'll lie here as well (right?). I then intersected the cone with the plane $y = 2x$ and locally considered the cone as the line $y = x$, and then found the least distance btw. any point therein to the point $P$ which "locally" had coordinates $(\sqrt{5},3)$.
I found then the least distance to be $\frac{3-\sqrt{5}}{\sqrt{2}}$ and the coordinates of $Q=(x_Q,y_Q,z_Q)$ to be
$$ x_Q = \sqrt{\frac{7+3\sqrt{5}}{10}} $$ $$ y_Q = 2x_Q $$ $$ z_Q = \sqrt{5}x_Q $$
And I come here to ask if this is correct. It might be silly but that square root inside a square root kinda made me think I may have gotten something wrong. Possibly my very first assumption, viz. that $Q$ must lie along the $ y = 2x$ plane was unfounded... I'm going to proofcheck my resolution... The vector between $Q$ and $P$ should be a scalar multiple of the gradient vector of the function of which $C$ is a level surface at $Q$, correct?