Use the Residue Theorem to evaluate the integral:












5














$$int_{0}^{∞} frac{sqrt{x}}{x^2+2x+5} dx$$



I'm thinking of using the "keyhole" contour, but I'm not sure how to proceed from there. Please help! Thanks!










share|cite|improve this question
























  • Kelly: you may at this point wish to accept a solution if you found one useful.
    – Ron Gordon
    Apr 25 '13 at 20:58
















5














$$int_{0}^{∞} frac{sqrt{x}}{x^2+2x+5} dx$$



I'm thinking of using the "keyhole" contour, but I'm not sure how to proceed from there. Please help! Thanks!










share|cite|improve this question
























  • Kelly: you may at this point wish to accept a solution if you found one useful.
    – Ron Gordon
    Apr 25 '13 at 20:58














5












5








5


5





$$int_{0}^{∞} frac{sqrt{x}}{x^2+2x+5} dx$$



I'm thinking of using the "keyhole" contour, but I'm not sure how to proceed from there. Please help! Thanks!










share|cite|improve this question















$$int_{0}^{∞} frac{sqrt{x}}{x^2+2x+5} dx$$



I'm thinking of using the "keyhole" contour, but I'm not sure how to proceed from there. Please help! Thanks!







integration complex-analysis contour-integration residue-calculus






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jun 21 '16 at 16:10







user302007

















asked Apr 23 '13 at 8:06









Kelly

412




412












  • Kelly: you may at this point wish to accept a solution if you found one useful.
    – Ron Gordon
    Apr 25 '13 at 20:58


















  • Kelly: you may at this point wish to accept a solution if you found one useful.
    – Ron Gordon
    Apr 25 '13 at 20:58
















Kelly: you may at this point wish to accept a solution if you found one useful.
– Ron Gordon
Apr 25 '13 at 20:58




Kelly: you may at this point wish to accept a solution if you found one useful.
– Ron Gordon
Apr 25 '13 at 20:58










3 Answers
3






active

oldest

votes


















6














Since the wikipedia page on methods of contour integration is flawed (check the talk section), consequently, most explanations concerning the calculus of integrals using a "keyhole contour" on the web are flawed or not rigorous enough, in my opinion.



I'll try to explain how to do this, or at least the part that is not well explained.



As mentioned above, you can avoid all these difficulties by substituting $x=u^2$ to get rid of the square root.





Let $r$,$R$ and $alpha$ be three positive numbers, with $0<r<R$, and $0<alpha<pi$.



Let $U=Bbb Csetminus Bbb R_+$ the branch cut of $Bbb C$ along the positive real axis.



Since $U$ is star-shaped with respect to any real negative number, it's a simply connected domain of $Bbb C$.



Let $gamma=gamma_1+gamma_2+gamma_3+gamma_4$ be the contour showned on the picture below (the red part is the branch cut) :



$hspace{4cm}$ Description of a nice contour for our integral.



More precisely, we have :



$hspace{5cm}begin{array}{ccccl}gamma_1&:&[r,R]&longrightarrow& U\ &&t&longmapsto &te^{ialpha}end{array}$



$hspace{5cm}begin{array}{ccccl}gamma_2&:&[alpha,2pi-alpha]&longrightarrow& U\ &&t&longmapsto &Re^{it}end{array}$



$hspace{5cm}begin{array}{ccccl}gamma_3&:&[-R,-r]&longrightarrow& U\ &&t&longmapsto &-te^{-ialpha}end{array}$



$hspace{5cm}begin{array}{ccccl}gamma_4&:&[alpha,2pi-alpha]&longrightarrow& U\ &&t&longmapsto &re^{-it}end{array}$



We have $mathrm{Supp}(gamma)subset U$, and we can define a holomorphic square root on $U$ like this :



$hspace{1cm}$ If $z=re^{itheta}$ with $r>0$ and $0<theta<2pi$, then $sqrt{z}=sqrt{r}e^{ifrac{theta}2}$.



You can notice that the image of this function is the half open plane ${zinBbb C :mathrm{Im}(z)>0}$.





Now let : $hspace{1cm} f:zlongmapsto dfrac{sqrt{z}}{z^2+2z+5}=dfrac{sqrt{z}}{g(z)}$



Since the function $g:zlongmapsto z^2+2z+5$ is a polynomial, it's holomorphic on $U$, and since it's non constant, the function $f$ is meromorphic on $U$ as a quotient of two holomorphic functions with a non constant zero denominator.



The zeros of $g$ are $z_varepsilon=-1+2varepsilon i$ with $varepsilon=-1$ or $1$, and they are the poles of $f$. Since $mid z_varepsilonmid=sqrt 5$ and $mathrm{Re}(z_varepsilon)<0$, we will assume that $0<r<sqrt 5<R$ and $0<alpha<dfrac{pi}2$ from now on.



This way, the two poles of $f$ lie in the interior of $gamma$, and the winding number around them with respect to $gamma$ is 1.



By the residue theorem, we get :



$$int_gamma f(z)dz=2ipi sum_{varepsilonin{-1;1}} mathrm{Res}(f,z_varepsilon)$$





Let's calculate the residues of $f$ at $z_varepsilon$, for $varepsilon=-1$ and $1$.



