The integral function is .
Trigonometric identity : .
Apply integral substitution .
Where and .
Apply the sum and difference rule of integration :.
Substiute .
.