The integral is .
Apply sum and difference rule of integration:.
.
Apply trigonometric formulae of integration: and.
Check the solution by using differentiation.
Consider .
Apply derivative on each side with respect to .