My table of Integrals has the final case ##int frac dx x^2+a^2 ## as a 'standard' integral also, not only the case where ##a=1##. But I think this currently being a Calculus research trouble it is predicted of the OP to determine how to make it happen. Hints were given https://gabletoppak.com/liquid-soap-packaging-solutions/