My table of Integrals has the final circumstance ##int frac dx x^2+a^2 ## being a 'normal' integral far too, not merely the case where ##a=1##. But I think this getting a Calculus research issue it is predicted of your OP to determine how to get it done. Hints got above. https://gabletoppak.com/other-possibilities/