I have just been doing an integration question where I was asked to use substitution . so now i have done the integration

and got and I need to show the parametric solution is

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

Ok so if , then y=A(1-cos(u)) but how to get x?