Integrating Sin Squared: Solve \int\frac{\sin^2 x}{e^x} dx

In summary: Repeated application of integration-by-parts is the suggested route. Denian set up the problem correctly, now just needs to proceed carefully:The problem statement is: integrate integrateIn summary, the person is trying to use the integration by parts method, but they are stuck. They ask for help and a suggestion is given.
  • #1
denian
641
0
integrate
[tex]
\int\frac{\sin^2 x}{e^x}
= \int\frac{1}{2e^x} - \frac{\cos2x}{2e^x} dx
= - \frac{1}{2}e^{-x} - \frac{1}{2}\int\frac{\cos 2x}{e^x} dx
[/tex]
im trying to use the integration by parts method, but seems like I am stuck there, doesn't reach the answer :-

[tex] -\frac{e^{-x}}{2} + \frac{e^{-x}}{10} ( cos 2x - 2 sin 2x ) + c [/tex]
 
Last edited:
Physics news on Phys.org
  • #2
write [tex] \cos(2x) = \frac{e^{2ix}+e^{-2ix}}{2} [/tex] then integrate...is should work out.
 
  • #3
i never come across that formula. can u explain?
 
  • #4
ok... i already know how to prove it. but may i know how u come across that formula?
 
  • #5
it is the expansion of the trigonometric functions in terms of complex exponentials...
 
  • #6
It's known as the Euler Formula.
http://mathworld.wolfram.com/EulerFormula.html

[tex]e^{i\theta} = \cos{\theta} + i\sin{\theta}[/tex]

And, using the even/oddness of cos/sin,

[tex]e^{-i\theta} = \cos{\theta} - i\sin{\theta}[/tex]

Which can then be combined to solve for either the sine or cosine.

cookiemonster
 
Last edited:
  • #7
I wouldn't expect that he'd be required to know anything about complex numbers for this...
 
  • #8
yeah, it doesnt. anyways thanks for the suggestion.
 
Last edited:
  • #9
bump bmp bump
 
Last edited:
  • #10
Dr Transport said:
write [tex] \cos(2x) = \frac{e^{2ix}+e^{-2ix}}{2} [/tex] then integrate...is should work out.

:confused:

Just outta interest, how do u integrate that? do you just integrate as per real numbers or are their any special complex techniques?
 
  • #11
just integrate with respect to [tex] x[/tex], the complex number [tex] i [/tex] is a constant...
 
  • #12
Repeated application of integration-by-parts is the suggested route. Denian set up the problem correctly, now just needs to proceed carefully:

Let the last integral represent [itex]I_1[/itex], ie,

[tex]I_1 = \frac{1}{2}\int\frac{\cos 2x}{e^x} dx[/tex]

and select

[tex]u = \cos 2x [/tex]

[tex]dv = e^{-x} dx[/tex]

Then

[tex]2I_1 = \int u dv = uv - \int v du [/tex]

[tex]2I_1 = -e^{-x} \cos 2x - 2 \int e^{-x} sin 2x dx [/tex]

Now repeat this process with the last integral in expression for I1, ie, let

[tex]I_2 = \int e^{-x} sin 2x dx[/tex]

Calculate via integration-by-parts and the resulting expression for [itex]I_2[/itex] should yield a trailing integral which you'll reconize as a multiple of [itex]I_1[/itex]. Substitute "[itex]I_1[/itex]" for this integral and collect terms to solve for "[itex]I_1[/itex]". Substitute this into the original expression and your done.
 
  • #13
[tex]\int\frac{\sin(x)^2}{e^x} dx =[/tex]
[tex]\int e^{-x} \sin(x)^2 dx[/tex]
Now
[tex]u=-x[/tex]
[tex]du=-dx[/tex]
and
[tex](\sin(x))^2=(-\sin(-x)^2=(\sin(-x))^2[/tex]
so
[tex]-\int e^u \sin(u)^2 du = [/tex]
[tex]-(e^u \sin(u)^2 - \int e^{u} 2 \sin(u) \cos(u) du)=[/tex]
[tex]-(e^u \sin(u)^2 - \int e^{u} 2 \sin(2u) du)=[/tex]
[tex]-(e^u \sin(u)^2 + e^{u} \cos(2u) + \int e^{u} \cos(2u))=[/tex]
[tex]-(e^u \sin(u)^2 + e^{u}(\cos^2(u) - \sin^2(u)) + \int e^{u} \cos(2u) du)=[/tex]
[tex]-e^u \cos^2(u) - \int e^{u} \cos^2(u)du + \int e^{u} \sin^2(u) du =[/tex]
[tex]-e^u \cos^2(u) - \int e^{u} du + 2 \int e^{u} \sin^2(u) du=[/tex]
so we have
[tex]\int e^{u} \sin^2{u} du = e^u \cos^2(u) + \int e^{u} du - 2 \int e^{u} \sin^2{u} du[/tex]
so
[tex]\int e^{u} \sin^2{u} du = \frac{e^u \cos^2(u) + e^u)}{3}[/tex]
so
[tex]\int\frac{\sin(x)^2}{e^x} dx = -\int e^u \sin(u)^2 du = -\frac{e^u \cos^2(u) + e^u}{3} + C[/tex]
[tex]\int\frac{\sin(x)^2}{e^x} dx = - \frac{\cos^2(x)+1}{3e^x} + C[/tex]

Of course, you should check my work etc.
 
  • #14
Dr Transport said:
just integrate with respect to [tex] x[/tex], the complex number [tex] i [/tex] is a constant...

Why does my brain just decide to switch of sometimes...

Stupid, stupid, stupid! Of course i is a constant!
 

1. What is the formula for integrating sin squared?

The formula for integrating sin squared is \int\frac{\sin^2 x}{e^x} dx = \frac{1}{2}(x - e^x\sin^2 x + c), where c is the constant of integration.

2. Why is it necessary to integrate sin squared?

Integrating sin squared is necessary in order to find the area under a curve of the function \frac{\sin^2 x}{e^x} and to solve various problems in physics and engineering that involve this function.

3. What is the technique for integrating sin squared?

The technique for integrating sin squared is to use the trigonometric identity \sin^2 x = \frac{1}{2}(1 - \cos 2x) to simplify the integral into a more manageable form.

4. Can the integral of sin squared be solved using substitution?

Yes, the integral of sin squared can be solved using substitution. One possible substitution is u = \cos 2x, which simplifies the integral to \int\frac{1 - u}{2e^{\frac{\ln(1-u)}{2}}} du.

5. How do I check if my solution for integrating sin squared is correct?

You can check if your solution for integrating sin squared is correct by taking the derivative of your answer and seeing if it matches the original function, \frac{\sin^2 x}{e^x}. You can also use an online integral calculator to verify your solution.

Similar threads

  • Introductory Physics Homework Help
Replies
19
Views
664
  • Introductory Physics Homework Help
Replies
28
Views
352
  • Introductory Physics Homework Help
Replies
25
Views
1K
  • Introductory Physics Homework Help
Replies
7
Views
665
  • Introductory Physics Homework Help
Replies
21
Views
1K
Replies
7
Views
1K
  • Introductory Physics Homework Help
Replies
6
Views
270
  • Introductory Physics Homework Help
Replies
7
Views
1K
  • Introductory Physics Homework Help
Replies
2
Views
617
  • Introductory Physics Homework Help
Replies
1
Views
202
Back
Top