Would (5x^2)^2 be 25x^4 or 5x^2?

Thanks!

(5x^2)^2 would be 25x^4.