Calculating integral using residue

In summary: Out[15]= 0.695422 - 0. ISo you can be pretty sure that the two integrals are equal. (Note: Mathematica can get an exact answer to the second integral; it's just a pain to do so).
  • #1
~Sam~
80
0

Homework Statement


Calculate the integral
∫[itex]\frac{1}{(a+bcos^2(ϕ))^2}[/itex]dϕ from 0 to 2π a,b >0

Homework Equations



Residue theorem
Cauchy's integral formula

The Attempt at a Solution



The first thing I did was attempt to find the poles of the integral and use residue theorem to solve the integral. I've considered transforming the cosine part into it's exponential form. The problem is dealing with unknown variables a,b as I'm not sure how to deal with them. Does anyone have any ideas?
 
Last edited:
Physics news on Phys.org
  • #2
There is no problem with having a and b in the integral; your final answer will simply be expressed in terms of a and b. For example, the value of the integral might be ##2\pi ab## or ##\sqrt(ab) \pi/2## but such answers are perfectly valid. (Note: it's unlikely that either of these is the answer - I just chose some random expressions to show that the final result will [probably] depend on a and b).EDIT: Another "hint" I can give you is to just be very careful when doing the simplifying algebra. These problems can get pretty nasty in terms of algebra (not hard, but messy) and if you make a mistake it can be a pain to find it, so take your time and go through each step slowly.
 
  • #3
Tsunoyukami said:
There is no problem with having a and b in the integral; your final answer will simply be expressed in terms of a and b. For example, the value of the integral might be ##2\pi ab## or ##\sqrt(ab) \pi/2## but such answers are perfectly valid. (Note: it's unlikely that either of these is the answer - I just chose some random expressions to show that the final result will [probably] depend on a and b).


EDIT: Another "hint" I can give you is to just be very careful when doing the simplifying algebra. These problems can get pretty nasty in terms of algebra (not hard, but messy) and if you make a mistake it can be a pain to find it, so take your time and go through each step slowly.

I do understand that there's no problem with it. The thing I'm wondering is whether I'm using the correct methods. Right now I'm simply trying to identify the simple poles by trying to solve the denominator, then trying to use residues to compute the integral.
 
  • #4
My apologies - I must have misinterpreted your original post; I thought you were concerned with that fact that you had unknown variables a and b.

I would proceed with this problem in the manner you have described (that is, find the poles and apply the residue theorem or Cauchy's integral formula). I recommend the substitution ##z = e^{i\theta}## from which you should be able to write ##d\theta## and ##cos\theta## and solve for the simple poles and proceed from there.
 
  • #5
Tsunoyukami said:
My apologies - I must have misinterpreted your original post; I thought you were concerned with that fact that you had unknown variables a and b.

I would proceed with this problem in the manner you have described (that is, find the poles and apply the residue theorem or Cauchy's integral formula). I recommend the substitution ##z = e^{i\theta}## from which you should be able to write ##d\theta## and ##cos\theta## and solve for the simple poles and proceed from there.

My apologizes, it's is actually cos^2(ϕ). Edited

So i would consider using the power reduction to get (1+cos(2ϕ))/2. I can use exponential formula for cos, so now my terms [itex]\frac{b}{4}[/itex]e-2iϕ+ [itex]\frac{b}{4}[/itex]z+[itex]\frac{b}{2}[/itex]+a=0. Not sure where I can go from here to find the poles, I can rearrange to get a and b to the other side, and have the exponential terms to the left.

[itex]\frac{a}{b}[/itex]=[itex]\frac{1}{2}[/itex]([itex]\frac{1}{2}[/itex]e-2iϕ+[itex]\frac{1}{2}[/itex]e2iϕ+1)

Actually simplyfing as much as possible on the denomintor:
(a+[itex]\frac{1}{4}[/itex]b(e-iϕ+e)2)2 which looks better!

Using the suggested substituion then (a+[itex]\frac{1}{4}[/itex]b(z+[itex]\frac{1}{z}[/itex])2)2 and dϕ=[itex]\frac{dz}{iz}[/itex] From here I am not sure on how to find the poles
 
Last edited:
  • #6
You're getting there! From here all you have to do is solve it - just keep going! You can simplify that expression by expanding the inner bracket and writing everything with respect to a common denominator so that you would have something like ##\frac{some stuff}{polynomial in z}##.

$$\int_{0}^{2\pi} \frac{1}{(a +bcos^{2}\phi)^{2}} d\phi$$

You can make my suggested substitution immediately. ##z = e^{i\phi}## so ##dz = ie^{i\phi} d\phi = iz d\phi \rightarrow d\phi = \frac{1}{iz} dz##. From Euler's formula we know ##cos\phi = \frac{e^{i\phi} + e^{-i\phi}}{2}## which we can write as ##cos\phi = \frac{z +\frac{1}{z}}{2} = \frac{z^{2} + 1}{2z}## so ##cos^{2}\phi = \left( \frac{e^{i\phi} + e^{-i\phi}}{2}\right)^{2} = \left( \frac{z^{2} + 1}{2z} \right )^{2}##

$$\int_{0}^{2\pi} \frac{1}{(a +bcos^{2}\phi)^{2}} d\phi = \int_{0}^{2\pi} \left( \frac{1}{a + b( \frac{z^{2} + 1}{2z})^{2}} \right)^{2} \frac {1}{iz} dz$$

What I have here should be equivalent to what you've done already expressed in a slightly different manner. From here you should be able to simplify things even further so that you end up with a polynomial in z in the denominator (looks like it'll be of order 4) which you can then factor to find the poles and then apply the Residue theorem. Note: I'm pretty sure what I've done is correct, but I may have made an algebra error somewhere - so if you're getting something different at the end don't worry about it too much. I'll check my work and get back to you later with corrections if I've made any algebra errors.

Good luck with the rest of the problem!

EDIT: I fixed my expression; forgot to square it at some point. Hopefully that's correct now (please be more careful than me!)
 
Last edited:
  • #7
Often when you have a messy integral, you can check your work at each step numerically before going to the next step. For example, the two integrals above, I use Mathematica:

Code:
In[12]:= a = 2;
b = 3;
NIntegrate[1/(a + b Cos[t]^2)^2, {t, 0, 2 \[Pi]}]
NIntegrate[(1/(a + b ((z^2 + 1)/(2 z))))^2 1/(I z) I Exp[I t] /. 
  z -> Exp[I t], {t, 0, 2 \[Pi]}]

Out[14]= 0.695421

During evaluation of In[12]:= NIntegrate::ncvb: NIntegrate failed to converge to prescribed accuracy after 9 recursive bisections in t near {t} = {2.30701}. NIntegrate obtained 2181.77 +7.73309*10^-10 I
 and 1522.4410650043299` for the integral and error estimates. >>

Out[15]= 2181.77 + 7.73309*10^-10 I

That means likely there is an error.
 

Related to Calculating integral using residue

What is the concept of calculating an integral using residue?

The residue theorem is a method for evaluating integrals of complex functions. It states that if a function is analytic except for isolated singularities inside a closed curve, the integral of the function around the curve is equal to the sum of the residues of the singularities inside the curve.

What is a residue and how is it calculated?

A residue is the coefficient of the term with degree -1 in the Laurent series expansion of a complex function around a singularity. It is calculated by finding the limit of the function as it approaches the singularity.

Can the residue theorem be used to evaluate all integrals?

No, the residue theorem can only be used for integrals of complex functions that have isolated singularities. It cannot be used for integrals with non-isolated singularities or functions that are not analytic.

What is the advantage of using the residue theorem to calculate integrals?

The residue theorem allows for the evaluation of otherwise difficult integrals using the simple calculation of residues. It also provides a faster and more efficient method compared to other integration techniques.

Can the residue theorem be applied to integrals with multiple variables?

No, the residue theorem only applies to integrals of complex functions with one variable. It cannot be extended to integrals with multiple variables.

Similar threads

  • Calculus and Beyond Homework Help
Replies
3
Views
878
  • Calculus and Beyond Homework Help
Replies
2
Views
902
  • Calculus and Beyond Homework Help
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
327
  • Calculus and Beyond Homework Help
Replies
4
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
997
  • Calculus and Beyond Homework Help
Replies
2
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
960
  • Calculus and Beyond Homework Help
Replies
1
Views
2K
Back
Top