Integrate the function. ∫xsinxdx.
Let I=∫sinx.xdx On taking x as first function and sin x as second function and integrating by parts, we get I=x∫sinxdx−∫[ddx(x)∫sinxdx]dx =−xcosx+∫1.cosxdx ⇒I=−xcosx+sinx+C