A pedestrian approach:
1) Lower bound of $A = x^2 + xy^2$ , where $-2 \leq x \leq 1$ and $-1\leq y \leq 1$.
Let $ \alpha: = y^2$, then $0\leq \alpha \leq 1$.
Consider:
A($\alpha$ )= $x^2$ + $\alpha$ x =
= $( x + \alpha /2)^2$ - $\alpha^2$ / 4.
This is a family of parabolas, $\alpha$ the parameter, with
minimum = - $\alpha ^2$ / 4, $\\$
at ($-\alpha$ /2, -$\alpha ^2 $ / 4).
Choose $\alpha$ = 1 (y= +1 or y = -1) to find the curve with the smallest minimum of the family of $\alpha$ curves.
Finally:
$$A(\alpha) = (x+\alpha /2)^2 - \alpha ^2 / 4 \geq \\
-\alpha ^2 / 4 \geq - 1/4 .$$
2) Upper bound for A in the given x,y interval,
a bit of patchwork.
Consider the intervals - 2 $\leq$ x $\leq$ 0, and -1 $\leq$ y $ \leq$ 1 , I.e. $ \alpha$ $\geq$ 0.
$A(\alpha) = x^2 + \alpha x \leq A(\alpha=0) = x^2$ , recall that $\alpha \geq 0$, so the left hand side is smaller than $ x^2$ for negative x.
A($\alpha$) $\leq x^2 $, for - 2 $\leq$ x $\leq 0 $,
Setting x = - 2 gives A($\alpha$) $\leq$ A($\alpha$ = 0) = 4 in the intervals considered.
Almost done.
Now consider the remaining interval 0 $\leq$ x $\leq$ 1, $\alpha$ as before.
$$A(\alpha) = x^2 + \alpha x \leq A(\alpha = 1) = \\ = x^2 + 1x ,$$ where all the x terms are positive (or zero) and $\alpha = 1$.
The maximum for A($\alpha=1$) = 2 at x=1.
For the complete interval -2 $\leq$ x $\leq$ 1, with $\alpha$ (y) in the given range:
Maximum = max( 2,4) = 4 .