Primitive of Reciprocal of a squared minus x squared

Also see

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