\(-\frac{x^2+5}{x^2+2x+1}+\frac{x-5}{x^2+2x+1}\)
\(=\frac{-x^2+5+x-5}{x^2+2x+1}\)\(=\frac{-x^2-x}{\left(x+1\right)^2}\)\(=\frac{-x\left(x+1\right)}{\left(x+1\right)^2}=-\frac{x}{x+1}\)
-x^2+5/(x^2+2x+1)+(x-5)/(x^2+2x+1)
=-x^2+5+x-5/(x+1)^2
=-x(x+1)/(x+1)^2
=-x/x+1