## Encyclopedia > Integration by parts

Article Content

# Integration by parts

In calculus, integration by parts is a rule that transforms the integral of products of functions into other integrals. The objective is that these are simpler. The rule arises from the product rule of differentiation.

Suppose f(x) and g(x) are two continuously differentiable functions. Then the rule states

$\int f(x) g'(x)\,dx = f(x) g(x) - \int g(x) f'(x)\,dx$

or in a shorter form, if we let u = f(x), v = g(x) and the differentials du = f'(x)dx and dv = g'(x)dx, then it is in the form in which it is most often seen:

$\int u\,dv = u v - \int v\,du.$

A discrete analogue for sequences, called summation by parts, exists.

Note that the original integral contains the derivative of g; in order to be able to apply the rule, you need to find its antiderivative g and then you still have to evaluate the resulting integral of ∫g f ' dx.

An alternative notation has the advantage that the factors of the original expression are identified as f and g, but the drawback of a nested integral:

$\int f g\,dx = f \int g\,dx - \int \left ( f' \int g\,dx \right )dx$

This formula is valid whenever f is continuously differentiable and g is continuous.

If we combine the first formula above with the fundamental theorem of calculus, definite integrals can also be integrated by parts. If we evaluate both sides of the formula between a and b and assume f(x) and g(x) are continuous, by applying the Fundamental Theorem of Calculus, we obtain this useful formula:

$\int_{a}^{b} f(x) g'(x)\,dx = \left[ f(x) g(x) \right]_{a}^{b} - \int_{a}^{b} g(x) f'(x)\,dx$

 Table of contents

The rule is helpful whenever you need to integrate a function h(x) and you are able to break it up into a product of two functions, h(x) = f(x)g(x), in such a way that you know how to differentiate f, how to integrate g, and how to deal with the resulting integral of f ' times the integral of g.

In order to calculate:

$\int x\cos (x) \,dx$

Let:

u = x, so that du = dx,
dv = cos(x) dx, so that v = sin(x).

Then:

$\int x\cos (x) \,dx = \int u \,dv = uv - \int v \,du$
$\int x\cos (x) \,dx = x\sin (x) - \int \sin (x) \,dx$
$\int x\cos (x) \,dx = x\sin (x) + \cos (x) + C$

where C is an arbitrary constant of integration.

By repeatedly using integration by parts, integrals such as

$\int x^{3} \sin (x) \,dx \quad \mbox{and} \quad \int x^{2} e^{x} \,dx$

can be computed in the same fashion: each application of the rule lowers the power of x by one.

An interesting example that is commonly seen is:

$\int e^{x} \cos (x) \,dx$

where, strangely enough, in the end, you don't have to do the actual integration.

This example uses integration by parts twice. First let:

u = ex; thus du = exdx
v = sin(x); thus dv = cos(x)dx

Then:

$\int e^{x} \cos (x) \,dx = e^{x} \sin (x) - \int e^{x} \sin (x) \,dx$

Now, to evaluate the remaining integral, we use integration by parts again, with:

u = ex; du = exdx
v = -cos(x); dv = sin(x)dx

Then:

$\int e^{x} \sin (x) \,dx = -e^{x} \cos (x) - \int -e^{x} \cos (x) \,dx = -e^{x} \cos (x) + \int e^{x} \cos (x) \,dx$

Putting these together, we get

$\int e^{x} \cos (x) \,dx = e^{x} \sin (x) + e^x \cos (x) - \int e^{x} \cos (x) \,dx$

Notice that the same integral shows up on both sides of this equation. So you can simply add the integral to both sides to get:

$2 \int e^{x} \cos (x) \,dx = e^{x} \left( \sin (x) + \cos (x) \right)$

$\int e^{x} \cos (x) \,dx = {e^{x} \left( \sin (x) + \cos (x) \right) \over 2}$

The other two famous examples are when you take something which isn't a product as a product of 1 and itself, and use integration by parts. This works if you know how to differentiate the function you want to integrate, and you also know how to integrate this derivative times x.

The first example is ∫ ln(x) dx. Write this as:

$\int \ln (x) \cdot 1 \,dx$

Let:

u = ln(x); du = 1/x dx
v = x; dv = 1·dx

Then:

$\int \ln (x) \,dx = x \ln (x) - \int x/x \,dx = x \ln (x) - \int 1 \,dx$
$\int \ln (x) \,dx = x \ln (x) - {x} + {C}$
$\int \ln (x) \,dx = x \left( \ln (x) - 1 \right) + C$

where, again, C is the arbitrary constant of integration

The second example is ∫ arctan(x) dx, where arctan(x) is the inverse tangent[?] function. Re-write this as:

$\int 1 \cdot \arctan (x) \,dx$

Now let:

u = arctan(x); du = 1/(1+x2) dx
v = x; dv = 1·dx

Then:

$\int \arctan (x) \,dx = x \arctan (x) - \int {x \over (1 + x^2)} \,dx = x \arctan (x) - {\ln \left( 1 + x^2 \right) \over 2}$

using a combination of the inverse chain rule method and the natural logarithm integral condition.

Integration by parts follows from the product rule of differentiation: If the two continuously differentiable functions u(x) and v(x) are given, the product rule states that

$(uv)' = (uv' + vu')$
By integrating both sides, we get
$uv = \int (uv' + vu') \,dx$
The latter integral can be written as the sum of two integrals since integration is linear:
$uv = \int uv' \,dx + \int vu' \,dx$
(the fact that u and v are continuously differentiable ensures that the two individual integrals exist.) Subtracting ∫ uv' dx from both sides yields the desired formula of integration by parts.
$\int uv' \,dx = uv - \int vu' \,dx$

When defining distributions, integration rather then differentiation is the fundamental operation. The derivatives of distributions are then defined so as to make integration by parts work.

All Wikipedia text is available under the terms of the GNU Free Documentation License

Search Encyclopedia
 Search over one million articles, find something about almost anything!

Featured Article
 Canadian Charter of Rights and Freedoms ... of expression and freedom of the press, peaceful assembly[?], and freedom of association subject to the reasonable limitations clause (see above) and the ...

This page was created in 27 ms