Integration by parts
The question
∫ −3x cos x dx
∫ −3x cos x dx
u = −3x, dv = cos x dx
u = −3x, dv = cos x dx
du = −3 dx, v = sin x
u = −3x, dv = cos x dx
du = −3 dx, v = sin x
= −3x sin x + ∫ 3 sin x dx
u = −3x, dv = cos x dx
du = −3 dx, v = sin x
= −3x sin x + ∫ 3 sin x dx
= −3x sin x − 3 cos x + C
- A product of x and a function: integrate by parts, ∫u dv = uv − ∫v du. Take u = −3x, because it gets simpler when differentiated, and dv = cos x dx.
- Differentiate u to get du, and integrate dv to get v.
- Put them into uv − ∫v du. The integral left over has no x in front any more.
- Integrate it and add + C. Check by differentiating with the product rule.
How it works.
- 01
A product of x and a function: integrate by parts, ∫u dv = uv − ∫v du. Take u = −3x, because it gets simpler when differentiated, and dv = cos x dx.
- 02
Differentiate u to get du, and integrate dv to get v.
- 03
Put them into uv − ∫v du. The integral left over has no x in front any more.
- 04
Integrate it and add + C. Check by differentiating with the product rule.