Solving a real integral in the complex plane












0












$begingroup$


$int_0^infty frac{cos(x)}{x^2+1}dx$



Singularities: $x_{1,2}=pm i$



We want to integrate over the upper half of a circle on the complex plane. So we only consider $x_1=+i$. We can use the residue theorem.



Define $h(z)=cos(z), g(z)=x^2+1, g'(z)=2x$



Since $g(i)=0, g'(i)=2ineq 0$ and $h()=cos(i)neq 0$ we can conclude that $x_1$ is a simple pole and we can use:



$Res(f;x_1)=frac{h(x_1}{g'(x_1)}=frac{cos(i)}{2i}=frac{e^{-1}+e^1}{4i}$



Now, since the integral is from $0$ to $infty$ we can conclude that:



$int_0^infty f(x)dx=pi i cdot (frac{e^{-1}+e^1}{4i})=frac{pi}{4}(e^{-1}+e^1)$



Now, I don't have any solutions but someone told me the solution is probably $frac{pi}{2e}$, if that's right - what did I do wrong?










share|cite|improve this question









$endgroup$












  • $begingroup$
    You didn't estimate the integral over the semicircular arc. (It doesn't tend to zero!)
    $endgroup$
    – Lord Shark the Unknown
    Jan 29 at 20:02










  • $begingroup$
    You are right, I didn't. Haven't done this in a long time, forgot about it! I usually never had to actually estimate it but I could argue differently. Im gonna check that, thanks.
    $endgroup$
    – xotix
    Jan 29 at 20:35
















0












$begingroup$


$int_0^infty frac{cos(x)}{x^2+1}dx$



Singularities: $x_{1,2}=pm i$



We want to integrate over the upper half of a circle on the complex plane. So we only consider $x_1=+i$. We can use the residue theorem.



Define $h(z)=cos(z), g(z)=x^2+1, g'(z)=2x$



Since $g(i)=0, g'(i)=2ineq 0$ and $h()=cos(i)neq 0$ we can conclude that $x_1$ is a simple pole and we can use:



$Res(f;x_1)=frac{h(x_1}{g'(x_1)}=frac{cos(i)}{2i}=frac{e^{-1}+e^1}{4i}$



Now, since the integral is from $0$ to $infty$ we can conclude that:



$int_0^infty f(x)dx=pi i cdot (frac{e^{-1}+e^1}{4i})=frac{pi}{4}(e^{-1}+e^1)$



Now, I don't have any solutions but someone told me the solution is probably $frac{pi}{2e}$, if that's right - what did I do wrong?










share|cite|improve this question









$endgroup$












  • $begingroup$
    You didn't estimate the integral over the semicircular arc. (It doesn't tend to zero!)
    $endgroup$
    – Lord Shark the Unknown
    Jan 29 at 20:02










  • $begingroup$
    You are right, I didn't. Haven't done this in a long time, forgot about it! I usually never had to actually estimate it but I could argue differently. Im gonna check that, thanks.
    $endgroup$
    – xotix
    Jan 29 at 20:35














0












0








0





$begingroup$


$int_0^infty frac{cos(x)}{x^2+1}dx$



Singularities: $x_{1,2}=pm i$



We want to integrate over the upper half of a circle on the complex plane. So we only consider $x_1=+i$. We can use the residue theorem.



Define $h(z)=cos(z), g(z)=x^2+1, g'(z)=2x$



Since $g(i)=0, g'(i)=2ineq 0$ and $h()=cos(i)neq 0$ we can conclude that $x_1$ is a simple pole and we can use:



$Res(f;x_1)=frac{h(x_1}{g'(x_1)}=frac{cos(i)}{2i}=frac{e^{-1}+e^1}{4i}$



Now, since the integral is from $0$ to $infty$ we can conclude that:



$int_0^infty f(x)dx=pi i cdot (frac{e^{-1}+e^1}{4i})=frac{pi}{4}(e^{-1}+e^1)$



Now, I don't have any solutions but someone told me the solution is probably $frac{pi}{2e}$, if that's right - what did I do wrong?










share|cite|improve this question









$endgroup$




$int_0^infty frac{cos(x)}{x^2+1}dx$



Singularities: $x_{1,2}=pm i$



We want to integrate over the upper half of a circle on the complex plane. So we only consider $x_1=+i$. We can use the residue theorem.



Define $h(z)=cos(z), g(z)=x^2+1, g'(z)=2x$



Since $g(i)=0, g'(i)=2ineq 0$ and $h()=cos(i)neq 0$ we can conclude that $x_1$ is a simple pole and we can use:



$Res(f;x_1)=frac{h(x_1}{g'(x_1)}=frac{cos(i)}{2i}=frac{e^{-1}+e^1}{4i}$



Now, since the integral is from $0$ to $infty$ we can conclude that:



$int_0^infty f(x)dx=pi i cdot (frac{e^{-1}+e^1}{4i})=frac{pi}{4}(e^{-1}+e^1)$



Now, I don't have any solutions but someone told me the solution is probably $frac{pi}{2e}$, if that's right - what did I do wrong?







integration complex-analysis






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Jan 29 at 19:47









xotixxotix

291411




291411












  • $begingroup$
    You didn't estimate the integral over the semicircular arc. (It doesn't tend to zero!)
    $endgroup$
    – Lord Shark the Unknown
    Jan 29 at 20:02










  • $begingroup$
    You are right, I didn't. Haven't done this in a long time, forgot about it! I usually never had to actually estimate it but I could argue differently. Im gonna check that, thanks.
    $endgroup$
    – xotix
    Jan 29 at 20:35


















  • $begingroup$
    You didn't estimate the integral over the semicircular arc. (It doesn't tend to zero!)
    $endgroup$
    – Lord Shark the Unknown
    Jan 29 at 20:02










  • $begingroup$
    You are right, I didn't. Haven't done this in a long time, forgot about it! I usually never had to actually estimate it but I could argue differently. Im gonna check that, thanks.
    $endgroup$
    – xotix
    Jan 29 at 20:35
















$begingroup$
You didn't estimate the integral over the semicircular arc. (It doesn't tend to zero!)
$endgroup$
– Lord Shark the Unknown
Jan 29 at 20:02




$begingroup$
You didn't estimate the integral over the semicircular arc. (It doesn't tend to zero!)
$endgroup$
– Lord Shark the Unknown
Jan 29 at 20:02












$begingroup$
You are right, I didn't. Haven't done this in a long time, forgot about it! I usually never had to actually estimate it but I could argue differently. Im gonna check that, thanks.
$endgroup$
– xotix
Jan 29 at 20:35




$begingroup$
You are right, I didn't. Haven't done this in a long time, forgot about it! I usually never had to actually estimate it but I could argue differently. Im gonna check that, thanks.
$endgroup$
– xotix
Jan 29 at 20:35










1 Answer
1






active

oldest

votes


















2












$begingroup$

First of all a general note: never use trigonometric functions in such exercises. They are very hard to bound on half a circle. This is where the problems in your solution started. So instead of that define the complex function $f(z)=frac{e^{iz}}{z^2+1}$. Because the pole at the point $z=i$ is simple you can find the residue like this:



$Res(f;i)=lim_{zto i} (z-i)f(z)=lim_{zto i}frac{e^{iz}}{z+i}=frac{e^{-1}}{2i}$



So if we call our contour (for a specific radius) $Gamma$ then $int_{Gamma}f(z)dz=frac{pi}{e}$ by the residue theorem. On the other hand if you take the radius of the half circle to infinity then you can easily get that on the circle itself the limit is zero while on on the part of the contour which is on the real line the limit equals to $int_{-infty}^infty f(t)dt$. Using the identity $e^{it}=cost+isint$ we can take the real part of the integral and get that $int_{-infty}^inftyfrac{cosx}{x^2+1}dx=frac{pi}{e}$. This is an even function so the integral from $0$ to $infty$ is half of that.






share|cite|improve this answer











$endgroup$













  • $begingroup$
    What I usually do is: I choose the upper half-circle with radius R in the complex plane as my path. Then I basically have $int_{-infty}^infty f(z)dz=int_{gamma_R}f(z)dz + int_{gamma_I} f(z) dz = 2pi sum_i Res(f;z_i)$. Then if the integral over the imaginary part of the path converges to 0, we can let $Rtoinfty$ and thus basically get the integral in $mathbb R$. Usually I only had functions, where the numerator is a simple function like $z^2$. So maybe the real question is: How does the function (in the numerator) affect this approach? You hinted to that. Mind explaining that more?
    $endgroup$
    – xotix
    Jan 29 at 20:27










  • $begingroup$
    The problem is that if you take your function to be $frac{cosz}{z^2+1}$ then the limit on the imaginary part will not be equal to $0$ when $Rtoinfty$. Trigonometric functions are very hard to bound. So we use the exponential function. If we define $f(z)=frac{e^{iz}}{z^2+1}$ like I did then the limit will be equal to zero. Write $z=x+iy$. Then $e^{iz}=e^{ix}e^{-y}$. The absolute value of $e^{ix}$ is $1$ and because we are in the upper half plane ($y>0$) we have $e^{-y}<1$. Hence $|e^{iz}|leq 1$ in the upper half plane. From here it is easy to conclude that the integral of $f$ goes to zero.
    $endgroup$
    – Mark
    Jan 29 at 20:36












  • $begingroup$
    So we find the integral $int_{-infty}^inftyfrac{e^{ix}}{x^2+1}dx$. And then using the identity $e^{ix}=cosx+isinx$ and the fact that we are on the real line we take the real part and get the required integral.
    $endgroup$
    – Mark
    Jan 29 at 20:40










  • $begingroup$
    Thanks a lot, that makes it way clearer! I also noticed that I didn't know about Jordan's Lemma, which you basically used here - np? Very nice, thanks!
    $endgroup$
    – xotix
    Jan 29 at 20:56










  • $begingroup$
    Actually I didn't use Jordan's lemma. I used the most simple bound: the absolute value of the integral is bounded by the length of the contour times the maximum of the function on this countour. So in our case it is bounded by $pi R*max|frac{e^{iz}}{z^2+1}|$. As we already know on this contour $|e^{iz}|leq 1$ and from here it is easy to see that $pi R*max|frac{e^{iz}}{z^2+1}|to 0$ when $Rtoinfty$. Now, if we would have an expression like $z-i$ in the denominator then this limit wouldn't be equal to $0$. In that case we would need Jordan's lemma. (so good to know it as well)
    $endgroup$
    – Mark
    Jan 29 at 21:02














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%2f3092636%2fsolving-a-real-integral-in-the-complex-plane%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2












$begingroup$

First of all a general note: never use trigonometric functions in such exercises. They are very hard to bound on half a circle. This is where the problems in your solution started. So instead of that define the complex function $f(z)=frac{e^{iz}}{z^2+1}$. Because the pole at the point $z=i$ is simple you can find the residue like this:



$Res(f;i)=lim_{zto i} (z-i)f(z)=lim_{zto i}frac{e^{iz}}{z+i}=frac{e^{-1}}{2i}$



So if we call our contour (for a specific radius) $Gamma$ then $int_{Gamma}f(z)dz=frac{pi}{e}$ by the residue theorem. On the other hand if you take the radius of the half circle to infinity then you can easily get that on the circle itself the limit is zero while on on the part of the contour which is on the real line the limit equals to $int_{-infty}^infty f(t)dt$. Using the identity $e^{it}=cost+isint$ we can take the real part of the integral and get that $int_{-infty}^inftyfrac{cosx}{x^2+1}dx=frac{pi}{e}$. This is an even function so the integral from $0$ to $infty$ is half of that.






share|cite|improve this answer











$endgroup$













  • $begingroup$
    What I usually do is: I choose the upper half-circle with radius R in the complex plane as my path. Then I basically have $int_{-infty}^infty f(z)dz=int_{gamma_R}f(z)dz + int_{gamma_I} f(z) dz = 2pi sum_i Res(f;z_i)$. Then if the integral over the imaginary part of the path converges to 0, we can let $Rtoinfty$ and thus basically get the integral in $mathbb R$. Usually I only had functions, where the numerator is a simple function like $z^2$. So maybe the real question is: How does the function (in the numerator) affect this approach? You hinted to that. Mind explaining that more?
    $endgroup$
    – xotix
    Jan 29 at 20:27










  • $begingroup$
    The problem is that if you take your function to be $frac{cosz}{z^2+1}$ then the limit on the imaginary part will not be equal to $0$ when $Rtoinfty$. Trigonometric functions are very hard to bound. So we use the exponential function. If we define $f(z)=frac{e^{iz}}{z^2+1}$ like I did then the limit will be equal to zero. Write $z=x+iy$. Then $e^{iz}=e^{ix}e^{-y}$. The absolute value of $e^{ix}$ is $1$ and because we are in the upper half plane ($y>0$) we have $e^{-y}<1$. Hence $|e^{iz}|leq 1$ in the upper half plane. From here it is easy to conclude that the integral of $f$ goes to zero.
    $endgroup$
    – Mark
    Jan 29 at 20:36












  • $begingroup$
    So we find the integral $int_{-infty}^inftyfrac{e^{ix}}{x^2+1}dx$. And then using the identity $e^{ix}=cosx+isinx$ and the fact that we are on the real line we take the real part and get the required integral.
    $endgroup$
    – Mark
    Jan 29 at 20:40










  • $begingroup$
    Thanks a lot, that makes it way clearer! I also noticed that I didn't know about Jordan's Lemma, which you basically used here - np? Very nice, thanks!
    $endgroup$
    – xotix
    Jan 29 at 20:56










  • $begingroup$
    Actually I didn't use Jordan's lemma. I used the most simple bound: the absolute value of the integral is bounded by the length of the contour times the maximum of the function on this countour. So in our case it is bounded by $pi R*max|frac{e^{iz}}{z^2+1}|$. As we already know on this contour $|e^{iz}|leq 1$ and from here it is easy to see that $pi R*max|frac{e^{iz}}{z^2+1}|to 0$ when $Rtoinfty$. Now, if we would have an expression like $z-i$ in the denominator then this limit wouldn't be equal to $0$. In that case we would need Jordan's lemma. (so good to know it as well)
    $endgroup$
    – Mark
    Jan 29 at 21:02


















2












$begingroup$

First of all a general note: never use trigonometric functions in such exercises. They are very hard to bound on half a circle. This is where the problems in your solution started. So instead of that define the complex function $f(z)=frac{e^{iz}}{z^2+1}$. Because the pole at the point $z=i$ is simple you can find the residue like this:



$Res(f;i)=lim_{zto i} (z-i)f(z)=lim_{zto i}frac{e^{iz}}{z+i}=frac{e^{-1}}{2i}$



So if we call our contour (for a specific radius) $Gamma$ then $int_{Gamma}f(z)dz=frac{pi}{e}$ by the residue theorem. On the other hand if you take the radius of the half circle to infinity then you can easily get that on the circle itself the limit is zero while on on the part of the contour which is on the real line the limit equals to $int_{-infty}^infty f(t)dt$. Using the identity $e^{it}=cost+isint$ we can take the real part of the integral and get that $int_{-infty}^inftyfrac{cosx}{x^2+1}dx=frac{pi}{e}$. This is an even function so the integral from $0$ to $infty$ is half of that.






share|cite|improve this answer











$endgroup$













  • $begingroup$
    What I usually do is: I choose the upper half-circle with radius R in the complex plane as my path. Then I basically have $int_{-infty}^infty f(z)dz=int_{gamma_R}f(z)dz + int_{gamma_I} f(z) dz = 2pi sum_i Res(f;z_i)$. Then if the integral over the imaginary part of the path converges to 0, we can let $Rtoinfty$ and thus basically get the integral in $mathbb R$. Usually I only had functions, where the numerator is a simple function like $z^2$. So maybe the real question is: How does the function (in the numerator) affect this approach? You hinted to that. Mind explaining that more?
    $endgroup$
    – xotix
    Jan 29 at 20:27










  • $begingroup$
    The problem is that if you take your function to be $frac{cosz}{z^2+1}$ then the limit on the imaginary part will not be equal to $0$ when $Rtoinfty$. Trigonometric functions are very hard to bound. So we use the exponential function. If we define $f(z)=frac{e^{iz}}{z^2+1}$ like I did then the limit will be equal to zero. Write $z=x+iy$. Then $e^{iz}=e^{ix}e^{-y}$. The absolute value of $e^{ix}$ is $1$ and because we are in the upper half plane ($y>0$) we have $e^{-y}<1$. Hence $|e^{iz}|leq 1$ in the upper half plane. From here it is easy to conclude that the integral of $f$ goes to zero.
    $endgroup$
    – Mark
    Jan 29 at 20:36












  • $begingroup$
    So we find the integral $int_{-infty}^inftyfrac{e^{ix}}{x^2+1}dx$. And then using the identity $e^{ix}=cosx+isinx$ and the fact that we are on the real line we take the real part and get the required integral.
    $endgroup$
    – Mark
    Jan 29 at 20:40










  • $begingroup$
    Thanks a lot, that makes it way clearer! I also noticed that I didn't know about Jordan's Lemma, which you basically used here - np? Very nice, thanks!
    $endgroup$
    – xotix
    Jan 29 at 20:56










  • $begingroup$
    Actually I didn't use Jordan's lemma. I used the most simple bound: the absolute value of the integral is bounded by the length of the contour times the maximum of the function on this countour. So in our case it is bounded by $pi R*max|frac{e^{iz}}{z^2+1}|$. As we already know on this contour $|e^{iz}|leq 1$ and from here it is easy to see that $pi R*max|frac{e^{iz}}{z^2+1}|to 0$ when $Rtoinfty$. Now, if we would have an expression like $z-i$ in the denominator then this limit wouldn't be equal to $0$. In that case we would need Jordan's lemma. (so good to know it as well)
    $endgroup$
    – Mark
    Jan 29 at 21:02
















2












2








2





$begingroup$

First of all a general note: never use trigonometric functions in such exercises. They are very hard to bound on half a circle. This is where the problems in your solution started. So instead of that define the complex function $f(z)=frac{e^{iz}}{z^2+1}$. Because the pole at the point $z=i$ is simple you can find the residue like this:



$Res(f;i)=lim_{zto i} (z-i)f(z)=lim_{zto i}frac{e^{iz}}{z+i}=frac{e^{-1}}{2i}$



So if we call our contour (for a specific radius) $Gamma$ then $int_{Gamma}f(z)dz=frac{pi}{e}$ by the residue theorem. On the other hand if you take the radius of the half circle to infinity then you can easily get that on the circle itself the limit is zero while on on the part of the contour which is on the real line the limit equals to $int_{-infty}^infty f(t)dt$. Using the identity $e^{it}=cost+isint$ we can take the real part of the integral and get that $int_{-infty}^inftyfrac{cosx}{x^2+1}dx=frac{pi}{e}$. This is an even function so the integral from $0$ to $infty$ is half of that.






share|cite|improve this answer











$endgroup$



First of all a general note: never use trigonometric functions in such exercises. They are very hard to bound on half a circle. This is where the problems in your solution started. So instead of that define the complex function $f(z)=frac{e^{iz}}{z^2+1}$. Because the pole at the point $z=i$ is simple you can find the residue like this:



$Res(f;i)=lim_{zto i} (z-i)f(z)=lim_{zto i}frac{e^{iz}}{z+i}=frac{e^{-1}}{2i}$



So if we call our contour (for a specific radius) $Gamma$ then $int_{Gamma}f(z)dz=frac{pi}{e}$ by the residue theorem. On the other hand if you take the radius of the half circle to infinity then you can easily get that on the circle itself the limit is zero while on on the part of the contour which is on the real line the limit equals to $int_{-infty}^infty f(t)dt$. Using the identity $e^{it}=cost+isint$ we can take the real part of the integral and get that $int_{-infty}^inftyfrac{cosx}{x^2+1}dx=frac{pi}{e}$. This is an even function so the integral from $0$ to $infty$ is half of that.







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








edited Jan 29 at 20:07

























answered Jan 29 at 20:01









MarkMark

10.4k1622




10.4k1622












  • $begingroup$
    What I usually do is: I choose the upper half-circle with radius R in the complex plane as my path. Then I basically have $int_{-infty}^infty f(z)dz=int_{gamma_R}f(z)dz + int_{gamma_I} f(z) dz = 2pi sum_i Res(f;z_i)$. Then if the integral over the imaginary part of the path converges to 0, we can let $Rtoinfty$ and thus basically get the integral in $mathbb R$. Usually I only had functions, where the numerator is a simple function like $z^2$. So maybe the real question is: How does the function (in the numerator) affect this approach? You hinted to that. Mind explaining that more?
    $endgroup$
    – xotix
    Jan 29 at 20:27










  • $begingroup$
    The problem is that if you take your function to be $frac{cosz}{z^2+1}$ then the limit on the imaginary part will not be equal to $0$ when $Rtoinfty$. Trigonometric functions are very hard to bound. So we use the exponential function. If we define $f(z)=frac{e^{iz}}{z^2+1}$ like I did then the limit will be equal to zero. Write $z=x+iy$. Then $e^{iz}=e^{ix}e^{-y}$. The absolute value of $e^{ix}$ is $1$ and because we are in the upper half plane ($y>0$) we have $e^{-y}<1$. Hence $|e^{iz}|leq 1$ in the upper half plane. From here it is easy to conclude that the integral of $f$ goes to zero.
    $endgroup$
    – Mark
    Jan 29 at 20:36












  • $begingroup$
    So we find the integral $int_{-infty}^inftyfrac{e^{ix}}{x^2+1}dx$. And then using the identity $e^{ix}=cosx+isinx$ and the fact that we are on the real line we take the real part and get the required integral.
    $endgroup$
    – Mark
    Jan 29 at 20:40










  • $begingroup$
    Thanks a lot, that makes it way clearer! I also noticed that I didn't know about Jordan's Lemma, which you basically used here - np? Very nice, thanks!
    $endgroup$
    – xotix
    Jan 29 at 20:56










  • $begingroup$
    Actually I didn't use Jordan's lemma. I used the most simple bound: the absolute value of the integral is bounded by the length of the contour times the maximum of the function on this countour. So in our case it is bounded by $pi R*max|frac{e^{iz}}{z^2+1}|$. As we already know on this contour $|e^{iz}|leq 1$ and from here it is easy to see that $pi R*max|frac{e^{iz}}{z^2+1}|to 0$ when $Rtoinfty$. Now, if we would have an expression like $z-i$ in the denominator then this limit wouldn't be equal to $0$. In that case we would need Jordan's lemma. (so good to know it as well)
    $endgroup$
    – Mark
    Jan 29 at 21:02




















  • $begingroup$
    What I usually do is: I choose the upper half-circle with radius R in the complex plane as my path. Then I basically have $int_{-infty}^infty f(z)dz=int_{gamma_R}f(z)dz + int_{gamma_I} f(z) dz = 2pi sum_i Res(f;z_i)$. Then if the integral over the imaginary part of the path converges to 0, we can let $Rtoinfty$ and thus basically get the integral in $mathbb R$. Usually I only had functions, where the numerator is a simple function like $z^2$. So maybe the real question is: How does the function (in the numerator) affect this approach? You hinted to that. Mind explaining that more?
    $endgroup$
    – xotix
    Jan 29 at 20:27










  • $begingroup$
    The problem is that if you take your function to be $frac{cosz}{z^2+1}$ then the limit on the imaginary part will not be equal to $0$ when $Rtoinfty$. Trigonometric functions are very hard to bound. So we use the exponential function. If we define $f(z)=frac{e^{iz}}{z^2+1}$ like I did then the limit will be equal to zero. Write $z=x+iy$. Then $e^{iz}=e^{ix}e^{-y}$. The absolute value of $e^{ix}$ is $1$ and because we are in the upper half plane ($y>0$) we have $e^{-y}<1$. Hence $|e^{iz}|leq 1$ in the upper half plane. From here it is easy to conclude that the integral of $f$ goes to zero.
    $endgroup$
    – Mark
    Jan 29 at 20:36












  • $begingroup$
    So we find the integral $int_{-infty}^inftyfrac{e^{ix}}{x^2+1}dx$. And then using the identity $e^{ix}=cosx+isinx$ and the fact that we are on the real line we take the real part and get the required integral.
    $endgroup$
    – Mark
    Jan 29 at 20:40










  • $begingroup$
    Thanks a lot, that makes it way clearer! I also noticed that I didn't know about Jordan's Lemma, which you basically used here - np? Very nice, thanks!
    $endgroup$
    – xotix
    Jan 29 at 20:56










  • $begingroup$
    Actually I didn't use Jordan's lemma. I used the most simple bound: the absolute value of the integral is bounded by the length of the contour times the maximum of the function on this countour. So in our case it is bounded by $pi R*max|frac{e^{iz}}{z^2+1}|$. As we already know on this contour $|e^{iz}|leq 1$ and from here it is easy to see that $pi R*max|frac{e^{iz}}{z^2+1}|to 0$ when $Rtoinfty$. Now, if we would have an expression like $z-i$ in the denominator then this limit wouldn't be equal to $0$. In that case we would need Jordan's lemma. (so good to know it as well)
    $endgroup$
    – Mark
    Jan 29 at 21:02


















$begingroup$
What I usually do is: I choose the upper half-circle with radius R in the complex plane as my path. Then I basically have $int_{-infty}^infty f(z)dz=int_{gamma_R}f(z)dz + int_{gamma_I} f(z) dz = 2pi sum_i Res(f;z_i)$. Then if the integral over the imaginary part of the path converges to 0, we can let $Rtoinfty$ and thus basically get the integral in $mathbb R$. Usually I only had functions, where the numerator is a simple function like $z^2$. So maybe the real question is: How does the function (in the numerator) affect this approach? You hinted to that. Mind explaining that more?
$endgroup$
– xotix
Jan 29 at 20:27




$begingroup$
What I usually do is: I choose the upper half-circle with radius R in the complex plane as my path. Then I basically have $int_{-infty}^infty f(z)dz=int_{gamma_R}f(z)dz + int_{gamma_I} f(z) dz = 2pi sum_i Res(f;z_i)$. Then if the integral over the imaginary part of the path converges to 0, we can let $Rtoinfty$ and thus basically get the integral in $mathbb R$. Usually I only had functions, where the numerator is a simple function like $z^2$. So maybe the real question is: How does the function (in the numerator) affect this approach? You hinted to that. Mind explaining that more?
$endgroup$
– xotix
Jan 29 at 20:27












$begingroup$
The problem is that if you take your function to be $frac{cosz}{z^2+1}$ then the limit on the imaginary part will not be equal to $0$ when $Rtoinfty$. Trigonometric functions are very hard to bound. So we use the exponential function. If we define $f(z)=frac{e^{iz}}{z^2+1}$ like I did then the limit will be equal to zero. Write $z=x+iy$. Then $e^{iz}=e^{ix}e^{-y}$. The absolute value of $e^{ix}$ is $1$ and because we are in the upper half plane ($y>0$) we have $e^{-y}<1$. Hence $|e^{iz}|leq 1$ in the upper half plane. From here it is easy to conclude that the integral of $f$ goes to zero.
$endgroup$
– Mark
Jan 29 at 20:36






$begingroup$
The problem is that if you take your function to be $frac{cosz}{z^2+1}$ then the limit on the imaginary part will not be equal to $0$ when $Rtoinfty$. Trigonometric functions are very hard to bound. So we use the exponential function. If we define $f(z)=frac{e^{iz}}{z^2+1}$ like I did then the limit will be equal to zero. Write $z=x+iy$. Then $e^{iz}=e^{ix}e^{-y}$. The absolute value of $e^{ix}$ is $1$ and because we are in the upper half plane ($y>0$) we have $e^{-y}<1$. Hence $|e^{iz}|leq 1$ in the upper half plane. From here it is easy to conclude that the integral of $f$ goes to zero.
$endgroup$
– Mark
Jan 29 at 20:36














$begingroup$
So we find the integral $int_{-infty}^inftyfrac{e^{ix}}{x^2+1}dx$. And then using the identity $e^{ix}=cosx+isinx$ and the fact that we are on the real line we take the real part and get the required integral.
$endgroup$
– Mark
Jan 29 at 20:40




$begingroup$
So we find the integral $int_{-infty}^inftyfrac{e^{ix}}{x^2+1}dx$. And then using the identity $e^{ix}=cosx+isinx$ and the fact that we are on the real line we take the real part and get the required integral.
$endgroup$
– Mark
Jan 29 at 20:40












$begingroup$
Thanks a lot, that makes it way clearer! I also noticed that I didn't know about Jordan's Lemma, which you basically used here - np? Very nice, thanks!
$endgroup$
– xotix
Jan 29 at 20:56




$begingroup$
Thanks a lot, that makes it way clearer! I also noticed that I didn't know about Jordan's Lemma, which you basically used here - np? Very nice, thanks!
$endgroup$
– xotix
Jan 29 at 20:56












$begingroup$
Actually I didn't use Jordan's lemma. I used the most simple bound: the absolute value of the integral is bounded by the length of the contour times the maximum of the function on this countour. So in our case it is bounded by $pi R*max|frac{e^{iz}}{z^2+1}|$. As we already know on this contour $|e^{iz}|leq 1$ and from here it is easy to see that $pi R*max|frac{e^{iz}}{z^2+1}|to 0$ when $Rtoinfty$. Now, if we would have an expression like $z-i$ in the denominator then this limit wouldn't be equal to $0$. In that case we would need Jordan's lemma. (so good to know it as well)
$endgroup$
– Mark
Jan 29 at 21:02






$begingroup$
Actually I didn't use Jordan's lemma. I used the most simple bound: the absolute value of the integral is bounded by the length of the contour times the maximum of the function on this countour. So in our case it is bounded by $pi R*max|frac{e^{iz}}{z^2+1}|$. As we already know on this contour $|e^{iz}|leq 1$ and from here it is easy to see that $pi R*max|frac{e^{iz}}{z^2+1}|to 0$ when $Rtoinfty$. Now, if we would have an expression like $z-i$ in the denominator then this limit wouldn't be equal to $0$. In that case we would need Jordan's lemma. (so good to know it as well)
$endgroup$
– Mark
Jan 29 at 21:02




















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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3092636%2fsolving-a-real-integral-in-the-complex-plane%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

MongoDB - Not Authorized To Execute Command

How to fix TextFormField cause rebuild widget in Flutter

Npm cannot find a required file even through it is in the searched directory