Integral involving some sin and cos and shrewd manipulation