Using Residue Calculus to evaluate real integrals

towanda
Messages
2
Reaction score
0
I need to calculate the definite integral of dx/(4+3cos(x)) from 0 to 2pi.

I believe that the integral from 0 to 2pi of (f(e^ix))*i*(e^ix)dx is equivalent to the integral over the unit circle of f(z)dz.
If that's true, then this problem boils down to finding f(z) so that f(z)iz=1/(4+(3/2)(z+z^-1) since cosx=(1/2)(e^ix+e^-1x).
This gives f(z)=-2i/(3z^2+8z+3) which has poles at (-4-√7)/3 and (-4+√7)/3, and only the latter lies within the unit circle, so the value of our integral ought to just be 2*pi*i*Res(f,(-4+√7)/3)=(2*pi*i)*1/((-4+√7)/3-(-4-√7)/3)=2*pi*i*(3/2√7)=6*pi/√7.

However, when I checked my result on Wolframalpha, I was off by a factor of 3. They had 2*pi/√7.

Where did I go wrong?

Note: I also tried to calculate thedefinite integral of dx/(5+4sin(x)) from 0 to 2pi and ended up off by a factor of 2 according again to Wolfram.

Please help.
 
Physics news on Phys.org
Nevermind. I found it. I had forgotten about the coefficient on z^2 when I wrote the denominator in factored form which brings an additional factor of 3 into the denominator.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top