This gave me a lot more trouble than expected, so I thought I'd work through it here for reference. The easiest way is to differentiate the answer. Let:
The trick is to notice that when we find the common denominator for the part at the far right and then add the terms, we generate the denominator of the part to the left.
The integrand is normally written more generally as:
and that doesn't change anything.
The forward version starts with a trigonometric substitution.
The other part of the integral is:
If we start with the standard identity:
and divide by
Thus the integral reduces to:
This small integral is itself a bit tricky. The answer, which I found on a really nice site (here), is to multiply top and bottom by:
If you work through it you'll see that
Thus, this is
As I said, not so easy as other trig substitutions.