The correct answer is $-15$.
This is how I ... (hopefully !) correctly solved it.
I rewrote the equation as ${(x-2)}^2 + (y+4)^2 = P + 20$
We also have ${x}^2 + {y}^2 \le 5$
I reasoned that $P = P_{min}$ when $(P + 20) = {(P + 20)}_{min}$
But $(P + 20) = r^2, \quad r \ge 0$
So $r^2 = r^2_{min}$ when $r = r_{min}$
I graphed the two circles and found that $r = r_{min}$ when the circles are tangent to each other, or when $r = \sqrt{5}$. From there, I found $P_{min} = -15$
My questions:
- Are there any other ways to find $P_{min}$? (e.g. without using graphs)
- I first did it this way and got $-11$, which is incorrect. But I'm not sure what goes wrong.
$P = x^2 - 4x + y^2 + 8y$
$P = P_{min}$ when $x = \frac{-b}{2a} = 2$
$P_{min} = y^2 + 8y - 4$
$x^2 + y^2 \le 5$
$x = 2 \implies y^2 \le 1 \iff -1 < y < 1$
Graph $P_{min}$, we see that on $[-1;1]$, $P_{min}$ is smallest when $P_{min} = -11$ and $y = -1$
Thank you!
\begin{align} P & = x^2+y^2-4x+8y \\ & = (x-2)^2+(y+4)^2-20 \\ & = \left( \sqrt{(x-2)^2+(y+4)^2} \right)^2 - 20 \end{align}
Thus minimizing $P$ subject to $x^2+y^2 \leq 5 $ is equivalent to minimizing the distance of $A(2,-4)$ from any point on or inside the circle $x^2+y^2=5$.
As is seen from the figure, the minimum distance is attained at $B(1,-2)$.
Hence minimum $P = (1-2)^2+(-2+4)^2-20 = -15. $