∫xcosx/sin²x dx
=∫x*cosx/sinx*1/sinx dx
=∫x*cscxcotx dx
=∫x d(-cscx)
=-xcscx + ∫cscx dx,这是分部积分法
=-xcscx + ln|cscx-cotx| + C