Find all the global maximum/minimum points of this function:
$$f(x,y) = (x-3)^2 + (y-4)^2 + 100$$
In a rectangle with vertices:
$$(-2,-1), (3,-1), (-2,1) , (3,1)$$
I tried to draw this rectangle, and I got it is:
$$ [-2,3] \times [-1, 1] $$
I calculated the partial derivatives:
$f_x = 2(x-3) = 0 \Rightarrow x = 3$
$f_y = 2(y-4) = 0 \Rightarrow y = 4$
And so I got that the only point is $(3,4)$
Which is not on the rectangle... so there are no global max/min points ? I feel this is a wrong approach, I would appreciate your help!
Thank you!

Finding points where $f_x = 0$ and $f_y = 0$ gives you all of the local extrema in the interior of the region $[-2, 3] \times [-1, 1]$, i.e. the open rectangle $(-2, 3) \times (-1, 1)$. What you've shown is that there are no local extrema in the interior. However, there still might be maxima / minima on the boundary of the rectangle. (In fact, because $[-2, 3] \times [-1, 1]$ is compact, analysis tells us that we can find a global maximum and minimum.)
To find these global maxima and minima, you need to look at what values $f$ takes on the boundary of the rectangle $[-2, 3] \times [-1, 1]$. When is it smallest / largest?
For example, we might first look at the bottom edge of the rectangle. This is the set of points $\{ (a, -1): a \in [-2, 3] \}$. On this region our function $f$ takes on the values
$$f(x, -1) = (x- 3)^2 + (-1 - 4)^2 + 100 = x^2 - 6x^2 + 134$$
since $y$ is always $-1$ on the bottom edge of the rectangle. From here, you can use single-variable calculus to compute the value(s) of $x$ in $[-2, 3]$ for which $f$ is minimal / maximal.
Then, do the same thing for the other sides.
(Edit: just as you have to check the edges of the rectangle in addition to its interior, you have to check the "edges" of the sides (i.e. the four corners) in addition to the sides themselves! In other words, don't forget whether to compute f at each of the four corners and see whether it gives an extremal point.)