I'm working on this problem:
What is the max/min value of $x^2+y^2-4x-4y + 3$, in the space that is defined by $x^2+y^2<16$?
I have rewritten it as $x^2 + y^2-4x-4y+8-5$ which be expressed as $$(−2)^2+(−2)^2-5 .$$
But I don't know how to continue from there. How do I find the maximum and minimum value?
If you give an equation like $x^2+y^2=16$ for constrain you will find :
$x =y=\pm2\sqrt 2$, which gives $x^2+y^2=16$ and is acceptable.
As an standard method you must use Lagrange multiplier:
$f(x, y)=(x-2)^2+(y-2)^2-5$
$g(x, y)=x^2+y^2-16$
$\mathcal{L}_{x, y, \lambda}=f(x, y)+\lambda \cdot g(x,y)=(x-2)^2+(y-2)^2-5+\lambda(x^2+y^2-16)$
$\nabla_{x, y, \lambda}\mathcal{L}(x, y, \lambda)=\big(\frac{\delta\mathcal{L}}{\delta x},\frac{\delta\mathcal{L}}{\delta y},\frac{\delta\mathcal{L}}{\delta \lambda}\big)=(2x-4+2\lambda x),(2y-4+2\lambda y), (x^2+y^2-16)$
$\begin{cases}2x(1+\lambda)-4+0\\2y(1+\lambda)-4=0\\x^2+y^2-16=0\end {cases}$
which gives:
$x=y=\frac2{1+\lambda}$
putting this in third equation gives:
$\lambda=\frac{1-\sqrt2}{\sqrt 2}$ and $\lambda=-\frac{1+\sqrt 2}{\sqrt 2}$
which finally gives:
$x =y=\pm2\sqrt 2$
So minimum is :
$f(2\sqrt 2, 2\sqrt2)=24-16\sqrt2$
And maximum is :
$f(-2\sqrt 2, -2\sqrt 2)=24+16\sqrt 2$