My desk of Integrals has the final situation ##int frac dx x^2+a^2 ## as being a 'standard' integral much too, not merely the situation where ##a=1##. But I feel this remaining a Calculus homework problem it is anticipated of the OP to figure out how to do it. Hints were https://gabletoppak.com/how-telanganas-amrabad-tiger-reserve-fights-back-against-its-biggest-threat-plastic/