At first glance, I thought this was a Fresnel integral. Which is more difficult. But it is actually much easier than that.
Just use substitution instead of parts.
Let
i know that i need to use integration by parts but i am stuck on picking my u and dv
EDIT: the problem is the integral of 2xcos(x^2)dx sorry