integral of x·cos(x)
The integral of x·cos(x) is x·sin(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 = cos(x) dx. Then du = dx and v = sin(x).
∫ x·cos(x) dx = x·sin(x) − ∫ sin(x) dxStandard integral: ∫sin(u) du = −cos(u).
∫ sin(x) dx = −cos(x)Put the pieces together.
∫ x·cos(x) dx = x·sin(x) + cos(x)Add the constant of integration C (any constant differentiates to 0).
plain-text version of this solution
Problem: ∫ x·cos(x) dx Step 1: Integration by parts: ∫u dv = u·v − ∫v du, with u = x and dv = cos(x) dx. Then du = dx and v = sin(x). ∫ x·cos(x) dx = x·sin(x) − ∫ sin(x) dx Step 2: Standard integral: ∫sin(u) du = −cos(u). ∫ sin(x) dx = −cos(x) Step 3: Put the pieces together. ∫ x·cos(x) dx = x·sin(x) + cos(x) Step 4: Add the constant of integration C (any constant differentiates to 0). Answer: ∫ x·cos(x) dx = x·sin(x) + cos(x) + C ✓ checked: differentiating the answer gives back the original function (tested at several points).
Related problems
- ∫ x·cos(3x) dx = x·sin(3x)/3 + cos(3x)/9 + 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·cos(x)?
∫ x·cos(x) dx = x·sin(x) + cos(x) + C. Method: integration by parts and standard integral.
How do you check the integral of x·cos(x)?
Differentiate the answer. The derivative of x·sin(x) + cos(x) is x·cos(x), and the + C disappears because the derivative of a constant is 0.
What is the integral of x·cos(3x)?
∫ x·cos(3x) dx = x·sin(3x)/3 + cos(3x)/9 + C.