Step 1 :
The integral function is .
Rewrite integral :
Use the trigonometric identity : .
Let .
Apply derivative on each side.
Step 2 :
Substitute and in the integral.
Substitute .
.