ReEvaluating real integrals using residue calculus

In summary, Molu suggests that residue calculus is a good tool to use when evaluating integrals that are more easily evaluated than using the standard techniques of by parts and substitution. Molu has a few questions about residue calculus that he would like answered.
  • #1
loom91
404
0
Hi,

I recently came to know that some real integrals become easier to evaluate using the techniques of residue calculus from complex analysis. I thought that this would be a good tool to pickup apart from the standard techniques of by parts and substitution that we are taught. I have a few questions in this regard.

1)How can I recognise an integral that will be more easily evaluated using residue calculus than ordinary methods?
2)How do I find out if the complex arc part of the contour integral vanishes?
3)Can you give me a few simple problems to practice my rudimentary knowledge?

Thanks.

Molu
 
Physics news on Phys.org
  • #2
loom91 said:
Hi,

I recently came to know that some real integrals become easier to evaluate using the techniques of residue calculus from complex analysis. I thought that this would be a good tool to pickup apart from the standard techniques of by parts and substitution that we are taught. I have a few questions in this regard.

1)How can I recognise an integral that will be more easily evaluated using residue calculus than ordinary methods?
2)How do I find out if the complex arc part of the contour integral vanishes?
3)Can you give me a few simple problems to practice my rudimentary knowledge?

Thanks.

Molu

1) There are some standard formats/ combinations of functions.
2) Sorry, I am not very clear about this question.
3) Question: [tex] I = \int_{0}^{\Pi} \frac{1}{{(a+b \cosx)^2}} dx
[/tex]
Answer : [tex]I = \frac {ab^2 \Pi}{(\sqrt{a^2-b^2})^3}[/tex]
 
Last edited:
  • #3
data1217 said:
1) There are some standard formats/ combinations of functions.
2) Sorry, I am not very clear about this question.
3) Question: [tex] I = \int_{0}^{\Pi} \frac{1}{{(a+b \cosx)^2}} dx
[/tex]
Answer : [tex]I = \frac {ab^2 \Pi}{(\sqrt{a^2-b^2})^3}[/tex]

1)What are these formats?

2)When evaluating the real integral, a contour integral is evaluated using the residue theorem over a contour only a part of which lies in the real line. The desired real integral is then found if the part of the contour lying outside the real line can be shown to vanish. How do I show this or at least recognise that this will be the case?

3)Are you sure that integral is right? You seem to have missed some term, otherwise the integrand is a constant function.
 
Last edited:
  • #4
Improper integrals of rational functions in which the denominator is different from zero for all real x and the degree of the denominator is at least 2 higher than the numerator. Like:

[tex]\int_{-\infty}^{\infty} \frac{dx}{(1+x^2)^2}[/tex]

[tex]\int_{-\infty}^{\infty}\frac{x^3}{1+x^8}dx[/tex]

The integral over the arc goes to zero since the absolute value of the integrand goes to zero faster than [itex]\pi R[/itex] goes to infinity. This is a consequence of the ML-inequality commonly used in CA to place upper bounds on contour integrals: Since the degree of the denominator is at least 2 higher than numerator, then:

[tex]|f(x)|<\frac{k}{|z|^2}[/tex]

for sufficiently large R. Now, since you're integrating over a half-circle arc in these problems, the length of the contour is just [itex]\pi R[/itex] thus the integral over this region cannot be larger than:

[tex]\left|\int_{C} f(z)dz\right|<\frac{k}{R^2} \pi R=\frac{k \pi}{R}[/tex]

since [itex]|z|=R[/itex] on C.

This goes to zero as R goes to infinity.

Rational functions like the above, multiplied by Sin(x) and Cos(x) can also be evaluated by residue integration too like:

[tex]\int_{-\infty}^{\infty}\frac{Sin(2x)}{x^2+x+1}dx[/tex]

[tex]\int_{-\infty}^{\infty}\frac{Cos(kx)}{x^2+1}dx[/tex]
 
Last edited:
  • #5
saltydog said:
Improper integrals of rational functions in which the denominator is different from zero for all real x and the degree of the denominator is at least 2 higher than the numerator. Like:

[tex]\int_{-\infty}^{\infty} \frac{dx}{(1+x^2)^2}[/tex]

[tex]\int_{-\infty}^{\infty}\frac{x^3}{1+x^8}dx[/tex]

