use the quadratic formula to solve for x.

x^2+2x+5-0

x^2+2x+5=0

This equation has two complex roots. If you have not done complex roots before, I suggest you check that the equation has been correctly posted.
You can apply the quadratic formula directly,
a=1, b=2, c=5,
x=(-b±√(b²-4ac))/2a
=(-2±√(2²-4*1*5))/(2*1)
=-1±2i