Find the derivative of sinx, use that to find the derivative of xsinx
the derivative of sinx is cosx, then we know that we can apply the product rule to find derivative of xsinx, such that if we let u=x and v=sinx and apply the formula d/dx(xsinx)=udv/dx+vdu/dx. to obtain xcosx+sinx.