By writing the expression as \displaystyle x^2 -2\cdot 5x +5^5 , applying the squaring rule \displaystyle x^2-2ax +a^2=(x-a)^2 then gives
Vorlage:Displayed math