I'm having trouble calculating the integral $\int_0^{\infty}{\cos{x^2}}dx$
I'm supposed to use the Contour with the parameters $C_1=t,t\in[0,R],C_2=Re^{it},t\in[0,\frac{\pi}{4}], C_3=te^{i\frac{\pi}{4}},t\in[0,R]$.
What I've tried to do is to calculate $\int{e^{iz^2}}$ on the Contour and at the end taking the real part of that integral. but I'm stuck on $C_2$. I know it's supposed to be $0$ when $R$ goes to infinity.
This is what I've tried:
$|\int_{C_2}e^{iz^2}|=|\int_0^{\frac{\pi}{4}}e^{2iR^2e^{2it}}Rie^{it}|\le length(C_2)Max|e^{2iR^2e^{2it}}Rie^{it}|)=\frac{2\pi R^2}{8}Max|e^{2iR^2(\cos(2t)+i\sin(2t))}|=|\frac{2\pi R^2}{8}Max_{t\in[0,\frac{\pi}{4}]}|e^{-R^2\sin(2t))}|$
but $\sin(2t)$ can be $0$. what am I doing wrong at the end there?