We will integrate by parts, with u ( x ) = x {\textstyle u(x)=x} and v ′ ( x ) = sin x {\textstyle v'(x)=\sin x} . Then, we have u ′ ( x ) = 1 {\displaystyle u'(x)=1} and v ( x ) = − cos x {\displaystyle v(x)=-\cos x} , and the integration by parts formula gives
Answer: sin x − x cos x + C . {\displaystyle \color {blue}\sin x-x\cos x+C.}