The integral is
.
Double angle identity
.

Sum and difference rule of integration :
.

Consider
.
Integration by parts formula :
.
Consider
.

Apply derivative on each side.
\

Integrate on each side.
\
Substitute
in the integration by parts fromula.

Substitute
in equation (1).

.
.