Practical:Integration by parts

From Calculus

ORIGINAL FULL PAGE: Integration by parts
STUDY THE TOPIC AT MULTIPLE LEVELS:
ALSO CHECK OUT: Practical tips on the topic |Quiz (multiple choice questions to test your understanding) |Page with videos on the topic, both embedded and linked to


Statement

Statement in multiple versions

Version type Statement
Indefinite integral in function notation Suppose F and g are continuous functions such that F is a differentiable function and we want to integrate F(x)g(x). Suppose G is an antiderivative for g and f=F. Then we have:
F(x)g(x)dx=F(x)G(x)f(x)G(x)dx
Definite integral in function notation Suppose F and g are continuous functions on a closed interval [a,b] such that F is a differentiable function at all points of [a,b] and we want to integrate F(x)g(x). Suppose G is an antiderivative for g and f is the derivative F. Then, we have:
abF(x)g(x)dx=[F(x)G(x)]ababf(x)G(x)dx
The part [F(x)G(x)]ab is shorthand for F(b)G(b)F(a)G(a), in keeping with the standard evaluate between limits notation used for definite integrals.
Indefinite integral in dependent-independent variable notation Suppose u,v are variables denoting functions of x. Then, we have:
udv=uvvdu
More explicitly:
udvdxdx=uvvdudxdx
Compared with the notation of the preceding version, u=F(x), du/dx=f(x), dv/dx=g(x), and v=G(x).
Verbal version The integral of a product of two functions is the first function times the integral of the second function minus the integral of (the derivative of the first function times the integral of the second function).

Associated jargon

The function F in the function notation (or the variable u in in the variable notation) is termed the part to differentiate. The function g in the function notation (which is dv/dx in the variable notation) is termed the part to integrate.

As a process

For further information, refer: Practical:Integration by parts

We can think of integration by parts overall as a five- or six-step process. The really hard discretionary parts (i.e., the parts that are not purely procedural but require decision-making) are Steps (1) and (2):

  1. Identify the function being integrated as a product of two functions
  2. Figure out which is the part to differentiate and which is the part to integrate
  3. Determine the antiderivative of the part to integrate and the derivative of the part to differentiate
  4. Apply integration by parts
  5. Now, do the second integral
  6. (Optional) Verify your answer by differentiating the antiderivative obtained

Basic procedural observations

