Apply the sine double–angle identity.

Factor out of .

Separate fractions.

Convert from to .

Divide by to get .

Apply the distributive property.

Multiply by to get .

Add parentheses.

Reorder and .

Rewrite in terms of sines and cosines.

Cancel the common factors.

Since integration is linear, the integral of with respect to is .

The integral of with respect to is .

Since is constant with respect to , the integral of with respect to is .

The integral of with respect to is .

Simplify.

Evaluate integral of (cos(x)+sin(2x))/(sin(x)) with respect to x