Take
first:
Let u = cot x, then du = -csc2 x dx
So
For the second integral, from our table, we have
Returning to the main question: