I have just been doing an integration question where I was asked to use substitution $\displaystyle y=2Asin^2(u/2)$. so now i have done the integration

and got $\displaystyle x-B=4A^{2}(u-sin(u))$ and I need to show the parametric solution is

y=A(1-cos(u)) and x=A(u-sin(u))+B

Ok so if $\displaystyle y=2Asin^2(u/2)$, then y=A(1-cos(u)) but how to get x?