My table of Integrals has the final case ##int frac dx x^2+a^2 ## as being a 'typical' integral too, not only the situation where ##a=1##. But I feel this currently being a Calculus research trouble it is expected of the OP to determine how to get it done. Hints were https://gabletoppak.com/water-in-gabletop-pak/