Separating the terms in the numerator:
∫sinx1−cosxdx=∫sinx1dx−∫sinxcosxdx
Using
sinx1=cscx
and
sinxcosx=cotx,
we get
=∫cscxdx−∫cotxdx.
Using the standard results,
∫cscxdx=logtan2x+C
and
∫cotxdx=log∣sinx∣.
Therefore,
∫sinx1−cosxdx=logtan2x−log∣sinx∣+C
Using the logarithm property,
∫sinx1−cosxdx=logsinxtan(x/2)+C
Answer
logtan2x−log∣sinx∣+C