You can break the integral of a sum/difference into the sum/difference of the integrals:

The first integral can be solved using the power rule for integrations:

As for the second, remember the chain of derivation of trigonometric functions:

The integration chain is the same, but it follows the opposite direction: the integral of the cosine function is the sine function. So, you have
Since this is an indefinite integral, we must add the generic costant to the answer:
