math expression

Take

math expression

first:

Let u = cot x, then du = -csc2 x dx

So

math expression

For the second integral, from our table, we have

math expression

Returning to the main question:

math expression