Problem 94
Medium Exponential and Logarithmic

Evaluate the integral: I = integral cot x dx

Evaluate the integral: $$ I = \int \cot x \, dx. $$

Explanation of Method

Writing $\cot x = \dfrac{\cos x}{\sin x}$ exposes the numerator-equals-derivative-of-denominator pattern directly: the derivative of $\sin x$ is $\cos x$, so substituting $u=\sin x$ reduces the integral to a logarithmic form with no extra sign to track.

  1. Rewrite $\cot x$ as $\dfrac{\cos x}{\sin x}$.
  2. Substitute $u=\sin x$.
  3. Integrate using the standard logarithmic antiderivative.
  4. Substitute back and add the constant of integration.

Step 1 · Rewrite in terms of sine and cosine

We recall that the cotangent function can be rewritten as:

$$ \cot x = \frac{\cos x}{\sin x}. $$

Step 2 · Substitution

Using the substitution:

$$ u = \sin x, \quad du = \cos x\,dx, $$

we rewrite the integral as:

$$ I = \int \frac{du}{u}. $$

Step 3 · Integrate

The integral of $\dfrac{1}{u}$ is:

$$ I = \ln|u| + C. $$

Step 4 · Substitute back

Substituting back $u = \sin x$:

$$ I = \ln|\sin x| + C. $$


Summary Table

Quantity Value
Substitution$u = \sin x$
$\cos x\,dx$ in terms of $du$$du$
Antiderivative$\ln|u|$

Additional Notes

Result

The solution to the integral is:

$$ I = \ln|\sin x| + C. $$