Using partial fraction decomposition, we can write the integrand as
for some constants . We find that , which implies that
The first integral on the right-hand side of the equation can be easily evaluated:
On the other hand, to compute the second integral, we can use the substitution .
Then and , which gives
Combining these, we obtain