When manipulating functions of complex variables, one must always keep in mind that complex structure can lead to results that differ surprisingly from the same operations on functions of real variables. This can be exhibited neatly in evaluating inverses of complex functions. For example, for real x it is straightforward that
which can be confirmed visually by plotting the left-hand side as a function of x:
Now consider including an explicit imaginary unit. While it is true on paper that
the direct numerical evaluation appears quite different. The imaginary part of the left-hand side of this equation is identically zero as expected, but the real part is not continuous:
This occurs because , so that the numerical evaluation is modulus . The complex function can be made numerically continuous by explicitly including this phase shift between branches of the complex function,
where k is the index for the branch. The resulting plot then matches the paper result:
This difference is even more dramatic in three dimensions. A direct plot of the function
has a similar discontinuous appearance,
but if the phase shift between branches is included, one obtains the expected planar behavior:
The general takeaway is: watch out for branches of complex functions!
A somewhat more complicated example occurs in taking powers of complex numbers and inverting them with roots. Since all complex numbers can be written in the form
use the exponential function as a proxy for the operation under consideration. For real x it is straightforward that
which can again be confirmed visually by plotting the left-hand side as a function of x,
where changing value of n has no effect on the plot as expected. Including an explicit imaginary unit, while it is true on paper that
the direct numerical evaluation again appears quite different. This time there are both real and imaginary parts of the left-hand side, which on paper are the functions cosine and sine. Numerically it looks like this,
with the real part in blue and imaginary in red. When the trigonometric functions appear, but as this value increases it is clear that only parts of these functions remain. The period of these remaining parts is also decreased relative to that of the trigonometric functions, patently to the value
How does one make sense of the situation? The numerical evaluation here is again modulus , and this applies not to a particular value of x but its product with n. The period is thus determined by the value of the modulus alone, which after the root acquires the indicated denominator.
To find the missing pieces of each function, again include an index for branches of the complex function:
The logarithm function above had a simple linear dependence on the branch index. The dependence here is more complicated, meaning that the regions over which the function is evaluated need to be determined separately from the index. Here is a visualization in purple of the real part of each branch compared to the principal branch,
followed by the imaginary part in magenta, again compared to the principal branch:
Et voilà! The missing parts of each function reappear as the branch index is altered.
A branch recapitulates the principal branch whenever is an integer. For a power n with one decimal place this generally requires ten times this number of branches, unless there is a simplification in this ratio. For a power with two decimal places this generally requires one hundred times this number of branches, and so on for more decimal places.
Knowing that all the pieces of the functions are there, how does one put them back together into a single continuous function? This is simpler than expected: use another index m to indicate on which part of the principal branch to begin, and the regions of evaluation then follow consecutive branch indices.
In applying this procedure to the central three pieces of the principal branch, a small gap is deliberately included to indicate locations of change of branch. For the real part of the function one has
and for the imaginary part
Piece of pie! Easy as cake! Get the reference?
And again things are much more dramatic in three dimensions. Consider a direct plot of the function
for a restricted range of x and colored by complex argument. First the real part,
then the imaginary part:
Now repeat these two graphics with the inclusion of the branch index k to show the pieces of the complex function, again in comparison with the principal branch. First the real part,
followed by the imaginary part:
Coloring by complex argument helps one to see how the various branches connect to one another.
Lastly, one can reconstruct continuous surfaces in exactly the same way as above for one-dimensional lines. A small gap is again deliberately included to indicate locations of change of branch. For the real part of the function one has
and for the imaginary part
Easy as cake! Piece of pie!
The methods used above can naturally be extended to additional functions. Since the examples given illustrate the procedure sufficiently, this will be left as a future possible addition to this presentation.
Uploaded 2024.11.23 analyticphysics.com