is a quadratic function. We can say that

If , we find that

So we can rewrite as

We want to find .

That means we are looking for .

You can expand it and then integrate it using partial fraction expansions. It's a long work and a real pain to write it here. I assume that you find it correctly. It is,

removes the logarithm functions and leaves us a rational function