Difference between revisions of "Integration by Parts"
Kayla Murray (talk | contribs) |
Kayla Murray (talk | contribs) |
||
| Line 20: | Line 20: | ||
Recall from the product rule, | Recall from the product rule, | ||
| − | ::<math>( | + | ::<math>(f(x)g(x))'=f'(x)g(x)+f(x)g'(x).</math> |
| + | |||
| + | Then, we have | ||
| + | |||
| + | ::<math>\begin{array}{rcl} | ||
| + | \displaystyle{f(x)g(x)} & = & \displaystyle{\int f'(x)g(x)+f(x)g'(x)~dx}\\ | ||
| + | &&\\ | ||
| + | & = & \displaystyle{\int f'(x)g(x)~dx+\int f(x)g'(x)~dx.} | ||
| + | \end{array}</math> | ||
| + | |||
| + | If we solve the last equation for the second integral, we obtain | ||
| + | |||
| + | ::<math>\int f(x)g'(x)~dx = f(x)g(x)-\int f'(x)g(x)~dx.</math> | ||
| + | |||
| + | 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 <math>u=f(x)</math> and <math>dv=g'(x)~dx.</math> | ||
| + | |||
| + | Then, <math>du=f'(x)~dx</math> and <math>v=g(x).</math> | ||
| + | |||
| + | Plugging these into our formula, we obtain | ||
| + | |||
| + | ::<math>\int u~dv=uv-\int v~du.</math> | ||
==Warm-Up== | ==Warm-Up== | ||
| − | + | Evaluate the following integrals. | |
| − | '''1)''' <math style="vertical-align: -7px"> | + | '''1)''' <math style="vertical-align: -7px">\int xe^x~dx</math> |
{| class = "mw-collapsible mw-collapsed" style = "text-align:left;" | {| class = "mw-collapsible mw-collapsed" style = "text-align:left;" | ||
| Line 76: | Line 100: | ||
|} | |} | ||
| − | '''2)''' <math style="vertical-align: -14px"> | + | '''2)''' <math style="vertical-align: -14px">\int x\cos (2x)~dx</math> |
{| class = "mw-collapsible mw-collapsed" style = "text-align:left;" | {| class = "mw-collapsible mw-collapsed" style = "text-align:left;" | ||
| Line 125: | Line 149: | ||
|} | |} | ||
| − | '''3)''' <math style="vertical-align: -14px"> | + | '''3)''' <math style="vertical-align: -14px">\int \ln x~dx</math> |
{| class = "mw-collapsible mw-collapsed" style = "text-align:left;" | {| class = "mw-collapsible mw-collapsed" style = "text-align:left;" | ||
| Line 162: | Line 186: | ||
== Exercise 1 == | == Exercise 1 == | ||
| − | + | Evaluate <math style="vertical-align: -13px">\int x^3 e^{-2x}~dx.</math> | |
First, we need to know the derivative of <math style="vertical-align: 0px">\csc x.</math> Recall | First, we need to know the derivative of <math style="vertical-align: 0px">\csc x.</math> Recall | ||
| Line 197: | Line 221: | ||
== Exercise 2 == | == Exercise 2 == | ||
| − | + | Evaluate <math style="vertical-align: -5px">\int e^{3x}\sin (2x)~dx.</math> | |
Notice that the function <math style="vertical-align: -5px">g(x)</math> is the product of three functions. | Notice that the function <math style="vertical-align: -5px">g(x)</math> is the product of three functions. | ||
| Line 236: | Line 260: | ||
== Exercise 3 == | == Exercise 3 == | ||
| − | + | Evaluate <math style="vertical-align: -16px">\int x\sec^2 x~dx.</math> | |
Using the Quotient Rule, we have | Using the Quotient Rule, we have | ||
| Line 255: | Line 279: | ||
== Exercise 4 == | == Exercise 4 == | ||
| − | + | Evaluate <math style="vertical-align: -14px">\int x\sqrt{x+1}~dx.</math> | |
| + | |||
| + | First, using the Quotient Rule, we have | ||
| + | |||
| + | ::<math>\begin{array}{rcl} | ||
| + | \displaystyle{f'(x)} & = & \displaystyle{\frac{x^2\sin x (e^x)'-e^x(x^2\sin x)'}{(x^2\sin x)^2}}\\ | ||
| + | &&\\ | ||
| + | & = & \displaystyle{\frac{x^2\sin x e^x - e^x(x^2\sin x)'}{x^4\sin^2 x}.} | ||
| + | \end{array}</math> | ||
| + | |||
| + | Now, we need to use the Product Rule. So, we have | ||
| + | |||
| + | ::<math>\begin{array}{rcl} | ||
| + | \displaystyle{f'(x)} & = & \displaystyle{\frac{x^2\sin x e^x - e^x(x^2(\sin x)'+(x^2)'\sin x)}{x^4\sin^2 x}}\\ | ||
| + | &&\\ | ||
| + | & = & \displaystyle{\frac{x^2\sin x e^x - e^x(x^2\cos x+2x\sin x)}{x^4\sin^2 x}.} | ||
| + | \end{array}</math> | ||
| + | |||
| + | So, we have | ||
| + | ::<math>f'(x)=\frac{x^2\sin x e^x - e^x(x^2\cos x+2x\sin x)}{x^4\sin^2 x}.</math> | ||
| + | |||
| + | == Exercise 5 == | ||
| + | |||
| + | Evaluate <math style="vertical-align: -14px">\int \frac{\ln x}{x^3}~dx.</math> | ||
| + | |||
| + | First, using the Quotient Rule, we have | ||
| + | |||
| + | ::<math>\begin{array}{rcl} | ||
| + | \displaystyle{f'(x)} & = & \displaystyle{\frac{x^2\sin x (e^x)'-e^x(x^2\sin x)'}{(x^2\sin x)^2}}\\ | ||
| + | &&\\ | ||
| + | & = & \displaystyle{\frac{x^2\sin x e^x - e^x(x^2\sin x)'}{x^4\sin^2 x}.} | ||
| + | \end{array}</math> | ||
| + | |||
| + | Now, we need to use the Product Rule. So, we have | ||
| + | |||
| + | ::<math>\begin{array}{rcl} | ||
| + | \displaystyle{f'(x)} & = & \displaystyle{\frac{x^2\sin x e^x - e^x(x^2(\sin x)'+(x^2)'\sin x)}{x^4\sin^2 x}}\\ | ||
| + | &&\\ | ||
| + | & = & \displaystyle{\frac{x^2\sin x e^x - e^x(x^2\cos x+2x\sin x)}{x^4\sin^2 x}.} | ||
| + | \end{array}</math> | ||
| + | |||
| + | So, we have | ||
| + | ::<math>f'(x)=\frac{x^2\sin x e^x - e^x(x^2\cos x+2x\sin x)}{x^4\sin^2 x}.</math> | ||
| + | |||
| + | == Exercise 6 == | ||
| + | |||
| + | Evaluate <math style="vertical-align: -14px">\int \sin(2x)\cos(3x)~dx.</math> | ||
First, using the Quotient Rule, we have | First, using the Quotient Rule, we have | ||
Revision as of 15:29, 26 October 2017
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 and
Then, and
Plugging these into our formula, we obtain
Warm-Up
Evaluate the following integrals.
1)
| Solution: |
|---|
| Using the Product Rule, we have |
|
|
| Then, using the Power Rule, we have |
|
| NOTE: It is not necessary to use the Product Rule to calculate the derivative of this function. |
| You can distribute the terms and then use the Power Rule. |
| In this case, we have |
|
| Now, using the Power Rule, we get |
|
| In general, calculating derivatives in this way is tedious. It would be better to use the Product Rule. |
| Final Answer: |
|---|
| Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle f'(x)=(x^{2}+x+1)(3x^{2}+4x)+(2x+1)(x^{3}+2x^{2}+4)} |
| or equivalently |
2)
| Solution: |
|---|
|
Using the Quotient Rule, we have |
|
|
| Then, using the Power Rule, we have |
|
| NOTE: It is not necessary to use the Quotient Rule to calculate the derivative of this function. |
| You can divide and then use the Power Rule. |
| In this case, we have |
|
| Now, using the Power Rule, we get |
|
|
| Final Answer: |
|---|
| or equivalently |
| Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle f'(x)=1+2x} |
3)
| Solution: |
|---|
| Using the Quotient Rule, we get |
|
| since Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \sin ^{2}x+\cos ^{2}x=1} and Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \sec x={\frac {1}{\cos x}}.} |
| Since we have |
|
| Final Answer: |
|---|
| Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle f'(x)=\sec ^{2}x} |
Exercise 1
Evaluate
First, we need to know the derivative of Recall
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \csc x={\frac {1}{\sin x}}.}
Now, using the Quotient Rule, we have
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle {\begin{array}{rcl}\displaystyle {{\frac {d}{dx}}(\csc x)}&=&\displaystyle {{\frac {d}{dx}}{\bigg (}{\frac {1}{\sin x}}{\bigg )}}\\&&\\&=&\displaystyle {\frac {\sin x(1)'-1(\sin x)'}{\sin ^{2}x}}\\&&\\&=&\displaystyle {\frac {\sin x(0)-\cos x}{\sin ^{2}x}}\\&&\\&=&\displaystyle {\frac {-\cos x}{\sin ^{2}x}}\\&&\\&=&\displaystyle {-\csc x\cot x.}\end{array}}}
Using the Product Rule and Power Rule, we have
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle {\begin{array}{rcl}\displaystyle {f'(x)}&=&\displaystyle {{\frac {1}{x^{2}}}(\csc x-4)'+{\bigg (}{\frac {1}{x^{2}}}{\bigg )}'(\csc x-4)}\\&&\\&=&\displaystyle {{\frac {1}{x^{2}}}(-\csc x\cot x+0)+(-2x^{-3})(\csc x-4)}\\&&\\&=&\displaystyle {{\frac {-\csc x\cot x}{x^{2}}}+{\frac {-2(\csc x-4)}{x^{3}}}.}\end{array}}}
So, 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 f'(x)=\frac{-\csc x \cot x}{x^2}+\frac{-2(\csc x-4)}{x^3}.}
Exercise 2
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 e^{3x}\sin (2x)~dx.}
Notice that the function 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 g(x)} is the product of three functions.
We start by grouping two of the functions together. So, 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 g(x)=(2x\sin x)\sec x.}
Using the Product Rule, 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{g'(x)} & = & \displaystyle{(2x\sin x)(\sec x)'+(2x\sin x)'\sec x}\\ &&\\ & = & \displaystyle{(2x\sin x)(\tan^2 x)+(2x\sin x)'\sec x.} \end{array}}
Now, we need to use the Product Rule again. 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 \begin{array}{rcl} \displaystyle{g'(x)} & = & \displaystyle{2x\sin x\tan^2 x+(2x(\sin x)'+(2x)'\sin x)\sec x}\\ &&\\ & = & \displaystyle{2x\sin x\tan^2 x+(2x\cos x+2\sin x)\sec x.} \end{array}}
So, 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 g'(x)=2x\sin x\tan^2 x+(2x\cos x+2\sin x)\sec x.}
But, there is another way to do this problem. Notice
- 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{g(x)} & = & \displaystyle{2x\sin x\sec x}\\ &&\\ & = & \displaystyle{2x\sin x\frac{1}{\cos x}}\\ &&\\ & = & \displaystyle{2x\tan x.} \end{array}}
Now, you would only need to use the Product Rule once instead of twice.
Exercise 3
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 x\sec^2 x~dx.}
Using the Quotient Rule, 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 h'(x)=\frac{(x^2\cos x+3)(x^2\sin x+1)'-(x^2\sin x+1)(x^2\cos x+3)'}{(x^2\cos x+3)^2}.}
Now, we need to use the Product Rule. So, 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{h'(x)} & = & \displaystyle{\frac{(x^2\cos x+3)(x^2(\sin x)'+(x^2)'\sin x)-(x^2\sin x+1)(x^2(\cos x)'+(x^2)'\cos x)}{(x^2\cos x+3)^2}}\\ &&\\ & = & \displaystyle{\frac{(x^2\cos x+3)(x^2\cos x+2x\sin x)-(x^2\sin x+1)(-x^2\sin x+2x\cos x)}{(x^2\cos x+3)^2}.} \end{array}}
So, 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 h'(x)=\frac{(x^2\cos x+3)(x^2\cos x+2x\sin x)-(x^2\sin x+1)(-x^2\sin x+2x\cos x)}{(x^2\cos x+3)^2}.}
Exercise 4
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 x\sqrt{x+1}~dx.}
First, using the Quotient Rule, 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{f'(x)} & = & \displaystyle{\frac{x^2\sin x (e^x)'-e^x(x^2\sin x)'}{(x^2\sin x)^2}}\\ &&\\ & = & \displaystyle{\frac{x^2\sin x e^x - e^x(x^2\sin x)'}{x^4\sin^2 x}.} \end{array}}
Now, we need to use the Product Rule. So, 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{f'(x)} & = & \displaystyle{\frac{x^2\sin x e^x - e^x(x^2(\sin x)'+(x^2)'\sin x)}{x^4\sin^2 x}}\\ &&\\ & = & \displaystyle{\frac{x^2\sin x e^x - e^x(x^2\cos x+2x\sin x)}{x^4\sin^2 x}.} \end{array}}
So, 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 f'(x)=\frac{x^2\sin x e^x - e^x(x^2\cos x+2x\sin x)}{x^4\sin^2 x}.}
Exercise 5
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 \frac{\ln x}{x^3}~dx.}
First, using the Quotient Rule, 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{f'(x)} & = & \displaystyle{\frac{x^2\sin x (e^x)'-e^x(x^2\sin x)'}{(x^2\sin x)^2}}\\ &&\\ & = & \displaystyle{\frac{x^2\sin x e^x - e^x(x^2\sin x)'}{x^4\sin^2 x}.} \end{array}}
Now, we need to use the Product Rule. So, 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{f'(x)} & = & \displaystyle{\frac{x^2\sin x e^x - e^x(x^2(\sin x)'+(x^2)'\sin x)}{x^4\sin^2 x}}\\ &&\\ & = & \displaystyle{\frac{x^2\sin x e^x - e^x(x^2\cos x+2x\sin x)}{x^4\sin^2 x}.} \end{array}}
So, 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 f'(x)=\frac{x^2\sin x e^x - e^x(x^2\cos x+2x\sin x)}{x^4\sin^2 x}.}
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.}
First, using the Quotient Rule, 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{f'(x)} & = & \displaystyle{\frac{x^2\sin x (e^x)'-e^x(x^2\sin x)'}{(x^2\sin x)^2}}\\ &&\\ & = & \displaystyle{\frac{x^2\sin x e^x - e^x(x^2\sin x)'}{x^4\sin^2 x}.} \end{array}}
Now, we need to use the Product Rule. So, 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{f'(x)} & = & \displaystyle{\frac{x^2\sin x e^x - e^x(x^2(\sin x)'+(x^2)'\sin x)}{x^4\sin^2 x}}\\ &&\\ & = & \displaystyle{\frac{x^2\sin x e^x - e^x(x^2\cos x+2x\sin x)}{x^4\sin^2 x}.} \end{array}}
So, 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 f'(x)=\frac{x^2\sin x e^x - e^x(x^2\cos x+2x\sin x)}{x^4\sin^2 x}.}