Evaluate the following integrals:

∫ ex (cot x – cosec2 x) dx

Let



Integrating by parts,





4