what must be added tox2+10x+23

to get what?

If you want a perfect square, (x+5)^2 = x^2+10x+25