My desk of Integrals has the final circumstance ##int frac dx x^2+a^2 ## as being a 'common' integral also, not merely the situation the place ##a=1##. But I feel this remaining a Calculus homework dilemma it is expected of the OP to determine how to make it happen. Hints were https://gabletoppak.com/other-possibilities/