The integral is .
.
Apply integration by parts :.
Let .
Let , then
.
Substitute these values in the integration by parts formula.
\Consider .
Partial fraction decomposition.
\Compare coefficients of terms on each side.
Compare coefficients of terms on each side.
Compare constant terms on each side.
\If , then
.
.
.
.