The integral is .
Rewrite the integral as .
Substitute .
Apply derivative on each side with respect to .
.
If then
.
Substitute and
in the integral.
Apply double angle formula : .
Substitute and
and
.
.
.
.