Integral of cot(x)

∫cot⁡(x) dx\int \cot\left(x\right)\,dx = ln⁡∣sin⁡(x)∣+C\ln\left|\sin{\left(x \right)}\right| + C

Answer

Indefinite integral
ln⁡∣sin⁡(x)∣+C\ln\left|\sin{\left(x \right)}\right| + C

Checked numerically before it is shown

Step-by-step solution

  1. Rewrite the integrand

    cot⁡(x)=cos⁡(x)sin⁡(x)\cot{\left(x \right)} = \frac{\cos{\left(x \right)}}{\sin{\left(x \right)}}
  2. Substitution

    Substitute u=sin⁡(x)u = \sin{\left(x \right)}, so du=cos⁡(x) dxdu = \cos{\left(x \right)}\,dx.

  3. Change the variable

    Rewrite the integral in the new variable:

    ∫cos⁡(x)sin⁡(x) dx=∫1u du\int \frac{\cos{\left(x \right)}}{\sin{\left(x \right)}}\,dx = \int \frac{1}{u}\,du
  4. Reciprocal rule

    The integral of 1/u is the natural logarithm:

    ∫1u du=ln⁡∣u∣\int \frac{1}{u}\,du = \ln\left|u\right|
  5. Substitute back

    Substitute back u=sin⁡(x)u = \sin{\left(x \right)}.

  6. Constant of integration

    Add the constant of integration:

    ∫cot⁡(x) dx=ln⁡∣sin⁡(x)∣+C\int \cot{\left(x \right)}\,dx = \ln\left|\sin{\left(x \right)}\right| + C

Change the problem in the solver Integral calculator

Related solved examples