Problem 57
Hard Rational and Quadratic

Evaluate the integral: I = integral dx/(1 + cos(x))

Evaluate the integral: $$ I = \int \frac{dx}{1 + \cos(x)}. $$

Explanation of Method

The half-angle identity $1+\cos x = 2\cos^2(x/2)$ turns the denominator into a perfect square of a cosine, which is exactly what's needed to recognize $\sec^2(x/2)$ and integrate to a tangent.

  1. Rewrite $1+\cos x$ using the half-angle identity.
  2. Recognize the reciprocal as $\sec^2(x/2)$.
  3. Substitute $u=x/2$ and integrate.
  4. Substitute back and add the constant of integration.

Step 1 · Apply the half-angle identity

To solve the given integral, we begin by simplifying the integrand. The denominator contains $1+\cos(x)$, which suggests we can use a trigonometric identity to simplify it. We use the following identity:

$$ 1+\cos(x) = 2\cos^2\left(\frac{x}{2}\right). $$

Thus, the integral becomes:

$$ I = \int \frac{dx}{2\cos^2\left(\frac{x}{2}\right)}. $$

We can factor out the constant $\dfrac12$ from the integral:

$$ I = \frac{1}{2}\int \frac{dx}{\cos^2\left(\frac{x}{2}\right)}. $$

Now, we recognize that $\dfrac{1}{\cos^2\left(\frac{x}{2}\right)}=\sec^2\left(\dfrac{x}{2}\right)$, so the integral becomes:

$$ I = \frac{1}{2}\int \sec^2\left(\frac{x}{2}\right)\,dx. $$

Step 2 · Substitute

To simplify further, we make a substitution. Let:

$$ u = \frac{x}{2}. $$

Then:

$$ du = \frac{dx}{2}, \quad dx = 2\,du. $$

Step 3 · Transform and integrate

Substituting into the integral:

$$ I = \frac{1}{2}\int \sec^2(u)\cdot 2\,du = \int \sec^2(u)\,du. $$

The integral of $\sec^2(u)$ is a standard result:

$$ \int \sec^2(u)\,du = \tan(u). $$

Thus, the integral becomes:

$$ I = \tan(u) + C, $$

where $C$ is the constant of integration.

Step 4 · Substitute back

Finally, substituting back $u = \dfrac{x}{2}$, we obtain the solution:

$$ I = \tan\left(\frac{x}{2}\right) + C. $$


Summary Table

Quantity Value
Half-angle identity$1+\cos x = 2\cos^2(x/2)$
Substitution$u = x/2$
Antiderivative$\tan(x/2)$

Additional Notes

Result

The solution to the integral is:

$$ I = \tan\left(\frac{x}{2}\right) + C. $$