With the integrate command, together with a x*sin(2*x) expression as well as two limits, in this case -1, 1, because it is a definite integral, the immediate integral of the entered expression is calculated, then the limits are replaced , obtaining the result (sin(2)-2*cos(2))/2