1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Checking an Integral

  1. Mar 5, 2008 #1
    [SOLVED] Checking an Integral

    I evaluated the integral below using Cauchy's Formula but I get a different answer than what the book has. The integral is

    [tex]\int_0^{2\pi} \frac{d\theta}{a + b\cos \theta}[/tex]

    where a > b > 0. Here's what I did: I make the subsitution [itex]z = e^{i\theta}[/itex] so that [itex]a + b\cos\theta = a +b/2(z + z^{-1})[/itex] and [itex]d\theta = dz/(iz)[/itex]. Thus the integral becomes

    [tex]\int_{|z|=1} \frac{2 dz}{ibz^2 + i2az +ib}[/tex]

    which I can rewrite as

    [tex]\int_{|z|=1} \frac{2 dz}{(z - p)(z - q)}[/tex]

    where [itex]p = -a/b + \sqrt{b^2 - a^2}/(ib)[/itex] and [itex]q = -a/b - \sqrt{b^2 - a^2}/(ib)[/itex]. Now I can apply Cauchy's Formula by letting f(z) = 2/(z - p) so that the above integral equals [itex]2\pi i f(q) = 2\pi b / \sqrt{b^2 - a^2}[/itex]. Now according to the book, the answer [itex]\pi/\sqrt{a^2 - b^2}[/itex]. I rechecked my algebra and I don't see anything wrong. Is the book wrong?
  2. jcsd
  3. Mar 5, 2008 #2


    User Avatar
    Staff Emeritus
    Science Advisor

    An obvious point: you say that a> b but you are working with [itex]\sqrt{b^2- a^2}[/itex]. Are you taking into account the fact that that is imaginary?
  4. Mar 5, 2008 #3
    Does it matter? I think that a > b > 0 was given so the square root is guaranteed not be 0.
  5. Mar 6, 2008 #4

    Gib Z

    User Avatar
    Homework Helper

    Let [tex]\theta = 2 \arctan x[/tex] and check whose answer it matches up with.
  6. Mar 6, 2008 #5
    If [itex]\theta = 2 \arctan x[/itex], what is [itex]\cos \theta[/itex]?
  7. Mar 7, 2008 #6

    Gib Z

    User Avatar
    Homework Helper

    Well, [tex]\tan (2\arctan x) = \frac{2x}{1-x^2}[/tex] by using a double angle identity and inverse function relation. So then draw a right angled triangle, with 2arctan x as another angle. Then label the opposite side 2x and the adjacent side 1-x^2, and use the Pythagorean theorem for the hypotenuse. Then, read off the cosine of the angle.
  8. Mar 7, 2008 #7
    OK. With that substitution, the integral becomes

    [tex]\int_0^\infty \frac{1 + x^2}{(a-b)x^2 + (a+b)x} \, dx[/tex]

    Now how do I solve this integral?
  9. Mar 8, 2008 #8

    Gib Z

    User Avatar
    Homework Helper

    To keep it tidy, let a-b = u, a+b = v. Then mess around abit with polynomial division, partial fractions and the like.
  10. Mar 8, 2008 #9

    Gib Z

    User Avatar
    Homework Helper

    To keep it tidy, let a-b = u, a+b = v. Then mess around abit with polynomial division, partial fractions and the like.
  11. Mar 8, 2008 #10

    Gib Z

    User Avatar
    Homework Helper

    To keep it tidy, let a-b = u, a+b = v. Then mess around abit with polynomial division, partial fractions and the like.
  12. Mar 8, 2008 #11
    Using your u and v, I get that the integrand is

    [tex]\frac{u-vx}{(ux)^2 + uvx} + \frac{1}{u}[/tex]

    I've been trying to integrate the first term to no avail.
  13. Mar 8, 2008 #12
    e(ho0n3, if you look at an older post of me:


    you will find a very powerful substitution for this kind of problems. The answer can be found very fast once you understand it. This method also works for sin functions, study it, you will certainly appreciate the genius Sommerfeld was. Now the answer you gave is wrong. It should be:

    [tex]I=\frac{2\cdot \pi}{\sqrt{a^2-b^2}}[/tex]

    Or you made a typo error or the book is wrong.
  14. Mar 8, 2008 #13
    That is an interesting method. Now I have three separate answers: my answer, the books and yours. What I would like to know is: what is wrong with my method?
  15. Mar 8, 2008 #14

    Gib Z

    User Avatar
    Homework Helper

    [tex]\frac{1+x^2}{ux^2+ vx} = \frac{1}{ux^2+vx} + \frac{x}{ux + v} = \frac{1}{u (x^2 + \frac{v}{u} x)} + \left(\frac{1}{u}\right) \left(\frac{ux + (v - v)}{ux+v} \right)= \left(\frac{1}{u}\right)\left(\frac{1}{x^2+\frac{v}{u}x}\right) + \frac{1}{u} \left( 1 - \frac{v}{ux+v}\right)[/tex] would have seemed the easiest method.
    Last edited: Mar 8, 2008
  16. Mar 9, 2008 #15
    It seems I am having database errors when I try to submit a post. I need to split it up in two parts. Here's part 1

    Indeed, three different methods which all give the same result I posted earlier.
    [tex]I=\frac{2\cdot \pi}{\sqrt{a^2-b^2}}[/tex]
    So, let's look at the problems.

    The substitution in itself is correct, however if you actually apply it, you get:
    Now applying the residue theorem on the one singularity which is inside the unit circle, you arrive at the correct result.

    After applying this substitution I got the following integral:
    This can be integrated to become an atan function and applying the limits of integration again gives you the correct result.
  17. Mar 9, 2008 #16
    This is part 2

    I don't know how you got here.

    Rewriting the integral as:
    And applying the substitution:
    [tex]1+\epsilon cos(\theta)=\frac{1- \epsilon^2}{1-\epsilon cos(\gamma)}[/tex]
    You get the following integral:
    Which again gives the same result.

    Hope this clears it up.
  18. Mar 9, 2008 #17

    Gib Z

    User Avatar
    Homework Helper

    Omg he got the substitution wrong >.<" Sigh that would have been much easier.
  19. Mar 9, 2008 #18
    Would you believe that I know nothing of the residue theorem yet?

    Going back to my first post, the method I'm using is Cauchy's formula, which doesn't seem to be working. If I let f(z) = 2/(z - q) I get the negative of what I got in the first post. I'm guessing that it is because both 2/(z - p) and 2/(z - q) are not analytic inside the circle |z| = 1 which means I'm not allowed to use Cauchy's formula.

    Both p and q are in |z| <= 1 so regardless of the f I choose, it will not be analytic in |z| <= 1. No wonder my method isn't working.

    Now why would the author state a problem that can't be worked out using Cauchy's formula?
  20. Mar 9, 2008 #19
    I gave the following explanation for solving your original post.

    Now you state that you don't know the residue theorem? Strange, then I would say that this exercise is a little bit too soon for your knowledge. Don't be scared that you will never learn how to solve it, residues will be taught shortly after Cauchy. Anyway, one of the zero's is inside the unit circle. That's something you should be able to see.

    There were also two other ways for solving this integral. They are equally valid. Especially the one of Sommerfeld. Have you looked at it yet to see how powerful it is? Have you found the error in the third way for solving the integral? So, you should be able to solve it without the residue theorem.
  21. Mar 9, 2008 #20
    If one of the roots is inside the unit circle, then so is the other one. I understand this now.

    The Sommerfeld one is pretty cool. However, I don't understand why you can write [itex]1 - \epsilon \cos \theta[/itex] some other fraction involving [itex]\cos \gamma[/itex]. I messed up in the arctan substitution because I suck at algebra but I'm sure it works.

    Thank for your help coomast.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Checking an Integral
  1. Integral check (Replies: 6)

  2. Check my Integration (Replies: 2)