f'(x)=[(x+h)sin(x+h)-xsinx]/h
=[xsin(x+h)+hsin(x+h)-xsinx]/h
=x{[sin(x+h)-sinx]/h}+sin(x+h)
=x(sinx)'+sin(x+h)
=xcosx+sinx