Firstly we have to simplify numerator,

When, the denominator is factorized, therefore let us separate the fraction by partial

We have to solve for A and B. Pick the value of x which will cancel each variable.
On putting x = 0 in the above equation

Now, we put the value of A and B back into partial fraction
(i) On replacing this as the integrand.

The absolute value of sign account for the domain of the natural log function (x > 0).