Integrate the functions.

Let 1+ cosx = t

-sinx dx = dt



= - log|t| + C


= -log|1 + cosx| + C


35