Difference between revisions of "009B Sample Midterm 2, Problem 4"

From Grad Wiki
Jump to navigation Jump to search
Line 42: Line 42:
 
::Hence, <math style="vertical-align: -15px">\int e^x\sin (x)~dx=\frac{e^x}{2}(\sin(x)-\cos(x))+C.</math>
 
::Hence, <math style="vertical-align: -15px">\int e^x\sin (x)~dx=\frac{e^x}{2}(\sin(x)-\cos(x))+C.</math>
 
|}
 
|}
 +
  
 
'''Solution:'''
 
'''Solution:'''
Line 47: Line 48:
 
!Step 1: &nbsp;  
 
!Step 1: &nbsp;  
 
|-
 
|-
|We proceed using integration by parts. Let <math style="vertical-align: -5px">u=\sin(2x)</math> and <math style="vertical-align: 0px">dv=e^{-2x}dx</math>. Then, <math style="vertical-align: -5px">du=2\cos(2x)dx</math> and <math style="vertical-align: -13px">v=\frac{e^{-2x}}{-2}</math>.
+
|We proceed using integration by parts. Let <math style="vertical-align: -5px">u=\sin(2x)</math> and <math style="vertical-align: 0px">dv=e^{-2x}dx.</math> Then, <math style="vertical-align: -5px">du=2\cos(2x)dx</math> and <math style="vertical-align: -13px">v=\frac{e^{-2x}}{-2}.</math>
 
|-
 
|-
 
|So, we get  
 
|So, we get  
 
|-
 
|-
| &nbsp;&nbsp; <math style="vertical-align: -14px">\int e^{-2x}\sin (2x)~dx=\frac{\sin(2x)e^{-2x}}{-2}-\int \frac{e^{-2x}2\cos(2x)~dx}{-2}=\frac{\sin(2x)e^{-2x}}{-2}+\int e^{-2x}\cos(2x)~dx</math>.
+
| &nbsp;&nbsp; <math style="vertical-align: -14px">\int e^{-2x}\sin (2x)~dx=\frac{\sin(2x)e^{-2x}}{-2}-\int \frac{e^{-2x}2\cos(2x)~dx}{-2}=\frac{\sin(2x)e^{-2x}}{-2}+\int e^{-2x}\cos(2x)~dx.</math>
 
|}
 
|}
  
Line 57: Line 58:
 
!Step 2: &nbsp;
 
!Step 2: &nbsp;
 
|-
 
|-
|Now, we need to use integration by parts again. Let <math style="vertical-align: -5px">u=\cos(2x)</math> and <math style="vertical-align: 0px">dv=e^{-2x}dx</math>. Then, <math style="vertical-align: -5px">du=-2\sin(2x)dx</math> and <math style="vertical-align: -13px">v=\frac{e^{-2x}}{-2}</math>.
+
|Now, we need to use integration by parts again. Let <math style="vertical-align: -5px">u=\cos(2x)</math> and <math style="vertical-align: 0px">dv=e^{-2x}dx.</math> Then, <math style="vertical-align: -5px">du=-2\sin(2x)dx</math> and <math style="vertical-align: -13px">v=\frac{e^{-2x}}{-2}.</math>
 
|-
 
|-
 
|So, we get  
 
|So, we get  
 
|-
 
|-
| &nbsp;&nbsp; <math style="vertical-align: -13px">\int e^{-2x}\sin (2x)~dx=\frac{\sin(2x)e^{-2x}}{-2}+\frac{\cos(2x)e^{-2x}}{-2}-\int e^{-2x}\sin(2x)~dx</math>.
+
| &nbsp;&nbsp; <math style="vertical-align: -13px">\int e^{-2x}\sin (2x)~dx=\frac{\sin(2x)e^{-2x}}{-2}+\frac{\cos(2x)e^{-2x}}{-2}-\int e^{-2x}\sin(2x)~dx.</math>
 
|-
 
|-
 
|
 
|
Line 73: Line 74:
 
|So, if we add the integral on the right to the other side of the equation, we get
 
|So, if we add the integral on the right to the other side of the equation, we get
 
|-
 
