Integration by Parts#
How to Integrate Products of Different Types of Functions#
Reversing the Product Rule of Differentiation
The product rule for differentiating \(f(x)g(x)\) (i.e., \(\frac{d}{dx}(fg) = f'g + fg'\)) can be translated into the following rule for computing the antiderivative of a product:
This rule is known as integration by parts and its usefulness relies on \(f'g\) being easier to integrate than \(fg'\). When applying integration by parts to the integral of a product, \(fg'\), the first consideration is determining which factor corresponds to \(f\) and which factor corresponds to \(g'\). This will be addressed below.
Notation
Integration by parts is often written in the following form
where \(u = f(x)\), \(dv = g'(x) ~dx\), and therefore \(du = f'(x)~dx\) and \(v = g(x)\).
When to Apply Integration by Parts
The method of integration by parts is most commonly applied to integrating products of different types of functions. For example, the product of a polynomial and an exponential function or the product of a polynomial and a logarithmic function. Integration by parts can also be used to integrate inverse functions, like \(\ln(x)\).
LAE: How to Pick \(u\) and \(dv\)
When deciding which factor corresponds to \(u\) (i.e., \(f(x)\)), use the acronym LAE to help remember the order in which different types of functions are preferred.
Logarithmic functions (e.g., \(\ln(x)\))
Algebraic (including power, polynomial, and rational) functions (e.g., \(x^2\), \(1/x\), \(\sqrt{x}\))
Exponential functions (e.g., \(e^x\))
In other words, a logarithmic function is our first choice for \(u\), if it appears in the integrand. If not, then our second choice is for an algebraic function, and our last choice would be an exponential function.
Once \(u\) has been selected, set \(dv\) to be the remaining factors of the integrand, including the differential \(dx\). Furthermore, if \(u = f(x)\) and \(dv = g(x) ~dx\), then
Example 1#
Integrate the product of a power function and an exponential function
Compute \(\displaystyle \int 2x e^x ~dx.\)
Step 1: Based on the integrand and the preferred LAE order, pick \(u\) and \(dv\).
Since the integrand is \(2xe^x\), the preferred choice for \(u\) is \(u=2x\) and therefore \(dv = e^x ~dx\).
Step 2: Compute \(du\) and \(v\).
Step 3: Compute the integral using integration by parts.
Check Our Work.
We can verify our answer by showing \(2x e^x\) is the derivative of \(2e^x(x-1)\).
Example 2#
Integrate the product of a power function and a logarithmic function
Compute \(\displaystyle \int x^2 \ln(x) ~dx.\)
Step 1: Based on the integrand and the preferred LAE order, pick \(u\) and \(dv\).
Since the integrand is \(x^2 \ln(x)\), the preferred choice for \(u\) is \(u=\ln(x)\) and therefore \(dv = x^2 ~dx\).
Step 2: Compute \(du\) and \(v\).
Step 3: Compute the integral using integration by parts.
Check Our Work.
We can verify our answer by showing \(x^2 \ln(x)\) is the derivative of \(\dfrac{1}{3}x^3\ln(x) - \dfrac{1}{9}x^3\).
Example 3#
Integrating the logarithm
Compute \(\displaystyle \int \ln(x) ~dx.\)
Step 1: Based on the integrand and the preferred LAE order, pick \(u\) and \(dv\).
Since the integrand is \(\ln(x)\), the preferred choice for \(u\) is \(u=\ln(x)\) and therefore \(dv = dx\).
Step 2: Compute \(du\) and \(v\).
Step 3: Compute the integral using integration by parts.
Check Our Work.
We can verify our answer by showing \(\ln(x)\) is the derivative of \(x\ln(x) - x\).
Example 4#
Area of a region
Compute the area of the region under the graph of \(\displaystyle f(x) = 3xe^{-2x} \) from \(x=0\) to \(x=4\).
Step 1: Write the area of the region as a definite integral.
Step 2: Compute \(\displaystyle \int 3xe^{-2x} ~dx \) using integration by parts.
Pick \(u\) and \(dv\) and compute \(du\) and \(v\). (Recall \(\int e^{ax} ~dx = \frac{1}{a}e^{ax}+C\).)
Check Our Work.
We can verify our answer by showing \(3xe^{-2x}\) is the derivative of \(-\dfrac{3}{2}xe^{-2x} - \dfrac{3}{4}e^{-2x}\).
Step 3: Evaluate \(\displaystyle \int_0^4 3xe^{-2x} ~dx \) using the answer to Step 2.
Example 5#
Evaluating a definite integral using integration by parts
Evaluate \(\displaystyle \int_1^e (4x+1)\ln(x) ~dx\).
Step 1: Compute \(\displaystyle \int (4x+1)\ln(x) ~dx \) using integration by parts.
Pick \(u\) and \(dv\) and compute \(du\) and \(v\).
Check Our Work.
We can verify our answer by showing \((4x+1)\ln(x)\) is the derivative of \((2x^2+x)\ln(x) - x^2 - x\).
Step 2: Evaluate \(\displaystyle \int_1^e (4x+1)\ln(x) ~dx\) using the answer to Step 1.
Example 6#
An integral that requires two applications of integration by parts
Compute \(\displaystyle \int 5x^2e^x ~dx\).
Step 1: Use integration by parts to compute \(\displaystyle \int 5x^2e^x ~dx\).
Pick \(u\) and \(dv\) and compute \(du\) and \(v\).
In order to compute the indefinite integral of \(10xe^x\), we need to use integration by parts again.
Step 2: Use integration by parts to compute \(\displaystyle \int 10xe^x ~dx\).
Pick \(u\) and \(dv\) and compute \(du\) and \(v\).
Check Our Work.
We can verify our answer by showing \(10xe^x\) is the derivative of \((10x - 10)e^x\).
Step 3: Use the answer to Step 2 to complete the computations in Step 1.
Check Our Work.
We can verify our answer by showing \(5x^2e^x\) is the derivative of \((5x^2 - 10x + 10)e^x\).