integral of x·sin(x)
The integral of x·sin(x) is sin(x) − x·cos(x) + C, where C is any constant.
✓ checked: differentiating the answer gives back the original function (tested at several points).
step-by-step working
Integration by parts: ∫u dv = u·v − ∫v du, with u = x and dv = sin(x) dx. Then du = dx and v = −cos(x).
∫ x·sin(x) dx = −x·cos(x) − ∫ −cos(x) dxMove the constant −1 outside the integral.
∫ −cos(x) dx = −1·∫ cos(x) dxStandard integral: ∫cos(u) du = sin(u).
∫ cos(x) dx = sin(x)Put the pieces together.
∫ x·sin(x) dx = sin(x) − x·cos(x)Add the constant of integration C (any constant differentiates to 0).
plain-text version of this solution
Problem: ∫ x·sin(x) dx Step 1: Integration by parts: ∫u dv = u·v − ∫v du, with u = x and dv = sin(x) dx. Then du = dx and v = −cos(x). ∫ x·sin(x) dx = −x·cos(x) − ∫ −cos(x) dx Step 2: Move the constant −1 outside the integral. ∫ −cos(x) dx = −1·∫ cos(x) dx Step 3: Standard integral: ∫cos(u) du = sin(u). ∫ cos(x) dx = sin(x) Step 4: Put the pieces together. ∫ x·sin(x) dx = sin(x) − x·cos(x) Step 5: Add the constant of integration C (any constant differentiates to 0). Answer: ∫ x·sin(x) dx = sin(x) − x·cos(x) + C ✓ checked: differentiating the answer gives back the original function (tested at several points).
Related problems
- ∫ x²·sin(x) dx = −x²·cos(x) + 2x·sin(x) + 2cos(x) + C see the steps
- ∫ x·sin(2x) dx = sin(2x)/4 − x·cos(2x)/2 + C see the steps
Try it yourself
Change the problem below and press Enter. Steps, answer and check update instantly, all in your browser.
Enter solves · Shift+Enter for a new line · put systems on separate lines or separate them with commas
Frequently asked questions
What is the integral of x·sin(x)?
∫ x·sin(x) dx = sin(x) − x·cos(x) + C. Method: integration by parts and standard integral.
How do you check the integral of x·sin(x)?
Differentiate the answer. The derivative of sin(x) − x·cos(x) is x·sin(x), and the + C disappears because the derivative of a constant is 0.
What is the integral of x²·sin(x)?
∫ x²·sin(x) dx = −x²·cos(x) + 2x·sin(x) + 2cos(x) + C.