\(x^2-25+x\left(x+5\right)=0\\ \Leftrightarrow\left(x-5\right)\left(x+5\right)+x\left(x+5\right)=0\\ \Leftrightarrow\left(x+5\right)\left(x-5+x\right)=0\\ \Leftrightarrow\left(x+5\right)\left(2x-5\right)=0\\ \Leftrightarrow\left[{}\begin{matrix}x=-5\\x=\dfrac{5}{2}\end{matrix}\right.\)