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
  1. 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.
  2. Differentiate u to get du, and integrate dv to get v.
  3. Put them into uv − ∫v du. The integral left over has no x in front any more.
  4. Integrate it and add + C. Check by differentiating with the product rule.

How it works.

  1. 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.

  2. 02

    Differentiate u to get du, and integrate dv to get v.

  3. 03

    Put them into uv − ∫v du. The integral left over has no x in front any more.

  4. 04

    Integrate it and add + C. Check by differentiating with the product rule.