The integral is
.
Observe the integrand it is an improper fraction.
\
Where
is quotient and
is remainder.


Consider
.
Factorize the denominator.
\
Partial fraction decomposition of
.


Substitute
in above expression.

Substitute
in above expression (2).

Substitute
and
in equation (1).
.
.
Apply formula
.
.
.
Substitute above result in 


.

.