若∫xf(x)dx=xsinx-∫sinxdx,则f(x)=( )。

【正确答案】 B
【答案解析】

解析:(xsinx-∫sinxddx)´=xf(x),所以xcosx=xf(x),f(x)=cosx,故应选B。