The integral ∫01xexdx multiplies a linear factor by an exponential. Substitution does not finish the job here. The choice u=ex, for instance, only turns it into ∫1elnudu, which still needs an antiderivative of the logarithm. The two factors have different strengths instead, since differentiating x gives the constant 1 and integrating ex gives ex again. This page derives integration by parts from the product rule, uses it to show that the integral equals 1, and reads the same number as the area of a region above the exponential curve.
Key terms
Product rule in reverse
Definition If u and v are differentiable on an interval, the product rule says (uv)′=u′v+uv′ there, so uv is an antiderivative of u′v+uv′. If u and v are continuously differentiable on [a,b], the fundamental theorem of calculus then gives
∫ab(u′v+uv′)dx=[uv]ab.In plain words A product changes for two reasons, because the first factor changes and because the second factor changes. Adding up both kinds of change across an interval gives the total change of the product between the endpoints.
Example For u=x and v=ex the product rule gives (xex)′=ex+xex, so
∫01(ex+xex)dx=[xex]01=1⋅e−0⋅1=e.The first piece alone is ∫01exdx=e−1, so the second piece must be ∫01xexdx=e−(e−1)=1. That is integration by parts in miniature.
Integration by parts
Definition Let u and v be continuously differentiable on [a,b]. Then
∫abuv′dx=[uv]ab−∫abu′vdx.It follows from the product rule in reverse by splitting the integral of u′v+uv′ into two and moving ∫abu′vdx to the other side. On an interval where u and v are continuously differentiable, the indefinite form is ∫uv′dx=uv−∫u′vdx, usually written ∫udv=uv−∫vdu with du=u′(x)dx and dv=v′(x)dx.
In plain words Pick one factor to differentiate and one to integrate. The integral of the product equals the product evaluated at the ends, minus a new integral in which the first factor has been differentiated and the second integrated. The method pays off when that new integral is easier than the old one.
Example For ∫01xexdx take u=x and dv=exdx, so du=dx and v=ex. Both x and ex are continuously differentiable on [0,1]. Then
∫01xexdx=[xex]01−∫01exdx=e−(e−1)=1.The antiderivative F(x)=ex(x−1) confirms the value, since F′(x)=ex(x−1)+ex=xex and F(1)−F(0)=0−(−1)=1. This antiderivative is negative on [0,1) even though the integral is positive, because only the difference F(1)−F(0) matters. The size is plausible as well. For 0≤x≤1 we have 1≤ex≤e, so x≤xex≤ex, and the integral lies between 21 and 2e≈1.359.
Boundary term
Definition The boundary term of integration by parts on [a,b] is
[uv]ab=u(b)v(b)−u(a)v(a),the change of the product uv between the endpoints. In the indefinite form its counterpart is the product uv itself. It is part of the formula, so it is never optional, and each of its two values is a product of both factors at the same endpoint.
In plain words Before working on the new integral, evaluate u times v at the upper end and at the lower end and subtract. Leaving the term out, or evaluating only one factor at an endpoint, changes the answer.
Example For u=x and v=ex on [0,1],
[xex]01=1⋅e−0⋅1=e.The lower value is 0 because the factor x is 0 there, not because the exponential vanishes, since e0=1. Leaving out the boundary term would give −(e−1)≈−1.718, a negative value for the integral of a function that is nonnegative on [0,1], which is impossible.
Choosing u and dv
Definition Integration by parts needs a split of the integrand into a factor u, which will be differentiated, and a factor dv=v′(x)dx, whose antiderivative v must be found. Every split with u and v continuously differentiable gives a true equation. The choice only decides whether the new integral ∫u′vdx is easier than the original. A common rule of thumb ranks the types logarithmic, inverse trigonometric, algebraic, trigonometric and exponential in that order, and takes u from the earliest type present. It is a guide, not a theorem.
In plain words Differentiate the factor that gets simpler when differentiated, such as a power of x or a logarithm. Integrate the factor that stays manageable when integrated, such as ex, sinx or cosx.
Example With u=x and dv=exdx the new integrand is 1⋅ex, and the factor x is gone. The reverse choice u=ex and dv=xdx gives v=21x2 and
∫01xexdx=[2x2ex]01−21∫01x2exdx.This equation is true, since ∫01x2exdx=e−2 and 2e−21(e−2)=1, but the new integral has a higher power of x than the original and is harder to evaluate.
Complementary area
Definition Let f be continuously differentiable and strictly increasing on [0,b]. The complementary area is the area of the region between the graph of f and the horizontal line y=f(b), the points with 0≤x≤b and f(x)≤y≤f(b). Vertical strips give it as bf(b)−∫0bf(x)dx. Horizontal strips at height y run from x=0 to x=f−1(y) and give it as ∫f(0)f(b)f−1(y)dy. Integration by parts with u=x and v=f, and the substitution y=f(x), connect both to ∫0bxf′(x)dx,
∫0bxf′(x)dx=bf(b)−∫0bf(x)dx=∫f(0)f(b)f−1(y)dy.In plain words When f(0)≥0, the rectangle of width b and height f(b) splits into the region under the curve and the region above it. Integration by parts computes the region above the curve as an integral in x. Read with horizontal strips, the width of that region at height y is the position x where the curve reaches height y.
Example For f(x)=ex on [0,1] the rectangle has area e and the region under the curve has area e−1, so the region above the curve and inside the rectangle has area 1. At a height y between 1 and e the curve is reached at x=lny, so horizontal strips give
∫1elnydy=[ylny−y]1e=0−(−1)=1.The substitution y=ex, with dy=exdx, turns this integral into ∫01xexdx, because each horizontal strip has width x and height dy=exdx. The region under y=xex and the region above y=ex have different shapes, but both have area 1.
Check yourself
- Evaluate the integral
∫0πxsinxdx.
Show the answer
Take u=x and dv=sinxdx, so du=dx and v=−cosx. Then
∫0πxsinxdx=[−xcosx]0π+∫0πcosxdx=π+0=π.
The boundary term is −πcosπ−(−0⋅cos0)=π, and ∫0πcosxdx=sinπ−sin0=0. Differentiating the antiderivative sinx−xcosx gives cosx−cosx+xsinx=xsinx, which confirms it.
- For the integral below, which factor should be u? Evaluate it.
∫1exlnxdx
Show the answer
Take u=lnx and dv=xdx, so du=x1dx and v=21x2, and u and v are continuously differentiable on [1,e]. Differentiating the logarithm leaves only a power of x. Then
∫1exlnxdx=[2x2lnx]1e−∫1e2xdx=2e2−4e2−1=4e2+1.
The value is about 2.097. Taking u=x out of habit is a detour here, because then dv=lnxdx and finding v=xlnx−x already needs integration by parts, and the new integral ∫(xlnx−x)dx contains the original one again. The size checks out, since 0≤xlnx≤x on [1,e] gives a value between 0 and 21(e2−1)≈3.19.
- Use ∫01xexdx=1 to evaluate the integral below. Why is −2, the value obtained by leaving out the boundary term, impossible?
∫01x2exdx
Show the answer
Take u=x2 and dv=exdx, so du=2xdx and v=ex. Then
∫01x2exdx=[x2ex]01−2∫01xexdx=e−2⋅1=e−2.
The value is about 0.718. The integrand is nonnegative on [0,1], and since x2≤x2ex≤ex2 there, the integral lies between 31 and 3e≈0.906. A negative value such as −2 cannot be the integral of a nonnegative function, so the boundary term e cannot be left out.