∫xcosx/2dx
=2∫xdsin(x/2)
=2xsin(x/2)-2∫sin(x/2)dx
=2xsin(x/2)-4∫sin(x/2)d(x/2)
=2xsin(x/2)+4cos(x/2)+C