Primitive of Reciprocal of x squared minus a squared

Also see

 * Primitive of $\dfrac 1 {x^2 + a^2}$
 * Primitive of $\dfrac 1 {a^2 - x^2}$ for the case $x^2 < a^2$