Evaluate the following Integral (II)

  • Context: MHB 
  • Thread starter Thread starter shamieh
  • Start date Start date
  • Tags Tags
    Integral
Click For Summary

Discussion Overview

The discussion revolves around the evaluation of the integral $$\int \sin(x) e^x \, dx$$. Participants explore various methods for solving this integral, including integration by parts and alternative approaches, while expressing uncertainty about their steps and results.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • Some participants propose using integration by parts twice, starting with $$u = \sin(x)$$ and $$dv = e^x$$, leading to an expression involving $$\int e^x \cos(x) \, dx$$.
  • Others express uncertainty about the correctness of their steps and whether they are approaching the problem correctly.
  • A later reply suggests a correction regarding notation and signs, emphasizing the importance of careful application of integration by parts.
  • One participant suggests an alternative approach using complex numbers, defining $$B = \int e^x \sin(x) \, dx$$ and $$A = \int e^x \cos(x) \, dx$$, leading to a different expression for the integral.
  • There is a discussion about the final form of the integral, with some participants confirming the result as $$I = \frac{e^x \sin(x) - e^x \cos(x)}{2} + C$$.

Areas of Agreement / Disagreement

Participants generally agree on the use of integration by parts but express differing views on the correctness of their calculations and the final result. Multiple competing approaches are presented, and the discussion remains unresolved regarding the best method to evaluate the integral.

Contextual Notes

Some participants note potential mistakes in signs and notation, indicating that careful attention is needed in the application of integration techniques. There is also mention of alternative methods that may simplify the evaluation of such integrals.

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:

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 27 ·
Replies
27
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 19 ·
Replies
19
Views
5K