math expression

Put u = 2 + cos ptthen du = -p sin p t dt

So

math expression