The integral is
.
.
Let
.
Differentiate with respect to
.

Substitute corresponding values in
.


Consider
.
Apply partial fraction decomposition.
\

Compare
coeffecients.

Compare constants.
\
If
, then
.
Substitute
and
in equation (2).
.
Substitute equation (3) in equation (1).
\

Substitute
in the above equation.

.
.