They are simple poles of $f$, so :
$$mathrm{Res}(f,z_varepsilon)=lim_{zto z_varepsilon} (z-z_varepsilon)dfrac{sqrt z}{g(z)}=lim_{zto z_varepsilon} left[dfrac{z-z_{varepsilon}}{g(z)-g(z_varepsilon)}timessqrt{z}right]=dfrac{sqrt{z_varepsilon}}{g'(z_varepsilon)}$$



We have $g'(z_varepsilon)=2z_varepsilon+2=2(z_varepsilon+1)=4varepsilon i$.



Letting $z_varepsilon=(a+ib)^2$ with $(a,b)inBbb R^2$ quickly leads to $displaystylesqrt{z_varepsilon}=varepsilonsqrt{frac{sqrt 5-1}2}+isqrt{frac{sqrt5+1}2}$ (remember that $mathrm{Im}(sqrt{z_varepsilon})>0$)



So we get :



$$2ipisum_{varepsilonin{-1;1}}mathrm{Res}(f,z_varepsilon)=dfrac{2ipi}{4i}(sqrt{z_1}-sqrt{z_{-1}})=pisqrt{frac{sqrt 5 -1}2}$$





We found that :
$$int_gamma f(z)dz=sum_{k=1}^4 int_{gamma_k} f(z)dz=pisqrt{frac{sqrt5-1}2}$$



No we will prove that these four integrals have a limit when $r$ and $R$ are fixed and $alphalongrightarrow 0$.



Of course, you can't just put $alpha=0$ like this, because $f$ isn't defined on $Bbb R_+$ !




  • $displaystyleint_{gamma_1} f(z)dz=int_r^R f(gamma_1(t))gamma_1'(t)dt=int_r^R frac{sqrt{t}e^{ifrac{3alpha}2}}{g(te^{ialpha})}dt$


The function $displaystyleleft[0,dfracpi 2right]timesleft[r,Rright]ni (alpha,t)mapsto dfrac{sqrt te^{ifrac{3alpha}2}}{g(te^{ialpha})}$ is continuous on a compact set so we can let $alpharightarrow 0$ in the integrand (by dominated convergence) to get the limit $displaystyleint_r^R dfrac{sqrt{t}}{t^2+3t+5}dt$.



In the same manner, you can show that $displaystyleint_{gamma_3} f(z)dz$ tends to the same limit.




  • $displaystyleint_{gamma_2} f(z)dz=int_alpha^{2pi-alpha} frac{iR^{frac32}e^{ifrac{3t}2}}{g(Re^{it})}dt=int_0^{2pi}Bbb 1_{[alpha,2pi-alpha]}(t) frac{iR^{frac32}e^{ifrac{3t}2}}{g(Re^{it})}dt$


Since $displaystyleleft|1_{[alpha,2pi-alpha]}(t) frac{iR^{frac32}e^{ifrac{3t}2}}{g(Re^{it})}right|leq frac{R^{frac{3}{2}}}{mid g(Re^{it})mid}leqfrac1{sqrt{R}}$ for all $(alpha,t)inleft[0,dfrac{pi}2right]timesleft[0,2piright]$, we find that $displaystyleint_{gamma_2}f(z)dz$ tends to $displaystyleint_0^{2pi}frac{iR^{frac 32}e^{ifrac{3t}2}}{g(Re^{it})}dt$ (again using dominated convergence) when $alpha$ tends to $0$.



In the same manner, you can prove that $displaystyleint_{gamma_4} f(z)dz$ tends to $displaystyleint_0^{2pi}frac{ir^{frac32}e^{-ifrac{3t}2}}{g(re^{-it})}dt$



So we just proved that :



$$2int_r^R frac{sqrt t}{t^2+5t+2}dt+int_0^{2pi}frac{iR^{frac 32}e^{ifrac{3t}2}}{g(Re^{it})}dt+int_0^{2pi}frac{ir^{frac32}e^{-ifrac{3t}2}}{g(re^{-it})}dt=pisqrt{frac{sqrt 5 -1}2}$$



whenever $0<r<sqrt 5<R$, so you can write, in such cases :



$$int_r^R frac{sqrt t}{t^2+5t+2}dt=frac{pi}2sqrt{frac{sqrt 5-1}2}-frac 12left(int_0^{2pi}frac{iR^{frac 32}e^{ifrac{3t}2}}{g(Re^{it})}dt+int_0^{2pi}frac{ir^{frac32}e^{-ifrac{3t}2}}{g(re^{-it})}dtright)$$



Like the others before, I leave the rest to you : you have to prove that the limits of the two integrals in the parentheses are $0$ when $r$ tends to $0$ and $R$ tends to $+infty$






share|cite|improve this answer



















  • 1




    While I am impressed with the level of detail and care and follow through (+1), one reason why I do not bother going into such detail is that the OP is simply not going to appreciate it. (I could be wrong - I have been before - but somehow I doubt it.) That said, not all answers are meant for the OP, and some are meant for posterity. This is one such answer.
    – Ron Gordon
    Apr 23 '13 at 21:54










  • Excellent answer @PhilippeMalot. As usual, we have sir Gordon in an integration question :D
    – Kugelblitz
    Jun 27 '15 at 4:32



















1














The purpose of the keyhole contour is to exploit the multivalued-ness of the integrand to extract the integral value via residues. In this case, the keyhole contour is about the branch cut of the positive real axis, so that just above this cut the argument of $z$ is $0$, while below it is $2 pi$.



We assume that the integral about the outer circular arc vanishes as the radius of that arc goes to $infty$ (I leave proof to the reader), and that of the inner arc vanishes as the radius of that arc goes to zero (same).



Thus, the contour integral is



$$begin{align}oint_C dz frac{sqrt{z}}{z^2+2 z+5} &= int_0^{infty} dx frac{sqrt{x}}{x^2+2 x+5} - int_0^{infty} dx frac{sqrt{x e^{i 2 pi}}}{x^2+2 x+5}\ &= 2 int_0^{infty} dx frac{sqrt{x}}{x^2+2 x+5}end{align}$$



where $C$ is the keyhole contour. As you can see, the multi-valuedness of the square root produces a factor of two in going up and back along the real axis in this fashion.



By the residue theorem, the contour integral is equal to $i 2 pi$ times the sum of the residues of the poles inside the contour $C$. The poles are at $z_{pm} = -1 pm i 2i$. In polar form,



$$z_+ = sqrt{5} e^{i(pi-arctan{2})}$$



$$z_- = sqrt{5} e^{i (pi + arctan{2})}$$



Note that it is imperative that we get the arguments of the poles correct. These arguments must be between $0$ and $2 pi$, because that is what we assumed in getting the above expression for the real integral. Getting the quadrant of the poles incorrect will lead to an incorrect result for the residues.



Since the poles are simple, we can use the following expression for the residues:



$$text{Res}_{z=z_k} frac{f(z)}{g(z)} = frac{f(z_k)}{g'(z_k)}$$



The sum of the residues is then



$$frac{5^{1/4} e^{i pi/2 - i(arctan{2})/2}}{i 4} + frac{5^{1/4} e^{i pi/2 + i(arctan{2})/2}}{-i 4} = -ifrac{5^{1/4}}{2 sqrt{2}} sqrt{ 1-frac{1}{sqrt{5}}}$$



Therefore, taking into account the factor of $2$ next to the integral, we multiply this sum of the residues by $i pi$ and the result is



$$int_0^{infty} dx frac{sqrt{x}}{x^2+2 x+5} = frac{pi}{2 sqrt{2}} sqrt{sqrt{5}-1}$$



NB You can avoid using a keyhole contour by substituting $x=u^2$ and getting rid of the square root. In this case, you would use a semicircular contour in the upper half plane. Keep in mind, though, that the polynomial in the denominator is a quartic with four roots, two of which are within this new contour.






share|cite|improve this answer























  • I know that you explain what you did, but you can't rigorously write that the contour integral over $C$ (or $C(R,r)$) is equal to the difference of the other two integrals.
    – Philippe Malot
    Apr 23 '13 at 12:50










  • @girianshiido: Yes I can. In fact, I did. Do you mean, rather, that it looks like I am missing steps that should be explained in more detail? I do try to leave some of the steps to the OP.
    – Ron Gordon
    Apr 23 '13 at 12:53












  • I mean that $C$ is supposed to be a contour (depending on two parameters), and the right member is the limit of the left member when the two parameters tend to their respective limit (that you mentioned above). You probably don't mean that $C$ is an "infinite keyhole contour" do you?
    – Philippe Malot
    Apr 23 '13 at 13:54












  • @girianshiido: I mean what I said: that $C$ is a contour consisting of the horizontal line above the real axis in the interval $[r,R]$ another horizontal line just below the real axis, a circular arc of radius $R$ joining the outermost ends of the horizontal lines, and another circular arc of radius $r$ joining the innermost ends of the lines. In the limit as $R to infty$ and $r to 0$, the integrals over the arcs vanish. I leave it to the OP to convince herself of that. The stuff that survives is what is posted.
    – Ron Gordon
    Apr 23 '13 at 13:59










  • ...and yes, it makes perfect sense to write the contour integral as I did once the limit has been taken. Otherwise, you have no basis for expressing the original integral in terms of residues.
    – Ron Gordon
    Apr 23 '13 at 14:00



















0














This type of integral has been worked out at here. The only difference is the evaluation of residue, which I assume you can work out yourself by checking the wikipedia article.






share|cite|improve this answer























    Your Answer





    StackExchange.ifUsing("editor", function () {
    return StackExchange.using("mathjaxEditing", function () {
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    });
    });
    }, "mathjax-editing");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "69"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f370150%2fuse-the-residue-theorem-to-evaluate-the-integral%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    6














    Since the wikipedia page on methods of contour integration is flawed (check the talk section), consequently, most explanations concerning the calculus of integrals using a "keyhole contour" on the web are flawed or not rigorous enough, in my opinion.



    I'll try to explain how to do this, or at least the part that is not well explained.



    As mentioned above, you can avoid all these difficulties by substituting $x=u^2$ to get rid of the square root.





    Let $r$,$R$ and $alpha$ be three positive numbers, with $0<r<R$, and $0<alpha<pi$.



    Let $U=Bbb Csetminus Bbb R_+$ the branch cut of $Bbb C$ along the positive real axis.



    Since $U$ is star-shaped with respect to any real negative number, it's a simply connected domain of $Bbb C$.



    Let $gamma=gamma_1+gamma_2+gamma_3+gamma_4$ be the contour showned on the picture below (the red part is the branch cut) :



    $hspace{4cm}$ Description of a nice contour for our integral.



    More precisely, we have :



    $hspace{5cm}begin{array}{ccccl}gamma_1&:&[r,R]&longrightarrow& U\ &&t&longmapsto &te^{ialpha}end{array}$



    $hspace{5cm}begin{array}{ccccl}gamma_2&:&[alpha,2pi-alpha]&longrightarrow& U\ &&t&longmapsto &Re^{it}end{array}$



    $hspace{5cm}begin{array}{ccccl}gamma_3&:&[-R,-r]&longrightarrow& U\ &&t&longmapsto &-te^{-ialpha}end{array}$



    $hspace{5cm}begin{array}{ccccl}gamma_4&:&[alpha,2pi-alpha]&longrightarrow& U\ &&t&longmapsto &re^{-it}end{array}$



    We have $mathrm{Supp}(gamma)subset U$, and we can define a holomorphic square root on $U$ like this :



    $hspace{1cm}$ If $z=re^{itheta}$ with $r>0$ and $0<theta<2pi$, then $sqrt{z}=sqrt{r}e^{ifrac{theta}2}$.



    You can notice that the image of this function is the half open plane ${zinBbb C :mathrm{Im}(z)>0}$.





    Now let : $hspace{1cm} f:zlongmapsto dfrac{sqrt{z}}{z^2+2z+5}=dfrac{sqrt{z}}{g(z)}$



    Since the function $g:zlongmapsto z^2+2z+5$ is a polynomial, it's holomorphic on $U$, and since it's non constant, the function $f$ is meromorphic on $U$ as a quotient of two holomorphic functions with a non constant zero denominator.



    The zeros of $g$ are $z_varepsilon=-1+2varepsilon i$ with $varepsilon=-1$ or $1$, and they are the poles of $f$. Since $mid z_varepsilonmid=sqrt 5$ and $mathrm{Re}(z_varepsilon)<0$, we will assume that $0<r<sqrt 5<R$ and $0<alpha<dfrac{pi}2$ from now on.



    This way, the two poles of $f$ lie in the interior of $gamma$, and the winding number around them with respect to $gamma$ is 1.



    By the residue theorem, we get :



    $$int_gamma f(z)dz=2ipi sum_{varepsilonin{-1;1}} mathrm{Res}(f,z_varepsilon)$$





    Let's calculate the residues of $f$ at $z_varepsilon$, for $varepsilon=-1$ and $1$.



    They are simple poles of $f$, so :
    $$mathrm{Res}(f,z_varepsilon)=lim_{zto z_varepsilon} (z-z_varepsilon)dfrac{sqrt z}{g(z)}=lim_{zto z_varepsilon} left[dfrac{z-z_{varepsilon}}{g(z)-g(z_varepsilon)}timessqrt{z}right]=dfrac{sqrt{z_varepsilon}}{g'(z_varepsilon)}$$



    We have $g'(z_varepsilon)=2z_varepsilon+2=2(z_varepsilon+1)=4varepsilon i$.



    Letting $z_varepsilon=(a+ib)^2$ with $(a,b)inBbb R^2$ quickly leads to $displaystylesqrt{z_varepsilon}=varepsilonsqrt{frac{sqrt 5-1}2}+isqrt{frac{sqrt5+1}2}$ (remember that $mathrm{Im}(sqrt{z_varepsilon})>0$)



    So we get :



    $$2ipisum_{varepsilonin{-1;1}}mathrm{Res}(f,z_varepsilon)=dfrac{2ipi}{4i}(sqrt{z_1}-sqrt{z_{-1}})=pisqrt{frac{sqrt 5 -1}2}$$





    We found that :
    $$int_gamma f(z)dz=sum_{k=1}^4 int_{gamma_k} f(z)dz=pisqrt{frac{sqrt5-1}2}$$



    No we will prove that these four integrals have a limit when $r$ and $R$ are fixed and $alphalongrightarrow 0$.



    Of course, you can't just put $alpha=0$ like this, because $f$ isn't defined on $Bbb R_+$ !




    • $displaystyleint_{gamma_1} f(z)dz=int_r^R f(gamma_1(t))gamma_1'(t)dt=int_r^R frac{sqrt{t}e^{ifrac{3alpha}2}}{g(te^{ialpha})}dt$


    The function $displaystyleleft[0,dfracpi 2right]timesleft[r,Rright]ni (alpha,t)mapsto dfrac{sqrt te^{ifrac{3alpha}2}}{g(te^{ialpha})}$ is continuous on a compact set so we can let $alpharightarrow 0$ in the integrand (by dominated convergence) to get the limit $displaystyleint_r^R dfrac{sqrt{t}}{t^2+3t+5}dt$.



    In the same manner, you can show that $displaystyleint_{gamma_3} f(z)dz$ tends to the same limit.




    • $displaystyleint_{gamma_2} f(z)dz=int_alpha^{2pi-alpha} frac{iR^{frac32}e^{ifrac{3t}2}}{g(Re^{it})}dt=int_0^{2pi}Bbb 1_{[alpha,2pi-alpha]}(t) frac{iR^{frac32}e^{ifrac{3t}2}}{g(Re^{it})}dt$


    Since $displaystyleleft|1_{[alpha,2pi-alpha]}(t) frac{iR^{frac32}e^{ifrac{3t}2}}{g(Re^{it})}right|leq frac{R^{frac{3}{2}}}{mid g(Re^{it})mid}leqfrac1{sqrt{R}}$ for all $(alpha,t)inleft[0,dfrac{pi}2right]timesleft[0,2piright]$, we find that $displaystyleint_{gamma_2}f(z)dz$ tends to $displaystyleint_0^{2pi}frac{iR^{frac 32}e^{ifrac{3t}2}}{g(Re^{it})}dt$ (again using dominated convergence) when $alpha$ tends to $0$.



    In the same manner, you can prove that $displaystyleint_{gamma_4} f(z)dz$ tends to $displaystyleint_0^{2pi}frac{ir^{frac32}e^{-ifrac{3t}2}}{g(re^{-it})}dt$



    So we just proved that :



    $$2int_r^R frac{sqrt t}{t^2+5t+2}dt+int_0^{2pi}frac{iR^{frac 32}e^{ifrac{3t}2}}{g(Re^{it})}dt+int_0^{2pi}frac{ir^{frac32}e^{-ifrac{3t}2}}{g(re^{-it})}dt=pisqrt{frac{sqrt 5 -1}2}$$



    whenever $0<r<sqrt 5<R$, so you can write, in such cases :



    $$int_r^R frac{sqrt t}{t^2+5t+2}dt=frac{pi}2sqrt{frac{sqrt 5-1}2}-frac 12left(int_0^{2pi}frac{iR^{frac 32}e^{ifrac{3t}2}}{g(Re^{it})}dt+int_0^{2pi}frac{ir^{frac32}e^{-ifrac{3t}2}}{g(re^{-it})}dtright)$$



    Like the others before, I leave the rest to you : you have to prove that the limits of the two integrals in the parentheses are $0$ when $r$ tends to $0$ and $R$ tends to $+infty$






    share|cite|improve this answer



















    • 1




      While I am impressed with the level of detail and care and follow through (+1), one reason why I do not bother going into such detail is that the OP is simply not going to appreciate it. (I could be wrong - I have been before - but somehow I doubt it.) That said, not all answers are meant for the OP, and some are meant for posterity. This is one such answer.
      – Ron Gordon
      Apr 23 '13 at 21:54










    • Excellent answer @PhilippeMalot. As usual, we have sir Gordon in an integration question :D
      – Kugelblitz
      Jun 27 '15 at 4:32
















    6














    Since the wikipedia page on methods of contour integration is flawed (check the talk section), consequently, most explanations concerning the calculus of integrals using a "keyhole contour" on the web are flawed or not rigorous enough, in my opinion.



    I'll try to explain how to do this, or at least the part that is not well explained.



    As mentioned above, you can avoid all these difficulties by substituting $x=u^2$ to get rid of the square root.





    Let $r$,$R$ and $alpha$ be three positive numbers, with $0<r<R$, and $0<alpha<pi$.



    Let $U=Bbb Csetminus Bbb R_+$ the branch cut of $Bbb C$ along the positive real axis.



    Since $U$ is star-shaped with respect to any real negative number, it's a simply connected domain of $Bbb C$.



    Let $gamma=gamma_1+gamma_2+gamma_3+gamma_4$ be the contour showned on the picture below (the red part is the branch cut) :



    $hspace{4cm}$ Description of a nice contour for our integral.



    More precisely, we have :



    $hspace{5cm}begin{array}{ccccl}gamma_1&:&[r,R]&longrightarrow& U\ &&t&longmapsto &te^{ialpha}end{array}$



    $hspace{5cm}begin{array}{ccccl}gamma_2&:&[alpha,2pi-alpha]&longrightarrow& U\ &&t&longmapsto &Re^{it}end{array}$



    $hspace{5cm}begin{array}{ccccl}gamma_3&:&[-R,-r]&longrightarrow& U\ &&t&longmapsto &-te^{-ialpha}end{array}$



    $hspace{5cm}begin{array}{ccccl}gamma_4&:&[alpha,2pi-alpha]&longrightarrow& U\ &&t&longmapsto &re^{-it}end{array}$



    We have $mathrm{Supp}(gamma)subset U$, and we can define a holomorphic square root on $U$ like this :



    $hspace{1cm}$ If $z=re^{itheta}$ with $r>0$ and $0<theta<2pi$, then $sqrt{z}=sqrt{r}e^{ifrac{theta}2}$.



    You can notice that the image of this function is the half open plane ${zinBbb C :mathrm{Im}(z)>0}$.





    Now let : $hspace{1cm} f:zlongmapsto dfrac{sqrt{z}}{z^2+2z+5}=dfrac{sqrt{z}}{g(z)}$



    Since the function $g:zlongmapsto z^2+2z+5$ is a polynomial, it's holomorphic on $U$, and since it's non constant, the function $f$ is meromorphic on $U$ as a quotient of two holomorphic functions with a non constant zero denominator.



    The zeros of $g$ are $z_varepsilon=-1+2varepsilon i$ with $varepsilon=-1$ or $1$, and they are the poles of $f$. Since $mid z_varepsilonmid=sqrt 5$ and $mathrm{Re}(z_varepsilon)<0$, we will assume that $0<r<sqrt 5<R$ and $0<alpha<dfrac{pi}2$ from now on.



    This way, the two poles of $f$ lie in the interior of $gamma$, and the winding number around them with respect to $gamma$ is 1.



    By the residue theorem, we get :



    $$int_gamma f(z)dz=2ipi sum_{varepsilonin{-1;1}} mathrm{Res}(f,z_varepsilon)$$





    Let's calculate the residues of $f$ at $z_varepsilon$, for $varepsilon=-1$ and $1$.



    They are simple poles of $f$, so :
    $$mathrm{Res}(f,z_varepsilon)=lim_{zto z_varepsilon} (z-z_varepsilon)dfrac{sqrt z}{g(z)}=lim_{zto z_varepsilon} left[dfrac{z-z_{varepsilon}}{g(z)-g(z_varepsilon)}timessqrt{z}right]=dfrac{sqrt{z_varepsilon}}{g'(z_varepsilon)}$$



    We have $g'(z_varepsilon)=2z_varepsilon+2=2(z_varepsilon+1)=4varepsilon i$.



    Letting $z_varepsilon=(a+ib)^2$ with $(a,b)inBbb R^2$ quickly leads to $displaystylesqrt{z_varepsilon}=varepsilonsqrt{frac{sqrt 5-1}2}+isqrt{frac{sqrt5+1}2}$ (remember that $mathrm{Im}(sqrt{z_varepsilon})>0$)



    So we get :



    $$2ipisum_{varepsilonin{-1;1}}mathrm{Res}(f,z_varepsilon)=dfrac{2ipi}{4i}(sqrt{z_1}-sqrt{z_{-1}})=pisqrt{frac{sqrt 5 -1}2}$$





    We found that :
    $$int_gamma f(z)dz=sum_{k=1}^4 int_{gamma_k} f(z)dz=pisqrt{frac{sqrt5-1}2}$$



    No we will prove that these four integrals have a limit when $r$ and $R$ are fixed and $alphalongrightarrow 0$.



    Of course, you can't just put $alpha=0$ like this, because $f$ isn't defined on $Bbb R_+$ !




    • $displaystyleint_{gamma_1} f(z)dz=int_r^R f(gamma_1(t))gamma_1'(t)dt=int_r^R frac{sqrt{t}e^{ifrac{3alpha}2}}{g(te^{ialpha})}dt$


    The function $displaystyleleft[0,dfracpi 2right]timesleft[r,Rright]ni (alpha,t)mapsto dfrac{sqrt te^{ifrac{3alpha}2}}{g(te^{ialpha})}$ is continuous on a compact set so we can let $alpharightarrow 0$ in the integrand (by dominated convergence) to get the limit $displaystyleint_r^R dfrac{sqrt{t}}{t^2+3t+5}dt$.



    In the same manner, you can show that $displaystyleint_{gamma_3} f(z)dz$ tends to the same limit.




    • $displaystyleint_{gamma_2} f(z)dz=int_alpha^{2pi-alpha} frac{iR^{frac32}e^{ifrac{3t}2}}{g(Re^{it})}dt=int_0^{2pi}Bbb 1_{[alpha,2pi-alpha]}(t) frac{iR^{frac32}e^{ifrac{3t}2}}{g(Re^{it})}dt$


    Since $displaystyleleft|1_{[alpha,2pi-alpha]}(t) frac{iR^{frac32}e^{ifrac{3t}2}}{g(Re^{it})}right|leq frac{R^{frac{3}{2}}}{mid g(Re^{it})mid}leqfrac1{sqrt{R}}$ for all $(alpha,t)inleft[0,dfrac{pi}2right]timesleft[0,2piright]$, we find that $displaystyleint_{gamma_2}f(z)dz$ tends to $displaystyleint_0^{2pi}frac{iR^{frac 32}e^{ifrac{3t}2}}{g(Re^{it})}dt$ (again using dominated convergence) when $alpha$ tends to $0$.



    In the same manner, you can prove that $displaystyleint_{gamma_4} f(z)dz$ tends to $displaystyleint_0^{2pi}frac{ir^{frac32}e^{-ifrac{3t}2}}{g(re^{-it})}dt$



    So we just proved that :



    $$2int_r^R frac{sqrt t}{t^2+5t+2}dt+int_0^{2pi}frac{iR^{frac 32}e^{ifrac{3t}2}}{g(Re^{it})}dt+int_0^{2pi}frac{ir^{frac32}e^{-ifrac{3t}2}}{g(re^{-it})}dt=pisqrt{frac{sqrt 5 -1}2}$$



    whenever $0<r<sqrt 5<R$, so you can write, in such cases :



    $$int_r^R frac{sqrt t}{t^2+5t+2}dt=frac{pi}2sqrt{frac{sqrt 5-1}2}-frac 12left(int_0^{2pi}frac{iR^{frac 32}e^{ifrac{3t}2}}{g(Re^{it})}dt+int_0^{2pi}frac{ir^{frac32}e^{-ifrac{3t}2}}{g(re^{-it})}dtright)$$



    Like the others before, I leave the rest to you : you have to prove that the limits of the two integrals in the parentheses are $0$ when $r$ tends to $0$ and $R$ tends to $+infty$






    share|cite|improve this answer



















    • 1




      While I am impressed with the level of detail and care and follow through (+1), one reason why I do not bother going into such detail is that the OP is simply not going to appreciate it. (I could be wrong - I have been before - but somehow I doubt it.) That said, not all answers are meant for the OP, and some are meant for posterity. This is one such answer.
      – Ron Gordon
      Apr 23 '13 at 21:54










    • Excellent answer @PhilippeMalot. As usual, we have sir Gordon in an integration question :D
      – Kugelblitz
      Jun 27 '15 at 4:32














    6












    6








    6






    Since the wikipedia page on methods of contour integration is flawed (check the talk section), consequently, most explanations concerning the calculus of integrals using a "keyhole contour" on the web are flawed or not rigorous enough, in my opinion.



    I'll try to explain how to do this, or at least the part that is not well explained.



    As mentioned above, you can avoid all these difficulties by substituting $x=u^2$ to get rid of the square root.





    Let $r$,$R$ and $alpha$ be three positive numbers, with $0<r<R$, and $0<alpha<pi$.



    Let $U=Bbb Csetminus Bbb R_+$ the branch cut of $Bbb C$ along the positive real axis.



    Since $U$ is star-shaped with respect to any real negative number, it's a simply connected domain of $Bbb C$.



    Let $gamma=gamma_1+gamma_2+gamma_3+gamma_4$ be the contour showned on the picture below (the red part is the branch cut) :



    $hspace{4cm}$ Description of a nice contour for our integral.



    More precisely, we have :



    $hspace{5cm}begin{array}{ccccl}gamma_1&:&[r,R]&longrightarrow& U\ &&t&longmapsto &te^{ialpha}end{array}$



    $hspace{5cm}begin{array}{ccccl}gamma_2&:&[alpha,2pi-alpha]&longrightarrow& U\ &&t&longmapsto &Re^{it}end{array}$



    $hspace{5cm}begin{array}{ccccl}gamma_3&:&[-R,-r]&longrightarrow& U\ &&t&longmapsto &-te^{-ialpha}end{array}$



    $hspace{5cm}begin{array}{ccccl}gamma_4&:&[alpha,2pi-alpha]&longrightarrow& U\ &&t&longmapsto &re^{-it}end{array}$



    We have $mathrm{Supp}(gamma)subset U$, and we can define a holomorphic square root on $U$ like this :



    $hspace{1cm}$ If $z=re^{itheta}$ with $r>0$ and $0<theta<2pi$, then $sqrt{z}=sqrt{r}e^{ifrac{theta}2}$.



    You can notice that the image of this function is the half open plane ${zinBbb C :mathrm{Im}(z)>0}$.





    Now let : $hspace{1cm} f:zlongmapsto dfrac{sqrt{z}}{z^2+2z+5}=dfrac{sqrt{z}}{g(z)}$



    Since the function $g:zlongmapsto z^2+2z+5$ is a polynomial, it's holomorphic on $U$, and since it's non constant, the function $f$ is meromorphic on $U$ as a quotient of two holomorphic functions with a non constant zero denominator.



    The zeros of $g$ are $z_varepsilon=-1+2varepsilon i$ with $varepsilon=-1$ or $1$, and they are the poles of $f$. Since $mid z_varepsilonmid=sqrt 5$ and $mathrm{Re}(z_varepsilon)<0$, we will assume that $0<r<sqrt 5<R$ and $0<alpha<dfrac{pi}2$ from now on.



    This way, the two poles of $f$ lie in the interior of $gamma$, and the winding number around them with respect to $gamma$ is 1.



    By the residue theorem, we get :



    $$int_gamma f(z)dz=2ipi sum_{varepsilonin{-1;1}} mathrm{Res}(f,z_varepsilon)$$





    Let's calculate the residues of $f$ at $z_varepsilon$, for $varepsilon=-1$ and $1$.



    They are simple poles of $f$, so :
    $$mathrm{Res}(f,z_varepsilon)=lim_{zto z_varepsilon} (z-z_varepsilon)dfrac{sqrt z}{g(z)}=lim_{zto z_varepsilon} left[dfrac{z-z_{varepsilon}}{g(z)-g(z_varepsilon)}timessqrt{z}right]=dfrac{sqrt{z_varepsilon}}{g'(z_varepsilon)}$$



    We have $g'(z_varepsilon)=2z_varepsilon+2=2(z_varepsilon+1)=4varepsilon i$.



    Letting $z_varepsilon=(a+ib)^2$ with $(a,b)inBbb R^2$ quickly leads to $displaystylesqrt{z_varepsilon}=varepsilonsqrt{frac{sqrt 5-1}2}+isqrt{frac{sqrt5+1}2}$ (remember that $mathrm{Im}(sqrt{z_varepsilon})>0$)



    So we get :



    $$2ipisum_{varepsilonin{-1;1}}mathrm{Res}(f,z_varepsilon)=dfrac{2ipi}{4i}(sqrt{z_1}-sqrt{z_{-1}})=pisqrt{frac{sqrt 5 -1}2}$$





    We found that :
    $$int_gamma f(z)dz=sum_{k=1}^4 int_{gamma_k} f(z)dz=pisqrt{frac{sqrt5-1}2}$$



    No we will prove that these four integrals have a limit when $r$ and $R$ are fixed and $alphalongrightarrow 0$.



    Of course, you can't just put $alpha=0$ like this, because $f$ isn't defined on $Bbb R_+$ !




    • $displaystyleint_{gamma_1} f(z)dz=int_r^R f(gamma_1(t))gamma_1'(t)dt=int_r^R frac{sqrt{t}e^{ifrac{3alpha}2}}{g(te^{ialpha})}dt$


    The function $displaystyleleft[0,dfracpi 2right]timesleft[r,Rright]ni (alpha,t)mapsto dfrac{sqrt te^{ifrac{3alpha}2}}{g(te^{ialpha})}$ is continuous on a compact set so we can let $alpharightarrow 0$ in the integrand (by dominated convergence) to get the limit $displaystyleint_r^R dfrac{sqrt{t}}{t^2+3t+5}dt$.



    In the same manner, you can show that $displaystyleint_{gamma_3} f(z)dz$ tends to the same limit.




    • $displaystyleint_{gamma_2} f(z)dz=int_alpha^{2pi-alpha} frac{iR^{frac32}e^{ifrac{3t}2}}{g(Re^{it})}dt=int_0^{2pi}Bbb 1_{[alpha,2pi-alpha]}(t) frac{iR^{frac32}e^{ifrac{3t}2}}{g(Re^{it})}dt$


    Since $displaystyleleft|1_{[alpha,2pi-alpha]}(t) frac{iR^{frac32}e^{ifrac{3t}2}}{g(Re^{it})}right|leq frac{R^{frac{3}{2}}}{mid g(Re^{it})mid}leqfrac1{sqrt{R}}$ for all $(alpha,t)inleft[0,dfrac{pi}2right]timesleft[0,2piright]$, we find that $displaystyleint_{gamma_2}f(z)dz$ tends to $displaystyleint_0^{2pi}frac{iR^{frac 32}e^{ifrac{3t}2}}{g(Re^{it})}dt$ (again using dominated convergence) when $alpha$ tends to $0$.



    In the same manner, you can prove that $displaystyleint_{gamma_4} f(z)dz$ tends to $displaystyleint_0^{2pi}frac{ir^{frac32}e^{-ifrac{3t}2}}{g(re^{-it})}dt$



    So we just proved that :



    $$2int_r^R frac{sqrt t}{t^2+5t+2}dt+int_0^{2pi}frac{iR^{frac 32}e^{ifrac{3t}2}}{g(Re^{it})}dt+int_0^{2pi}frac{ir^{frac32}e^{-ifrac{3t}2}}{g(re^{-it})}dt=pisqrt{frac{sqrt 5 -1}2}$$



    whenever $0<r<sqrt 5<R$, so you can write, in such cases :



    $$int_r^R frac{sqrt t}{t^2+5t+2}dt=frac{pi}2sqrt{frac{sqrt 5-1}2}-frac 12left(int_0^{2pi}frac{iR^{frac 32}e^{ifrac{3t}2}}{g(Re^{it})}dt+int_0^{2pi}frac{ir^{frac32}e^{-ifrac{3t}2}}{g(re^{-it})}dtright)$$



    Like the others before, I leave the rest to you : you have to prove that the limits of the two integrals in the parentheses are $0$ when $r$ tends to $0$ and $R$ tends to $+infty$






    share|cite|improve this answer














    Since the wikipedia page on methods of contour integration is flawed (check the talk section), consequently, most explanations concerning the calculus of integrals using a "keyhole contour" on the web are flawed or not rigorous enough, in my opinion.



    I'll try to explain how to do this, or at least the part that is not well explained.



    As mentioned above, you can avoid all these difficulties by substituting $x=u^2$ to get rid of the square root.





    Let $r$,$R$ and $alpha$ be three positive numbers, with $0<r<R$, and $0<alpha<pi$.



    Let $U=Bbb Csetminus Bbb R_+$ the branch cut of $Bbb C$ along the positive real axis.



    Since $U$ is star-shaped with respect to any real negative number, it's a simply connected domain of $Bbb C$.



    Let $gamma=gamma_1+gamma_2+gamma_3+gamma_4$ be the contour showned on the picture below (the red part is the branch cut) :



    $hspace{4cm}$ Description of a nice contour for our integral.



    More precisely, we have :



    $hspace{5cm}begin{array}{ccccl}gamma_1&:&[r,R]&longrightarrow& U\ &&t&longmapsto &te^{ialpha}end{array}$



    $hspace{5cm}begin{array}{ccccl}gamma_2&:&[alpha,2pi-alpha]&longrightarrow& U\ &&t&longmapsto &Re^{it}end{array}$



    $hspace{5cm}begin{array}{ccccl}gamma_3&:&[-R,-r]&longrightarrow& U\ &&t&longmapsto &-te^{-ialpha}end{array}$



    $hspace{5cm}begin{array}{ccccl}gamma_4&:&[alpha,2pi-alpha]&longrightarrow& U\ &&t&longmapsto &re^{-it}end{array}$



    We have $mathrm{Supp}(gamma)subset U$, and we can define a holomorphic square root on $U$ like this :



    $hspace{1cm}$ If $z=re^{itheta}$ with $r>0$ and $0<theta<2pi$, then $sqrt{z}=sqrt{r}e^{ifrac{theta}2}$.



    You can notice that the image of this function is the half open plane ${zinBbb C :mathrm{Im}(z)>0}$.





    Now let : $hspace{1cm} f:zlongmapsto dfrac{sqrt{z}}{z^2+2z+5}=dfrac{sqrt{z}}{g(z)}$



    Since the function $g:zlongmapsto z^2+2z+5$ is a polynomial, it's holomorphic on $U$, and since it's non constant, the function $f$ is meromorphic on $U$ as a quotient of two holomorphic functions with a non constant zero denominator.



    The zeros of $g$ are $z_varepsilon=-1+2varepsilon i$ with $varepsilon=-1$ or $1$, and they are the poles of $f$. Since $mid z_varepsilonmid=sqrt 5$ and $mathrm{Re}(z_varepsilon)<0$, we will assume that $0<r<sqrt 5<R$ and $0<alpha<dfrac{pi}2$ from now on.



    This way, the two poles of $f$ lie in the interior of $gamma$, and the winding number around them with respect to $gamma$ is 1.



    By the residue theorem, we get :



    $$int_gamma f(z)dz=2ipi sum_{varepsilonin{-1;1}} mathrm{Res}(f,z_varepsilon)$$





    Let's calculate the residues of $f$ at $z_varepsilon$, for $varepsilon=-1$ and $1$.



    They are simple poles of $f$, so :
    $$mathrm{Res}(f,z_varepsilon)=lim_{zto z_varepsilon} (z-z_varepsilon)dfrac{sqrt z}{g(z)}=lim_{zto z_varepsilon} left[dfrac{z-z_{varepsilon}}{g(z)-g(z_varepsilon)}timessqrt{z}right]=dfrac{sqrt{z_varepsilon}}{g'(z_varepsilon)}$$



    We have $g'(z_varepsilon)=2z_varepsilon+2=2(z_varepsilon+1)=4varepsilon i$.



    Letting $z_varepsilon=(a+ib)^2$ with $(a,b)inBbb R^2$ quickly leads to $displaystylesqrt{z_varepsilon}=varepsilonsqrt{frac{sqrt 5-1}2}+isqrt{frac{sqrt5+1}2}$ (remember that $mathrm{Im}(sqrt{z_varepsilon})>0$)



    So we get :



    $$2ipisum_{varepsilonin{-1;1}}mathrm{Res}(f,z_varepsilon)=dfrac{2ipi}{4i}(sqrt{z_1}-sqrt{z_{-1}})=pisqrt{frac{sqrt 5 -1}2}$$





    We found that :
    $$int_gamma f(z)dz=sum_{k=1}^4 int_{gamma_k} f(z)dz=pisqrt{frac{sqrt5-1}2}$$



    No we will prove that these four integrals have a limit when $r$ and $R$ are fixed and $alphalongrightarrow 0$.



    Of course, you can't just put $alpha=0$ like this, because $f$ isn't defined on $Bbb R_+$ !




    • $displaystyleint_{gamma_1} f(z)dz=int_r^R f(gamma_1(t))gamma_1'(t)dt=int_r^R frac{sqrt{t}e^{ifrac{3alpha}2}}{g(te^{ialpha})}dt$


    The function $displaystyleleft[0,dfracpi 2right]timesleft[r,Rright]ni (alpha,t)mapsto dfrac{sqrt te^{ifrac{3alpha}2}}{g(te^{ialpha})}$ is continuous on a compact set so we can let $alpharightarrow 0$ in the integrand (by dominated convergence) to get the limit $displaystyleint_r^R dfrac{sqrt{t}}{t^2+3t+5}dt$.



    In the same manner, you can show that $displaystyleint_{gamma_3} f(z)dz$ tends to the same limit.




    • $displaystyleint_{gamma_2} f(z)dz=int_alpha^{2pi-alpha} frac{iR^{frac32}e^{ifrac{3t}2}}{g(Re^{it})}dt=int_0^{2pi}Bbb 1_{[alpha,2pi-alpha]}(t) frac{iR^{frac32}e^{ifrac{3t}2}}{g(Re^{it})}dt$


    Since $displaystyleleft|1_{[alpha,2pi-alpha]}(t) frac{iR^{frac32}e^{ifrac{3t}2}}{g(Re^{it})}right|leq frac{R^{frac{3}{2}}}{mid g(Re^{it})mid}leqfrac1{sqrt{R}}$ for all $(alpha,t)inleft[0,dfrac{pi}2right]timesleft[0,2piright]$, we find that $displaystyleint_{gamma_2}f(z)dz$ tends to $displaystyleint_0^{2pi}frac{iR^{frac 32}e^{ifrac{3t}2}}{g(Re^{it})}dt$ (again using dominated convergence) when $alpha$ tends to $0$.



    In the same manner, you can prove that $displaystyleint_{gamma_4} f(z)dz$ tends to $displaystyleint_0^{2pi}frac{ir^{frac32}e^{-ifrac{3t}2}}{g(re^{-it})}dt$



    So we just proved that :



    $$2int_r^R frac{sqrt t}{t^2+5t+2}dt+int_0^{2pi}frac{iR^{frac 32}e^{ifrac{3t}2}}{g(Re^{it})}dt+int_0^{2pi}frac{ir^{frac32}e^{-ifrac{3t}2}}{g(re^{-it})}dt=pisqrt{frac{sqrt 5 -1}2}$$



    whenever $0<r<sqrt 5<R$, so you can write, in such cases :



    $$int_r^R frac{sqrt t}{t^2+5t+2}dt=frac{pi}2sqrt{frac{sqrt 5-1}2}-frac 12left(int_0^{2pi}frac{iR^{frac 32}e^{ifrac{3t}2}}{g(Re^{it})}dt+int_0^{2pi}frac{ir^{frac32}e^{-ifrac{3t}2}}{g(re^{-it})}dtright)$$



    Like the others before, I leave the rest to you : you have to prove that the limits of the two integrals in the parentheses are $0$ when $r$ tends to $0$ and $R$ tends to $+infty$







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited Nov 30 at 15:02

























    answered Apr 23 '13 at 21:36









    Philippe Malot

    2,231824




    2,231824








    • 1




      While I am impressed with the level of detail and care and follow through (+1), one reason why I do not bother going into such detail is that the OP is simply not going to appreciate it. (I could be wrong - I have been before - but somehow I doubt it.) That said, not all answers are meant for the OP, and some are meant for posterity. This is one such answer.
      – Ron Gordon
      Apr 23 '13 at 21:54










    • Excellent answer @PhilippeMalot. As usual, we have sir Gordon in an integration question :D
      – Kugelblitz
      Jun 27 '15 at 4:32














    • 1




      While I am impressed with the level of detail and care and follow through (+1), one reason why I do not bother going into such detail is that the OP is simply not going to appreciate it. (I could be wrong - I have been before - but somehow I doubt it.) That said, not all answers are meant for the OP, and some are meant for posterity. This is one such answer.
      – Ron Gordon
      Apr 23 '13 at 21:54










    • Excellent answer @PhilippeMalot. As usual, we have sir Gordon in an integration question :D
      – Kugelblitz
      Jun 27 '15 at 4:32








    1




    1




    While I am impressed with the level of detail and care and follow through (+1), one reason why I do not bother going into such detail is that the OP is simply not going to appreciate it. (I could be wrong - I have been before - but somehow I doubt it.) That said, not all answers are meant for the OP, and some are meant for posterity. This is one such answer.
    – Ron Gordon
    Apr 23 '13 at 21:54




    While I am impressed with the level of detail and care and follow through (+1), one reason why I do not bother going into such detail is that the OP is simply not going to appreciate it. (I could be wrong - I have been before - but somehow I doubt it.) That said, not all answers are meant for the OP, and some are meant for posterity. This is one such answer.
    – Ron Gordon
    Apr 23 '13 at 21:54












    Excellent answer @PhilippeMalot. As usual, we have sir Gordon in an integration question :D
    – Kugelblitz
    Jun 27 '15 at 4:32




    Excellent answer @PhilippeMalot. As usual, we have sir Gordon in an integration question :D
    – Kugelblitz
    Jun 27 '15 at 4:32











    1














    The purpose of the keyhole contour is to exploit the multivalued-ness of the integrand to extract the integral value via residues. In this case, the keyhole contour is about the branch cut of the positive real axis, so that just above this cut the argument of $z$ is $0$, while below it is $2 pi$.



    We assume that the integral about the outer circular arc vanishes as the radius of that arc goes to $infty$ (I leave proof to the reader), and that of the inner arc vanishes as the radius of that arc goes to zero (same).



    Thus, the contour integral is



    $$begin{align}oint_C dz frac{sqrt{z}}{z^2+2 z+5} &= int_0^{infty} dx frac{sqrt{x}}{x^2+2 x+5} - int_0^{infty} dx frac{sqrt{x e^{i 2 pi}}}{x^2+2 x+5}\ &= 2 int_0^{infty} dx frac{sqrt{x}}{x^2+2 x+5}end{align}$$



    where $C$ is the keyhole contour. As you can see, the multi-valuedness of the square root produces a factor of two in going up and back along the real axis in this fashion.



    By the residue theorem, the contour integral is equal to $i 2 pi$ times the sum of the residues of the poles inside the contour $C$. The poles are at $z_{pm} = -1 pm i 2i$. In polar form,



    $$z_+ = sqrt{5} e^{i(pi-arctan{2})}$$



    $$z_- = sqrt{5} e^{i (pi + arctan{2})}$$



    Note that it is imperative that we get the arguments of the poles correct. These arguments must be between $0$ and $2 pi$, because that is what we assumed in getting the above expression for the real integral. Getting the quadrant of the poles incorrect will lead to an incorrect result for the residues.



    Since the poles are simple, we can use the following expression for the residues:



    $$text{Res}_{z=z_k} frac{f(z)}{g(z)} = frac{f(z_k)}{g'(z_k)}$$



    The sum of the residues is then



    $$frac{5^{1/4} e^{i pi/2 - i(arctan{2})/2}}{i 4} + frac{5^{1/4} e^{i pi/2 + i(arctan{2})/2}}{-i 4} = -ifrac{5^{1/4}}{2 sqrt{2}} sqrt{ 1-frac{1}{sqrt{5}}}$$



    Therefore, taking into account the factor of $2$ next to the integral, we multiply this sum of the residues by $i pi$ and the result is



    $$int_0^{infty} dx frac{sqrt{x}}{x^2+2 x+5} = frac{pi}{2 sqrt{2}} sqrt{sqrt{5}-1}$$



    NB You can avoid using a keyhole contour by substituting $x=u^2$ and getting rid of the square root. In this case, you would use a semicircular contour in the upper half plane. Keep in mind, though, that the polynomial in the denominator is a quartic with four roots, two of which are within this new contour.






    share|cite|improve this answer























    • I know that you explain what you did, but you can't rigorously write that the contour integral over $C$ (or $C(R,r)$) is equal to the difference of the other two integrals.
      – Philippe Malot
      Apr 23 '13 at 12:50










    • @girianshiido: Yes I can. In fact, I did. Do you mean, rather, that it looks like I am missing steps that should be explained in more detail? I do try to leave some of the steps to the OP.
      – Ron Gordon
      Apr 23 '13 at 12:53












    • I mean that $C$ is supposed to be a contour (depending on two parameters), and the right member is the limit of the left member when the two parameters tend to their respective limit (that you mentioned above). You probably don't mean that $C$ is an "infinite keyhole contour" do you?
      – Philippe Malot
      Apr 23 '13 at 13:54












    • @girianshiido: I mean what I said: that $C$ is a contour consisting of the horizontal line above the real axis in the interval $[r,R]$ another horizontal line just below the real axis, a circular arc of radius $R$ joining the outermost ends of the horizontal lines, and another circular arc of radius $r$ joining the innermost ends of the lines. In the limit as $R to infty$ and $r to 0$, the integrals over the arcs vanish. I leave it to the OP to convince herself of that. The stuff that survives is what is posted.
      – Ron Gordon
      Apr 23 '13 at 13:59










    • ...and yes, it makes perfect sense to write the contour integral as I did once the limit has been taken. Otherwise, you have no basis for expressing the original integral in terms of residues.
      – Ron Gordon
      Apr 23 '13 at 14:00
















    1














    The purpose of the keyhole contour is to exploit the multivalued-ness of the integrand to extract the integral value via residues. In this case, the keyhole contour is about the branch cut of the positive real axis, so that just above this cut the argument of $z$ is $0$, while below it is $2 pi$.



    We assume that the integral about the outer circular arc vanishes as the radius of that arc goes to $infty$ (I leave proof to the reader), and that of the inner arc vanishes as the radius of that arc goes to zero (same).



    Thus, the contour integral is



    $$begin{align}oint_C dz frac{sqrt{z}}{z^2+2 z+5} &= int_0^{infty} dx frac{sqrt{x}}{x^2+2 x+5} - int_0^{infty} dx frac{sqrt{x e^{i 2 pi}}}{x^2+2 x+5}\ &= 2 int_0^{infty} dx frac{sqrt{x}}{x^2+2 x+5}end{align}$$



    where $C$ is the keyhole contour. As you can see, the multi-valuedness of the square root produces a factor of two in going up and back along the real axis in this fashion.



    By the residue theorem, the contour integral is equal to $i 2 pi$ times the sum of the residues of the poles inside the contour $C$. The poles are at $z_{pm} = -1 pm i 2i$. In polar form,



    $$z_+ = sqrt{5} e^{i(pi-arctan{2})}$$



    $$z_- = sqrt{5} e^{i (pi + arctan{2})}$$



    Note that it is imperative that we get the arguments of the poles correct. These arguments must be between $0$ and $2 pi$, because that is what we assumed in getting the above expression for the real integral. Getting the quadrant of the poles incorrect will lead to an incorrect result for the residues.



    Since the poles are simple, we can use the following expression for the residues:



    $$text{Res}_{z=z_k} frac{f(z)}{g(z)} = frac{f(z_k)}{g'(z_k)}$$



    The sum of the residues is then



    $$frac{5^{1/4} e^{i pi/2 - i(arctan{2})/2}}{i 4} + frac{5^{1/4} e^{i pi/2 + i(arctan{2})/2}}{-i 4} = -ifrac{5^{1/4}}{2 sqrt{2}} sqrt{ 1-frac{1}{sqrt{5}}}$$



    Therefore, taking into account the factor of $2$ next to the integral, we multiply this sum of the residues by $i pi$ and the result is



    $$int_0^{infty} dx frac{sqrt{x}}{x^2+2 x+5} = frac{pi}{2 sqrt{2}} sqrt{sqrt{5}-1}$$



    NB You can avoid using a keyhole contour by substituting $x=u^2$ and getting rid of the square root. In this case, you would use a semicircular contour in the upper half plane. Keep in mind, though, that the polynomial in the denominator is a quartic with four roots, two of which are within this new contour.






    share|cite|improve this answer























    • I know that you explain what you did, but you can't rigorously write that the contour integral over $C$ (or $C(R,r)$) is equal to the difference of the other two integrals.
      – Philippe Malot
      Apr 23 '13 at 12:50










    • @girianshiido: Yes I can. In fact, I did. Do you mean, rather, that it looks like I am missing steps that should be explained in more detail? I do try to leave some of the steps to the OP.
      – Ron Gordon
      Apr 23 '13 at 12:53












    • I mean that $C$ is supposed to be a contour (depending on two parameters), and the right member is the limit of the left member when the two parameters tend to their respective limit (that you mentioned above). You probably don't mean that $C$ is an "infinite keyhole contour" do you?
      – Philippe Malot
      Apr 23 '13 at 13:54












    • @girianshiido: I mean what I said: that $C$ is a contour consisting of the horizontal line above the real axis in the interval $[r,R]$ another horizontal line just below the real axis, a circular arc of radius $R$ joining the outermost ends of the horizontal lines, and another circular arc of radius $r$ joining the innermost ends of the lines. In the limit as $R to infty$ and $r to 0$, the integrals over the arcs vanish. I leave it to the OP to convince herself of that. The stuff that survives is what is posted.
      – Ron Gordon
      Apr 23 '13 at 13:59










    • ...and yes, it makes perfect sense to write the contour integral as I did once the limit has been taken. Otherwise, you have no basis for expressing the original integral in terms of residues.
      – Ron Gordon
      Apr 23 '13 at 14:00














    1












    1








    1






    The purpose of the keyhole contour is to exploit the multivalued-ness of the integrand to extract the integral value via residues. In this case, the keyhole contour is about the branch cut of the positive real axis, so that just above this cut the argument of $z$ is $0$, while below it is $2 pi$.



    We assume that the integral about the outer circular arc vanishes as the radius of that arc goes to $infty$ (I leave proof to the reader), and that of the inner arc vanishes as the radius of that arc goes to zero (same).



    Thus, the contour integral is



    $$begin{align}oint_C dz frac{sqrt{z}}{z^2+2 z+5} &= int_0^{infty} dx frac{sqrt{x}}{x^2+2 x+5} - int_0^{infty} dx frac{sqrt{x e^{i 2 pi}}}{x^2+2 x+5}\ &= 2 int_0^{infty} dx frac{sqrt{x}}{x^2+2 x+5}end{align}$$



    where $C$ is the keyhole contour. As you can see, the multi-valuedness of the square root produces a factor of two in going up and back along the real axis in this fashion.



    By the residue theorem, the contour integral is equal to $i 2 pi$ times the sum of the residues of the poles inside the contour $C$. The poles are at $z_{pm} = -1 pm i 2i$. In polar form,



    $$z_+ = sqrt{5} e^{i(pi-arctan{2})}$$



    $$z_- = sqrt{5} e^{i (pi + arctan{2})}$$



    Note that it is imperative that we get the arguments of the poles correct. These arguments must be between $0$ and $2 pi$, because that is what we assumed in getting the above expression for the real integral. Getting the quadrant of the poles incorrect will lead to an incorrect result for the residues.



    Since the poles are simple, we can use the following expression for the residues:



    $$text{Res}_{z=z_k} frac{f(z)}{g(z)} = frac{f(z_k)}{g'(z_k)}$$



    The sum of the residues is then



    $$frac{5^{1/4} e^{i pi/2 - i(arctan{2})/2}}{i 4} + frac{5^{1/4} e^{i pi/2 + i(arctan{2})/2}}{-i 4} = -ifrac{5^{1/4}}{2 sqrt{2}} sqrt{ 1-frac{1}{sqrt{5}}}$$



    Therefore, taking into account the factor of $2$ next to the integral, we multiply this sum of the residues by $i pi$ and the result is



    $$int_0^{infty} dx frac{sqrt{x}}{x^2+2 x+5} = frac{pi}{2 sqrt{2}} sqrt{sqrt{5}-1}$$



    NB You can avoid using a keyhole contour by substituting $x=u^2$ and getting rid of the square root. In this case, you would use a semicircular contour in the upper half plane. Keep in mind, though, that the polynomial in the denominator is a quartic with four roots, two of which are within this new contour.






    share|cite|improve this answer














    The purpose of the keyhole contour is to exploit the multivalued-ness of the integrand to extract the integral value via residues. In this case, the keyhole contour is about the branch cut of the positive real axis, so that just above this cut the argument of $z$ is $0$, while below it is $2 pi$.



    We assume that the integral about the outer circular arc vanishes as the radius of that arc goes to $infty$ (I leave proof to the reader), and that of the inner arc vanishes as the radius of that arc goes to zero (same).



    Thus, the contour integral is



    $$begin{align}oint_C dz frac{sqrt{z}}{z^2+2 z+5} &= int_0^{infty} dx frac{sqrt{x}}{x^2+2 x+5} - int_0^{infty} dx frac{sqrt{x e^{i 2 pi}}}{x^2+2 x+5}\ &= 2 int_0^{infty} dx frac{sqrt{x}}{x^2+2 x+5}end{align}$$



    where $C$ is the keyhole contour. As you can see, the multi-valuedness of the square root produces a factor of two in going up and back along the real axis in this fashion.



    By the residue theorem, the contour integral is equal to $i 2 pi$ times the sum of the residues of the poles inside the contour $C$. The poles are at $z_{pm} = -1 pm i 2i$. In polar form,



    $$z_+ = sqrt{5} e^{i(pi-arctan{2})}$$



    $$z_- = sqrt{5} e^{i (pi + arctan{2})}$$



    Note that it is imperative that we get the arguments of the poles correct. These arguments must be between $0$ and $2 pi$, because that is what we assumed in getting the above expression for the real integral. Getting the quadrant of the poles incorrect will lead to an incorrect result for the residues.



    Since the poles are simple, we can use the following expression for the residues:



    $$text{Res}_{z=z_k} frac{f(z)}{g(z)} = frac{f(z_k)}{g'(z_k)}$$



    The sum of the residues is then



    $$frac{5^{1/4} e^{i pi/2 - i(arctan{2})/2}}{i 4} + frac{5^{1/4} e^{i pi/2 + i(arctan{2})/2}}{-i 4} = -ifrac{5^{1/4}}{2 sqrt{2}} sqrt{ 1-frac{1}{sqrt{5}}}$$



    Therefore, taking into account the factor of $2$ next to the integral, we multiply this sum of the residues by $i pi$ and the result is



    $$int_0^{infty} dx frac{sqrt{x}}{x^2+2 x+5} = frac{pi}{2 sqrt{2}} sqrt{sqrt{5}-1}$$



    NB You can avoid using a keyhole contour by substituting $x=u^2$ and getting rid of the square root. In this case, you would use a semicircular contour in the upper half plane. Keep in mind, though, that the polynomial in the denominator is a quartic with four roots, two of which are within this new contour.







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited Apr 23 '13 at 12:36

























    answered Apr 23 '13 at 8:33









    Ron Gordon

    122k14154263




    122k14154263












    • I know that you explain what you did, but you can't rigorously write that the contour integral over $C$ (or $C(R,r)$) is equal to the difference of the other two integrals.
      – Philippe Malot
      Apr 23 '13 at 12:50










    • @girianshiido: Yes I can. In fact, I did. Do you mean, rather, that it looks like I am missing steps that should be explained in more detail? I do try to leave some of the steps to the OP.
      – Ron Gordon
      Apr 23 '13 at 12:53












    • I mean that $C$ is supposed to be a contour (depending on two parameters), and the right member is the limit of the left member when the two parameters tend to their respective limit (that you mentioned above). You probably don't mean that $C$ is an "infinite keyhole contour" do you?
      – Philippe Malot
      Apr 23 '13 at 13:54












    • @girianshiido: I mean what I said: that $C$ is a contour consisting of the horizontal line above the real axis in the interval $[r,R]$ another horizontal line just below the real axis, a circular arc of radius $R$ joining the outermost ends of the horizontal lines, and another circular arc of radius $r$ joining the innermost ends of the lines. In the limit as $R to infty$ and $r to 0$, the integrals over the arcs vanish. I leave it to the OP to convince herself of that. The stuff that survives is what is posted.
      – Ron Gordon
      Apr 23 '13 at 13:59










    • ...and yes, it makes perfect sense to write the contour integral as I did once the limit has been taken. Otherwise, you have no basis for expressing the original integral in terms of residues.
      – Ron Gordon
      Apr 23 '13 at 14:00


















    • I know that you explain what you did, but you can't rigorously write that the contour integral over $C$ (or $C(R,r)$) is equal to the difference of the other two integrals.
      – Philippe Malot
      Apr 23 '13 at 12:50










    • @girianshiido: Yes I can. In fact, I did. Do you mean, rather, that it looks like I am missing steps that should be explained in more detail? I do try to leave some of the steps to the OP.
      – Ron Gordon
      Apr 23 '13 at 12:53












    • I mean that $C$ is supposed to be a contour (depending on two parameters), and the right member is the limit of the left member when the two parameters tend to their respective limit (that you mentioned above). You probably don't mean that $C$ is an "infinite keyhole contour" do you?
      – Philippe Malot
      Apr 23 '13 at 13:54












    • @girianshiido: I mean what I said: that $C$ is a contour consisting of the horizontal line above the real axis in the interval $[r,R]$ another horizontal line just below the real axis, a circular arc of radius $R$ joining the outermost ends of the horizontal lines, and another circular arc of radius $r$ joining the innermost ends of the lines. In the limit as $R to infty$ and $r to 0$, the integrals over the arcs vanish. I leave it to the OP to convince herself of that. The stuff that survives is what is posted.
      – Ron Gordon
      Apr 23 '13 at 13:59










    • ...and yes, it makes perfect sense to write the contour integral as I did once the limit has been taken. Otherwise, you have no basis for expressing the original integral in terms of residues.
      – Ron Gordon
      Apr 23 '13 at 14:00
















    I know that you explain what you did, but you can't rigorously write that the contour integral over $C$ (or $C(R,r)$) is equal to the difference of the other two integrals.
    – Philippe Malot
    Apr 23 '13 at 12:50




    I know that you explain what you did, but you can't rigorously write that the contour integral over $C$ (or $C(R,r)$) is equal to the difference of the other two integrals.
    – Philippe Malot
    Apr 23 '13 at 12:50












    @girianshiido: Yes I can. In fact, I did. Do you mean, rather, that it looks like I am missing steps that should be explained in more detail? I do try to leave some of the steps to the OP.
    – Ron Gordon
    Apr 23 '13 at 12:53






    @girianshiido: Yes I can. In fact, I did. Do you mean, rather, that it looks like I am missing steps that should be explained in more detail? I do try to leave some of the steps to the OP.
    – Ron Gordon
    Apr 23 '13 at 12:53














    I mean that $C$ is supposed to be a contour (depending on two parameters), and the right member is the limit of the left member when the two parameters tend to their respective limit (that you mentioned above). You probably don't mean that $C$ is an "infinite keyhole contour" do you?
    – Philippe Malot
    Apr 23 '13 at 13:54






    I mean that $C$ is supposed to be a contour (depending on two parameters), and the right member is the limit of the left member when the two parameters tend to their respective limit (that you mentioned above). You probably don't mean that $C$ is an "infinite keyhole contour" do you?
    – Philippe Malot
    Apr 23 '13 at 13:54














    @girianshiido: I mean what I said: that $C$ is a contour consisting of the horizontal line above the real axis in the interval $[r,R]$ another horizontal line just below the real axis, a circular arc of radius $R$ joining the outermost ends of the horizontal lines, and another circular arc of radius $r$ joining the innermost ends of the lines. In the limit as $R to infty$ and $r to 0$, the integrals over the arcs vanish. I leave it to the OP to convince herself of that. The stuff that survives is what is posted.
    – Ron Gordon
    Apr 23 '13 at 13:59




    @girianshiido: I mean what I said: that $C$ is a contour consisting of the horizontal line above the real axis in the interval $[r,R]$ another horizontal line just below the real axis, a circular arc of radius $R$ joining the outermost ends of the horizontal lines, and another circular arc of radius $r$ joining the innermost ends of the lines. In the limit as $R to infty$ and $r to 0$, the integrals over the arcs vanish. I leave it to the OP to convince herself of that. The stuff that survives is what is posted.
    – Ron Gordon
    Apr 23 '13 at 13:59












    ...and yes, it makes perfect sense to write the contour integral as I did once the limit has been taken. Otherwise, you have no basis for expressing the original integral in terms of residues.
    – Ron Gordon
    Apr 23 '13 at 14:00




    ...and yes, it makes perfect sense to write the contour integral as I did once the limit has been taken. Otherwise, you have no basis for expressing the original integral in terms of residues.
    – Ron Gordon
    Apr 23 '13 at 14:00











    0














    This type of integral has been worked out at here. The only difference is the evaluation of residue, which I assume you can work out yourself by checking the wikipedia article.






    share|cite|improve this answer




























      0














      This type of integral has been worked out at here. The only difference is the evaluation of residue, which I assume you can work out yourself by checking the wikipedia article.






      share|cite|improve this answer


























        0












        0








        0






        This type of integral has been worked out at here. The only difference is the evaluation of residue, which I assume you can work out yourself by checking the wikipedia article.






        share|cite|improve this answer














        This type of integral has been worked out at here. The only difference is the evaluation of residue, which I assume you can work out yourself by checking the wikipedia article.







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Apr 13 '17 at 12:20









        Community

        1




        1










        answered Apr 23 '13 at 8:17









        Bombyx mori

        13k62874




        13k62874






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Mathematics Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f370150%2fuse-the-residue-theorem-to-evaluate-the-integral%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Berounka

            Sphinx de Gizeh

            Different font size/position of beamer's navigation symbols template's content depending on regular/plain...