AP Calculus AB and BC

Integral of sin x/(1+cos x)

The integral of sin x over 1 plus cos x is negative the natural log of the absolute value of 1 plus cos x, plus C. The denominator differentiates to negative sin x, so the substitution works with a minus sign out front.

sinx1+cosxdx=ln1+cosx+C\int \frac{\sin x}{1+\cos x}\,dx = -\ln\left|1+\cos x\right| + C

Substituting the denominator

u=1+cosx,du=sinxdx    sinx1+cosxdx=ln1+cosx+Cu = 1+\cos x, \quad du = -\sin x\,dx \implies \int \frac{\sin x}{1+\cos x}dx = -\ln\left|1+\cos x\right| + C

The minus is not optional and it is not a convention: it is the derivative of cosine showing up in dudu.

The denominator can vanish

1+cosx1+\cos x is zero at odd multiples of π\pi, where the integrand has a vertical asymptote. The antiderivative is valid only between those points.

Common mistakes

  • Losing the minus sign.
  • Substituting u=cosxu = \cos x and then forgetting the 1+1+ when writing the answer.
  • Splitting the fraction into separate integrals.

Every answer on this page is machine checked

An automated test differentiates the antiderivative above and confirms it returns the integrand. A wrong sign or a missing factor fails the build, so it cannot reach you.

Frequently asked questions

What is the integral of sin x/(1+cos x)?

It is ln1+cosx+C-\ln\left|1+\cos x\right| + C.

Why the minus sign?

Because ddx(1+cosx)=sinx\frac{d}{dx}(1+\cos x) = -\sin x, so the substitution introduces it.