I would like to find the maximum and minimum of:
Domain: $$\Delta := \{(x,y)∈R^2:0\leq x,x-8\leq y\leq0\}$$
Function: $$f(x,y)=-x^2+4x+y^2+4y+4$$
I have checked the following points, but none of them yields the correct minimum:
$(0,0)$
$(0,-8)$
$(0, -2)$
$(x, 0)$
$(x, x-8)$
$(2, -8)$
$(2, 0)$
$(2, -2)$, which is where the gradient equals the zero vector.
What (points) am i missing, and why?

After staring at the domain for hours i finally figured it out. I realised that $y=x-8=0$ if $x=8$. In other words I let both boundaries of $y$ determine $x$. So I evaluated the function at $(8,0)$ which was the boundary point I was missing. And I found the correct minimum: $f(8,0)=-(8)^2+(0)^2+4*(8)+4*(0)+4=-28$.