I am working on an assignment. The first task is:

Find the indefinite integral of (x+2)/(x^2)+x

I factored out an x of the denominator, and split to partial fractions that were easy to integrate. My result was: 2*ln|x| - ln|x+1|

My questions are:

Have i done it right?

Even if i have, is there another (simpler, or more clever) way to do this?