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

Simplify the numerator.
Apply the sine doubleangle identity.
Factor out of .
Separate fractions.
Convert from to .
Divide by to get .
Apply the distributive property.
Multiply by to get .
Rewrite in terms of sines and cosines, then cancel the common factors.
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