4: You get

These are (after linear substitutions) elementary integrals. Then it is probably wise to change the result using trig identities so that only sines and cosines appear, then do the back substitution.

Next hint
Answer