Nếu $x\ge \dfrac{-5}2$ thì pt $\Leftrightarrow 2x+5=x^2+5x+1\Leftrightarrow x^2+3x-4=0\Leftrightarrow (x-1)(x+4)=0\Leftrightarrow x=1$ (N); $x=-4$ (L)
Nếu $x<\dfrac{-5}2$ thì pt $\Leftrightarrow -(2x+5)=x^2+5x+1\Leftrightarrow x^2+7x+6=0\Leftrightarrow (x+1)(x+6)=0\Leftrightarrow x=-1$ (L); $x=-6$ (N)