The author initially considered integration by parts and u-substitution methods to solve the problem.They used a different approach by focusing on the boundaries and performing a U-substitution with u = π/2-x.The author applied a trig identity to eliminate the negative sign in the integration bounds.By summing up the two resulting integrals and using trigonometric identities, they obtained the final solution.