I am self-studying complex analysis using Dennis Zill's, A First Course in Complex Analysis. I'm a bit stuck on one of the exercises in Chapter 2.4, which asks us to find the image of the region shown in the figure below under the principal square root function $w=z^\frac{1}{2}$.
My naive attempt, based on the Documentation for ComplexRegionPlot
is:
region[z_] := 0 >= Re[z] >= 4 - (Im[z])^2/16 && Im[z] >= 0;
f[z_] := z^(1/2);
{ComplexRegionPlot[region[z], {z, 20}, PlotLabel -> z],
ComplexRegionPlot[region[InverseFunction[f][z]], {z, 20},
PlotLabel -> f[z]]}
Which gives me:
My confusion is, why am I getting two triangular regions for the image? Shouldn't the image be limited to the single triangular region in the first quadrant?
EDIT:
Upon further reflection, it appears that my function f[z_] := z^(1/2)
is not the principal square root function. If I instead define a new function,
g[z_] := Sqrt[Abs[z]] E^(I Arg[z]/2)
then do
{ComplexRegionPlot[region[z], {z, 20}, PlotLabel -> z],
ComplexRegionPlot[region[InverseFunction[g][z]], {z, 20},
PlotLabel -> g[z]]}
then I get the desired result:
f[z_] := z^(1/2)
is not the principal square root function but instead is giving both square roots. I will edit my original post accordingly. $\endgroup$