(-2) and -2^2.

Why are the answers different?

Did you mean (-2)^2 and -2^2 ??

(-2)^2 = (-2)(-2) = 4

-2^2 = -(2)(2) = -(4) = -4