Differentiate of the following with respect to x.
x2cosx
2xcosx-x2sinx
2xcosx+x2sinx
xcosx-x2sinx
2cosx-x2sinx
Derivative of the function is 2xcosx-x2sinx.