
5.3. DEFINITE INTEGRALS 203
C is chosen to consist of an inner circle of radius and an outer circle of radius
R (both centered on the origin) joined by horizontal lines a distance η above
and below the branch cut. Ultimately, we let both and η → 0andR →∞.
In order to draw the circular arcs in C, the plottools library package is first
loaded. The complex integrand is then entered.
>
restart: with(plots): with(plottools):
>
integrand:=sqrt(z)/(1+zˆ2);
integrand :=
√
z
1+z
2
Before drawing C, let’s use the singular command to extract the singularities
of the integrand, needed for the application of Cauchy’s residue theorem.
>
pole:=singular(integrand);
pole := {z = I}, {z = −I}
There are two singular points at z = i and z =−i, corresponding to the locations
of two simple poles. The operand command, op, is now used to separately obtain
the locations, z1 and z2 , of the two poles.
>
z1:=op([1,2],pole[1]); z2:=op([1,2],pole[2]);
z1 := I z2 := −I
The pole locations may be converted into polar form.
>
z1_polar:=convert(z1,polar); z2_polar:=convert(z2,polar);
z1
polar := polar(1,
π
2
) z2
polar := polar(1, −
π
2
)
The poles lie on a circle of radius 1 at the polar angles θ=+π/2and−π/2. To
schematically draw the contour, let’s set R =2, =0.2, and η =0.05.
>
R:=2: epsilon:=0.2: eta:=0.05:
Thick red circular arcs of radius and R, respectively, are drawn in A1 and A2.
>
A1:=arc([0,0],epsilon,Pi-0.2..-Pi+0.2,color=red,thickness=2):
>
A2:=arc([0,0],R,Pi-0.02..-Pi+0.02,color=red,thickness=2):
A thick blue line is drawn along the real axis between x = −R − 0.5 and the
origin to represent the branch cut.
>
B:=plot([[-R-0.5,0],[0,0]],style=line,color=blue,thickness=3):
Red lines are drawn between (−R,η), (−,η) and between (−R,−η), (−,−η).
>
B2:=plot([[[-R,eta],[-epsilon,eta]],[[-R,-eta],
[-epsilon,-eta]]],style=line,color=red,thickness=2):
The two poles are represented by size 16 blue circles,
>
C:=plot({[0,z1/I],[0,z2/I]},style=point,symbol=circle,
symbolsize=16,color=blue):
and the textplot command is used to add labels to the figure.
>
tp:=textplot([[-1.9,-.15,"a"],[-1.9,.15,"b"],[-.25,.15,"c"],
[-.25,-.15,"d"],[-2.3,.1,"cut"]]):
The six plots are superimposed, the resulting picture being shown in Figure 5.5.