Với `x \ne -5,x \ne -1` có:
`A=[x+2]/[x+5]+[-5x-1]/[x^2+6x+5]-1/[1+x]`
`A=[(x+2)(x+1)-5x-1-(x+5)]/[(x+5)(x+1)]`
`A=[x^2+x+2x+2-5x-1-x-5]/[(x+5)(x+1)]`
`A=[x^2-3x-4]/[(x+5)(x+1)]`
`A=[(x-4)(x+1)]/[(x+5)(x+1)]`
`A=[x-4]/[x+5]`
\(=\dfrac{x+2}{x+5}+\dfrac{-5x-1}{x^2+x+5x+5}-\dfrac{1}{x+1}\\ =\dfrac{x+2}{x+5}+\dfrac{-5x-1}{\left(x^2+x\right)+\left(5x+5\right)}-\dfrac{1}{x+1}\\ =\dfrac{\left(x+2\right)\left(x+1\right)}{\left(x+1\right)\left(x+5\right)}+\dfrac{-5x-1}{x\left(x+1\right)+5\left(x+1\right)}-\dfrac{x+5}{\left(x+1\right)\left(x+5\right)}\\ =\dfrac{\left(x+2\right)\left(x+1\right)}{\left(x+1\right)\left(x+5\right)}+\dfrac{-5x-1}{\left(x+1\right)\left(x+5\right)}-\dfrac{x+5}{\left(x+1\right)\left(x+5\right)}\\ =\dfrac{x^2+2x+x+2-5x-1-x-5}{\left(x+1\right)\left(x+5\right)}\\ =\dfrac{x^2-3x-4}{\left(x+1\right)\left(x+5\right)}\\ =\dfrac{x^2+x-4x-4}{\left(x+1\right)\left(x+5\right)}\\ =\dfrac{\left(x^2+x\right)-\left(4x+4\right)}{\left(x+1\right)\left(x+5\right)}\\ =\dfrac{x\left(x+1\right)-4\left(x+1\right)}{\left(x+1\right)\left(x+5\right)}\\ =\dfrac{\left(x+1\right)\left(x-4\right)}{\left(x+1\right)\left(x+5\right)}\\ =\dfrac{x-4}{x+5}\)