Consider the part of hyperbola $H_{+}=\{(x,1/x)\colon x>0\}$ in the first quadrant, and $(a,b)$ any point in the plane (for sake of convenience, say $a,b>0$). If $(a,b)$ does not lie on the hyperbola $H_{+}$, how to determine
(1) The (minimum) distance of $(a,b)$ from $H_{+}$
(2) The point of $H_{+}$ which is closest to $(a,b)$.
I would like to determine these things algebraically as well as geometrically.
The way I proceeded is as follows: if $(y,1/y)$ is closest to $(a,b)$, then $y$ satisfies a fourth degree equation of the type $Y^3(Y-a)=(1-bY)$. But I couldn't proceed further.
Let $(y,1/y) \in H_+$ be the point in $H_+$ closest to $(a,b)$.
The gradient of $H_+$ at $(y, 1/y)$ is given by $\frac{d}{dx}(1/x) = -\frac{1}{x^2}$.
So the tangent to $H_+$ at $(y,1/y)$ is the set $\{(y,1/y) + r(-1/y^2,1):r \in \mathbb{R}\}$.
This tangent is perpendicular to the straight line joining $(y,1/y)$ and $(a,b)$, so we have
$$ \left( \begin{array}{c} a-y\\ b-1/y\\ \end{array} \right) \cdot \left( \begin{array}{c} -1/y^2\\ 1\\ \end{array} \right) = 0. $$
The positive solution to this quadratic is $y = \sqrt{\frac{a}{b}}$, so the closest point to $H_+$ is $\left(\sqrt{\frac{a}{b}}, \frac{1}{\sqrt{\frac{a}{b}}}\right)$, and this can be used to work out the shortest distance from $(a,b)$ to $H_+$.