After looking at Wolfram Alpha, there is absolutely no way I would have guessed the solution to your problem but anyway - the link is below:
int sin(u)*(a-u)^(-1/2)du - Wolfram|Alpha
Thank you very much! I've never heard of Fresnel function.. I thought the integration would be trivial since its simple looking....
I will look into that.