The integration by parts formula: S:udv/dx = uv - S:v*du/dx, where S: means "Integral of with respect to x"
Let 2*x be u and sin(x) be dv/dx
So du/dx =2 and v= -cos(x)
So S:(2x)sin(x) = (2x)(-cos(x)) - S:-cos(x)*2
= -2xcos(x) + 2*sin(x)
= 2sin(x) - 2x*cos(x) +c