The integral over the arc goes to zero since the absolute value of the integrand goes to zero faster than [itex]\pi R[/itex] goes to infinity. This is a consequence of the ML-inequality commonly used in CA to place upper bounds on contour integrals: Since the degree of the denominator is at least 2 higher than numerator, then:

[tex]|f(x)|<\frac{k}{|z|^2}[/tex]

for sufficiently large R. Now, since you're integrating over a half-circle arc in these problems, the length of the contour is just [itex]\pi R[/itex] thus the integral over this region cannot be larger than:

[tex]\left|\int_{C} f(z)dz\right|<\frac{k}{R^2} \pi R=\frac{k \pi}{R}[/tex]

since [itex]|z|=R[/itex] on C.

This goes to zero as R goes to infinity.

Rational functions like the above, multiplied by Sin(x) and Cos(x) can also be evaluated by residue integration too like:

[tex]\int_{-\infty}^{\infty}\frac{Sin(2x)}{x^2+x+1}dx[/tex]

[tex]\int_{-\infty}^{\infty}\frac{Cos(kx)}{x^2+1}dx[/tex]

Thanks saltydog for clearing it up. I will now try to evaluate the examples you gave. One more question, can residue calculus be usefull in integrations with finite limits and what would one do with the arc then?
 
  • #6
Very good. Residue integration can be used for bounded integrands of sines and cosines. Like this:

[tex]\int_0^{2\pi} Cos(\theta)d\theta[/tex]

Make the substitution [itex]z=e^{i\theta}[/itex] noting that:

[tex]Cos(\theta)=1/2(e^{i\theta}+e^{-i\theta})[/tex]

Since [itex]\theta[/itex] makes one complete circuit, then z represents a circle around the (complex) origin thus the contour is closed and the integral becomes:

[tex]\frac{1}{2i}\oint(1+\frac{1}{z^2})dz[/tex]

The residue at the origin is zero so the integral is zero as expected. How about this one then:

[tex]\int_0^{2\pi}Cos^2 \theta d\theta[/tex]

That one's not zero. Can you prove it's [itex]\pi[/itex] using residue integration? Usually though this is done for more complex integrals like:

[tex]\int_0^{2\pi}\frac{Cos(\theta)}{3+Cos(\theta)}d\theta[/tex]

Remember, only count the residues inside the contour.
 
Last edited:
  • #7
saltydog said:
Very good. Residue integration can be used for bounded integrands of sines and cosines. Like this:

[tex]\int_0^{2\pi} Cos(\theta)d\theta[/tex]

Make the substitution [itex]z=e^{i\theta}[/itex] noting that:

[tex]Cos(\theta)=1/2(e^{i\theta}+e^{-i\theta})[/tex]

Since [itex]\theta[/itex] makes one complete circuit, then z represents a circle around the (complex) origin thus the contour is closed and the integral becomes:

[tex]\frac{1}{2i}\oint(1+\frac{1}{z^2})dz[/tex]

The residue at the origin is zero so the integral is zero as expected.


I'm not sure I understand this conversion into contour integral. Could you fill in some of the steps?

Making the substitution [itex]z=e^{i\theta}[/itex], I get

[tex]\frac{1}{2}\oint(z+\frac{1}{z})dz[/tex]

over the unit circle which seems to have a simple pole at the origin and a residue of 1, giving an integral of [itex]\pi i[/tex] using the residue theorem. What am I doing wrong?
 
Last edited:
  • #8
saltydog said:
How about this one then:

[tex]\int_0^{2\pi}Cos^2 \theta d\theta[/tex]

That one's not zero. Can you prove it's [itex]\pi[/itex] using residue integration?

First I made the substitution [itex]z=e^{i\theta}[/itex], giving me

[tex]\oint [\frac {z^4 + 1}{4z^2} + \frac {1}{2}]dz[/tex] around the unit circle. The contour integral of the constant term vanishes. Next I evaluate the residue at the second-order pole at origin using the formula

[tex]Res(f, c) = lim_{z\rightarrow c} \frac {d^{n-1}}{dz^{n-1}} [f(z)(z-c)^n][/tex], getting 0 (which is surprising, can a residue at a pole be 0?).

Using residue theorem, the integral evaluates to

[tex]2\pi i * 0 = 0[/tex]

