.How would you evaluate this integral?

  • Context: Graduate 
  • Thread starter Thread starter Doom of Doom
  • Start date Start date
  • Tags Tags
    Integral
Click For Summary

Discussion Overview

The discussion revolves around evaluating the integral \(\int_{0}^{2\pi} \frac{dx}{1+e^{\sin(x)}}\). Participants explore various methods, including substitution, complex analysis, and series expansion, while expressing uncertainty and differing approaches.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant suggests using the substitution \(u = \sin(x)\) to transform the integral, leading to a different form involving \(\frac{1}{1+e^u}\) and integration by parts.
  • Another participant proposes a contour integral approach using complex analysis, indicating that the integral can be evaluated using the residue theorem.
  • A different participant claims to have found a way to evaluate the integral without complex analysis, arriving at the result of \(\pi\) by demonstrating that a related function is odd.
  • One participant mentions obtaining a power series expansion that also suggests the value is \(\pi\), accurate to a very small error margin.
  • Another participant breaks down the integral into two parts, showing that it can be expressed as the sum of two integrals, leading to a simplification that confirms the result as \(\pi\).
  • A participant expresses admiration for the variety of methods presented, particularly favoring the approach of another contributor.

Areas of Agreement / Disagreement

Participants present multiple competing methods for evaluating the integral, with some arriving at the same conclusion of \(\pi\) while others explore different approaches. The discussion remains unresolved regarding the best method, as various techniques are still under consideration.

Contextual Notes

Some methods rely on specific assumptions about the functions involved, and the discussion includes various mathematical transformations that may not be universally accepted without further validation.

Doom of Doom
Messages
85
Reaction score
0
[tex]\int_{0}^{2\pi} \frac{dx}{1+e^{sin(x)}}[/tex]

How would you evaluate this integral? Where do you even start?
 
Physics news on Phys.org
Well, we know that [tex]\int \frac{dx}{1 + x^{2}} = arctan(x) + C[/tex].

How can we think of [tex]e^{sin(x)}[/tex] as a term that's been squared?
 
hotcommodity said:
Well, we know that [tex]\int \frac{dx}{1 + x^{2}} = arctan(x) + C[/tex].

How can we think of [tex]e^{sin(x)}[/tex] as a term that's been squared?

No idea :(

I would have let u=sin x, so the integral becomes [tex]\int \frac{1}{1+e^u} \frac{du}{\sqrt{1-u^2}}[/tex] then did integration by parts.
 
I was completely wrong about using [tex]\int \frac{dx}{1 + x^{2}} = arctan(x) + C[/tex].

I tried evaluating the integral using my TI-89, but it wouldn't evaluate it unless I put in endpoints.
 
Doom of Doom said:
[tex]\int_{0}^{2\pi} \frac{dx}{1+e^{sin(x)}}[/tex]

How would you evaluate this integral? Where do you even start?

I would try the following. Put [tex]z=\exp\left(i x\right)[/tex]. The integral then becomes:

[tex]\oint\frac{1}{1+\exp\left(\frac{z-z^{-1}}{2i}\right)}\frac{dz}{iz}[/tex]

where the contour integral is over the unit circle in the complex plane. Next, use the residue theorem.
 
Actually, I think I found a way to do this without using complex analysis.
The answer is pi.

Let [tex]f(x) = \frac{1}{1+e^{sin(x)}}[/tex] and [tex]g(x)=f(x-\pi)-\frac{1}{2} = \frac{1}{1+e^{sin(x-\pi)}}-\frac{1}{2}[/tex].

I will now show that g(x) is an odd function on the interval [tex]\left[-\pi,\pi\right][/tex]. For this to be true, I need g(x)=-g(-x), or g(x)+g(-x)=0.

Using the fact that sin(x-pi)=-sin(x) and sin(-x-pi)=sin(x),

[tex]g(x)+g(-x)=[/tex]

[tex]=\frac{1}{1+e^{sin(x-\pi)}}-\frac{1}{2}+\frac{1}{1+e^{sin(-x-\pi)}}-\frac{1}{2}[/tex]

[tex]=\frac{1}{1+e^{-sin(x)}}+\frac{1}{1+e^{sin(x)}}-1[/tex]

[tex]=\frac{1+e^{sin(x)}+1+e^{-sin(x)}}{(1+e^{-sin(x)})(1+e^{sin(x)})}-1[/tex]

[tex]=\frac{2+e^{sin(x)}+e^{-sin(x)}}{1+e^{sin(x)}+e^{-sin(x)}+1}-1[/tex]

[tex]=1-1=0[/tex]

Therefore, g(x) is odd, which implies that [tex]\int_{0}^{2\pi}g(x+\pi) dx=0[/tex].


Because [tex]f(x)=g(x+\pi)+\frac{1}{2}[/tex],

[tex]\int_{0}^{2\pi}f(x) dx[/tex] simply becomes [tex]\int_{0}^{2\pi}\frac{1}{2} dx[/tex], which is obviously pi.
 
I made it into a power series and got the value to be accurate to .0000001 and it does look like pi. :)
 
What happens here is that the integral is equal to: [tex]\int_{0}^{\pi} \frac{dx}{1+e^{sin(x)}}+[/tex] [tex]\int_{0}^{\pi} \frac{dx}{1+e^{-sin(x)}}[/tex]

The second integral then becomes: [tex]\int_{0}^{\pi}\frac{e^{sinx}}{1+e^{sinx}}[/tex]

Thus adding the integrals reduces to [tex]\int_{0}^{\pi}dx[/tex] as Doom of Doom has already figured out.
 
Last edited:
holy crap so many different ways to do one integral. i like doom of dooms the best
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 27 ·
Replies
27
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 29 ·
Replies
29
Views
5K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K