Contour integration around a square

In summary: Can you please clarify?In summary, the integral of the complex conjugate of z around a square with sides of length 2 centred on the origin in the complex plane can be different for different contours. Can you see why that happens?
  • #1
dyn
773
61

Homework Statement


I am trying to calculate the contour integral of the complex conjugate of z around a square with sides of length 2 centred on the origin in the complex plane

Homework Equations



∫ f(z) dz = ∫ f(t) (dz/dt) dt . It looks like the integral signs won't appear here but they should be at the front of each side of the equation

The Attempt at a Solution


I already know the answer is 2π I and calculate this answer using polar form but when I calculate it around the square I get the answer to be 4 x 2i. Each of the sides contributes 2i. I can't get π to appear anywhere in my answer.
If I take the right hand vertical side , I parametrise it as z = 1 + i(t-1) so dz/dt = i and the complex conjugate of z is 1-i(t-1) so I get the integral with limits 2 and 0 of i+1-t which gives 2i.
What am I doing wrong and how do I get π to appear ?
Thanks
 
Physics news on Phys.org
  • #2
dyn said:

Homework Statement


I am trying to calculate the contour integral of the complex conjugate of z around a square with sides of length 2 centred on the origin in the complex plane

Homework Equations



∫ f(z) dz = ∫ f(t) (dz/dt) dt . It looks like the integral signs won't appear here but they should be at the front of each side of the equation

The Attempt at a Solution


I already know the answer is 2π I and calculate this answer using polar form but when I calculate it around the square I get the answer to be 4 x 2i. Each of the sides contributes 2i. I can't get π to appear anywhere in my answer.
If I take the right hand vertical side , I parametrise it as z = 1 + i(t-1) so dz/dt = i and the complex conjugate of z is 1-i(t-1) so I get the integral with limits 2 and 0 of i+1-t which gives 2i.
What am I doing wrong and how do I get π to appear ?
Thanks

There should not be any ##\pi##s in the answer, because there are no ##\pi##s needed anywhere in describing the square or in expressing the complex conjugate function ##\bar{z}.##

However, if ##C## happened to be a circle centered at ##0##, then ##\oint_C \bar{z} \, dz## would, in fact, involve ##\pi##.

So, the integral of ##\bar{z}## around a contour ##C## surrounding the origin can be different for different contours ##C##. Can you see why that happens?
 
  • #3
I know the integral of 1/z and z(conjugate) around the unit circle centred on the origin is 2π.i
I know both these functions are not analytic within the circle.
I know the contour integral of 1/z over the square I have described is 2π.i
I thought the integral over a closed curve of a non-analytic function was 2π.i for any shape of closed curve ?
.
 
  • #4
dyn said:
I know the integral of 1/z and z(conjugate) around the unit circle centred on the origin is 2π.i
I know both these functions are not analytic within the circle.
I know the contour integral of 1/z over the square I have described is 2π.i
I thought the integral over a closed curve of a non-analytic function was 2π.i for any shape of closed curve ?
.

NO: you have it backwards. The integral of an analytic function ##f(z)## around a closed curve is 0, so a line integral of the form ##\int_A^B f(z) \, dz## is independent of the path between A and B. The integral of a non-analytic function ##g(z)## can be anything, and can vary with the path.
 
  • Like
Likes dyn
  • #5
In contrast to the standard example of ##\int_{S^1} \frac{1}{z}\,dz ## where all numbers are of norm one, we here have ##\overline{z}=\frac{||z||^2}{z}## which gives us a correction (residue) of ##\frac{\text{ area square }}{\text{ area unit circle }} = \frac{4}{\pi}## and thus ##\frac{1}{2\pi \,i}\int_{\boxdot} f(z)\,dz=\sum_{a=\{0\}} 1\cdot \frac{4}{\pi}##
 
Last edited:
  • #6
So for the case of 1/z integrated over a unit circle and the square of sides 2 ; its just a coincidence that the answer is 2π.i in both cases and this is in no way a general result ?
 
  • #7
