Evaluate $\int \frac{x^3+4x^2+x-1}{x^3+x^2}dx$ Evaluate $\int \frac{x^3+4x^2+x-1}{x^3+x^2}dx$.
Where do I start with this integral? I can easily see that it is possible to fator $x^{2}$ out on the denominator and use partial fractions. The numerator is also factorable but it does not have any integer roots. Can someone show me how to integrate this (either using what I said about partial fractions), or another method? Thanks

Using partial fractions:
$$\frac{x^3+4x^2 +x-1 }{x^3 +x^2} =  \frac ax +\frac{b}{x^2} +\frac{c}{x+1}+d  \\ \implies x^3 +4x^2 +x-1 = ax(x+1) +b(x+1) +cx^2 +dx^2(x+1)$$ Put $x=0$ to get $b=-1$ and put $x=-1$ to get $c=1$. Then, compare the coefficient of $x^3$ to get $d=1$ and then that of $x^2$ to get $ a=2$.
All in all, this integrates to $$2\ln|x| +\frac 1x +\ln|x+1|+x +C $$
