For example, if I evaluate $(-2)^2$ in my calculator, I get 4. However, if I evaluate $-2^2$ I get -4. I noticed this when doing my homework on functions, relating to this question:
Find the range of the function $y = x^2 - 1$ in the restricted domain of $-2 <= x <= 3$. Can someone else please show working out for this? I got + 8 part right, but the <= part is some how -1 !