Integrate cotx

Integrate cotx

To integrate cotx, also written as ∫cotx dx, we start with a commonly used trig manipulation so that we can change the form to one that allows us the use of u substitution.

cotx=cosx/sinx

We recall this well-known trig identity.

New integration expression

As you can see, we can rewrite our original integration problem in a different form that means the same thing and is easier to solve. We recall that if the differential of the denominator looks like the numerator, there is a good chance that u substitution would work.

u substitution

Let u=sinx

du/dx

Then du/dx = cosx.

du

We rearrange for du.

Integration in terms of u.

We can now replace cosx dx with du, and sinx with u, to give a new integration expression in terms of u. As you can see, they mean the same thing but the RHS is easier to solve.

integral of 1/u = ln|u|

We can now integrate 1/u, by looking up the integral for it in formula books. This is a standard solution usually found in most formula books. As you can see the answer will be ln|u|.

ln|sinx| + C

We can now replace u with sinx, and C is the integration constant.