Find minimum value of $\sqrt{(a-p)^2 + (4-a-q)^2}$. Given $p^2 + q^2=1$.
My attempts
I tried putting $p= \sin¢$ and $q = \cos ¢$ but in the end I got an equation with $\sin$ and $a$ which I couldn't solve further.
I tried to think of it as distance formula with one pt. being $(p,q)$ lying on a circle and another point $(a, a-4)$ which is on a line $x-y=4$ so I plotted it and I got the answer as $2√2-1$. Is it correct?