# Integration by parts

In calculus, and more generally in mathematical analysis, **integration by parts** is a rule that transforms the integral of products of functions into other, possibly simpler, integrals. The rule arises from the product rule of differentiation.

## The rule

Suppose *f*(*x*) and *g*(*x*) are two continuously differentiable functions. Then the integration by parts rule states that given an interval with endpoints *a*, *b*, one has

where we use the common notation

The rule is shown to be true by using the product rule for derivatives and the fundamental theorem of calculus. Thus

In the traditional calculus curriculum, this rule is often stated using indefinite integrals in the form

or in an even 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:

One can also formulate a discrete analogue for sequences, called summation by parts.

Note that the original integral contains the derivative of *g*; in order to be able to apply the rule, the antiderivative *g* must be found, and then the resulting integral ∫*g* *f*′ d*x* must be evaluated.

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:

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

## Examples

In order to calculate:

Let:

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

Then:

where *C* is an arbitrary constant of integration.

By repeatedly using integration by parts, integrals such as

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:

where, strangely enough, in the end, the actual integration does not need to be performed.

This example uses integration by parts twice. First let:

*u*= e^{x}; thus d*u*= e^{x}d*x*- d
*v*= cos(*x*)d*x*; thus*v*= sin(*x*)

Then:

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

*u*= e^{x}; d*u*= e^{x}d*x**v*= -cos(*x*); d*v*= sin(*x*)d*x*

Then:

Putting these together, we get

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

Two other well-known examples are when integration by parts is applied to a function expressed as a product of 1 and itself. This works if the derivative of the function is known, and the integral of this derivative times *x* is also known.

The first example is ∫ ln(*x*) d*x*. We write this as:

Let:

*u*= ln(*x*); d*u*= 1/*x*d*x**v*=*x*; d*v*= 1·d*x*

Then:

where, again, C is the arbitrary constant of integration

The second example is ∫ arctan(*x*) d*x*, where arctan(*x*) is the inverse tangent function. Re-write this as:

Now let:

*u*= arctan(*x*); d*u*= 1/(1+*x*^{2}) d*x**v*=*x*; d*v*= 1·d*x*

Then:

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

## The LIATE rule

A rule of thumb for choosing which of two functions is to be *u* and which is to be *dv* is to choose *u* by whichever function comes first in this list:

L the logarithmic function: ln *x*

I inverse trigonometric functions: arctan *x* , arcsec *x*, etc.

A algebraic (polynomial) functions: , etc.

T trigonometric functions: tan x, sec x, etc.

E exponential functions: , , etc.

Then make *dv* the other function. You can remember the list by the mnemonic LIATE.

To demonstrate this rule, consider the integral

Following the LIATE rule, *u*=*x* and *dv*=cos *x* , hence *du*=1 and *v*=sin *x* , which makes the integral become

which equals

In general, one tries to choose *u* and *dv* such that *du* is simpler than *u* and *dv* is easy to integrate.

## Higher dimensions

The formula for integration by parts can be extended to functions of several variables. Instead of an interval one needs to integrate over a *n*-dimensional set. Also, one replaces the derivative with a partial derivative.

More specifically, given two continuously differentiable functions *u* and *v* defined on a *n*-dimensional bounded set Ω with piecewise smooth boundary Γ, one has

where **n** is the outer surface normal to Γ, **n**_{i} is its *i*-th component, and *i* is between 1 and *n*. Adding these up with *i* from 1 to *n* with *v* replaced by *v*_{i}, one obtains

where **v** is a vector-valued function with components *v*_{1}, ..., *v*_{n}. For *u* the constant function 1, one gets the divergence theorem.

he:אינטגרציה בחלקים nl:Partiële integratie pl:Całkowanie przez części ru:Интегрирование по частям