Primitive of Reciprocal of x squared minus a squared

Also see

 * Primitive of Reciprocal of $x^2 + a^2$
 * Primitive of Reciprocal of $a^2 - x^2$ for the case $x^2 < a^2$