The integral is .
Let .
Derivative each side with respect to .
Apply the derivatives of trigonometric function :.
Substitute and in .
Use the integral formula:.
Replace in .
.