Why are the two calculations of $ \int \frac{1}{\sqrt{x(1-x)}} \mathrm{d} x $ give two distinct answers? One of the calculations:
$$
\begin{aligned}
\int \frac{1}{\sqrt{x(1-x)}} \mathrm{d} x &=\int \frac{1}{\sqrt{1-(\sqrt{x})^{2}}} \cdot \frac{1}{\sqrt{x}} \mathrm{~d} x \\
&=2 \int \frac{1}{\sqrt{1-(\sqrt{x})^{2}}} \mathrm{~d}(\sqrt{x})=2 \arcsin \sqrt{x}+C .
\end{aligned}
$$
The other:
$$ 
\int \frac{1}{\sqrt{x(1-x)}} \mathrm{d} x = \int \frac{d\left(x-\frac{1}{2}\right)}{\sqrt{\left(\frac{1}{2}\right)^{2}-\left(x-\frac{1}{2}\right)^{2}}} = \arcsin \frac{x-1 / 2}{1 / 2}+C=\arcsin(2x-1)+C
$$

They are both correct. Let $y=2 \arcsin \sqrt x$. Then $x=(\sin (\frac  y 2))^{2}$. So $2x-1=2(\sin (\frac  y 2))^{2}-1=\sin (y+\frac {\pi} 2)$. So $y=\sin (2x-1)-\frac {\pi} 2$.
