\int \ln \left ( a^2 x^2 \pm b^2 \right ) dx = x \ln \left ( a^2 x^2 \pm b^2 \right ) + \frac{2b}{a}\tan^{-1} \frac{ax}{b} - 2x + C