\(=\dfrac{x^2+2x}{2\left(x+5\right)}+\dfrac{x-5}{x}+\dfrac{25x-50}{2x\left(x+5\right)}\)
\(=\dfrac{x^3+2x^2+2\left(x^2-25\right)+25x-50}{2x\left(x+5\right)}\)
\(=\dfrac{x^3+2x^2+25x-50+2x^2-50}{2x\left(x+5\right)}\)
\(=\dfrac{x^3+4x^2+25x-100}{2x\left(x+5\right)}\)