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