How to find the indefinite integral of (x + 1) / (x ^ 2 + 2x)?

How to find the indefinite integral of (x + 1) / (x ^ 2 + 2x)?


A:
∫[(x+1)/(x^2+2x)]dx
=(1/2) ∫ {1/[(x+1)^2-1]} d [(x+1)^2-1]
=(1/2) ln[(x+1)^2-1]+C
=(1/2)ln|x^2+2x|+C