1 Indefinite integration

The technique known as integration by parts is used to integrate a product of two functions, such as in these two examples:

(i) e 2 x sin 3 x d x (ii) 0 1 x 3 e 2 x d x

Note that in the first example, the integrand is the product of the functions e 2 x and sin 3 x , and in the second example the integrand is the product of the functions x 3 and e 2 x . Note also that we can change the order of the terms in the product if we wish and write

(i) ( sin 3 x ) e 2 x d x (ii) 0 1 e 2 x x 3 d x

What you must never do is integrate each term in the product separately and then multiply - the integral of a product is not the product of the separate integrals. However, it is often possible to find integrals involving products using the method of integration by parts - you can think of this as a product rule for integrals.

The integration by parts formula states:

Key Point 5

Integration by Parts for Indefinite Integrals

For indefinite integrals, given functions f ( x ) and g ( x ) :

f g d x = f g d x d f d x g d x d x
Alternatively, given functions u and v :
u d v d x d x = u . v v d u d x d x

Study the formula carefully and note the following observations. Firstly, to apply the formula we must be able to differentiate the function f to find d f d x , and we must be able to integrate the function, g .

Secondly the formula replaces one integral, the one on the left, with a different integral, that on the far right. The intention is that the latter, whilst it may look more complicated in the formula above, is simpler to evaluate. Consider the following Example:

Example 15

Find the integral of the product of x with sin x ; that is, find x sin x d x .

Solution

Compare the required integral with the formula for integration by parts: we choose

f = x and g = sin x

It follows that

d f d x = 1  and  g d x = sin x d x = cos x

(When integrating g there is no need to worry about a constant of integration. When you become confident with the method, you may like to think about why this is the case.)

Applying the formula we obtain

x sin x d x = f g d x d f d x g d x d x = x ( cos x ) 1 ( cos x ) d x = x cos x + cos x d x = x cos x + sin x + c
Task!

Find ( 5 x + 1 ) cos 2 x d x .

Let f = 5 x + 1 and g = cos 2 x . Now calculate d f d x and g d x :

d f d x = 5 and cos 2 x d x = 1 2 sin 2 x . Substitute these results into the formula for integration by parts and complete the Task:

( 5 x + 1 ) ( 1 2 sin 2 x ) 5 ( 1 2 sin 2 x ) d x = 1 2 ( 5 x + 1 ) sin 2 x + 5 4 cos 2 x + c Sometimes it is necessary to apply the formula more than once, as the next Example shows.

Example 16

Find 2 x 2 e x d x

Solution

We let f = 2 x 2 and g = e x . Then d f d x = 4 x and g d x = e x

Using the formula for integration by parts we find

2 x 2 e x d x = 2 x 2 ( e x ) 4 x ( e x ) d x = 2 x 2 e x + 4 x e x d x

We now need to find 4 x e x d x using integration by parts again. We get

4 x e x d x = 4 x ( e x ) 4 ( e x ) d x = 4 x e x + 4 e x d x = 4 x e x 4 e x

Altogether we have

2 x 2 e x d x = 2 x 2 e x 4 x e x 4 e x + c = 2 e x ( x 2 + 2 x + 2 ) + c

Exercises

In some questions below it will be necessary to apply integration by parts more than once.

  1. Find
    1. x sin ( 2 x ) d x ,
    2. t e 3 t d t ,
    3. x cos x d x .
  2. Find ( x + 3 ) sin x d x .
  3. By writing ln x as 1 × ln x find ln x d x .
  4. Find
    1. tan 1 x d x ,
    2. 7 x cos 3 x d x ,
    3. 5 x 2 e 3 x d x ,
  5. Find
    1. x cos k x d x , where k is a constant
    2. z 2 cos k z d z , where k is a constant.
  6. Find
    1. t e s t d t where s is a constant,
    2. Find t 2 e s t d t where s is a constant.
    1. 1 4 sin 2 x 1 2 x cos 2 x + c ,
    2. e 3 t ( 1 3 t 1 9 ) + c ,
    3. cos x + x sin x + c
  1. ( x + 3 ) cos x + sin x + c .
  2. x ln x x + c .
    1. x tan 1 x 1 2 ln ( x 2 + 1 ) + c ,
    2. 7 9 cos 3 x 7 3 x sin 3 x + c ,
    3. 5 27 e 3 x ( 9 x 2 6 x + 2 ) + c ,
    1. cos k x k 2 + x sin k x k + c ,
    2. 2 z cos k z k 2 + z 2 sin k z k 2 sin k z k 3 + c .
    1. e s t ( s t + 1 ) s 2 + c ,
    2. e s t ( s 2 t 2 + 2 s t + 2 ) s 3 + c .