STEP-BY-STEP ANSWER:
Step 1: Choose u and dv. Let u = x (a function that simplifies when differentiated) and dv = sin x dx (whose antiderivative is known).
Step 2: Differentiate and integrate. Compute du = dx and v = -cos x (since ∫ sin x dx = -cos x).
Step 3: Apply the integration by parts formula: ∫ u dv = u*v - ∫ v du. Thus, substituting, we get: ∫ x sin x dx = x*(-cos x) - ∫ (-cos x)*dx.
Step 4: Simplify the expression: This becomes -x cos x + ∫ cos x dx.
Step 5: Evaluate the remaining integral: ∫ cos x dx = sin x.
Step 6: Write the final answer: -x cos x + sin x + C.
Final Answer: