Pathological Periodicity, Part II: The Cage of Continuity

Pathological Periodicity
periodic functions
modules
dense subsets
continuity
Author

Alonso Espinosa Domínguez

Published

March 18, 2026

1 Introduction and Preliminaries

In the previous post, we motivated a series of questions surrounding the sums of periodic functions and the existence of functions with incommensurable periods. Now, we are ready to dive in. We will see that many of the things we intuitively hold to be true (or that I at least held to be true) about periodic functions do indeed hold for continuous functions in particular. We will also start to see, however, that the structural richness of sets of periods leaves much room for pathological behaviour deviating starkly from intuitions based on the continuous functions.

To begin, let us review the basic definitions and facts about periodic functions that set the stage for our further explorations, revealing the beautiful interplay of algebra and topology in the world of periodicity.

Definition 1.1 (Periodic Function) A function \(f:\mathbb{R}\to\mathbb{R}\) is said to be periodic if there exists a non-zero real number \(p\) such that \(f(x+p)=f(x)\) for all \(x\in\mathbb{R}\). If there exists a smallest positive such \(p\), it is called the fundamental period of \(f\), and we say \(f\) is strictly periodic.

Remark: Note that a function can be periodic without being strictly periodic; for instance, the constant functions are periodic with any real period, but they are not strictly periodic. In this series, we will examine pathological examples of functions that fail to be strictly periodic but are also not constant. Some are even constant only on sets of measure zero, which is as far from being constant as one can get. We will also see pathological functions that actually are strictly periodic.

Definition 1.2 (The Period Module) For any function \(f:\mathbb{R}\to\mathbb{R}\), we denote by \(P_f\) the set of all periods of \(f\), i.e., \(P_f := \{p\in\mathbb{R}: f(x+p)=f(x) \text{ for all } x\in\mathbb{R}\}\). We call \(P_f\) the period module of \(f\). Also, we say two periodic functions \(f\) and \(g\) are incommensurable if \(P_f\cap P_g = \{0\}\), and they are commensurable otherwise.

(Note: Constant functions are trivially commensurable with any periodic function. Non-periodic functions still have a period module, but it is just \(\{0\}\)).

Definition 1.3 (\(\mathbb{Z}\)-submodule and its Rank) A subset \(M\) of \(\mathbb{R}\) is called a \(\mathbb{Z}\)-submodule if it is closed under addition and under multiplication by integers. The proper algebraic measure of its size is its rank, which is the cardinality of a maximal linearly independent subset of \(M\) over \(\mathbb{Z}\).

We immediately find some basic facts about periodic functions and about the algebra and topology of their period modules:

  • Fact 1: If \(f, g\) are incommensurable functions, any (nonzero) periods must be incommensurable real numbers. If \(p\in P_f\) and \(q\in P_g\) are such that \(p/q\in\mathbb{Q}\), then there exist integers \(n, m\) such that \(np = mq\), and thus \(np\in P_f\cap P_g\), showing that \(f\) and \(g\) are not incommensurable functions.
  • Fact 2: If \(f\) is periodic with period \(p\), then it is also periodic with respect to any integer linear combinations of periods of \(f\). This means \(P_f\) is a \(\mathbb{Z}\)-submodule of \(\mathbb{R}\).
  • Fact 3: If \(f\) is strictly periodic with fundamental period \(p\), then the set of all periods of \(f\) is precisely the \(\mathbb{Z}\)-module \(p\mathbb{Z}:= \{np : n\in\mathbb{Z}\}\). I.e., \(P_f\) is necessarily a submodule of rank 1.

With these preliminary facts out of the way, we can start to see how closely the nature of a periodic function relates to the topological and algebraic features of its period module, as the following propositions make clear:

Proposition 1.1 If \(P_f\) is dense, then \(f\) is either constant or else it is nowhere continuous.

Proof. Suppose \(f\) is not constant and let \(x \in \mathbb{R}\). For any open interval \((a,b)\) containing \(x\), the density of \(P_f\) guarantees the existence of periods \(p, q \in P_f\) such that \(a < p < q < b\). Since \(P_f\) is a \(\mathbb{Z}\)-submodule, the difference \(r = q-p\) is a strictly positive period. The closed interval \([p, q] \subset (a,b)\) has length exactly \(r\), meaning it spans a full period of \(f\). Consequently, the image of \([p, q]\) under \(f\) is the entire range of \(f\). Because \(f\) is not constant, its range contains some value distinct from \(f(x)\), guaranteeing there is some \(z \in [p, q] \subset (a,b)\) such that \(f(z) \neq f(x)\). Thus, \(f\) cannot be continuous at \(x\).

Proposition 1.2 \(P_f\) is dense if and only if \(f\) is not strictly periodic. Thus, if a periodic \(f\) is non-constant and continuous, it must be strictly periodic.

