
218 CHAPTER 5. COMPLEX VARIABLES
w(z) may be obtained by setting Z = z, solving for ω, and simplifying.
>
w:=simplify(solve(Z=z,w),symbolic);
w :=
1
2
(1 + e
(
2 zπ
h
)
) e
(−
zπ
h
)
Converting w to trig form and applying the combine command with the trig
option, yields the final simplified form of w.
>
w:=combine(convert(w,trig),trig);
w := cosh(
zπ
h
)
To determine the equipotentials and electric field lines in the strip, let’s enter
z =x + iy and set h=1 for plotting purposes. Then, w= u + iv is expressed in
terms of real and imaginary parts
>
z:=x+I*y: h:=1: w:=evalc(w);
w := cosh(πx) cos(πy) + sinh(πx)sin(πy) I
and the forms of u and v extracted,
>
u:=remove(has,w,I); v:=select(has,w,I)/I;
u := cosh(πx) cos(πy) v := sinh(πx)sin(πy)
In the w plane, the equipotentials v =const. are clearly parallel to the real
axis and the field lines u =const. perpendicular to this axis. In the z plane,
the equipotential and field lines can be obtained by using the contourplot
command, and selecting some fixed values for the contours. A function operator
cp is created to perform this task, where V will be taken to be u and v and the
color C chosen to be blue and red, respectively.
>
cp:=(V,C)->contourplot(V,x=0..1,y=0..1,
[contours=seq(n,n=-4..4),-1/4,-1/2,1/4,-1/2],
grid=[100,100],color=C,thickness=2):
Using the operator cp in the following display command produces the picture
shown on the right of Figure 5.13. The conducting sheet is an equipotential so
the electric field lines in the strip intersect the edges of the sheet perpendicularly
as expected, as well as all other equipotential curves.
>
display({cp(u,blue),cp(v,red)},axes=frame);
5.6 Supplementary Recipes
05-S01: Roots
Determine all the roots of z
1/9
,wherez =(1+
√
3 i). Plot the roots and z in the
same figure, superimposing them on circles centered on the origin of radii |z|
and |z|
1/9
, respectively. What is the value in radians of the principal argument?
05-S02: Fluid Flow Around a Cylinder
Consider the complex function w = u + iv=V
0
(z + a
2
/z), with z = x + iy.
(a) Determine u and v and demonstrate that they satisfy both Cauchy–
Riemann conditions and Laplace’s equation.