Hard luck again. What went wrong?
 
  • #9
loom91 said:
What am I doing wrong?

If [itex]z=e^{i\theta}[/itex] then [itex]dz=ie^{i\theta}d\theta[/itex]

You can generally deal with any rational function of sin's and cos's, this substitution will then yield a rational function of z. It's just a matter of locating the poles inside the unit circle.

You should also keep in mind transformations that can get you into the correct form, like

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

isn't an integral over a full circle with that substitution. How to fix this?

loom91 said:
(which is surprising, can a residue at a pole be 0?)

yes it can. what's the residue of [itex]z^{-2}[/itex] at z=0?


Do you have a complex analysis text? Ahlfors has a small section on the main common types. A book aimed more at the engineering crowd will probably be more example and problem rich though.
 
  • #10
Thanks Shmoe. I think the differential of z caused the problem for Loom. It's just:

[tex]dz=ie^{i\theta}d\theta[/tex]

so then:

[tex]d\theta=\frac{1}{iz}dz[/tex]

all the rest should fall into place. Also, I got most of the examples I gave above from the quintessential engineering math reference book: "Advanced Engineering Mathematics" by Kreyszig. It would certainly not do for math purist but . . . I ain't proud.
 
  • #11
Oh, I forgot to transform the differential form, how stupid of me.:">

I don't have a complex analysis text, but I will be getting Spivak, which I think has a few chapters on complex analysis. Don't know whether it covers residues though.
 
  • #12
saltydog said:
Very good. Residue integration can be used for bounded integrands of sines and cosines. Like this:

[tex]\int_0^{2\pi} Cos(\theta)d\theta[/tex]

Make the substitution [itex]z=e^{i\theta}[/itex] noting that:

[tex]Cos(\theta)=1/2(e^{i\theta}+e^{-i\theta})[/tex]

Since [itex]\theta[/itex] makes one complete circuit, then z represents a circle around the (complex) origin thus the contour is closed and the integral becomes:

[tex]\frac{1}{2i}\oint(1+\frac{1}{z^2})dz[/tex]

The residue at the origin is zero so the integral is zero as expected.

Got that one.

saltydog said:
How about this one then:

[tex]\int_0^{2\pi}Cos^2 \theta d\theta[/tex]

That one's not zero. Can you prove it's [itex]\pi[/itex] using residue integration?

Problem again, I get 2pi.

After substitution, I have

[tex]d\theta = \frac {1}{iz} dz[/tex]
[tex]cos^2\theta = \frac{1}{4}(z^2+\frac{1}{z^2})+\frac {1}{2}[/tex]

Making the integral

[tex]I = \oint \frac {1}{iz}[\frac {1}{4}(z^2+\frac {1}{z^2})+\frac{1}{2}]dz
=-i\oint \frac {z^4+2z^2+1}{4z^3} dz[/tex]

[tex]f(z)=\frac {z^4+2z^2+1}{4z^3}[/tex]

[tex]Res(f, 0) = lim_{z\rightarrow 0} \frac {d^2}{dz^2} (\frac{z^4+2z^2+1}{4z^3}z^3) = 1[/tex]

[tex]I= -i * 2\pi i * 1 = 2\pi[/tex]

What's wrong this time? Thanks for your patience.
 
Last edited:
  • #13
shmoe said:
If [itex]z=e^{i\theta}[/itex] then [itex]dz=ie^{i\theta}d\theta[/itex]

You can generally deal with any rational function of sin's and cos's, this substitution will then yield a rational function of z. It's just a matter of locating the poles inside the unit circle.

You should also keep in mind transformations that can get you into the correct form, like

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

isn't an integral over a full circle with that substitution. How to fix this?

Substitute [itex]z=e^{i2\theta}[/itex]? However this gives a rather poor form of the integrand [itex]cos\theta = \frac{1}{2}(\sqrt{z}+\sqrt{\frac{1}{z}})[/itex], which doesn't seem easy to integrate using residues.

Another possible method is to add a real portion from +1 to -1 to close the contour giving a half circle, in which case the function would have to be separately integrated over the real portion and the result substracted from the total integral to get the actual result. But this may be easier (being a rational function) than the original trigonometric one.

But this one also wouldn't work because the pole would lie on the contour. Since the function will be defined almost everywhere on the real line, can I ignore the pole at the origin when integrating the real part and take an improper integral on both sides of the origin?
 
  • #14
