‹ Class 12 · Ch 7
Integrals · Principle 15 of 26

First times the integral of the second

∫ f g dx = f ∫g dx − ∫ [f′ ∫g dx] dx.

Stuck? Ask Guru

NCERT: 7.6 Integration by Parts

Think

A product

None of our methods fits ∫ x cos x dx: it is a product, and x is not the derivative of anything inside cos x. But the product rule of differentiation, d/dx (uv) = u v′ + v u′, is about products.

If we integrate both sides of the product rule, what do we get?

What this lesson covers

The idea

∫ f(x) g(x) dx = f(x) ∫ g(x) dx − ∫ [f′(x) ∫ g(x) dx] dx: the first function times the integral of the second, minus the integral of (derivative of the first × integral of the second).

A product

None of our methods fits ∫ x cos x dx: it is a product, and x is not the derivative of anything inside cos x. But the product rule of differentiation, d/dx (uv) = u v′ + v u′, is about products.

If we integrate both sides of the product rule, what do we get?

  • A formula for the integral of a product
  • Nothing new
  • The derivative of a product again

Choose the first function

Each integral is a product of two functions. Choose which one is the first function f; the other is the second function g. The toy writes the formula. A good choice leaves an easier integral.

Integration by parts

∫ f(x) g(x) dx = f(x) ∫ g(x) dx − ∫ [f′(x) ∫ g(x) dx] dx In words: (first function) × (integral of the second) − integral of [(derivative of the first) × (integral of the second)].

Where it comes from: integrating d/dx (uv) = u dv/dx + v du/dx gives ∫ u (dv/dx) dx = uv − ∫ v (du/dx) dx. Put u = f(x) and dv/dx = g(x), so v = ∫ g(x) dx.

The choice matters. For ∫ x cos x dx, taking x first leaves ∫ sin x dx, which is easy. Taking cos x first leaves ∫ (x²/2) sin x dx, which is harder (the book shows both).

Notes

∫ f g dx = f ∫g dx − ∫ [f′ ∫g dx] dx (first) × (integral of second) − ∫ (derivative of first × integral of second). Choose f so that the integral left over is easier.

Check yourself

Exercise 7.6, Q1: ∫ x sin x dx = ?

Exercise 7.6, Q2: ∫ x sin 3x dx = −(x/3) cos 3x + (1/k) sin 3x + C. Find k.

Answer: 9

x(−(1/3) cos 3x) − ∫ 1 · (−(1/3) cos 3x) dx = −(x/3) cos 3x + (1/3)(1/3) sin 3x + C, so k = 9.

For ∫ x eˣ dx with f = x and g = eˣ, which integral is left over in the formula?

  • x cos x − sin x + C. Differentiate it: cos x − x sin x − cos x = −x sin x. The sign is wrong.
  • −x cos x + sin x + C — correct. Yes! First x, second sin x: x(−cos x) − ∫ 1 · (−cos x) dx = −x cos x + sin x + C.
  • (x²/2) sin x + C. We cannot integrate a product factor by factor like this.
  • −x cos x − sin x + C. ∫ (−cos x) dx is −sin x, and it is subtracted, so the sign becomes +.
  • ∫ (x²/2) eˣ dx. That is what you get if eˣ is taken first.
  • ∫ eˣ dx — correct. Yes! f′(x) ∫ g dx = 1 · eˣ, and ∫ eˣ dx = eˣ. So ∫ x eˣ dx = x eˣ − eˣ + C.
  • ∫ x eˣ dx again. f′ = 1, so the x disappears.