Home » Blog » Find the integral of the cotangent

Find the integral of the cotangent

Evaluate the following integral:

    \[ \int \cot x \, dx. \]


Since cotangent is cosine divided by sine, we first write,

    \[ \int \cot x \, dx = \int \frac{\cos x}{\sin x} \, dx. \]

Then, we let u = \sin x and so du = \cos x \, dx. Therefore, we have

    \begin{align*}  \int \cot x \, dx &= \int \frac{\cos x}{\sin x} \, dx \\  &= \int \frac{1}{u} \, du \\  &= \log |u| + C \\  &= \log |\sin x| + C. \end{align*}

Point out an error, ask a question, offer an alternative solution (to use Latex type [latexpage] at the top of your comment):