Primitive of Reciprocal of x squared minus a squared

Also see

 * Primitive of Reciprocal of Constant Squared minus Variable Squared for the case $x^2 < a^2$.