Integration by Parts
Introduction
Let's say we want to integrate
Here, we can compute this antiderivative by using substitution.
While substitution is an important integration technique, it will not help us evaluate all integrals.
For example, consider the integral
There is no substitution that will allow us to integrate this integral.
We need another integration technique called integration by parts.
The formula for integration by parts comes from the product rule for derivatives.
Recall from the product rule,
Then, we have
If we solve the last equation for the second integral, we obtain
This formula is the formula for integration by parts.
But, as it is currently stated, it is long and hard to remember.
So, we make a substitution to obtain a nicer formula.
Let Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle u=f(x)} and
Then, and
Plugging these into our formula, we obtain
Warm-Up
Evaluate the following integrals.
1)
| Solution: |
|---|
| We have two options when doing integration by parts. |
| We can let or |
| In this case, we let be the polynomial. |
| So, we let and |
| Then, and Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle v=e^{x}.} |
| Hence, by integration by parts, we get |
|
| Final Answer: |
|---|
| Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle xe^{x}-e^{x}+C} |
2)
| Solution: |
|---|
|
We have a choice to make. |
| We can let or Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle u=\cos(2x).} |
| In this case, we let be the polynomial. |
| So, we let and |
| Then, |
| By substitution, |
|
|
| Hence, by integration by parts, we get |
|
| where we use substitution to evaluate the last integral. |
| Final Answer: |
|---|
3)
| Solution: |
|---|
| We have a choice to make. |
| We can let or Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle dv=\ln x~dx.} |
| In this case, we don't want to let Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle dv=\ln x~dx} since we don't know how to integrate yet. |
| So, we let and |
| Then, and Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle v=x.} |
| Hence, by integration by parts, we get |
|
|
| Final Answer: |
|---|
| Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle x\ln(x)-x+C} |
Exercise 1
Evaluate
Since we know the antiderivative of
we let and
Then, and Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle v=\tan x.}
Using integration by parts, we get
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle {\begin{array}{rcl}\displaystyle {\int x\sec ^{2}x~dx}&=&\displaystyle {x\tan x-\int \tan x~dx}\\&&\\&=&\displaystyle {x\tan x-\int {\frac {\sin x}{\cos x}}~dx.}\end{array}}}
For the remaining integral, we use substitution.
Let Then,
So, we get
So, we have
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \int x\sec ^{2}x~dx=x\tan x+\ln |\cos x|+C.}
Exercise 2
Evaluate
We start by letting and
Then, and Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle v=-{\frac {1}{2x^{2}}}.}
So, using integration by parts, we get
So, we have
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \int {\frac {\ln x}{x^{3}}}~dx=-{\frac {\ln x}{2x^{2}}}-{\frac {1}{4x^{2}}}+C.}
Exercise 3
Evaluate
We start by letting and Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle dv={\sqrt {x+1}}~dx.}
Then,
Also, by substitution, we have
Hence, by integration by parts, we get
where we use substitution to evaluate the last integral.
So, we have
Exercise 4
Evaluate Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \int x^{2}e^{-2x}~dx.}
We start by letting and Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle dv=e^{-2x}~dx.}
Then, Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle du=2x~dx.}
Also, by substitution, we have
Hence, by integration by parts, we get
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle {\begin{array}{rcl}\displaystyle {\int x^{2}e^{-2x}~dx}&=&\displaystyle {{\frac {x^{2}e^{-2x}}{-2}}-\int 2x{\bigg (}{\frac {e^{-2x}}{-2}}{\bigg )}~dx}\\&&\\&=&\displaystyle {{\frac {x^{2}e^{-2x}}{-2}}+\int xe^{-2x}~dx.}\end{array}}}
Now, we need to use integration by parts a second time.
Let and Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle dv=e^{-2x}~dx.}
Then, and
Therefore, using integration by parts again, we get
So, we have
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \int x^{2}e^{-2x}~dx={\frac {x^{2}e^{-2x}}{-2}}+{\frac {xe^{-2x}}{-2}}+{\frac {e^{-2x}}{-4}}+C.}
Exercise 5
Evaluate
We begin by letting and
Then, Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle u=2\cos(2x)~dx.}
Also, by substitution, we have
Hence, by integration by parts, we have
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle {\begin{array}{rcl}\displaystyle {\int e^{3x}\sin(2x)~dx}&=&\displaystyle {{\frac {e^{3x}\sin(2x)}{3}}-\int {\frac {2}{3}}\cos(2x)e^{3x}~dx}\\&&\\&=&\displaystyle {{\frac {e^{3x}\sin(2x)}{3}}-{\frac {2}{3}}\int \cos(2x)e^{3x}~dx.}\end{array}}}
Now, we need to use integration by parts a second time.
Let Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle u=\cos(2x)} and
Then, and Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle v={\frac {e^{3x}}{3}}.}
Therefore, using integration by parts again, we get
Now, we have the exact same integral that we had at the beginning of the problem.
So, we add this integral to the other side of the equation.
When we do this, we get
Therefore, we get
Exercise 6
Evaluate Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \int \sin(2x)\cos(3x)~dx.}
We begin by letting Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u=\sin(2x)} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle dv=\cos(3x)~dx.}
Then, Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u=2\cos (2x)~dx.}
Also, by Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u-} substitution, we have
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle v=\int \cos(3x)~dx=\frac{1}{3}\sin(3x).}
Hence, by integration by parts, we have
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{array}{rcl} \displaystyle{\int \sin(2x)\cos(3x)~dx} & = & \displaystyle{\frac{1}{3}\sin(2x)\sin(3x)-\int \frac{2}{3}\cos(2x)\sin(3x)~dx}\\ &&\\ & = & \displaystyle{\frac{1}{3}\sin(2x)\sin(3x)-\frac{2}{3} \int \cos(2x)\sin(3x)~dx.} \end{array}}
Now, we need to use integration by parts a second time.
Let Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle u=\cos (2x)} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle dv=\sin(3x)~dx.}
Then, Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle du=-2\sin(2x)~dx} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle v=\frac{-\cos(3x)}{3}.}
Therefore, using integration by parts again, we get
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{array}{rcl} \displaystyle{\int \sin(2x)\cos(3x)~dx} & = & \displaystyle{\frac{1}{3}\sin(2x)\sin(3x)-\frac{2}{3} \bigg[ \frac{-\cos(2x)\cos(3x)}{3}-\int \frac{2}{3}\sin(2x)\cos(3x)~dx\bigg]}\\ &&\\ & = & \displaystyle{\frac{1}{3}\sin(2x)\sin(3x)+ \frac{2\cos(2x)\cos(3x)}{9}+\int \frac{4}{9}\sin(2x)\cos(3x)~dx.} \end{array}}
Now, we have the exact same integral that we had at the beginning of the problem.
So, we subtract this integral to the other side of the equation.
When we do this, we get
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{5}{9} \int \sin(2x)\cos(3x)~dx = \frac{1}{3}\sin(2x)\sin(3x)+ \frac{2\cos(2x)\cos(3x)}{9}.}
Therefore, we get
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \int e^{3x}\sin(2x)~dx = \frac{9}{5}\bigg(\frac{1}{3}\sin(2x)\sin(3x)+ \frac{2\cos(2x)\cos(3x)}{9}\bigg)+C.}