The integral is .
Consider .
Differentiate on each side with respect to .
Substitute and in the integral.
Integral of cosine function: .
.
Replace in above expression.