dyn said:
So for the case of 1/z integrated over a unit circle and the square of sides 2 ; its just a coincidence that the answer is 2π.i in both cases and this is in no way a general result ?
What do you mean? ##\int_{circle} \overline{z}\,dz = \int_{circle}\dfrac{1}{z}\,dz = 2\pi \,i ## by the residue theorem. But here on the square ##f(z)=\overline{z}=\dfrac{||z||^2}{z}## and ##||z||^2\neq 1## so we cannot parameterize the integration path by norm ##1## numbers. Instead we get ##\int_{square} \overline{z}\,dz = 8i## and the residue theorem says its ##\int_{square} \overline{z}\,dz = 2\pi \,i \sum_{z=0} \operatorname{ind}_{square}(0) \operatorname{Res}_0(f(z)) = 2\pi\,i \cdot 1 \cdot \operatorname{Res}_0(f(z))## and thus ##\operatorname{Res}_0(f(z)) = \dfrac{4}{\pi}##.

I'm not quite sure how this is related to the variation of ##||z||^2## along the square, but it is exactly the quotient of the different areas, which I think is not by chance, as those areas are themselves integrals of distances, one uniformly ##1## and the other varying between ##1## and ##\sqrt{2}## in a sine curve. So the difference between ##8i## and ##2\pi\,i## is due to the different paths which are differently far away from the pole and thus covering different areas.

Or in formulas: Take the integral over the unit circle and deform this path such that it covers the square. This gives an additional factor under the integral (product rule) and the result should be ##8i## but you integrate over an angle.
 
  • #8
I meant that the contour integral of the reciprocal of z over the unit circle and over the square of sides 2 is 2π.i in both cases .
Obviously these 2 paths are different , so in this case is it just a coincidence that both answers are the same ? Because as stated in a previous post "the integral of a non-analytic function can vary with the path"
 
  • #9
They are not the same. Over the square it's ##8i## and over the circle it's ##2\pi\,i##, differing by a factor ##\dfrac{4}{\pi}## due to the different areas.

You already calculated the ##8i## probably in Cartesian coordinates. Now you can calculate it in polar coordinates with a varying radius. E.g. in the first eighth from ##0## to ##\frac{\pi}{4}## we have ##\dfrac{1}{\cos \theta} e^{-i\theta}## as integrand.
 
Last edited:
  • #10
fresh_42 said:
They are not the same. Over the square it's ##8i## and over the circle it's ##2\pi\,i##, differing by a factor ##\dfrac{4}{\pi}## due to the different areas.

You already calculated the ##8i## probably in Cartesian coordinates. Now you can calculate it in polar coordinates with a varying radius. E.g. in the first eighth from ##0## to ##\frac{\pi}{4}## we have ##\dfrac{1}{\cos \theta} e^{-i\theta}## as integrand.
In post 8, dyn talks about integrating 1/z along a circle or along a square surrounding the origin. You are saying that these two calculation give different results?
 
  • #11
nrqed said:
In post 8, dyn talks about integrating 1/z along a circle or along a square surrounding the origin. You are saying that these two calculation give different results?
If I didn't make a mistake, yes. They have a different parameterization around its pole and thus a different derivative of the path. Or I'm stuck with the same problem @dyn has and miss a crucial point.
 
  • #12
fresh_42 said:
If I didn't make a mistake, yes. They have a different parameterization around its pole and thus a different derivative of the path. Or I'm stuck with the same problem @dyn has and miss a crucial point.
Why would the residue theorem not be applicable here?
 
  • #13
nrqed said:
Why would the residue theorem not be applicable here?
I haven't said this, the question is, what is the residue. I simply calculated ##\int_{square} \overline{\gamma(t)}\,\dot{\gamma}(t) \,dt## and got ##2i## along each side. I thought this is due to the fact that we have a varying distance to the pole by a factor ##||z||^2## which leads to a difference in factor ##\operatorname{Res}_0(\overline{z}) = \frac{4}{\pi}## which confirms
Ray Vickson said:
The integral of a non-analytic function ##g(z)## can be anything, and can vary with the path.
But I cannot rule out that my thinking is too ##\mathbb{R}^2##, however, I don't see a mistake, except that I expected a residue of ##1## as for the circle.
 
  • #14
dyn said:
I meant that the contour integral of the reciprocal of z over the unit circle and over the square of sides 2 is 2π.i in both cases. Obviously these 2 paths are different, so in this case is it just a coincidence that both answers are the same? Because as stated in a previous post "the integral of a non-analytic function can vary with the path"
No, it's not a coincidence. The residue theorem says you'll get the same result.