Observation More information
Integration by parts essentially reverses the product rule for differentiation applied to F(x)G(x) (or uv). proof section
Solving a problem through a single application of integration by parts usually involves two integrations -- one to find the antiderivative G for g (which in the uv notation is equivalent to finding v given dv/dx) and then doing the right side integration of f(x)G(x) (or vdudx). Note that:
(1) For the first integration (the one involving finding G or v), we just need to find one antiderivative and we do not put a +C or try to evaluate between limits.
(2) On the other hand, at the end of the second integration (the integration of f(x)G(x) or vdudx), we do put a +C (for indefinite integration) or evaluate between limits (for definite integration).
See the section choice of antiderivative does not matter. For more details, see choice of antiderivative does not matter for integration by parts
The key way that the original integral F(x)g(x)dx (or udvdxdx) and the new integral f(x)G(x)dx (or vdudxdx) differ is that in the new integral, one part has been differentiated and the other part has been integrated. The section equivalence of integration problems. For more detailed information, see equivalence of integration problems arising from integration by parts
{{#widget:YouTube|id=RhuUdh2vZIU}}


Explicit procedure

The procedure for applying integration by parts, explicitly, is as follows:

  1. Identify the function being integrated as a product of two functions: In some cases,we may take one of the factors to be the function 1, and the other one to be the whole integrand.
  2. Figure out which is the part to differentiate and which is the part to integrate: In the explicit function notation, the part to differentiate is F and the part to integrate is g. In the uv notation, the part to differentiate is u and the part to integrate is what we'll eventually call dv/dx. This is the step where we need to use explicit heuristics. The general heuristic used is the ILATE or LIATE rule. It says that inverse trigonometric and logarithmic functions are most preferable for differentiation, algebraic functions (polynomials, rational functions, and radicals) are in between, and exponential and trigonometric functions are most preferable for integration.
  3. Determine the antiderivative of the part to integrate and the derivative of the part to differentiate: In the function notation, these are F and G. In the uv notation, these are du/dx and v respectively.
  4. Apply integration by parts
  5. Now, do the second integral: This may require integration by parts again, or we may do it some other way, or we may use the recursive version of integration by parts.
  6. (Optional) Verify your answer by differentiating the antiderivative obtained: You should find yourself using the product rule for differentiation, and further, you should find some of the terms canceling and the left-over term should be the integrand.

Example of xcosx

Consider the integration problem:

Compute the antiderivative

xcosxdx
  1. Identify the function being integrated as the product of two functions: Here, the two factor functions are x and cosx respectively.
  2. Figure out which is the part to differentiate and which is the part to integrate: Using the ILATE rule or through direct strategic thinking, we see that x (the polynomial, algebraic part) should be the part to differentiate and cosx should be the part to integrate. Explicitly:
    • In the function notation, we have F(x)=x and g(x)=cosx.
    • In the uv notation, we have u=x and dv/dx=cosx.
  3. Determine the antiderivative of the part to integrate and the derivative of the part to differentiate: The antiderivative of cosx is sinx and the derivative of x is 1. Explicitly:
    • In the function notation, we have F(x)=1 and G(x)=sinx.
    • In the uv notation, we have du/dx=1 and v=sinx.
  4. Apply integration by parts: We get
    xcosxdx=xsinx(1)(sinx)dx=xsinxsinxdx
  5. Now, do the second integral: We have sinx=cosx, so plugging it back in, we get xsinx(cosx)+C=xsinx+cosx+C.

Products and typical strategies

Product type Preliminary thoughts Strategy for this product type Examples
polynomial function times basic trigonometric or exponential function (such as sin, cos, exp, cosh, sinh, or a polynomial in such expressions) The polynomial function can be differentiated, and repeated differentiation keeps making it simpler and simpler until it disappears. The sine or cosine function or exponential function, upon integration, does not get more complicated, and so can be integrated repeatedly. Take the polynomial function as the part to differentiate, and keep using integration by parts repeatedly till the polynomial disappears. Trig: xcosx,xsinx,x2cosx (see here for worked out examples)
Exp: xex,x2ex,xcoshx,xsinhx (see here for worked out examples)
inverse trigonometric function or logarithmic function (or composite of such a function with a polynomial function) times polynomial function (the polynomial function could just be the function 1, which is invisible). The polynomial function can easily be both differentiated and integrated. The inverse trigonometric or logarithmic function can be differentiated, bringing it into the algebraic domain. Choose the inverse trigonometric function or logarithmic function as the part to differentiate. Simple products:lnx,xlnx,arctanx,xarctanx,arcsinx (see here for worked out examples)
Products involving composites: ln(x2+1),xln(x3+1),xarctan(x3x)
trigonometric function times exponential function OR product of trigonometric functions or power of a trigonometric function that can be treated as a product (and other techniques such as integration by u-substitution don't seem to solve the problem completely) both functions are easy to differentiate and to integrate, with the complexity remaining the same. We need to use the recursive version of integration by parts. sin2x,excosx
The function sec3x can also be done using a similar method, though it falls outside the basic trigonometric function products.
{{#widget:YouTube|id=WQQfIbhusak}}


The examples here are done quickly, without the explicit function/letter naming procedure.

Polynomial times basic trigonometric

In all these, we choose to differentiate the polynomial and integrate the trigonometric function. We use the following formulas:

Function Antiderivative
sin cos
cos sin
Integration problem What we choose to differentiate and integrate Full solution (quick version) In part 1 video (embedded above)?
xcosxdx Differentiate x to get 1, integrate cosx to get sinx xcosxdx=xsinx(1)(sinx)dx=xsinx+cosx+C Yes
x2cosxdx Differentiate x2 to get 2x, integrate cosx to get sinx, then again differentiate the polynomial and integrate the trigonometric function x2cosxdx=x2sinx2xsinxdx=x2sinx2[x(cosx)(1)(cosx)dx]
This simplifies to x2sinx+2xcosx2sinx+C
Yes
xsinxdx Differentiate x to get 1, integrate sinx to get cosx xsinxdx=x(cosx)(1)(cosx)dx=xcosx+sinx+C No

Polynomial times exponential

In all these, we choose to differentiate the polynomial and integrate the exponential function. We use that the exponential function is its own antiderivative.

Integration problem What we choose to differentiate and integrate Full solution (quick version) In part 1 video (embedded above)?
xexdx Differentiate x to get 1, integrate ex to get ex xexdx=xex(1)(ex)dx=xexex+C Yes
x2exdx Differentiate x2 to get 2x, integrate ex to get ex, then again differentiate the polynomial and integrate the exponential x2exdx=x2ex2xexdx=x2ex2[xex(1)(ex)dx]=x2ex2xex+2ex+C No

Polynomial times logarithmic

In all these, we choose to integrate the polynomial and differentiate the logarithmic function. We use that d(lnx)/dx=1/x.

Integration problem What we choose to differentiate and integrate Full solution (quick version) In part 1 video (embedded above)?
lnxdx Think of integrand as (lnx)(1), differentiate lnx to get 1/x, integrate 1 to get x lnxdx=(lnx)(1)dx=(lnx)(x)(1/x)(x)dx=xlnxx+C Yes
xlnxdx Differentiate lnx to get 1/x, integrate x to get x2/2 xlnxdx=(lnx)(x2/2)1xx22dx=x2lnx2x2dx=x2lnx2x24+C Yes

Embedding of Part 2 video Fill this in later

Polynomial times inverse trigonometric

In all these, we choose to integrate the polynomial and differentiate the inverse trigonometric function. We use that ddx(arctanx)=11+x2.

For many of these examples, we need to use some tricks/techniques related to the integration of rational functions to simplify the new rational function or algebraic expressions we obtain.

Integration problem What we choose to differentiate and integrate Full solution (quick version) In part 2 video (embedded above)?
arctanxdx Think of integrand as (arctanx)(1), integrate 1 to get x, differentiate arctanx to get 1/(1+x2) arctanxdx=(arctanx)(x)11+x2xdx=xarctanx122x1+x2dx
This simplifies to xarctanx12ln(1+x2)+C
Note that for the latter integration, we use the g/g=ln|g| rule.
Yes
xarctanxdx integrate x to get x2/2, differentiate arctanx to get 1/(1+x2). xarctanxdx=(arctanx)(x2/2)11+x2x22dx=x2arctanx212x21+x2dx
We now use that the fraction is an improper fraction to convert it to the mixed fraction 111+x2, and get: x2arctanx212[111+x2]dx.
Simplfying gives x2arctanx212(xarctanx)+C=(x2+1)arctanx2x2+C
Yes