Various ways to go about it. A nice tangent substitution appears to be called for at first glance. What have you tried?
There are three ways, known to me, anyway.
First you can substitute .
The second way is .
And the third would be to rewrite this and use a special rule for integrals of this type:
Note that Q is a polynomial with unknown coefficients in X and is for one degree smaller than the degree of P. Lambda is also unknown so you actually have the same amount of unknowns as the degree of the polynomial. Although the last way might seem complicated I think it's quite easy so I'll demonstrate it and recommend to you that you try any other way (maybe the 2.?).
Anyway, rewrite:
Now you actually have an integral of the type I mentioned. Set it equal to the right side:
Differentiate both sides, and solve for A, B, lambda:
So now we have:
So our integral is actually equal to:
Well, that's my preferred way...
Recommended substitution is the hyperbolic sine. Good luck.
EDIT: Also noted you can do this with partial integration... I really love how many ways there are to integrals .
Just in case a picture helps...
First, noticing that
looks vaguely Pythagorean, we factor out the a^2...
... and, yes, we can see that substituting tan or else sinh for x/a would allow some kind of Pythag. Hang on, though - the reason the sub is useful is the chain rule...
... where (key in spoiler) ...
Spoiler:
So we're going to integrate up the straight dashed line, i.e. with respect to the dashed balloon. But to make sure that doing that is the same as integrating the original with respect to x, we have to take account of the derivative of the inner function...
... just as the chain rule demands. Now, though, we can indeed remove the inner function (apply lubricant and turn carefully anti-clockwise, and the whole thing should come out)...
... and replace with sinh...
... which we had a hunch would be useful. And now we can see why - the hyperbolic counterpart of Pythag gives us cosh squared, which we can integrate with respect to theta.
But then we know F (as soon as we've re-expressed the function of theta as a function of sinh x) and F is a function of the dashed balloon, and doesn't care what's inside. So we can remove the inner function (i.e. sinh) again, and replace the original (x/a).
Spoiler:
_________________________________________
Don't integrate - balloontegrate!
Balloon Calculus; standard integrals, derivatives and methods
Balloon Calculus Drawing with LaTeX and Asymptote!