Can we apply the detachment operator in the Complex plane? As in Real Analysis, a theory built on the derivative sign would go through rate calculations, and wherever the derivative is nonzero it would add nothing. But what if we introduce a theory of "complex trends" that computes them directly, without going through the derivative? Would it apply to non-differentiable and even discontinuous functions, as it does on the real line? And would it capture trends in the function's image more reliably than the derivative sign?
Complex Analysis is full of concepts that generalize their Real Analysis counterparts, such as continuity and the derivative. Inspired by the operator's applications in AI, the natural sciences and Real Analysis, let us define a complex version of a function's detachment and study its basic properties. We start from the real line, because the sharper we are there, the clearer it becomes which parts survive in the plane.
From the Real Line
For f:R→R, the one-sided detachments [5] at a point x are
f±;(x)≡±h→0±limsgn[f(x+h)−f(x)],
and f is detachable at x when both limits exist. The ± coefficient makes both of them read from left to right: f+;=+1 says the values rise as we leave x to the right, and f−;=+1 says they rise as we arrive at x from the left. Four facts about this pair shape everything below.
First, the limit is a statement about eventual signs. The sign function takes only the values −1,0,+1, so its limit exists exactly when it is eventually constant. Thus f+;(x)=+1 means f(x+h)>f(x) for every small enough h>0, and f+;(x)=0 means a genuine plateau, f(x+h)=f(x) near x on the right. Nothing is divided and no magnitude is measured. The operator is also partial: for x3sin(1/x) (with value 0 at 0) the sign of f(h)−f(0) keeps changing as h→0, so neither one-sided detachment exists there, although the derivative does and equals 0.
Second, away from a zero derivative the detachment is the derivative sign. Suppose the one-sided derivative f+′(x) exists and is a nonzero real number. Close to x the quotient (f(x+h)−f(x))/h has the sign of f+′(x), and because h>0 the increment f(x+h)−f(x) has that sign as well. Hence f+;(x)=sgnf+′(x), and likewise on the left. Where f′(x)=0 the detachment repeats sgnf′(x) on both sides. Where f′(x)=0 it can say anything: at the origin, x3, −x3, x2 and the zero function all have derivative 0, while their pairs (f−;,f+;) are (+1,+1), (−1,−1), (−1,+1) and (0,0).
Third, a trend at a point is weaker than monotonicity near it. Take f(x)=x+2x2sin(1/x) with f(0)=0, a classical counterexample [3]. Its difference quotient at the origin is
hf(h)−f(0)=1+2hsin(h1)≥1−2∣h∣>0(0<∣h∣<21),
so f′(0)=1 and f−;(0)=f+;(0)=+1: just left of the origin f lies below f(0), and just right of it f lies above. Yet away from the origin
f′(x)=1+4xsin(x1)−2cos(x1),
which equals −1 at x=1/(2πn) and 3 at x=1/((2n+1)π). Both sequences tend to 0, so f is monotone on no interval around the origin. The detachment records only how each side stands relative to the anchor f(0), and says nothing about the order of two values on one side.
Fourth, the detachment survives where every rate is silent. Let b(x)=e−1/x2 with b(0)=0. All derivatives of b vanish at the origin, so no Taylor coefficient can tell what happens there. Still, b(h)>b(0) for every h=0, so (b−;(0),b+;(0))=(−1,+1), which says at once that the origin is a strict local minimum. In general, (f−;,f+;)=(−1,+1) at an interior point holds if and only if the point is a strict local minimum, with no continuity or differentiability assumed. This works because the detachment uses only comparisons of values. Replacing f by ϕ∘f for a strictly increasing ϕ changes no detachment, while the derivative can change completely: with f(x)=x and ϕ(y)=y3, the derivative at the origin drops from 1 to 0.
The complex plane has no order, so the last fact cannot carry over as it stands. What does carry over is direction. Write a one-sided increment near a point as ctν+o(tν) with c=0. The pair (sgnc,ν) says which way the function moves and how fast the change vanishes; in tropical geometry this pair is called the signed valuation [4]. The detachment keeps the first coordinate and drops the second, which is where the rate lives.
Defining the Complex Detachment
Recall that the signum of a complex number z is defined as:
sgn(z)≡∣z∣z=eiarg(z)(z=0),sgn(0)≡0,
where arg(⋅) is the complex argument function. Geometrically, the sign function maps every nonzero point of the complex plane to its closest point on the unit circle:
On the real line, the detachment was softened relative to the derivative by allowing one-sided limits and by not requiring them to agree. In higher dimensions, one-sided derivatives extend naturally to directional derivatives. The Complex Analysis literature focuses on differentiable and, more specifically, analytic functions. Still, complex partial derivatives, known as Wirtinger derivatives, are common, and they serve to define complex directional derivatives. These appear in advanced research (see [2], p. 722) and as a teaching and auxiliary tool (see [1], p. 19). Here is the analogous way to define a directional detachment.
Definition 1. The φ-detachment of a function f:C⟶C at a point z0∈C is
fφ;(z0)≡e−iφt→0+limsgn[f(z0+teiφ)−f(z0)],(1)
so that fφ; takes values in S1∪{0}, where S1 is the unit circle in the complex plane. The limit runs along the ray that leaves z0 in the direction φ, that is, over the points z with arg(Δz)=φ as Δz→0. We say that f is φ-detachable at z0 if the limit exists. Since ∣sgnw∣=1 for every w=0, the value 0 occurs exactly when f is constant on a short segment of that ray.
The e−iφ coefficient generalizes the ±1 coefficient of the one-sided detachments, and it does so literally. If f is real on the real line, then φ=0 gives f+;(x), and φ=π gives f−;(x), because e−iπ=−1 and the ray in direction π is the left side of x. Both coefficients make the detachment consistent with the derivative sign, as Claim 1 shows.
The definition subtracts f(z0) for a reason. If f is continuous at z0 and f(z0)=0, then sgnf(z0+teiφ) simply tends to sgnf(z0), which reports where the value is and nothing about how it changes. The trend is carried by the increment.
The diagram below compares two ways of turning the increment Δf=f(z)−f(z0) into local information. Applying the limit directly to Δf would give 0 at every point of continuity, so both operators first rescale it:
Difference quotient
Difference sign
ΔzΔf
∣Δf∣Δf
Divides Δf by Δz before the limit.
Divides Δf by its own length, a fixed scale, before the limit.
The following claim shows that the detachment adds information beyond the derivative only where the derivative vanishes.
Claim 1. Let f:C⟶C, and suppose the directional difference quotient
∂φ∂f(z0)≡t→0+limteiφf(z0+teiφ)−f(z0)
exists and is nonzero. Then f is φ-detachable at z0, and
fφ;(z0)=sgn[∂φ∂f(z0)].
In particular, if f is differentiable at z0 with f′(z0)=0, then fφ;(z0)=sgnf′(z0) for every direction φ.
Proof. Write Δf=f(z0+teiφ)−f(z0). Since sgn is multiplicative and sgn(teiφ)=eiφ for t>0,
where the limit passes inside the sign because the sign function is continuous on C\{0} and the quotient tends to a nonzero number. For differentiable f the quotient tends to f′(z0) along every ray.■
Detachability did not have to be assumed; it follows. For brevity, we will denote the φ-detachment at z0 by f; rather than fφ;(z0).
Geometric Intuition
Suppose that f is φ-detachable at z0, and let ϵ>0. By the definition of the limit, for every z=z0+teiφ with t>0 small enough,
sgn[f(z)−f(z0)]−f;eiφ<ϵ.
So f(z) lies in a thin wedge with its vertex at f(z0), opening around the ray from f(z0) in the direction f;eiφ. The chord-angle analysis below gives the half-angle of the wedge.
Recall that for real functions the detachment is equivalent to the following statement, because the real sign function is discontinuous at zero and takes only three values:
The analogous statement in the complex domain does not necessarily hold, and it is stricter than the existence of the limit in equation (1). It would force the image of a short segment of the ray to lie on a single half-line from f(z0). The complex sign is continuous away from zero and takes a whole circle of values, so a limit of signs can be approached without being attained. For example, f(z)=z+iz2 at z0=0 in the direction φ=0 has Δf=t+it2, whose sign tends to 1 and never equals it.
We know that limz→0sgn(z) does not exist, because its value depends on the path along which z approaches zero. Fixing the direction of approach is what turns this limit into something we can compute. The detachability of a real function at a point is synonymous with the function having a "local trend" there. The detachability of a complex function points to a local trend in a broader sense: a φ-detachable function maps the points of a short segment leaving z0 in direction φ to points approaching a single ray from f(z0).
The differentiability of a function at a point lets us compute its values with the linear approximation formula. The function's value is linear in the difference between the points, up to the function ρ:
f(z)=f(z0)+f′(z0)(z−z0)+ρ(z)(z−z0),
where limz→z0ρ(z)=0 and z=z0.
The detachment suggests a different kind of approximate linear relation for the image, one whose formula carries no information from the domain. Suppose f is φ-detachable and let ϵ>0. For z on the ray and close enough to z0,
sgn[f(z)−f(z0)]−f;eiφ<ϵ.
Since f;eiφ is a limit of points on the (closed) unit circle, it lies on the circle as well, and the chord between it and sgn[f(z)−f(z0)] has length less than ϵ. Let us assume without loss of generality that 0<arg(f;eiφ)<2π, which amounts to rotating the target plane, a step that leaves chord lengths unchanged. The chord-angle argument assumes f;=0 and ϵ<2.
Let θf be the angle between sgn[f(z)−f(z0)] and f;eiφ. On the unit circle, a chord that subtends the angle θf has length 2sin(∣θf∣/2), so
sgn(Δf)−f;eiφ=2sin2∣θf∣<ϵ,
and therefore
∣θf∣<2arcsin(2ϵ).
We have shown that near z0 the argument of the increment of f stays within a fixed angle of the detachment's direction:
arg(Δf)−arg(f;eiφ)<2arcsin(2ϵ).(2)
We will refer to this analysis, which turns a bound on a chord's length into a bound on its angle, as the "chord-angle" analysis.
Computability and Consistency
As in Real Analysis, detachability at a point does not imply continuity or differentiability, and vice versa. One rule computes most of the examples below at once. It is the complex form of the signed valuation from the first section.
Claim 2 (leading-term rule). Suppose that along the ray in direction φ,
f(z0+teiφ)−f(z0)=ctν+o(tν)(t→0+)
for some c∈C\{0} and some real ν. Then fφ;(z0)=e−iφsgnc.
Proof. Dividing by tν>0 does not change the sign, so the sign of the increment equals sgn(c+o(1)), which tends to sgnc by the continuity of the sign function away from 0.■
The exponent ν never enters the answer. Two consequences follow directly.
If f is analytic at z0 and f−f(z0) has a zero of order m≥1 there, with leading Taylor coefficient am, then c=ameimφ and
fφ;(z0)=sgn(am)ei(m−1)φ.
For m=1 this is Claim 1 again. For every m≥2 the derivative vanishes, while the detachment, as φ goes once around z0, winds m−1 times around the unit circle. The detachment shows the order of a critical point through its winding; the value of the derivative cannot.
If f has a pole of order m at z0, with leading Laurent coefficient a−m and any finite value assigned at z0, then c=a−me−imφ with ν=−m, and
fφ;(z0)=sgn(a−m)e−i(m+1)φ.
Let us now work through some basic examples to gain intuition.
Example 1. Let us consider the following function:
f(z)={z1,0,z=0,z=0.
Let us calculate the φ-detachments at the origin by the definition:
fφ;(0)=e−iφt→0+limsgn[teiφ1]=e−iφ⋅e−iφ=e−2iφ,
in agreement with the pole case of Claim 2 (m=1, a−1=1). This function is neither continuous nor differentiable at the origin, and the detachment still provides monotony information there.
Example 2. Let f(z)=z2. The derivative is f′(z0)=2z0. At z0=0 the derivative vanishes, so we calculate the detachment from its definition:
fφ;(0)=e−iφt→0+limsgn(t2e2iφ)=e−iφ⋅e2iφ=eiφ.
As in Real Analysis, the directional derivatives provide no monotony information at the stationary point, while the directional detachment does. This is the case m=2 of Claim 2: one full turn of φ turns the detachment once around the circle.
Example 3. Let f(z)=z, the principal branch, with φ∈(−π,π]. The derivative is f′(z0)=2z01. At z0=0 the derivative does not exist, so we calculate the detachment from its definition:
The image of the ray leaves the origin in the direction eiφ/2, and the detachment records that direction relative to φ. Here ν=21 in Claim 2. As in Real Analysis, the detachment can provide monotony information at the derivative's singularities, for continuous functions as well.
Example 4. Let
f(z)={z2sin(∣z∣1),0,z=0,z=0.
Since ∣f(z)∣≤∣z∣2, f is differentiable at z=0 with f′(0)=0. Along every ray, however,
sgn[f(teiφ)]=e2iφsgn[sin(t1)],
which keeps switching between e2iφ and −e2iφ as t→0+. So the directional detachment at the origin does not exist in any direction. As in Real Analysis, the complex detachment may provide no monotony information at points of infinite oscillation, even where the derivative exists.
Example 5. Let f(z)=ℜ(z), whose image is the real line. This function is nowhere complex differentiable, but its directional difference quotients exist. Along the ray, Δf=tcosφ, so the sign of its directional quotient from Claim 1 is
Here the detachment agrees with the sign of the directional quotient even where that quotient vanishes (∣φ∣=2π). Along those rays f is constant, which is exactly what the value 0 means.
Auxiliary Terminology
Assumptions and abbreviations. We will use the following conventions below:
We focus on directional detachments in a given angle φ. Therefore, by a δ-"environment" of z0 we mean the segment of length δ that starts at z0 and is tilted by φ.
When we add the arguments of two unit vectors, we assume without loss of generality that both arguments lie between 0 and π. This is possible whenever the two vectors are not opposite: a common rotation brings both into the open upper half-plane, and a rotation changes none of the moduli used below.
For two points z0 and z in the domain of a function f, we abbreviate Δf=f(z)−f(z0).
An operator applied to a function is evaluated at z0 unless we say otherwise. For example, sgn(f)=sgn(f(z0)).
We assume detachability, but neither differentiability nor continuity, of the functions in the results below. As a tradeoff, we use the following concepts.
Definition 2. Let f:C⟶C and z0∈C. Then f is sign-continuous at z0 if sgn(f) is continuous there.
Definition 3. Let f,g:C⟶C and z0∈C. Then f,g are:
Bimodular at z0 if for each z in its environment, ∣Δf∣=∣Δg∣.
Locally bimodular at z0 if for each z in its environment, ∣f(z0)Δg∣=∣g(z0)Δf∣.
Spatially bimodular at z0 if for each z in its environment, ∣f(z)Δg∣=∣g(z)Δf∣.
We also say that g has constant modulus at z0 if ∣g(z)∣=∣g(z0)∣ for each z in its environment.
Example 6. A function that is continuous at z0 with f(z0)=0 is sign-continuous there, because the sign function is continuous away from 0. This includes points of non-differentiability, such as the cusp of 1+∣z∣ at the origin. Sign-continuity can also hold at a discontinuity: the function equal to 1 at the origin and to 2 elsewhere has the constant sign 1.
Example 7. Any function f:C⟶C is everywhere bimodular to its reflections with respect to the axes,
g1(z)=−f(z),g2(z)=f(z),g3(z)=−f(z),
and to its rotations by a unit vector, g4(z)=eiξf(z), since none of these changes ∣Δf∣.
Example 8. Let f,g:C⟶C and z0∈C. If f is a constant multiple of g on an environment of z0, then they are locally and spatially bimodular there. Indeed, write f=cg on that environment. Then Δf=cΔg, and
∣f(z0)Δg∣=∣c∣∣g(z0)∣∣Δg∣=∣g(z0)Δf∣.
The same computation with z in place of z0 gives spatial bimodularity. The condition is sufficient but not necessary.
Remark 1. Let f:C⟶C be φ-detachable at z0 and let ϵ>0. The chord-angle analysis showed that detachability implies the bound (2) on the argument of Δf on some environment of z0. Let us use the following notation for brevity:
θf≡arg(f;eiφΔf),∣θf∣<2arcsin(2ϵ),(3)
so that
sgn(Δf)=f;ei(φ+θf).(4)
Remark 2. Similarly, if f is sign-continuous at z0, then given ϵ>0 there is an environment on which sgnf(z) lies within distance 2ϵ of sgn(f). Let us use the notation
θ≡arg(f(z))−arg(f(z0)),
which can be rewritten as
sgn(f(z))=sgn(f(z0))eiθ.(5)
The following lemma is elementary.
Lemma 3. Let z1,z2∈C. If ∣z1∣=∣z2∣ and 0<arg(z1),arg(z2)<π, then
arg(z1+z2)=2arg(z1)+arg(z2).(6)
Indeed, 0, z1, z1+z2 and z2 form a rhombus, and the diagonal of a rhombus bisects its angle.
Lemma 4. Let f,g:C⟶C be φ-detachable at z0∈C and let ϵ>0. Then there exists an environment of z0 such that for each z there:
e2i(θf+θg)−1<ϵ.
Proof. Take the environment on which formula (3) holds for both θf and θg. A chord-angle analysis of the angle 2θf+θg gives
where the strict inequality uses the bound in formula (3) for both angles and the monotonicity of sin near zero.■
Lemma 5. Let f,g:C⟶C be φ-detachable at z0∈C, where f is sign-continuous. Let ϵ>0. Then there exists an environment of z0 such that for each z there:
e2i(θ+θf+θg)−1<ϵ.
Proof. Apply formula (3) with 2ϵ in place of ϵ, so that ∣θf∣,∣θg∣<2arcsin(4ϵ). By the sign-continuity of f, for each z close enough to z0,
∣sgn(f(z))−sgn(f)∣<2ϵ,
and a chord-angle analysis bounds θ=arg(f(z))−arg(f(z0)) in absolute value by 2arcsin(4ϵ). Writing a=arcsin(4ϵ),
The rules for sums, products and quotients below rest on one step. If u,v∈S1 are not opposite, then by Lemma 3 (after a common rotation), for all small angles α,β,
sgn(ueiα+veiβ)−sgn(u+v)=e2i(α+β)−1.(7)
Each proof writes the increment of the combined function as a positive multiple of eiφ(ueiα+veiβ) and then bounds the right-hand side of (7) with Lemma 4 or Lemma 5.
Claim 6.Constant multiple rule. Let f:C⟶C be φ-detachable at z0∈C, and let c∈C. Then cf is also φ-detachable there and:
(cf);=sgn(cf;).
Proof. Directly from the definition of the detachment:
Claim 7. Sum and difference rules. Let f,g:C⟶C be φ-detachable and bimodular at z0∈C, with f;±g;=0. Then f±g is also φ-detachable there and:
(f±g);=sgn(f;±g;).
Proof. We prove the formula for the sum. The difference follows by applying it to f and −g, which is bimodular to f as well (Example 7) and has (−g);=−g; by Claim 6. The detachments f;,g; are nonzero: if one of them were 0, that function's increment would vanish on the environment, bimodularity would make the other increment vanish too, and then f;+g;=0. Let ϵ>0. There exist δ-environments of z0 on which the following conditions hold:
On the δ1-environment, the bound of Lemma 4 holds, since f and g are detachable.
On the δ2-environment, ∣Δf∣=∣Δg∣, since f,g are bimodular.
For each z in the min{δ1,δ2}-environment, formula (4) for f and g and the common modulus give
The condition f;+g;=0 cannot be dropped. When the two detachments are opposite, the increments nearly cancel, and the direction of what remains depends on details that neither detachment records.
Claim 8. Product rule. Let f,g:C⟶C be φ-detachable and spatially bimodular at z0∈C, with f(z0),g(z0)=0. Assume that f is sign-continuous and g has constant modulus at z0, or vice versa, and that the bracket on the right-hand side below is nonzero. Then fg is also φ-detachable at z0, and:
(fg);=sgn[f;sgn(g)+g;sgn(f)].
Proof. Let ϵ>0, and assume without loss of generality that f is sign-continuous and g has constant modulus at z0. There exist δ-environments of z0 on which the following conditions hold:
On the δ1-environment, the bound of Lemma 5 holds, since f,g are detachable and f is sign-continuous.
On the δ2-environment, ∣g(z)∣=∣g(z0)∣, since g has constant modulus.
On the δ3-environment, ∣f(z)Δg∣=∣g(z)Δf∣, since f,g are spatially bimodular.
Let z be in the min{δ1,δ2,δ3}-environment. Adding and subtracting f(z)g(z0),
(fg)(z)−(fg)(z0)=f(z)Δg+g(z0)Δf.
By the second and third conditions, both terms have the same modulus M=∣f(z)Δg∣=∣g(z0)Δf∣. Formulas (4) and (5) then give
Δ(fg)=Meiφ[sgn(f)g;ei(θ+θg)+sgn(g)f;eiθf].
Let u=sgn(f)g; and v=sgn(g)f;. These are unit vectors: if f; or g; were 0, the conditions above would make both increments vanish and the bracket in the claim would be 0. By formula (7),
where the inequality is due to Lemma 5. Since u+v=f;sgn(g)+g;sgn(f), this is the claim.■
Claim 9. Quotient rule. Let f,g:C⟶C be φ-detachable and locally bimodular at z0∈C, with f(z0)=0 and g=0 near z0, where g is sign-continuous at z0. Assume also that sgn(g)f;=sgn(f)g;. Then gf is also φ-detachable there, and:
(gf);=sgn[g2sgn(g)f;−sgn(f)g;].
Proof. First, let us develop the expression by the definition of the limit. Over a common denominator,
where the second transition is because g is sign-continuous at z0, provided the last limit exists. By local bimodularity, both terms inside the bracket have the same modulus M=∣g(z0)Δf∣=∣f(z0)Δg∣, and formula (4) gives
Let u=sgn(g)f; and v=−sgn(f)g;. Both are unit vectors, since by local bimodularity one increment vanishes exactly when the other does, which would give u+v=0; and they are not opposite by assumption. Next, let us show with an ϵ-δ analysis that the sign of the bracket tends to sgn(u+v). Let ϵ>0. There exist δ-environments of z0 on which the following conditions hold:
On the δ1-environment, the bound of Lemma 4 holds, since f and g are detachable.
On the δ2-environment, ∣f(z0)Δg∣=∣g(z0)Δf∣, since f,g are locally bimodular.
For each z in the min{δ1,δ2}-environment, formula (7) gives
where the inequality is due to Lemma 4. Hence the last limit exists and equals sgn(u+v). Finally, sgn(g)2=sgn(g2) and sgn(w)/sgn(q)=sgn(w/q) give the formula.■
References
[1] Shabat, B.V., 2003. Introduction to Complex Analysis-excerpts.
[2] Druţu, C. and Kapovich, M., 2018. Geometric group theory (Vol. 63). American Mathematical Soc..
[3] Gelbaum, B.R. and Olmsted, J.M.H., 1964. Counterexamples in Analysis. Holden-Day (Dover reprint, 2003).
[4] Allamigeon, X., Gaubert, S. and Skomra, M., 2020. Tropical spectrahedra. Discrete & Computational Geometry, 63, pp. 507–548.
[5] Shachar, A., 2010. Introduction to Semi-discrete Calculus. arXiv:1012.5751.