How would you be able to calculate a contour integral of 1/(((z-1)^2)*(z-i)) over the contour |z-1| = 1? Not sure how to type that in :/
Asked
Active
Viewed 9,777 times
4
-
5There are at least a few answers at MSE discussing how to deal with contour integrals e.g. Paths integrals in the complex plane or How do I find line integrals? or How to calculate contour integrals with Mathematica?. – Artes Oct 11 '15 at 00:02
-
1If you had a specific problem with this integral, try to expose it clearly, however I find your question simply a duplicate of the one in the first link. – Artes Oct 11 '15 at 00:06
-
1its not a duplicate as my integral is shifted to the right – John Oct 11 '15 at 00:24
2 Answers
8
With
f[z_] := 1/((z - 1)^2*(z - I))
the contour integral around a circle centered at z == 1 can be parameterized by arc length around the circle.
Integrate[(f[z] /. z -> 1 + Cos[t] + I Sin[t]) D[1 + Cos[t] + I Sin[t], t],
{t, 0, 2 Pi}]
(* π *)
which, of course, is equal to the residue at z == 1, multiplied by 2 π I. (The pole at z == I is outside the contour and so does not contribute to the integral.)
Alternatively, the integral can be performed over a region.
reg = ParametricRegion[{1 + Cos[t], Sin[t]}, {{t, 0, 2 Pi}}];
Integrate[(f[z] /. z -> x + I y) (-y + I (x - 1)), {x, y} ∈ reg]
which gives the same result. (-y + I (x - 1)) is the equivalent of D[1 + Cos[t] + I Sin[t], t].
bbgodfrey
- 61,439
- 17
- 89
- 156
2
Let me know if your answer matches with the one using
f[z_] := 1/((z - 1)^2*(z - I))
Int[a_] := 2*Pi*I*Total[(Residue[f[z], {z, #1}] & ) /@ {0, a}]
So for a=1, you get Pi
thils
- 3,228
- 2
- 18
- 35
-
-
-
well I did my integral by hand and just wanted to confirm my answer, I got pi when computing my integral – John Oct 11 '15 at 00:25
-
-
-
-
-