The integral is
.
Trigonometric identity:
.

Consider
.
Integration by parts formula:
.
Assume
and
.
Integrate
to find
.

Consider
.
Differentiate on each side.
\
.
Substitute corresponding values in the formula.
\
Substitute the above result in equation
.
.
.