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 Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle dv=e^{x}~dx.} |
| 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: |
|---|
2)
| Solution: |
|---|
|
We have a choice to make. |
| We can let or |
| In this case, we let be the polynomial. |
| So, we let and |
| Then, |
| To find we need to use substitution. So, |
|
|
| 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 since we don't know how to integrate yet. |
| So, we let and |
| Then, and |
| Hence, by integration by parts, we get |
|
| Note: The domain of the function is |
| So, this integral is defined for |
| Final Answer: |
|---|
Exercise 1
Evaluate
Since we know the antiderivative of Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \sec ^{2}x,}
we let and Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle dv=\sec ^{2}x~dx.}
Then, and
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
- 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 {\frac {1}{u}}~du}\\&&\\&=&\displaystyle {x\tan x+\ln |u|+C}\\&&\\&=&\displaystyle {x\tan x+\ln |\cos x|+C.}\end{array}}}
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 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.}
We start by letting and Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle dv={\frac {1}{x^{3}}}~dx.}
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
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle {\begin{array}{rcl}\displaystyle {\int {\frac {\ln x}{x^{3}}}~dx}&=&\displaystyle {-{\frac {\ln x}{2x^{2}}}-\int -{\frac {1}{2x^{2}}}{\bigg (}{\frac {1}{x}}{\bigg )}~dx}\\&&\\&=&\displaystyle {-{\frac {\ln x}{2x^{2}}}+\int {\frac {1}{2x^{3}}}~dx}\\&&\\&=&\displaystyle {-{\frac {\ln x}{2x^{2}}}-{\frac {1}{4x^{2}}}+C.}\end{array}}}
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
Then,
To find we need to use substitution. So,
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle v=\int {\sqrt {x+1}}~dx={\frac {2}{3}}(x+1)^{\frac {3}{2}}.}
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{\sqrt {x+1}}~dx}&=&\displaystyle {{\frac {2}{3}}x(x+1)^{\frac {3}{2}}-\int {\frac {2}{3}}(x+1)^{\frac {3}{2}}~dx}\\&&\\&=&\displaystyle {{\frac {2}{3}}x(x+1)^{\frac {3}{2}}-{\frac {4}{15}}(x+1)^{\frac {5}{2}}+C,}\end{array}}}
where we use substitution to evaluate the last integral.
So, we have
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \int x{\sqrt {x+1}}~dx={\frac {2}{3}}x(x+1)^{\frac {3}{2}}-{\frac {4}{15}}(x+1)^{\frac {5}{2}}+C.}
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 Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle u=x^{2}} 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.}
To find we need to use substitution. So,
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle v=\int e^{-2x}~dx={\frac {e^{-2x}}{-2}}.}
Hence, by integration by parts, we get
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 Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle v={\frac {e^{-2x}}{-2}}.}
Therefore, using integration by parts again, 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}}+{\frac {xe^{-2x}}{-2}}-\int {\frac {e^{-2x}}{-2}}~dx}\\&&\\&=&\displaystyle {{\frac {x^{2}e^{-2x}}{-2}}+{\frac {xe^{-2x}}{-2}}+{\frac {e^{-2x}}{-4}}+C.}\end{array}}}
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 Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \int e^{3x}\sin(2x)~dx.}
We begin by letting Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle u=\sin(2x)} and
Then, Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle du=2\cos(2x)~dx.}
To find we need to use substitution. So,
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle v=\int e^{3x}~dx={\frac {e^{3x}}{3}}.}
Hence, by integration by parts, we have
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=e^{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{e^{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 e^{3x} \sin(2x)~dx} & = & \displaystyle{\frac{e^{3x}\sin(2x)}{3}-\frac{2}{3} \bigg[ \frac{\cos(2x)e^{3x}}{3}+\int \frac{2}{3}\sin(2x)e^{3x}~dx\bigg]}\\ &&\\ & = & \displaystyle{\frac{e^{3x}\sin(2x)}{3}-\frac{2\cos(2x)e^{3x}}{9}-\frac{4}{9}\int e^{3x}\sin(2x)~dx.} \end{array}}
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
- 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{13}{9} \int e^{3x}\sin(2x)~dx = \frac{e^{3x}\sin(2x)}{3}-\frac{2\cos(2x)e^{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}{13}\bigg(\frac{e^{3x}\sin(2x)}{3}-\frac{2\cos(2x)e^{3x}}{9}\bigg)+C.}
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.}
For this problem, we use a similar process as Exercise 5.
We use integration by parts twice, which produces the same integral given to us in the problem.
Then, we solve for our integral.
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 du=2\cos (2x)~dx.}
To find 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,} we need to use 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. So,
- 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}+\frac{4}{9}\int \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.}