Primitive of x squared over x squared minus a squared

Theorem

 * $\displaystyle \int \frac {x^2 \ \mathrm d x} {x^2 - a^2} = x + \frac a 2 \ln \left\vert{\frac {x - a} {x + a} }\right\vert + C$

Proof
Let: