5: You get

The last integral can be done using substitution. The back substitution is formally easy, the harder part is simplifying the answer so that only sines and cosines appear there.

Next hint
Answer