The integral is .
Apply trigonometric identity: .
.
Consider .
Let .
Apply derivative on each side with respect to .
Substitute and in .
Apply formula: .
Substitute .