MHB Evaluate the following Integral (II)

  • Thread starter Thread starter shamieh
  • Start date Start date
  • Tags Tags
    Integral
shamieh
Messages
538
Reaction score
0
Evaluate the following integral

I think this is a recursion type problem, but I'm not quite sure. Again, I could be going about this problem horribly. Just need someone to check to see if this is the correct answer or if I'm even close to doing this problem right.$$\int sin(x) e^x \, dx$$

$$u = sinx$$
$$du = cosx dx$$

$$dv = e^x$$
$$v = e^x$$

$$sinx e^x - \int e^x cosx \,dx$$

$$u = e^x $$
$$du = e^x $$

$$dv = -sinx$$
$$v = cosx$$

$$sinx e^x - e^x cos x - \int cosx e^x dx$$

$$u = cosx$$
$$du = -sinx$$

$$dv = e^x$$
$$v = e^x$$

$$I = sinx e^x - cosx e^x - cosx e ^x + \int e^x sinx \, dx$$

$$2I = sinx e^x - 2cosx e^x$$

$$I = \frac{sinx e^x - 2cosx e^x}{2}$$
 
Last edited:
Physics news on Phys.org
shamieh said:
Evaluate the following integral

I think this is a recursion type problem, but I'm not quite sure. Again, I could be going about this problem horribly. Just need someone to check to see if this is the correct answer or if I'm even close to doing this problem right.$$\int sin(x) e^x \, dx$$

$$u = sinx$$
$$du = cosx dx$$

$$vu = e^x$$
$$v = e^x$$

$$sinx e^x - \int e^x cosx \,dx$$

$$u = e^x $$
$$du = e^x $$

$$vu = -sinx$$
$$v = cosx$$

$$sinx e^x - e^x cos x - \int cosx e^x dx$$

$$u = cosx$$
$$du = -sinx$$

$$vu = e^x$$
$$v = e^x$$

$$I = sinx e^x - cosx e^x - cosx e ^x + \int e^x sinx \, dx$$

$$2I = sinx e^x - 2cosx e^x$$

$$I = \frac{sinx e^x - 2cosx e^x}{2}$$

Start by writing \displaystyle \begin{align*} I = \int{e^x\sin{(x)}\,dx} \end{align*} and apply Integration by Parts twice, keeping the \displaystyle \begin{align*} e^x \end{align*} term either as "u" or as "dv" in BOTH. You will find that \displaystyle \begin{align*} I \end{align*} can be written in terms of \displaystyle \begin{align*} I \end{align*}, and thus can be solved.
 
so you're saying

$$\int sin(x) e^x
$$
$$u = sinx$$
$$du = cosx$$

$$dv = e^x $$
$$v = e^x $$

$$sinx e^x - \int e^x cos x$$

$$u = cos x$$
$$du = - sinx$$

$$dv = e^x$$
$$v = e^x $$

$$sinx e ^x - cosx e^x + \int e^x sinx$$

$$I = e^x sinx - cosx e^x + \int e^x sinx$$

so now do I just subtract the first $$e^x sinx $$ and the $$e^x sinx $$to the otehr side?
 
Last edited:
You've made a mistake with a sign, and have been a bit lax with notation concerning differentials. I would take Prove It's advice and begin with:

$$I=\int e^x\sin(x)\,dx$$

Use integration by parts where:

$$u=\sin(x)\,\therefore\,du=\cos(x)\,dx$$

$$dv=e^x\,\therefore\,v=e^x$$

And we have:

$$I=e^x\sin(x)-\int e^x\cos(x)\,dx$$

Use integration by parts again where:

$$u=\cos(x)\,\therefore\,du=-\sin(x)\,dx$$

$$dv=e^x\,\therefore\,v=e^x$$

And we have:

$$I=e^x\sin(x)-\left(e^x\cos(x)+\int e^x\sin(x)\,dx \right)$$

Since $$I=\int e^x\sin(x)\,dx$$, and distributing the negative sign, we get:

$$I=e^x\sin(x)-e^x\cos(x)-I$$

Now solve for $I$ and append the constant of integration. :D
 
so you would get $$I = \frac{e^x sinx - e^x cosx}{2} + C $$correct?
 
shamieh said:
so you would get $$I = \frac{e^x sinx - e^x cosx}{2} + C $$correct?

Yes, that's correct. :D

When you begin your study of ordinary differential equations, you will find a technique that you can use to find anti-derivatives of this type without using integration by parts, which relies on the methods used to solve inhomogeneous linear ODEs.
 
Alternative approach:

Let
$$B=\int e^x\sin(x) \,dx$$
$$A=\int e^x\cos(x)\, dx$$
We get,
$$A+iB=\int e^{x(1+i)}\,dx =\frac{e^{x(1+i)}}{1+i}+C=\frac{e^x(\cos(x)+i\sin(x))(1-i)}{2}+C$$

Since we need the imaginary part, hence:
$$B=\frac{e^x(\sin(x)-\cos(x))}{2}+C$$
 
Last edited:
Back
Top