Ok, so I suppose you know that to get the arctan antiderivative you would use completing the square.

For the log antiderivative, you would begin thusly: recall that the roots of the quadratic are , so the integral can be written as

Now, proceed via partial fractions decomposition.