I think the reason you get different results for the two paths when you integrate ##\bar z## is because the residue theorem applies to functions of ##z##, not functions of ##\bar z##. I'm sure if I'm wrong, someone will point out the correct reasoning.
 
  • #15
fresh_42 said:
I haven't said this, the question is, what is the residue. I simply calculated ##\int_{square} \overline{\gamma(t)}\,\dot{\gamma}(t) \,dt## and got ##2i## along each side. I thought this is due to the fact that we have a varying distance to the pole by a factor ##||z||^2## which leads to a difference in factor ##\operatorname{Res}_0(\overline{z}) = \frac{4}{\pi}## which confirms

But I cannot rule out that my thinking is too ##\mathbb{R}^2##, however, I don't see a mistake, except that I expected a residue of ##1## as for the circle.

The residue of 1/z is 1, independently of the path taken around the pole. So the integral gives ##2 \pi i## for both contours. I am not quite following your derivation because I don't quite understand this "z hat" and the introduction of a norm, the integral is simply the integral of 1/z.
 
  • #16
nrqed said:
The residue of 1/z is 1, independently of the path taken around the pole. So the integral gives ##2 \pi i## for both contours. I am not quite following your derivation because I don't quite understand this "z hat" and the introduction of a norm, the integral is simply the integral of 1/z.
No, the function is the conjugate, which I denoted with an overline and the norm with a double line. Whatever you want to write them, tell me.
With those we have ##f(z)=\overline{z} = ||z||^2\cdot \dfrac{1}{z}## which is not simply ##\dfrac{1}{z}## as on the unit circle. We have a varying stretch here.
 
  • #17
vela said:
No, it's not a coincidence. The residue theorem says you'll get the same result.

I think the reason you get different results for the two paths when you integrate ##\bar z## is because the residue theorem applies to functions of ##z##, not functions of ##\bar z##. I'm sure if I'm wrong, someone will point out the correct reasoning.
I still try to figure out. ##\bar z## is the function on ##z##. The question is, why should ## \int_0^{\frac{1}{4}} \overline{1+(8t-1)i} \cdot 8i \, dt = \int_0^{\frac{1}{4}} 1-(8t-1)i \cdot 8i \,dt = 2i## be wrong?
 
  • #18
fresh_42 said:
I still try to figure out. ##\bar z## is the function on ##z##. The question is, why should ## \int_0^{\frac{1}{4}} \overline{1+(8t-1)i} \cdot 8i \, dt = \int_0^{\frac{1}{4}} 1-(8t-1)i \cdot 8i \,dt = 2i## be wrong?
I was discussing post 8, where dyn talks about integrating 1/z (as I said in my post 10). In post 8 dyn was asking about integrating 1/z along a circle or a square
 
  • #19
nrqed said:
I was discussing post 8, where dyn talks about integrating 1/z (as I said in my post 10). In post 8 dyn was asking about integrating 1/z along a circle or a square
Sorry, I thought we were still on the original problem.
 
  • #20
fresh_42 said:
Sorry, I thought we were still on the original problem.
No problem! I just did not want the OP to get confused. Starting in post 6, he or she was asking about the case of 1/z and I wanted to emphasize that yes, in that case the two results are the same and are given by ## 2 \pi i##. Now, ##1/\bar{z}## is not analytic even away from the origin, so in that case things are more subtle.
 
  • #21
fresh_42 said:
I still try to figure out. ##\bar z## is the function on ##z##. The question is, why should ## \int_0^{\frac{1}{4}} \overline{1+(8t-1)i} \cdot 8i \, dt = \int_0^{\frac{1}{4}} 1-(8t-1)i \cdot 8i \,dt = 2i## be wrong?
I don't think it's wrong. Why do you think it's wrong?
 
  • #22
vela said:
I don't think it's wrong. Why do you think it's wrong?
I have written this as I thought the discussion is still about path independence for non-analytic functions. Could be deleted.
 
  • #23
dyn said:
I meant that the contour integral of the reciprocal of z over the unit circle and over the square of sides 2 is 2π.i in both cases .
Obviously these 2 paths are different , so in this case is it just a coincidence that both answers are the same ? Because as stated in a previous post "the integral of a non-analytic function can vary with the path"

The function ##1/z## is analytic in the open plane ##{\mathcal C} = \{ |z| > 0 \}## (the complex plane with a hole punched in it at the origin). Both paths ##|z| = 1## and the square surrounding the origin lie completely in ##{\mathcal C}##, so that is why the integrals are the same. It is a fundamental property of complex-function theory, not a coincidence.

