[tex]{}\quad\underline{\ \,x^2+4x-5}\\{}\quad (x^3+5x^2-x+5):(x+1)\\\underline{\,-(x^3+\,x)\qquad }\\{}\qquad\quad\ 4x^2-x\\{}\qquad\underline{\,-(4x^2+4x)\qquad }\\{}\qquad\qquad\quad -5x+5\\{}\qquad\qquad \underline{-\,(-5x-5)\ }\\{}\qquad\qquad\qquad\qquad10[/tex]
[tex](x^3+5x^2-x+5):(x+1)=x^2+4x-5+\frac{10}{x+1}[/tex]