Squaring both sides gives a candidate, but a candidate is not yet a solution.
x=(−5)2=25
Check x=25 in the original. The left side is 25=5, and the right side is −5, so the equation reads 5=−5, which is false.
The principal square root is never negative, so no value of x can make x equal −5. The candidate is extraneous and the equation has no solution.