Continuity of Quotient of Complex Values

In summary, the conversation discusses a question about the quotient of complex values and how the imaginary part of the function behaves when evaluated at a very small value of a. The experts explain that the problem lies in the use of the square root function and its convention of selecting only one root. They also suggest using a different convention for the square root function to make it continuous in this case.
  • #1
thatboi
133
20
Hey all,
I have a very simple question regarding the quotient of complex values. Consider the function:
$$f(a) = \sqrt{\frac{a-1i}{a+1i}}$$
where ##i## is the imaginary unit. When I evaluate f(0) in Mathematica, I get ##f(0) = 1i##, as expected. But if I evaluate at a very small value of ##a## such as ##a = 10^{-20}##, I get ##f(10^{-20}) = 10^{-20} - 1i##. I naively thought that ##f## would be continuous in ##a## but it is clear that somehow the imaginary part of ##f## flips sign the moment I introduce some small value for ##a##. How do I explain this behavior? I feel like there is something obvious here I am missing.
Thanks!
 
Mathematics news on Phys.org
  • #2
The problem is not in the quotient, it is in the square root function. The square root of any real number, ##r \in \mathbb{R}, r \gt 0## can be positive or negative. It is a matter of convention that the positive number is considered the "principle branch" and is the answer given. That means that the "principle branch" excludes the negative answers, which are in another (non-principle) branch. The negative real axis in the z domain is called a "branch cut". When your input crosses the branch cut there will be a discontinuity because the continuous answer would cross into a different branch answer. That is what happened in your example. (see this )
 
Last edited:
  • Like
Likes PeroK, thatboi and andrewkirk
  • #3
The problem arises from the use of the square root sign as if it denoted a function - ie a map that can only give one value per input. Recall that every complex number has square roots, Each is -1 times the other. So to make the square root sign able to work as a function we need to adopt a convention as to which of the two roots we select, For square roots of positive real numbers we use the convention That we always select the positive root. For square roots of negative numbers that can't apply so we need a different convention. that typically means it selects the root that lies within a designated set of two consecutive quadrants of the complex plane. That makes such a sqrt function discontinuous at the places in the domain that map to the boundary of that region of the range.

It looks like Mathematica is using the 1st and 4th quadrants, ie requiring the argument to lie in the range ##(-\pi/2, \pi/2]##. That makes its square root function discontinuous at the negative x axis, as that maps to the negative y axis that is the omitted boundary of the selected half plane.

For your case with small ##a##, the item inside the sqrt sign approaches -1 as a goes to zero, so the discontinuous sqrt function gives a discontinuity there.

It's easily fixed by selecting the other square root: ##10^{-20}+i##, which is very close to ##i##.

EDIT: Just when I posted it, I saw that @FactChecker posted essentially the same thing just before me (only more concisely)!

EDIT2: If you instead adopt a square root function that always selects the square root lying in quadrant 1 or 2 (more specifically: the root's argument lying in ##(0,\pi]##) , your function will be continuous, because that sqrt function's discontinuity lies on the positive x axis, which is not in the image of the expression inside the square root sign.
 
Last edited:
  • Like
Likes thatboi and FactChecker
  • #4
Isn't there an issue too, of how calculators rounding of, accuracy breaking down at such small numbers?
 
  • Like
Likes FactChecker
  • #5
WWGD said:
Isn't there an issue too, of how calculators rounding of, accuracy breaking down at such small numbers?
Good point. Those types of small problems near the discontinuity of a branch cut would cause large discontinuities.
 
  • Like
Likes WWGD
  • #6
thatboi said:
Hey all,
I have a very simple question regarding the quotient of complex values. Consider the function:
$$f(a) = \sqrt{\frac{a-1i}{a+1i}}$$
For real [itex]a[/itex], in the principal branch this is [tex]
f(a) = \sqrt{\frac{(a-i)^2}{1 + a^2}} = \begin{cases}
\frac{-a + i}{\sqrt{1 + a^2}} & a \leq 0 \\
\frac{a - i}{\sqrt{1 + a^2}} & a > 0. \end{cases}[/tex] You can see that [tex]
\lim_{a \to 0^{-}} f(a) = f(0) = i \neq -i = \lim_{a \to 0^{+}} f(a).[/tex]
WWGD said:
Isn't there an issue too, of how calculators rounding of, accuracy breaking down at such small numbers?
In general, yes. But here from the exact result above you can see that the only inaccuracy in the numerical result of [itex]10^{-20} - i[/itex] comes from taking [itex]\sqrt{1 + 10^{-40}} \approx \sqrt{1 + 2^{-132.88}}[/itex] to be exactly 1. In particular, the sign of the imaginary part is correct.
 
  • Like
Likes FactChecker

FAQ: Continuity of Quotient of Complex Values

What is the continuity of a quotient of complex-valued functions?

The continuity of a quotient of complex-valued functions refers to the behavior of the function defined as the ratio of two complex functions. Specifically, if \( f(z) \) and \( g(z) \) are complex-valued functions, the quotient \( \frac{f(z)}{g(z)} \) is continuous at a point if both functions are continuous at that point and \( g(z) \) is not equal to zero at that point.

Under what conditions is the quotient of complex functions continuous?

The quotient \( \frac{f(z)}{g(z)} \) is continuous at a point \( z_0 \) if the following conditions are met: 1) \( f(z) \) is continuous at \( z_0 \), 2) \( g(z) \) is continuous at \( z_0 \), and 3) \( g(z_0) \neq 0 \). If \( g(z_0) = 0 \), the quotient is undefined, and thus not continuous at that point.

How do we determine the continuity of complex functions?

To determine the continuity of complex functions, we check if the limit of the function as it approaches a point equals the function's value at that point. For a function \( f(z) \) to be continuous at \( z_0 \), we need to evaluate \( \lim_{z \to z_0} f(z) \) and ensure it equals \( f(z_0) \). This involves analyzing both the real and imaginary parts of the function.

What is the significance of the limit in the continuity of quotients?

The limit plays a crucial role in establishing continuity for the quotient of complex functions. When evaluating \( \lim_{z \to z_0} \frac{f(z)}{g(z)} \), we need to ensure that both the numerator and denominator approach their respective limits as \( z \) approaches \( z_0 \). If \( g(z) \) approaches zero, special care must be taken, as this can lead to undefined behavior in the limit.

Can the continuity of the quotient fail even if the individual functions are continuous?

Yes, the continuity of the quotient can fail even if the individual functions \( f(z) \) and \( g(z) \) are continuous. This typically occurs when \( g(z) \) approaches zero at the point of interest. For example, if \( f(z) \) is continuous and \( g(z) \) is continuous but \( g(z_0) = 0 \), then \( \frac{f(z)}{g(z)} \) is not continuous at \( z_

Similar threads

Replies
7
Views
2K
Replies
7
Views
2K
Replies
8
Views
2K
Replies
2
Views
2K
Replies
11
Views
2K
Replies
27
Views
2K
Replies
10
Views
848
Replies
4
Views
2K
Back
Top