The difference between the two is that in the question (-5)^2, everything in the parenthesis has to be powered by 2. While for the question -5^2, the 5 is the only one powered by 2 while the minus stays the same.
9.4m questions
12.2m answers