Practical 1: Complex Number Representation
Practical 1: Complex Number Representation
1
3-i
Q1 : z1 = 2 +i -
z1 = 2 + I -
1
3-I
17 9
+
10 10
Re[z1]
17
10
Im[z1]
9
10
Arg[z1]
9
ArcTan
17
Abs[z1]
37
10
r = Abs[z1]
37
10
2 P1Q1.Q2.nb
θ = Arg[z1]
9
ArcTan
17
polarform = r * Exp[I * θ]
37 ArcTan 179
10
ComplexExpand[%]
17 9
+
10 10
0.8
0.6
z1
0.4
0.2
x
0.5 1.0 1.5
z1 = Conjugate[z1]
17 9
-
10 10
P1Q1.Q2.nb 3
0.5
z1
x
0.5 1.0 1.5 z1
-0.5
-1.0
ClearAll
ClearAll
5i
2+3 i
Q2: z2 =
5*I
z2 =
2+3*I
15 10
+
13 13
Re[z2]
15
13
Im[z2]
10
13
Arg[z2]
ArcTan
2
3
Abs[z2]
5
13
r = Abs[z2]
5
13
4 P1Q1.Q2.nb
θ = Arg[z2]
ArcTan
2
3
polarform = r * Exp[I * θ]
5 ArcTan 3
2
13
ComplexExpand[%]
15 10
+
13 13
0.6
0.4 z2
0.2
x
0.2 0.4 0.6 0.8 1.0
z2 = Conjugate[z2]
15 10
-
13 13
P1Q1.Q2.nb 5
0.5
z2
x
0.2 0.4 0.6 0.8 1.0 z2
-0.5
ClearAll
ClearAll
1+i
2 - 5*i
Q3: z3 =
1 +I
z3 =
2 - 5*I
7
- +
3
29 29
Re[z3]
-
3
29
Im[z3]
7
29
Abs[z3]
2
29
Arg[z3]
π - ArcTan
7
3
6 P1Q1.Q2.nb
r = Abs[z3]
2
29
θ = Arg[z3]
π - ArcTan
7
3
polarform = r * Exp[I * θ]
π-ArcTan 3
2 7
29
ComplexExpand[%]
7
- +
3
29 29
0.20
0.15
z3
0.10
0.05
z3 = Conjugate[z3]
7
- -
3
29 29
P1Q1.Q2.nb 7
0.2
0.1
z3
-0.1
-0.2
ClearAll
ClearAll
Q4 : z4 = (1+3*I)*(2 +I)
3-I
(1 + 3 * I) * (2 + I)
z4 =
3-I
-1 + 2
Re[z4]
-1
Im[z4]
2
Abs[z4]
5
Arg[z4]
π - ArcTan[2]
r = Abs[z4]
5
θ = Arg[z4]
π - ArcTan[2]
8 P1Q1.Q2.nb
polarform = r * Exp[I * θ]
5 (π-ArcTan[2])
ComplexExpand[%]
-1 + 2
2.0
1.5
z4
1.0
0.5
z4 = Conjugate[z4]
-1 - 2
ListLinePlot{{0, 0}, {Re[z4], Im[z4]}}, {0, 0}, Re[z4], Im[z4], AxesLabel {x, y},
AxesOrigin {0, 0}, PlotStyle {Blue, Green, Thick}, PlotLegends "z4", "z4"
y
z4
-1
-2
Q1: z1 = 2 + 3i, z2 = 3 - 5i
z1 = 2 + 3 * I
2+3
In[1]:=
Out[1]=
P1Q1.Q2.nb 9
z2 = 3 - 5 * I
3-5
In[2]:=
Out[2]=
w1 = z1 + z2
5-2
In[3]:=
Out[3]=
PlotStyle {Blue, Green, Red, Thick}, PlotLegends {"z1", "z2", "w1 = z1+z2"}]
y
x
1 2 3 4 5
-1
z1
Out[17]= -2 z2
w1 = z1+z2
-3
-4
-5
w2 = z1 - z2
-1 + 8
In[4]:=
Out[4]=
PlotStyle {Blue, Green, Red, Thick}, PlotLegends {"z1", "z2", "w2 = z1-z2"}]
y
4 z1
z2
w2 = z1-z2
Out[18]= 2
-1
x
1 2 3
-2
-4
w3 = z1 * z2
21 -
In[5]:=
Out[5]=
10 P1Q1.Q2.nb
PlotStyle {Blue, Green, Red, Thick}, PlotLegends {"z1", "z2", "w3 = z1*z2"}]
y
x
1 2 3 4 5 6 7
-1
z1
Out[19]= -2 z2
w3 = z1*z2
-3
-4
-5
w4 = z1 / z2
19
In[6]:=
- +
9
Out[6]=
34 34
PlotStyle {Blue, Green, Red, Thick}, PlotLegends {"z1", "z2", "w4 = z1/z2"}]
y
x
0.5 1.0 1.5
-1
z1
-2 z2
w4 = z1/z2
Out[20]=
-3
-4
-5
Q2: z3 = 1/ (1 - i), z4 = 2 + 3i
z3 = 1 / (1 - I)
1
In[8]:=
Out[8]= +
2 2
z4 = 2 + 3 * I
2+3
In[9]:=
Out[9]=
P1Q1.Q2.nb 11
w5 = z3 + z4
5 7
In[13]:=
Out[13]= +
2 2
PlotStyle {Blue, Green, Red, Thick}, PlotLegends {"z3", "z4", "w5 = z3+z4"}]
y
3.5
3.0
2.5
z3
2.0
z4
w5 = z3+z4
Out[22]=
1.5
1.0
0.5
x
0.5 1.0 1.5 2.0 2.5
w6 = z3 - z4
3 5
In[14]:=
Out[14]= - -
2 2
PlotStyle {Blue, Green, Red, Thick}, PlotLegends {"z3", "z4", "w6 = z3 - z4"}]
y
z3
1
z4
w6 = z3 - z4
Out[23]=
-1
-2
w7 = z3 * z4
1 5
In[15]:=
Out[15]= - +
2 2
12 P1Q1.Q2.nb
PlotStyle {Blue, Green, Red, Thick}, PlotLegends {"z3", "z4", "w7 = z3 * z4"}]
y
3.0
2.5
2.0 z3
z4
w7 = z3 * z4
Out[24]=
1.5
1.0
0.5
-0.5
x
0.5 1.0 1.5 2.0
w8 = z3 / z4
In[16]:=
-
5
Out[16]=
26 26
PlotStyle {Blue, Green, Red, Thick}, PlotLegends {"z3", "z4", "w8 = z3 / z4"}]
y
1.2
1.0
z3
0.8
z4
w8 = z3 / z4
Out[25]=
0.6
0.4
0.2
x
0.2 0.4 0.6 0.8 1.0 1.2
For n = 3,we have to find the roots nth roots of the equation z^3 = 1
In[4]:= Sol0 = ComplexExpand[z /. Solve[z ^ 3 ⩵ 1]]
1 ⅈ 3 1 ⅈ 3
Out[4]= 1, - - , - +
2 2 2 2
In[13]:= ShowComplexListPlot{Sol0}, PlotStyle → Red, Thick, AxesLabel → "Re z", "Im z",
PlotMarkers → Automatic, 10, PlotRange → {- 1.1, 1.1}, - 1.1, 1.1,
GraphicsThick, Blend[{Purple, Black}, 0.2], Blend[{Green, Black}, 0.2], Circle[{0, 0}, 1],
1 1
Line{1, 0}, - , - (Sqrt[3] / 2), - , (Sqrt[3] / 2), {1, 0}
2 2
Out[13]=
Im z
1.0
0.5
Re z
-1.0 -0.5 0.5 1.0
-0.5
-1.0
For n = 4, we have to find the roots nth roots of the equation z^4 = 1
In[1]:= Sol1 = ComplexExpand[z /. Solve[z ^ 4 ⩵ 1]]
Out[1]= {- 1, - ⅈ , ⅈ , 1}
2
In[3]:= ShowComplexListPlot{Sol1}, PlotStyle → Red, Thick, AxesLabel → "Re z", "Im z",
PlotMarkers → Automatic, 10, PlotRange → {- 1.1, 1.1}, - 1.1, 1.1,
GraphicsThick, Blend[{Purple, Black}, 0.2], Blend[{Green, Black}, 0.2], Circle[{0, 0}, 1],
Line[{{0, 1}, {- 1, 0}, {0, - 1}, {1, 0}, {0, 1}}]
Im z
1.0
0.5
Out[3]=
Re z
-1.0 -0.5 0.5 1.0
-0.5
-1.0
1 5 5 5 1 5 5 5
Out[5]= 1, - - -ⅈ - , - + +ⅈ + ,
4 4 8 8 4 4 8 8
1 5 5 5 1 5 5 5
- + -ⅈ + , - - +ⅈ -
4 4 8 8 4 4 8 8
3
In[16]:= ShowComplexListPlot{Sol1}, PlotStyle → Red, Thick, AxesLabel → "Re z", "Im z",
PlotMarkers → Automatic, 10, PlotRange → {- 1.1, 1.1}, - 1.1, 1.1,
GraphicsThick, Blend[{Purple, Black}, 0.2], Blend[{Green, Black}, 0.2], Circle[{0, 0}, 1],
1 5 5 5 1 5 5 5
Line{1, 0}, - + , + , - - , - ,
4 4 8 8 4 4 8 8
1 5 5 5 1 5 5 5
- - , - - , - + , - + , {1, 0}
4 4 8 8 4 4 8 8
Out[16]=
Im z
1.0
0.5
Re z
-1.0 -0.5 0.5 1.0
-0.5
-1.0
1 ⅈ 3 1 ⅈ 3 1 ⅈ 3 1 ⅈ 3
Out[6]= - 1, 1, - - , + , - , - +
2 2 2 2 2 2 2 2
4
In[17]:= ShowComplexListPlot{Sol1}, PlotStyle → Red, Thick, AxesLabel → "Re z", "Im z",
PlotMarkers → Automatic, 10, PlotRange → {- 1.1, 1.1}, - 1.1, 1.1,
GraphicsThick, Blend[{Purple, Black}, 0.2],
Blend[{Green, Black}, 0.2], Circle[{0, 0}, 1], Line[{{- 1, 0}, {- 1 / 2, Sqrt[3] / 2},
{1 / 2, Sqrt[3] / 2}, {1, 0}, {1 / 2, - Sqrt[3] / 2}, {- 1 / 2, - Sqrt[3] / 2}, {- 1, 0}}]
Out[17]=
Im z
1.0
0.5
Re z
-1.0 -0.5 0.5 1.0
-0.5
-1.0
π π 3π 3π π π
Out[7]= 1, - Cos -ⅈ Sin , ⅈ Cos + Sin , - ⅈ Cos - Sin ,
7 7 14 14 14 14
π π 3π 3π π π
ⅈ Cos - Sin , - ⅈ Cos + Sin , - Cos +ⅈ Sin
14 14 14 14 7 7
5
In[20]:= ShowComplexListPlot{Sol1}, PlotStyle → Red, Thick, AxesLabel → "Re z", "Im z",
PlotMarkers → Automatic, 10, PlotRange → {- 1.1, 1.1}, - 1.1, 1.1,
GraphicsThick, Blend[{Purple, Black}, 0.2], Blend[{Green, Black}, 0.2], Circle[{0, 0}, 1],
3π 3π π π π π
Line{1, 0}, Sin , Cos , - Sin , Cos , - Cos , Sin ,
14 14 14 14 7 7
π π π π 3π 3π
- Cos , - Sin , - Sin , - Cos , Sin , - Cos , {1, 0}
7 7 14 14 14 14
Out[20]=
Im z
1.0
0.5
Re z
-1.0 -0.5 0.5 1.0
-0.5
-1.0
In[21]:= ShowComplexListPlot{Sol1}, PlotStyle → Red, Thick, AxesLabel → "Re z", "Im z",
PlotMarkers → Automatic, 10, PlotRange → {- 1.1, 1.1}, - 1.1, 1.1,
GraphicsThick, Blend[{Purple, Black}, 0.2], Blend[{Green, Black}, 0.2], Circle[{0, 0}, 1],
Line[{{- 1, 0}, {- 1 / Sqrt[2], 1 / Sqrt[2]}, {0, 1}, {1 / Sqrt[2], 1 / Sqrt[2]},
{1, 0}, {1 / Sqrt[2], - 1 / Sqrt[2]}, {0, - 1}, {- 1 / Sqrt[2], - 1 / Sqrt[2]}, {- 1, 0}}]
Out[21]=
Im z
1.0
0.5
Re z
-1.0 -0.5 0.5 1.0
-0.5
-1.0
PRACTICAL- 3
MAPPINGS
1. Show that the image of the open disk D_1(-1-i)={z:|z+1+i|<1} under the linear transformation
w=f(z)=(3-4i)z+6+2i is an open disk:
D_{5}(-1+3 i) = {w:|w+1-3i|<5} .
In[4]:= ClearAll
Out[4]= ClearAll
In[5]:= z = x+I*y
Out[5]= x+ⅈy
2 P3.nb
In[6]:= A1 = Show[RegionPlot[Abs[z + 1 + I] < 1, {x, - 3, 3}, {y, - 3, 3}, BoundaryStyle → {Dashed, Blue},
Axes → True, PlotStyle → Yellow], Graphics[Point[{- 1, 1}]]]
Out[6]=
0
-1
-2
-3
-3 -2 -1 0 1 2 3
Out[7]=
0
-5
-5 0 5
P3.nb 3
In[11]:= A1 = Show[RegionPlot[Abs[z + 1 + I] < 1, {x, - 3, 3}, {y, - 3, 3}, BoundaryStyle → {Dashed, Blue},
Axes → True, PlotStyle → Yellow], Graphics[Point[{- 1, 1}]]];
A2 = ShowRegionPlotAbsz - 6 - 2 * I 3 - 4 * I + 1 + I < 1, {x, - 8, 8},
{y, - 8, 8}, BoundaryStyle → {Dashed, Blue}, Axes → True,
PlotStyle → Yellow, Graphics[Point[{- 1, 3}]];
GraphicsRow[{A1, A2}]
Out[13]=
2. Show that the image of right half plane: Re z=x>1,under the linear transformation
w=f(z)=(-1+i)z-2+3i is the half plane: v > u+7,where u=Re w and v=Im w. Also plot the map.
Given, domain, say D, is the right half plane
D={z=x+iy:Re z=x>1};
Graph of the given half plane is shown below:
In[15]:= Show[RegionPlot[{Re[z] > 1}, {x, - 1, 5}, {y, - 3, 3}, AxesLabel → {" Re z " , " Im z "},
Axes → True, PlotStyle → Yellow], Graphics[{Thick, Dashed, Line[{{1, - 3}, {1, 3}}]}]]
Im z
3
Out[15]= 0 Re z
-1
-2
-3
-1 0 1 2 3 4 5
Now we need to show that the image of right half plane: Re z=x > 1 under the linear transformation
w=f(z)=(-1+i)z-2+3i is the half plane: v > u+7.
The given linear transformation is f : D → C such that
w=(-1+i)(x+iy)-2+3i=-x-y-2+i(x-y+3)
Put u(x,y)=-x-y-2 and v(x,y)=x-y+3
i.e, w=u(x,y)+i v(x,y)
In[17]:= w = u+I*v
Out[17]= u+ⅈv
Out[18]=
2
0 Re w
-2
-4
-10 -8 -6 -4 -2 0 2 4
Graph of the given half plane v > u+7,where u is Re(w) and v is Im(w), shown below.
It can be easily verified that both the graphs represent same region of image of right half plane: Re z=x
>1 .
P3.nb 5
In[19]:= Show[RegionPlot[{Im[w] > Re[w] + 7}, {u, - 7, 1}, {v, 10, - 3},
AxesLabel → {" Re w" , " Im w "}, Axes → True, PlotStyle → Yellow],
Graphics[{Thick, Dashed, Line[{{- 7, 0}, {1, 8}}]}]]
Im w
10
4
Out[19]=
0 Re w
-2
-6 -4 -2 0
3. Show that the image of right half plane A={z:Re z ≥ 0.5} under the linear transformation
1
w = f (z) = z
is the closed disc D1 (1)={w:|w-1|⩽1} in the w-plane.
Given, domain, is the right half plane
1
A={z:Re z ≥ 2 };
Graph of the given half plane is shown below:
In[21]:= z = x+I*y
Out[21]= x+ⅈy
6 P3.nb
In[22]:= Show[RegionPlot[{Re[z] > 0.5}, {x, - 1, 1}, {y, 3, - 3}, AxesLabel → {" Re z " , " Im z "},
Axes → True, PlotStyle → Yellow], Graphics[{Thick, Dashed, Line[{{0.5, - 3}, {0.5, 3}}]}]]
Im z
3
Out[22]= 0 Re z
-1
-2
-3
-1.0 -0.5 0.0 0.5 1.0
Now we need to show that the image of right half plane A={z: Re ≥0.5} under the linear transformation
1
w= f(z)= z
is the closed disk
D1 (1)={w:|w-1| ≤ 1} in the w- plane.
1
the given linear transformation is f:A→C is the inversion map such that w = f(z)= z
∀ z ∈ A.
Since Re z ≥ 0.5,
1
w= z
1
⇒ z= w .
Now,
1
Re z=Re( w )
1 Re z
⇒ Re( z ) = z 2
.
So,
1 Re w
Re( w ) = w 2
= Re(z) ≥ 0.5
Re w
⇒ w 2
≥ 0.5
2
⇒ w ≤ 2 Re w.
For, w=u+iv, we have
⇒ u 2 + v2 ≤ 2 u
⇒ u2 -2u+ v2 ≤ 0
⇒ u2 -2u+1+ v2 ≤ 1
⇒ ( u-1)2 + v2 ≤ 1
P3.nb 7
This represents a closed disc with the center(0,1) and radius 1 unit in w-plane.
Graph of resultant disc is given below:
In[23]:= z = u+I*v
Out[23]= u+ⅈv
Out[24]= 0 Re z
-1
-2
-2 -1 0 1 2
Practical 4
Plotting of Grid under the Inversion Map
-1 1
Print"The vertical lines x = a for a = -1, , , 1 and the horizontal
2 2
-1 1
lines y = b for b = -1, , , 1 are given by the figure: ";
2 2
-1 1
The vertical lines x = a for a = -1, , , 1 and the
2 2
-1 1
horizontal lines y = b for b = -1, , , 1 are given by the figure:
2 2
-1 1
grid := - 1, , , 1 ;
2 2
xcolor := {Red, Blue, Green, Yellow};
-1
-2
-2 -1 0 1 2
w = u + I * v;
-1 1
Print"The image of the vertical lines x = a for a = -1, , , 1 and the
2 2
-1 1
horizontal lines y = b for b = -1, , , 1 under the function f(z) = ",
2 2
f[z], " are given by thye figure: ";
-1 1
The image of the vertical lines x = a for a = -1, , , 1 and the horizontal lines y =
2 2
-1 1 1
b for b = -1, , , 1 under the function f(z) = are given by thye figure:
2 2 z
-1
-2
-2 -1 0 1 2
Conclusion: The mapping f[z] = 1/z maps horizontal and vertical line to circle
with center over real and imaginary axes passing through origin. Also, note that
right and left half plane is mapped to right and left half plane under inversion map.
Upper and lower half plane is mapped to lower and upper half plane respectively
under this map.
Practical 5
Polygonal Path
by
1.0
0.8
0.6
0.4
0.2
Re(z)
-2.0 -1.5 -1.0 -0.5
1.0
0.8
0.6
0.4
0.2
Re(z)
-1.0 -0.5 0.5 1.0
1.0
0.5
Re(z)
1.5 2.0 2.5 3.0
-0.5
-1.0
1.0
0.5
c1
c2
Re(z)
-1 1 2 3
c3
-0.5
-1.0
Practical 6
Contour Integral
Now, f(z) = ez
z(t) = t (2 + π
4
i)
f[z_] := Exp[z]
z[t_] := t * 2 + Pi * I / 4
Plotting of L
2 P 6.nb
0.6
0.4
0.2
Re z
0.5 1.0 1.5 2.0
ClearAll
ClearAll
P 6.nb 3
f[z_] = 1 z - 2
1
-2 + z
z[t_] = 2 + Exp[I * t]
2 + ⅇⅈ t
Plotting of C
1.0
0.8
0.6
0.4
0.2
Re z
1.5 2.0 2.5 3.0
f[z_] = z
z
z2[t_] = ComplexExpandt ^ 2 + 2 * t + I * t
2 + ⅈ t + t2
Plotting of c1 and c2
1.0
0.5
Re z
-1 1 2 3
-0.5
-1.0
+ i and the parametrization of z to z1(t) given by z1(t) = (-1 + 4t) + i(-1 + 2t), 0 ⩽ t
⩽ 1.
Then ∫c f (z) ⅆ z
1
Practical 8
Path Integral of the principal branch of the
function 1
1
2*z 2
1
◼ Question 1: Evaluate the integral ∫c ⅆ z, over c
upper
1
2* z 2
where C is the line segment joining 4 to 8 + 6i. Also plot
the path of integration.
1
Here, f(z) = 1
1 , where z 2 is the principal branch of the square root function.
2*z 2
Line segment C passing through 4 to 8 + 6i is parametrized by
z '[t]
4+6ⅈ
f[z[t]]
1
2 4 + 4 + 6 ⅈ t
Re z
2 4 6 8
Practical 9
Laurent Series Expansion
Print[
"The Taylor series expansion of the function f is valid in the disk |z| < 1 and Laurent
series expansion of the function f is valid in the annulus 1 < |z| < 2 and |z| > 2.
These three domains are illustrated in the following figure: "]
Show [ParametricPlot[{r * Cos[t], r * Sin[t]},
{r, 0, 1}, {t, 0, 2 * Pi}, PlotStyle → Red, Mesh → None],
ParametricPlot[{r * Cos[t], r * Sin[t]}, {r, 1, 2}, {t, 0, 2 * Pi}, PlotStyle → Yellow,
Mesh → None], ParametricPlot[{r * Cos[t], r * Sin[t]}, {r, 2, 6},
{t, 0, 2 * Pi}, PlotStyle → Blue, Mesh → None], PlotRange → 4]
Print["The Taylor series expansion of the function f is the
disk |z| < 1 is given by f(z) = ", Series[f[z], {z, 0, 10}]];
Print["The partial fraction gives f(z) = ", Apart[f[z]]];
Print"The Laurent series expansion of the
function f in the annulus 1 < |z| < 2 is given by f(z) = ",
Series1 2 - z, {z, 0, 10} + Series1 1 + z, {z, Infinity, 10};
Print["The Laurent series expansion of the function f in the annulus
|z| > 2 is given by f(z) = ", Series[f[z], {z, Infinity, 10}]];
The Taylor series expansion of the function f is valid in the disk |z| < 1 and Laurent
series expansion of the function f is valid in the annulus 1 < |z| < 2 and |z| > 2.
These three domains are illustrated in the following figure:
2 P 9.nb
-2
-4
-4 -2 0 2 4
The Taylor series expansion of the function f is the disk |z| < 1 is given by f(z) =
3 3 z 9 z2 15 z3 33 z4 63 z5 129 z6 255 z7 513 z8 1023 z9 2049 z10
- + - + - + - + - + + O[z]11
2 4 8 16 32 64 128 256 512 1024 2048
1 1
The partial fraction gives f(z) = - +
-2 + z 1 + z
The Laurent series expansion of the function f in the annulus 1 < |z| < 2 is given by f(z) =
1 z z2 z3 z4 z5 z6 z7 z8 z9 z10
+ + + + + + + + + + + O[z]11 +
2 4 8 16 32 64 128 256 512 1024 2048
1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11
- + - + - + - + - + O
z z z z z z z z z z z
The Laurent series expansion of the function f in the annulus |z| > 2 is given by f(z) =
3 3 9 15 33 63 129 255 513 1 11
- 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 + O
z z z z z z z z z z
P 9.nb 3
-1 1 2 3 4 5 6
4 6 8 10
-1
-2
-3
-4
-1
-2
-3
-4
-5
-6
Practical 10
Poles
TransferFunctionPoles[TransferFunctionModel[{f[z]}, z]]
T[z_] = TransferFunctionModel[{f[z]}, z]
1
5 + 26 z2 + 5 z4
-4 -2 2 4
-2
-4
Practical 11
Residue
Pi * Cot[Pi * z]
zeroes = z /. Reduce ⩵ 0
z2
+ π C[ 1]
π
2
ReplaceAll: C[1] ∈ Integers && z ≠ 0 && z ⩵ is neither a list of replacement rules nor a valid dispatch table, and so
π
cannot be used for replacing.
π + π C[1]
z /. C[1] ∈ Integers && z ≠ 0 && z ⩵ 2
π
Now, g(z) has poles wherever z = 0 or sin(Pi*z) = 0, so at z = n belongs to Z, n is not equal to 0. About
these points we have
For z = 0,
Series[g[z], {z, 0, 10}]
1 - π2 - π4 z - 2 π6 z3 - π8 z5 - 2 π10 z7 - 1382 π12 z9 + O[z]11
z3 3 z 45 945 4725 93 555 638 512 875
For z = n belongs to Z, n ≠ 0
Series[Cot[Pi * z], {z, n, 5}]
Cot[n π] + - π - π Cot[n π]2 (z - n) + π2 Cot[n π] + π2 Cot[n π]3 (z - n)2 +
1 - π3 - 4 π3 Cot[n π]2 - 3 π3 Cot[n π]4 (z - n)3 +
3
1 2 π4 Cot[n π] + 5 π4 Cot[n π]3 + 3 π4 Cot[n π]5 (z - n)4 +
3
1 - 2 π5 - 17 π5 Cot[n π]2 - 30 π5 Cot[n π]4 - 15 π5 Cot[n π]6 (z - n)5 + O[z - n]6
15
g[z]
π Cot[π z]
z2
z = 1 is a pole of order 1
z = 2 is a pole of order 1
Print" Res(g (z))= -Pi/3 and Res(g (z))= 1/ n^2, for z = n belongs to Z, n ≠ 0 "
z=0 z=n
Print ["Therefore, g[z] = Pi Cot(Pi*z)/ z^2
has simple poles at z = n ≠ 0 and pole of order 3 at z = 0"]
Res(g (z))= -Pi/3 and Res(g (z))= 1/ n^2, for z = n belongs to Z, n ≠ 0
z=0 z=n
Therefore, g[z] = Pi Cot(Pi*z)/ z^2 has simple poles at z = n ≠ 0 and pole of order 3 at z = 0
Practical 12
Contour Integration through residue
Out[2]= 1+ 4 + 4 + 2 + 8 + 4 + 4 + 2 + 4 + 2 +2
14 175 z10 2835 z9 315 z8 315 z7 45 z6 15 z5 3 z4 3 z3 z2 z
1
Out[9]=
- 2 z 2 + z3 + z4
Out[17]= - 1
12
Out[18]= -1
4
Out[15]=
1
3