Difference between revisions of "Integration by Parts"

From Grad Wiki
Jump to navigation Jump to search
Line 20: Line 20:
 
Recall from the product rule,  
 
Recall from the product rule,  
  
::<math>(fg)'=f'g+g'f.</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 &nbsp;<math>u=f(x)</math>&nbsp; and &nbsp;<math>dv=g'(x)~dx.</math>
 +
 
 +
Then, &nbsp;<math>du=f'(x)~dx</math>&nbsp; and &nbsp;<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==
Calculate &nbsp;<math style="vertical-align: -5px">f'(x).</math>
+
Evaluate the following integrals.
  
'''1)''' &nbsp; <math style="vertical-align: -7px">f(x)=(x^2+x+1)(x^3+2x^2+4)</math>
+
'''1)''' &nbsp; <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)''' &nbsp; <math style="vertical-align: -14px">f(x)=\frac{x^2+x^3}{x}</math>
+
'''2)''' &nbsp; <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)''' &nbsp; <math style="vertical-align: -14px">f(x)=\frac{\sin x}{\cos x}</math>
+
'''3)''' &nbsp; <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 ==
  
Calculate the derivative of &nbsp;<math style="vertical-align: -13px">f(x)=\frac{1}{x^2}(\csc x-4).</math>
+
Evaluate &nbsp;<math style="vertical-align: -13px">\int x^3 e^{-2x}~dx.</math>
  
 
First, we need to know the derivative of &nbsp;<math style="vertical-align: 0px">\csc x.</math>&nbsp; Recall
 
First, we need to know the derivative of &nbsp;<math style="vertical-align: 0px">\csc x.</math>&nbsp; Recall
Line 197: Line 221:
 
== Exercise 2 ==
 
== Exercise 2 ==
  
Calculate the derivative of &nbsp;<math style="vertical-align: -5px">g(x)=2x\sin x \sec x.</math>
+
Evaluate &nbsp;<math style="vertical-align: -5px">\int e^{3x}\sin (2x)~dx.</math>
  
 
Notice that the function &nbsp;<math style="vertical-align: -5px">g(x)</math>&nbsp; is the product of three functions.  
 
Notice that the function &nbsp;<math style="vertical-align: -5px">g(x)</math>&nbsp; is the product of three functions.  
Line 236: Line 260:
 
== Exercise 3 ==
 
== Exercise 3 ==
  
Calculate the derivative of &nbsp;<math style="vertical-align: -16px">h(x)=\frac{x^2\sin x+1}{x^2\cos x+3}.</math>
+
Evaluate &nbsp;<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 ==
  
Calculate the derivative of &nbsp;<math style="vertical-align: -14px">f(x)=\frac{e^x}{x^2\sin x}.</math>
+
Evaluate  &nbsp;<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 &nbsp;<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  &nbsp;<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 16: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:  
       
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
       

3)  

Solution:  
Using the Quotient Rule, we get
since    and  
Since    we have
Final Answer:  
       

Exercise 1

Evaluate  

First, we need to know the derivative of    Recall

Now, using the Quotient Rule, we have

Using the Product Rule and Power Rule, we have

So, we have

Exercise 2

Evaluate  

Notice that the function    is the product of three functions.

We start by grouping two of the functions together. So, we have  

Using the Product Rule, we get

Now, we need to use the Product Rule again. So,

So, we have

But, there is another way to do this problem. Notice

Now, you would only need to use the Product Rule once instead of twice.

Exercise 3

Evaluate  

Using the Quotient Rule, we have

Now, we need to use the Product Rule. So, we have

So, we get

Exercise 4

Evaluate  

First, using the Quotient Rule, we have

Now, we need to use the Product Rule. So, we have

So, we have

Exercise 5

Evaluate  

First, using the Quotient Rule, we have

Now, we need to use the Product Rule. So, we have

So, we have

Exercise 6

Evaluate  

First, using the Quotient Rule, we have

Now, we need to use the Product Rule. So, we have

So, we have