Proof. If \(P_f\) is dense, then the infimum of positive periods must be zero, and thus no fundamental period can exist. Conversely, if no fundamental period exists, the infimum \(p\) of positive periods must be zero; for otherwise, we could find two distinct periods arbitrarily close to \(p\) such that their positive difference would be a positive period smaller than \(p\), violating the infimum. Thus, any interval around \(0\) must contain elements of \(P_f\). Now take any interval \((a, b)\) with \(0\not\in (a, b)\). By the foregoing, we can find \(x\in P_f\) with \(0<|x|<\min(\{|b|, |a|, |b-a|\})\). There thus must be some integer \(n\) so that \(nx\in (a, b)\), for otherwise we could find an \(n\) so that \((n-1)x \le a < b \le nx\), which contradicts \(|x| < |b-a|\). But \(nx\in P_f\), showing \(P_f\) is dense in \(\mathbb{R}\). The last part is an immediate consequence of this density and Proposition 1.1.

Proposition 1.3 If \(p, q\) are incommensurable (\(p/q\not\in \mathbb{Q}\)), then the \(\mathbb{Z}\)-module \(\mathbb{Z}_{p,q}:=\{np + mq : n,m\in\mathbb{Z}\}\) is dense in \(\mathbb{R}\). In particular, if a function \(f\) has two incommensurable periods \(p\) and \(q\), then \(\mathbb{Z}_{p,q}\subseteq P_f\), meaning its period module is dense and \(f\) is not strictly periodic. Therefore, non-constant functions with incommensurable periods are nowhere continuous.

Proof. To see the first part of the proposition, we make use of the fact that irrationals can be approximated by rationals very nicely: by Dirichlet’s approximation theorem, we know that for any \(\epsilon>0\), we can find integers \(-n, m\) such that \(|mp/q -(-n)|<\epsilon/|q|\), and thus \(|mp +nq|<\epsilon\). This shows all intervals containing the origin have elements of \(\mathbb{Z}_{p,q}\). From here, the density of \(\mathbb{Z}_{p,q}\) follows in the same way as the density of \(P_f\) in the previous proposition. The second part of the proposition then follows immediately from everything discussed previously.

2 The Difference Operator and Periodic Sums

Now, we revisit the question of sums of incommensurable functions, and in particular we show that in the continuous case, such sums are never periodic.

For this and for the future posts in this series, we introduce the following operator which is ubiquitously used in discussions of the periodic decomposition problem:

Definition 2.1 (Difference Operator) For any function \(f:\mathbb{R}\to\mathbb{R}\) and any \(p\in\mathbb{R}\), we define the difference operator in p \(\Delta_p\) by \(\Delta_p f(x) := f(x+p) - f(x)\) for all \(x\in\mathbb{R}\). As the reader can verify, these are linear operators for all \(p\), and they commute with each other, i.e., \(\Delta_p\Delta_q = \Delta_q\Delta_p\) for all \(p, q\in\mathbb{R}\).

This operator measures how much \(f\) changes when we translate by \(p\). In particular, \(\Delta_p f\) is identically zero if and only if \(p\) is a period of \(f\). A few more key facts about difference operators and sums of functions:

  • For any \(f:\mathbb{R}\to\mathbb{R}\) and any \(q\in\mathbb{R}\), we have \(P_f\subseteq P_{\Delta_q f}\). That is, all periods of \(f\) are also periods of \(\Delta_q f\).
  • Given two functions \(f,g\), their sum is periodic if and only if there is an \(r\neq 0\) such that \(\Delta_r f +\Delta_r g=0\). Such an \(r\) is then a period of \(f+g\).
  • Thus, if \(r\) is a period of \(f+g\), then for all \(p\in P_f\) and all \(q\in P_g\) we have: \[0=\Delta_r \Delta_q f = \Delta_r\Delta_p g \tag{2.1}\] which implies: \[P_{\Delta_q f} \supseteq P_f + P_{f+g} \quad \text{and} \quad P_{\Delta_p g} \supseteq P_g + P_{f+g}\]
  • Hence, if \(f+g\) is periodic, then \(\Delta_q f\) and \(\Delta_p g\) are commensurable for all \(p\in P_f\) and all \(q\in P_g\), even if \(f\) and \(g\) are incommensurable. This however is not a sufficient condition for \(f+g\) to be periodic, as the reader can verify (we will also see this in the next installment).
  • When \(f, g\) are incommensurable and their sum is periodic, then the \(r\) above must be incommensurable with all periods of \(f\) and \(g\). In other words, we actually have that for all \(r\in P_{f+g},\) \(p\in P_{f}\), and \(q\in P_g\): \[P_{\Delta_q f} \supseteq P_f \oplus P_{f+g} \quad \text{and} \quad P_{\Delta_p g} \supseteq P_g \oplus P_{f+g} \tag{2.2}\]
  • If \(f, g\) are themselves periodic and incommensurable with \(f+g\) periodic, the above then implies \(\Delta_q f\) and \(\Delta_p g\) must have dense period modules, and thus be either constant or nowhere continuous.

