Primitive of Square of Logarithm of x

Theorem

 * $\ds \int \ln^2 x \rd x = x \ln^2 x - 2 x \ln x + 2 x + C$

Proof
With a view to expressing the primitive in the form:
 * $\ds \int u \frac {\d v} {\d x} \rd x = u v - \int v \frac {\d u} {\d x} \rd x$

let:

and let:

Then: