<s>[INST] Indefinite integral of $\sqrt{x^2-x}$ i was trying to compute the indefinite integral:
$$
\int\sqrt{x^2-x}dx
$$
but i got stuck: after a few (unsuccessful) attempts for some $u$-substitution, i tried integration by parts:
$$
\int\sqrt{x^2-x} \ dx=\int(x)'\sqrt{x^2-x} \ dx= \\ x\sqrt{x^2-x}-\int x(\sqrt{x^2-x})'dx= \\
=x\sqrt{x^2-x}-\frac{1}{2}\int x\frac{2x-1}{\sqrt{x^2-x}}dx= \\
=x\sqrt{x^2-x}-\int \frac{x^2}{\sqrt{x^2-x}}dx+\frac{1}{2}\int \frac{x}{\sqrt{x^2-x}}dx=...
$$
and now what? Can anybody help? 
 [/INST] hint
$$\sqrt {x^2-x}=\frac {1}{2}\sqrt {(2x-1)^2-1} $$
then put $$2x-1=\cosh (t) $$
and use
$$\cosh^2(t)-1=\sinh^2(t)$$
</s>