This leads us to the final result that we prove in this installment:

Theorem 2.1 Let \(f, g\) be continuous periodic functions. Then \(f+g\) is periodic if and only if \(f, g\) are commensurable. Thus, no set of periodic functions containing two or more continuous incommensurable functions can be a vector subspace of \(\mathbb{R}^\mathbb{R}\).

Proof. Commensurability of \(f, g\) trivially implies periodicity of \(f+g\). For the other direction, suppose \(f+g\) is periodic and \(f, g\) are incommensurable periodic functions. We prove that \(f\) and \(g\) must not be continuous. By the discussion above, \(\Delta_q f\) has a dense period module for any nonzero \(q\in P_g\), and thus is either nowhere continuous or is a nonzero constant (since \(q\not \in P_f\) by assumption). If \(\Delta_q f\) is nowhere continuous, then \(f\) must not have been continuous to begin with. If it is a nonzero constant, then \(f\) must be unbounded. But continuous periodic functions must be bounded, so \(f\) cannot be continuous. Reasoning in the exact same way establishes non-continuity of \(g\) and this finishes the proof.

The reader may wonder whether Theorem 2.1 can be strengthened: must incommensurable periodic functions with a periodic sum be not just discontinuous, but nowhere continuous? I initially believed so — after all, the proof above shows that \(\Delta_q f\) and \(\Delta_p g\) are either nowhere continuous or a nonzero constant, and in the latter case we can show \(f\) and \(g\) must in fact be nowhere continuous (actually they must be nowhere bounded, which is even worse; see Exercise 1 below). The remaining case, where \(\Delta_q f\) and \(\Delta_p g\) are nowhere continuous, seems like it should force \(f, g\) to be nowhere continuous as well. But as Exercise 2 shows, this inference is not valid: a function can have points of continuity even when all of its nontrivial difference operators are nowhere continuous. This leaves open (for me at least) the question of just how large the set of continuity points can be under these conditions. We formalize this in the next exercises and questions.

Let \(\mathcal{C}(f)\) denote the set of points of continuity of a function \(f\).

Exercises.

  1. Let \(f\) be a periodic function and suppose there is a \(q\not\in P_f\) such that \(\Delta_q f\) is a nonzero constant. Show that \(f\) must be unbounded on every open interval, and thus \(\mathcal{C}(f) = \emptyset\).
  2. Find a periodic function \(f\) with nonempty \(\mathcal{C}(f)\) such that \(\Delta_q f\) is nowhere continuous whenever \(q\not\in P_f\). Conclude that the argument used in Theorem 2.1 does not directly generalize to functions with isolated points of continuity. (Hint: try constructing \(f\) so that \(\mathcal{C}(f)\) coincides with \(P_f\) itself.)

And lastly, the questions which I don’t know how to answer, and whose answers I was not able to find after a bit of searching on the internet:

Open questions.

  1. Is it possible to find a non-constant periodic function \(f\) with nonempty \(\mathcal{C}(f)\) such that \(P_{\Delta_q f}\) has rank 2 or greater for some \(q\not\in P_f\)?
  2. When the conditions of Exercise 2 or Question 1 above are met, how “large” can \(\mathcal{C}(f)\) be? In particular, must points of continuity be isolated?
  3. Does Theorem 2.1 still hold if “continuous” is replaced by “having at least one point of continuity”? In other words, if \(f\) and \(g\) are incommensurable periodic functions with \(\mathcal{C}(f)\neq\emptyset\) and \(\mathcal{C}(g)\neq\emptyset\), must \(f+g\) fail to be periodic? And if it does not hold, what is the weakest continuity condition on \(f\) and \(g\) that still forces commensurability to be necessary for \(f+g\) to be periodic?

I plan to come back to this in a future post, and would be glad to hear from any readers who have ideas on answers to these questions.

Beyond Continuity: A Preview of Pathology

The above discussion shows that continuity acts as a rigid cage, forcing period modules in the non-constant case to be nowhere dense and remain of rank 1 over \(\mathbb{Z}\), while also preventing sums of incommensurable functions from being periodic. But what happens when we remove this cage?

With what we have established so far, a clear structural dichotomy emerges: any periodic functions with dense or higher-rank period modules and any pair of incommensurable functions whose sum manages to remain periodic must be highly pathological — namely, most (perhaps all?) such functions are nowhere continuous and some are even nowhere bounded.

In the next installment of Pathological Periodicity, we will dive directly into the abyss of these pathological functions. We will construct and dissect a variety of examples, including some highly unintuitive functions “constructed” using the Axiom of Choice. Stay tuned!

Stay in touch

If you enjoyed this post or spotted an error, I'd love to hear from you. You can reach me at alonso@mathadventures.blog, find me on GitHub, or connect on LinkedIn.

Subscribe

You can follow this blog via RSS feed.

Share

If you found this useful, consider sharing it with someone who might enjoy it too.