|-
| &nbsp;&nbsp; <math>2\int e^{-2x}\sin (2x)~dx=\frac{\sin(2x)e^{-2x}}{-2}+\frac{\cos(2x)e^{-2x}}{-2}</math>&thinsp;.
+
| &nbsp;&nbsp; <math>2\int e^{-2x}\sin (2x)~dx=\frac{\sin(2x)e^{-2x}}{-2}+\frac{\cos(2x)e^{-2x}}{-2}.</math>
 
|-
 
|-
 
|Now, we divide both sides by 2 to get  
 
|Now, we divide both sides by 2 to get  
 
|-
 
|-
| &nbsp;&nbsp; <math>\int e^{-2x}\sin (2x)~dx=\frac{\sin(2x)e^{-2x}}{-4}+\frac{\cos(2x)e^{-2x}}{-4}</math>&thinsp;.
+
| &nbsp;&nbsp; <math>\int e^{-2x}\sin (2x)~dx=\frac{\sin(2x)e^{-2x}}{-4}+\frac{\cos(2x)e^{-2x}}{-4}.</math>
 
|-
 
|-
|Thus, the final answer is <math style="vertical-align: -13px">\int e^{-2x}\sin (2x)~dx=\frac{e^{-2x}}{-4}((\sin(2x)+\cos(2x))+C</math>.
+
|Thus, the final answer is <math style="vertical-align: -13px">\int e^{-2x}\sin (2x)~dx=\frac{e^{-2x}}{-4}((\sin(2x)+\cos(2x))+C.</math>
 
|}
 
|}
 +
  
 
{| class="mw-collapsible mw-collapsed" style = "text-align:left;"
 
{| class="mw-collapsible mw-collapsed" style = "text-align:left;"

Revision as of 09:32, 6 February 2017

Evaluate the integral:


Foundations:  
Integration by parts tells us
How would you integrate
You could use integration by parts.
Let Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle u=\sin(x)} and Then, and
Thus, Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \int e^{x}\sin x~dx=e^{x}\sin(x)-\int e^{x}\cos(x)~dx.}
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(x)} and Then, and So,
Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle {\begin{array}{rcl}\displaystyle {\int e^{x}\sin x~dx}&=&\displaystyle {e^{x}\sin(x)-(e^{x}\cos(x)-\int -e^{x}\sin(x)~dx}\\&&\\&=&\displaystyle {e^{x}(\sin(x)-\cos(x))-\int e^{x}\sin(x)~dx.}\\\end{array}}}
Notice, we are back where we started. So, adding the last term on the right hand side to the opposite side,
we get Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle 2\int e^{x}\sin(x)~dx=e^{x}(\sin(x)-\cos(x)).}
Hence, Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \int e^{x}\sin(x)~dx={\frac {e^{x}}{2}}(\sin(x)-\cos(x))+C.}


Solution:

Step 1:  
We proceed using integration by parts. Let 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} and Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle v={\frac {e^{-2x}}{-2}}.}
So, we get
   Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \int e^{-2x}\sin(2x)~dx={\frac {\sin(2x)e^{-2x}}{-2}}-\int {\frac {e^{-2x}2\cos(2x)~dx}{-2}}={\frac {\sin(2x)e^{-2x}}{-2}}+\int e^{-2x}\cos(2x)~dx.}
Step 2:  
Now, we need to use integration by parts again. Let Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle u=\cos(2x)} and Then, Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle du=-2\sin(2x)dx} and Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle v={\frac {e^{-2x}}{-2}}.}
So, we get
   Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \int e^{-2x}\sin(2x)~dx={\frac {\sin(2x)e^{-2x}}{-2}}+{\frac {\cos(2x)e^{-2x}}{-2}}-\int e^{-2x}\sin(2x)~dx.}
Step 3:  
Notice that the integral on the right of the last equation in Step 2 is the same integral that we had at the beginning of the problem.
So, if we add the integral on the right to the other side of the equation, we get
  
Now, we divide both sides by 2 to get
   Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \int e^{-2x}\sin(2x)~dx={\frac {\sin(2x)e^{-2x}}{-4}}+{\frac {\cos(2x)e^{-2x}}{-4}}.}
Thus, the final answer is Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle \int e^{-2x}\sin(2x)~dx={\frac {e^{-2x}}{-4}}((\sin(2x)+\cos(2x))+C.}


Final Answer:  
   Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle {\frac {e^{-2x}}{-4}}((\sin(2x)+\cos(2x))+C}

Return to Sample Exam