there's a problem with your residue calculation. you have:

[tex]f(z)=\frac{z}{4}+\frac{1}{2z}+\frac{1}{4z^3}[/tex]

so the residue will be 1/2, it's the coefficient of the 1/z term in the Laurent series. Nothing fancy is needed to find the residue here, it's already a Laurent series.

The "multiply by z^3, take second derivative" that you tried to do as you had a pole of order 3 should be "multiply by z^3/2!, take second derivative". There's a division by 1/(n-1)! to take into account the (n-1)! you get when you differentiate n-1 times. Remember how they derived this from the Laurent sereis?
 
  • #15
loom91 said:
Another possible method is to add a real portion from +1 to -1 to close the contour giving a half circle, in which case the function would have to be separately integrated over the real portion and the result substracted from the total integral to get the actual result. But this may be easier (being a rational function) than the original trigonometric one.

But this one also wouldn't work because the pole would lie on the contour. Since the function will be defined almost everywhere on the real line, can I ignore the pole at the origin when integrating the real part and take an improper integral on both sides of the origin?

You couldn't ignore this pole. If you wanted the upper half circle to be equal to an integral from [-1,1] (+ some residues) you need to have a closed contour. It would be possible to avoid this pole with a small half circle whose radius tends to 0 as you are taking your improper integral approaching this pole, but this is more work than is needed.

Notice:

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

and now you will get a full circle to integrate over.
 
  • #16
loom91 said:
Got that one.



Problem again, I get 2pi.


[tex]Res(f, 0) = lim_{z\rightarrow 0} \frac {d^2}{dz^2} (\frac{z^4+2z^2+1}{4z^3}z^3) = 1[/tex]

[tex]I= -i * 2\pi i * 1 = 2\pi[/tex]

What's wrong this time? Thanks for your patience.

You forgot the factoral coefficient in the calculation of a residue of higher order, you know, the :

[tex]\frac{1}{(m-1)!}[/tex]

part. That would have one-halfed it down to 1/2 or . . . like Shmoe said, it's already in a Laurent series form with coefficient 1/2.
 
  • #17
saltydog said:
You forgot the factoral coefficient in the calculation of a residue of higher order, you know, the :

[tex]\frac{1}{(m-1)!}[/tex]

part. That would have one-halfed it down to 1/2 or . . . like Shmoe said, it's already in a Laurent series form with coefficient 1/2.

Of course, it was already a Laurent series, and I forgot the factorial. No wonder I'm never good at math. Finally I've got this one. I'll move onto the next. Thanks to all.
 
  • #18
shmoe said:
You couldn't ignore this pole. If you wanted the upper half circle to be equal to an integral from [-1,1] (+ some residues) you need to have a closed contour. It would be possible to avoid this pole with a small half circle whose radius tends to 0 as you are taking your improper integral approaching this pole, but this is more work than is needed.

Notice:

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

and now you will get a full circle to integrate over.

Are you using some result or theorem here? I haven't seen a result saying constants in the limits can be taken out of the integral. In fact I can see only a particular case where this would be possible, when the integrand had a linear primitive.
 
  • #19
symmetry, [tex]\cos(\theta)=\cos(2\pi-\theta)[/tex]. The integral over 0,pi will be the same as the integral over pi, 2pi
 
  • #20
saltydog said:
Usually though this is done for more complex integrals like:

[tex]\int_0^{2\pi}\frac{Cos(\theta)}{3+Cos(\theta)}d\theta[/tex]

Remember, only count the residues inside the contour.

Hmm, I get the answer [tex]\frac{1}{2} \pi (4-3\sqrt {2})[/tex]. That's not the right answer, is it?
 
  • #21
Hello Loom. So you did the z-substitution and got:

[tex]\frac{1}{i}\oint \frac{z^2+1}{z(z^2+6z+1)}dz[/tex]

right?

So we're integrating around a circle of radius 1. Now, when you factor the denom, only 0 and one other root are poles inside this circle. Calculating the residues of both I get:

[tex]\mathop\text{Res}\limits_{z=0}\left\{\frac{z^2+1}{z(z^2+6z+1)}\right\}=1[/tex]

