Hi MHF!

I'm trying to solve this integral $\displaystyle \int \sqrt[]{1-cos(x)}$

i deduced that if: $\displaystyle sin^2(x)=\frac{1-cos(2x)}{2}$

so: $\displaystyle sin^2(\frac{x}{2})=\frac{1-cos(x)}{2}$

then: $\displaystyle 2sin^2(\frac{x}{2})=1-cos(x))$

$\displaystyle \int \sqrt{2sin^2(\frac{x}{2})}dx= -\sqrt{2} cos(\frac{x}{2})+C$

Is that correct? what would be the best way to solve it?