The function ##\bar{z} = \text{conjugate of } z## is not analytic in ##\mathcal C##, so that is why the two integrals are different.
 
  • #24
Thanks for your replies. The conjugate of z is nowhere analytic within the unit circle or the square so the 2 integrals are different.
But the reciprocal of z is also not analytic within the circle or square as it is not differentiable at z=o so why in this case are both integrals the same ?
 
  • #25
dyn said:
Thanks for your replies. The conjugate of z is nowhere analytic within the unit circle or the square so the 2 integrals are different.
But the reciprocal of z is also not analytic within the circle or square as it is not differentiable at z=o so why in this case are both integrals the same ?
The residue theorem does not demand that the function must be analytic everywhere. If the function is analytic everywhere except at a set of points ##p_1, p_2 \ldots##, the the residue theorem still applies. It might be useful to go back and study the derivation of the residue theorem.
 
  • #26
dyn said:
Thanks for your replies. The conjugate of z is nowhere analytic within the unit circle or the square so the 2 integrals are different.
But the reciprocal of z is also not analytic within the circle or square as it is not differentiable at z=o so why in this case are both integrals the same ?
Explained already in post #23.
 
  • #27
dyn said:
Thanks for your replies. The conjugate of z is nowhere analytic within the unit circle or the square so the 2 integrals are different.
But the reciprocal of z is also not analytic within the circle or square as it is not differentiable at z=o so why in this case are both integrals the same ?
Besides my response in #26, here is another argument.

Recall Cauchy's integral theorem: if ##f(z)## is analytic inside and on a simple closed curve ##C## (i.e., a curve that is continuous, has both an inside and an outside and does not intersect itself), and if ##w## is a point in the interior of the region inside ##C##, then
$$f(w) = \frac{1}{2 \pi i} \oint_C \frac{f(z)}{z-w} \, dz,$$
where ##C## is traversed counterclockwise.

Apply this result to the function ##f(z) \equiv 1## (which is analytical everywhere) and with ##w = 0##. We get
$$1 = f(0) = \frac{1}{2 \pi i} \oint_C \frac{1}{z} \, dz.$$
Any curve ##C## that satisfies the hypotheses of the Cauchy theorem will do; the integral has exactly the same value for all such curves.

To summarize: although ##1/z## has a pole at ##z=0## (and so is not analytic everywhere inside the square or the circle), the numerator function "1" IS analytic, and that is all that matters!
 
Last edited:
  • Like
Likes fresh_42, dyn and BvU

1. What is contour integration around a square?

Contour integration around a square is a mathematical technique used in complex analysis that allows for the evaluation of complex integrals. It involves integrating a complex function along a closed path or contour that encloses a square-shaped region.

2. Why is contour integration around a square useful?

Contour integration around a square is useful because it allows for the evaluation of complex integrals that may be difficult or impossible to solve using traditional integration methods. It also provides a way to calculate the value of integrals involving complex functions over non-rectangular regions.

3. What are the steps involved in contour integration around a square?

The first step is to choose a suitable contour that encloses the square region. Next, the complex function is parameterized along the contour, and the integral is written in terms of the parameter. Then, the integral is evaluated using techniques such as the Cauchy integral formula or the residue theorem. Finally, the result is simplified to find the value of the original integral.

4. Can contour integration around a square be applied to any complex function?

Contour integration around a square can be applied to any complex function that is analytic within the contour and has no singularities inside the contour. However, the choice of contour and the complexity of the function can greatly affect the difficulty of the integration.

5. What are some real-world applications of contour integration around a square?

Contour integration around a square has various applications in physics, engineering, and other fields. It is used to solve problems involving electric potential and flow in electromagnetism, heat conduction in thermodynamics, and fluid flow in fluid mechanics. It also has applications in signal processing and image reconstruction.

Similar threads

Replies
1
Views
611
  • Calculus and Beyond Homework Help
Replies
8
Views
177
  • Calculus and Beyond Homework Help
Replies
13
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
869
  • Calculus and Beyond Homework Help
Replies
8
Views
1K
  • Calculus and Beyond Homework Help
Replies
12
Views
993
  • Calculus and Beyond Homework Help
Replies
10
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
986
  • Calculus and Beyond Homework Help
Replies
14
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
Back
Top