[tex]\mathop\text{Res}\limits_{z=-3+2\sqrt{2}}\left\{\frac{z^2+1}{z(z^2+6z+1)}\right\}
=-\frac{3}{2\sqrt{2}}[/tex]

You know, I think Mathematica helps in this regards. You can at least see what the answer is and then work it out by hand towards that result.

Edit: just noticed the answer you reported is correct. I misread it. Nice job.
 
Last edited:
  • #22
saltydog said:
Hello Loom. So you did the z-substitution and got:

[tex]\frac{1}{i}\oint \frac{z^2+1}{z(z^2+6z+1)}dz[/tex]

right?

So we're integrating around a circle of radius 1. Now, when you factor the denom, only 0 and one other root are poles inside this circle. Calculating the residues of both I get:

[tex]\mathop\text{Res}\limits_{z=0}\left\{\frac{z^2+1}{z(z^2+6z+1)}\right\}=1[/tex]

[tex]\mathop\text{Res}\limits_{z=-3+2\sqrt{2}}\left\{\frac{z^2+1}{z(z^2+6z+1)}\right\}
=-\frac{3}{2\sqrt{2}}[/tex]

You know, I think Mathematica helps in this regards. You can at least see what the answer is and then work it out by hand towards that result.

Edit: just noticed the answer you reported is correct. I misread it. Nice job.

Yahoo! I really loved the trial version of mathematica, but it was far too expensive for me to afford. I have Matlab 7, but it doesn't seem to able to do anything useful.
 
  • #23
Have you got some more, or some link to a place where I can get a few more problems on bounded real integrals? I'm not doing the improper ones because we don't have improper integrals in our syllabus, though there was recently an uproar over examples doing (bounded) improper integrals as proper ones in textbooks (they were including singularities as endpoints of the interval of integration).
 
  • #24
A decent looking set of general notes:

http://www.math.ust.hk/~maykwok/courses/ma304/05_06/Complex_7.pdf#search=%22evaluating%20real%20integrals%20%20residues%22

You can always make up your own integrals of this type, just take some rational function of sin's and cos's and go from there. MATLAB can at least give you a numerical approximation, so you have a good idea if you are correct, though these should get boring fast.
 
Last edited by a moderator:
  • #25
loom91 said:
Have you got some more

Alright, how about this one:

[tex]\int_0^{2\pi}\frac{1}{(Cos(\theta)+2)^n}d\theta[/tex]

Can it be done using residue integration for any integer n? Can it be done any other way?
What about just for n=1, 2,3, maybe 4, then Mathematical Induction? I don't know. Might work on it though.:smile:
 
  • #26
If instead of [itex]\oint cos^2 \theta d\theta[/itex]
we had
[itex]\oint {1 \over 1 +cos^2 \theta } d\theta[/itex]
how would that be solved?
 

FAQ: ReEvaluating real integrals using residue calculus

What is residue calculus?

Residue calculus is a method used in complex analysis to evaluate integrals of functions that have poles, or singularities, in their domain. It involves using the residue theorem, which states that the value of an integral around a closed curve is equal to the sum of the residues of the function inside the curve.

How is residue calculus used to evaluate real integrals?

Residue calculus can be used to evaluate real integrals by first converting them into complex integrals. This is done by extending the domain of the function to the complex plane, where the singularities can be identified. The integral can then be evaluated using the residue theorem and the complex version of the function.

What are the benefits of using residue calculus?

Using residue calculus can often simplify the process of evaluating integrals, especially when the function has multiple poles. It also allows for the evaluation of integrals that may not be possible using other methods. Additionally, residue calculus can be used to calculate certain real integrals more efficiently than traditional methods.

Are there any limitations to using residue calculus?

Yes, there are some limitations to using residue calculus. It can only be used to evaluate integrals of functions that have poles in their domain. It also requires a good understanding of complex analysis and the properties of residues, which can be challenging for some individuals.

How can one improve their skills in using residue calculus?

To improve skills in using residue calculus, it is important to have a strong foundation in complex analysis and understand the properties of poles and residues. Practicing with various examples and problems can also help improve proficiency in using residue calculus. Seeking guidance from a mentor or taking a course in complex analysis can also be beneficial.

Similar threads

Replies
3
Views
1K
Replies
7
Views
2K
Replies
1
Views
2K
Replies
4
Views
2K
Replies
6
Views
2K
Replies
7
Views
4K
Back
Top