HOME

TheInfoList



OR:

In mathematics, the Minkowski question-mark function, denoted , is a
function Function or functionality may refer to: Computing * Function key, a type of key on computer keyboards * Function model, a structured representation of processes in a system * Function object or functor or functionoid, a concept of object-orie ...
with unusual
fractal In mathematics, a fractal is a geometric shape containing detailed structure at arbitrarily small scales, usually having a fractal dimension strictly exceeding the topological dimension. Many fractals appear similar at various scales, as il ...
properties, defined by
Hermann Minkowski Hermann Minkowski (; ; 22 June 1864 – 12 January 1909) was a German mathematician and professor at Königsberg, Zürich and Göttingen. He created and developed the geometry of numbers and used geometrical methods to solve problems in numb ...
in 1904. It maps
quadratic irrational In mathematics, a quadratic irrational number (also known as a quadratic irrational, a quadratic irrationality or quadratic surd) is an irrational number that is the solution to some quadratic equation with rational coefficients which is irreducible ...
numbers to
rational number In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (e.g. ). The set of all ra ...
s on the
unit interval In mathematics, the unit interval is the closed interval , that is, the set of all real numbers that are greater than or equal to 0 and less than or equal to 1. It is often denoted ' (capital letter ). In addition to its role in real analys ...
, via an expression relating the
continued fraction In mathematics, a continued fraction is an expression obtained through an iterative process of representing a number as the sum of its integer part and the reciprocal of another number, then writing this other number as the sum of its integ ...
expansions of the quadratics to the binary expansions of the rationals, given by
Arnaud Denjoy Arnaud Denjoy (; 5 January 1884 – 21 January 1974) was a French mathematician. Biography Denjoy was born in Auch, Gers. His contributions include work in harmonic analysis and differential equations. His integral was the first to be able to i ...
in 1938. It also maps rational numbers to
dyadic rational In mathematics, a dyadic rational or binary rational is a number that can be expressed as a fraction whose denominator is a power of two. For example, 1/2, 3/2, and 3/8 are dyadic rationals, but 1/3 is not. These numbers are important in compu ...
s, as can be seen by a recursive definition closely related to the Stern–Brocot tree.


Definition and intuition

One way to define the question-mark function involves the correspondence between two different ways of representing fractional numbers using finite or infinite
binary sequence A bitstream (or bit stream), also known as binary sequence, is a sequence of bits. A bytestream is a sequence of bytes. Typically, each byte is an 8-bit quantity, and so the term octet stream is sometimes used interchangeably. An octet may ...
s. Most familiarly, a string of 0's and 1's with a single point mark ".", like "11.001001000011111..." can be interpreted as the
binary representation A binary number is a number expressed in the base-2 numeral system or binary numeral system, a method of mathematical expression which uses only two symbols: typically "0" (zero) and "1" (one). The base-2 numeral system is a positional notation ...
of a number. In this case this number is 2+1+\frac18+\frac1+\cdots=\pi. There is a different way of interpreting the same sequence, however, using
continued fraction In mathematics, a continued fraction is an expression obtained through an iterative process of representing a number as the sum of its integer part and the reciprocal of another number, then writing this other number as the sum of its integ ...
s. Interpreting the part before the point mark as a binary number in the same way, replace each consecutive block of 0's or 1's after the point by its run length, in this case generating the sequence ;2,1,2,1,4,5,\dots/math>. Then, use this sequence as the coefficients of a continued fraction: 3+\frac\approx 3.365 The question-mark function reverses this process: it translates the continued-fraction of a given
real number In mathematics, a real number is a number that can be used to measurement, measure a ''continuous'' one-dimensional quantity such as a distance, time, duration or temperature. Here, ''continuous'' means that values can have arbitrarily small var ...
into a run-length encoded binary sequence, and then reinterprets that sequence as a binary number. For instance, for the example above, \operatorname(3.365\dots)=\pi. To define this formally, if an
irrational number In mathematics, the irrational numbers (from in- prefix assimilated to ir- (negative prefix, privative) + rational) are all the real numbers that are not rational numbers. That is, irrational numbers cannot be expressed as the ratio of two inte ...
x has the (non-terminating) continued-fraction representation x=a_0+\frac= _0;a_1,a_2,\dots/math> then the value of the question-mark function on x is defined as the value of the
infinite series In mathematics, a series is, roughly speaking, a description of the operation of adding infinitely many quantities, one after the other, to a given starting quantity. The study of series is a major part of calculus and its generalization, ma ...
\operatorname(x) = a_0 + 2 \sum_^\infty \frac. In the same way, if a
rational number In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (e.g. ). The set of all ra ...
x has the terminating continued-fraction representation _0;a_1,a_2,\dots,a_m/math> then the value of the question-mark function on x is a finite sum, \operatorname(x) = a_0 + 2 \sum_^m \frac. Analogously to the way the question-mark function reinterprets continued fractions as binary numbers, the
Cantor function In mathematics, the Cantor function is an example of a function that is continuous, but not absolutely continuous. It is a notorious counterexample in analysis, because it challenges naive intuitions about continuity, derivative, and measure ...
can be understood as reinterpreting ternary numbers as binary numbers.


Self-symmetry

The question mark is clearly visually self-similar. A
monoid In abstract algebra, a branch of mathematics, a monoid is a set equipped with an associative binary operation and an identity element. For example, the nonnegative integers with addition form a monoid, the identity element being 0. Monoids ...
of self-similarities may be generated by two operators and acting on the unit square and defined as follows: \begin S(x, y) &= \left( \frac x , \frac y 2 \right), \\ px R(x, y) &= (1 - x, 1 - y). \end Visually, shrinks the unit square to its bottom-left quarter, while performs a
point reflection In geometry, a point reflection (point inversion, central inversion, or inversion through a point) is a type of isometry of Euclidean space. An object that is invariant under a point reflection is said to possess point symmetry; if it is invari ...
through its center. A point on the
graph Graph may refer to: Mathematics *Graph (discrete mathematics), a structure made of vertices and edges **Graph theory, the study of such graphs and their properties *Graph (topology), a topological space resembling a graph in the sense of discre ...
of has coordinates for some in the unit interval. Such a point is transformed by and into another point of the graph, because satisfies the following identities for all : \begin \operatorname\left(\frac\right) &= \frac, \\ px \operatorname(1 - x) &= 1 - \operatorname(x). \end These two operators may be repeatedly combined, forming a monoid. A general element of the monoid is then S^ R S^ R S^ \cdots for positive integers . Each such element describes a
self-similarity __NOTOC__ In mathematics, a self-similar object is exactly or approximately similar to a part of itself (i.e., the whole has the same shape as one or more of the parts). Many objects in the real world, such as coastlines, are statistically s ...
of the question-mark function. This monoid is sometimes called the '' period-doubling monoid'', and all period-doubling fractal curves have a self-symmetry described by it (the
de Rham curve In mathematics, a de Rham curve is a certain type of fractal curve named in honor of Georges de Rham. The Cantor function, Cesàro curve, Minkowski's question mark function, the Lévy C curve, the blancmange curve, and Koch curve are all s ...
, of which the question mark is a special case, is a category of such curves). The elements of the monoid are in correspondence with the rationals, by means of the identification of with the continued fraction . Since both S : x \mapsto \frac and T : x \mapsto 1 - x are
linear fractional transformation In mathematics, a linear fractional transformation is, roughly speaking, a transformation of the form :z \mapsto \frac , which has an inverse. The precise definition depends on the nature of , and . In other words, a linear fractional transf ...
s with integer coefficients, the monoid may be regarded as a subset of the
modular group In mathematics, the modular group is the projective special linear group of matrices with integer coefficients and determinant 1. The matrices and are identified. The modular group acts on the upper-half of the complex plane by fraction ...
.


Quadratic irrationals

The question mark function provides a one-to-one mapping from the non-dyadic rationals to the
quadratic irrational In mathematics, a quadratic irrational number (also known as a quadratic irrational, a quadratic irrationality or quadratic surd) is an irrational number that is the solution to some quadratic equation with rational coefficients which is irreducible ...
s, thus allowing an explicit proof of countability of the latter. These can, in fact, be understood to correspond to the
periodic orbit In mathematics, in the study of iterated functions and dynamical systems, a periodic point of a function is a point which the system returns to after a certain number of function iterations or a certain amount of time. Iterated functions Given ...
s for the
dyadic transformation The dyadic transformation (also known as the dyadic map, bit shift map, 2''x'' mod 1 map, Bernoulli map, doubling map or sawtooth map) is the mapping (i.e., recurrence relation) : T: , 1) \to [0, 1)^\infty : x \mapsto (x_0, x_1, x_2, ...
. This can be explicitly demonstrated in just a few steps.


Dyadic symmetry

Define two moves: a left move and a right move, valid on the
unit interval In mathematics, the unit interval is the closed interval , that is, the set of all real numbers that are greater than or equal to 0 and less than or equal to 1. It is often denoted ' (capital letter ). In addition to its role in real analys ...
0\le x\le 1 as L_D(x) = \frac and L_C(x) = \frac and R_D(x) = \frac and R_C(x) = \frac The question mark function then obeys a left-move symmetry L_D \circ ? = ? \circ L_C and a right-move symmetry R_D \circ ? = ? \circ R_C where \circ denotes function composition. These can be arbitrary concatenated. Consider, for example, the sequence of left-right moves LRLLR. Adding the subscripts C and D, and, for clarity, dropping the composition operator \circ in all but a few places, one has: L_D R_D L_D L_D R_D \circ ? = ? \circ L_C R_C L_C L_C R_C Arbitrary finite-length strings in the letters L and R correspond to the dyadic rationals, in that every dyadic rational can be written as both y=n/2^m for integer ''n'' and ''m'' and as finite length of bits y=0.b_1b_2b_3\cdots b_m with b_k\in \. Thus, every dyadic rational is in one-to-one correspondence with some self-symmetry of the question mark function. Some notational rearrangements can make the above slightly easier to express. Let g_0 and g_1 stand for L and R. Function composition extends this to a
monoid In abstract algebra, a branch of mathematics, a monoid is a set equipped with an associative binary operation and an identity element. For example, the nonnegative integers with addition form a monoid, the identity element being 0. Monoids ...
, in that one can write g_=g_0g_1g_0 and generally, g_Ag_B=g_ for some binary strings of digits ''A'', ''B'', where ''AB'' is just the ordinary
concatenation In formal language theory and computer programming, string concatenation is the operation of joining character strings end-to-end. For example, the concatenation of "snow" and "ball" is "snowball". In certain formalisations of concatenat ...
of such strings. The dyadic monoid ''M'' is then the monoid of all such finite-length left-right moves. Writing \gamma\in M as a general element of the monoid, there is a corresponding self-symmetry of the question mark function: \gamma_D\circ ?= ?\circ \gamma_C


Isomorphism

An explicit mapping between the rationals and the dyadic rationals can be obtained providing a reflection operator r(x)=1-x and noting that both r\circ R_D\circ r = L_D and r\circ R_C\circ r = L_C Since r^2=1 is the identity, an arbitrary string of left-right moves can be re-written as a string of left moves only, followed by a reflection, followed by more left moves, a reflection, and so on, that is, as L^rL^rL^\cdots which is clearly isomorphic to S^TS^TS^\cdots from above. Evaluating some explicit sequence of L_D,R_D at the function argument x=1 gives a dyadic rational; explicitly, it is equal to y=0.b_1b_2b_3\cdots b_m where each b_k\in\ is a binary bit, zero corresponding to a left move and one corresponding to a right move. The equivalent sequence of L_C,R_C moves, evaluated at x=1 gives a rational number p/q. It is explicitly the one provided by the continued fraction p/q= _1,a_2,a_3,\cdots,a_j/math> keeping in mind that it is a rational because the sequence (a_1,a_2,a_3,\cdots,a_j) was of finite length. This establishes a one-to-one correspondence between the dyadic rationals and the rationals.


Periodic orbits of the dyadic transform

Consider now the
periodic orbit In mathematics, in the study of iterated functions and dynamical systems, a periodic point of a function is a point which the system returns to after a certain number of function iterations or a certain amount of time. Iterated functions Given ...
s of the
dyadic transformation The dyadic transformation (also known as the dyadic map, bit shift map, 2''x'' mod 1 map, Bernoulli map, doubling map or sawtooth map) is the mapping (i.e., recurrence relation) : T: , 1) \to [0, 1)^\infty : x \mapsto (x_0, x_1, x_2, ...
. These correspond to bit-sequences consisting of a finite initial "chaotic" sequence of bits b_0,b_1,b_2,\cdots, b_, followed by a repeating string b_k,b_,b_,\cdots, b_ of length m. Such repeating strings correspond to a rational number. This is easily made explicit. Write y=\sum_^ b_2^ one then clearly has \sum_^\infty b_2^ = y\sum_^\infty 2^ = \frac Tacking on the initial non-repeating sequence, one clearly has a rational number. In fact, ''every'' rational number can be expressed in this way: an initial "random" sequence, followed by a cycling repeat. That is, the periodic orbits of the map are in one-to-one correspondence with the rationals.


Periodic orbits as continued fractions

Such periodic orbits have an equivalent periodic continued fraction, per the isomorphism established above. There is an initial "chaotic" orbit, of some finite length, followed by the a repeating sequence. The repeating sequence generates a periodic continued fraction satisfying x=[a_n,a_,a_,\cdots,a_,x]. This continued fraction has the form x = \frac with the \alpha,\beta,\gamma,\delta being integers, and satisfying \alpha \delta-\beta \gamma=\pm 1. Explicit values can be obtained by writing S\mapsto \begin 1 & 0\\ 1 & 1\end for the shift, so that S^n\mapsto \begin 1 & 0\\ n & 1\end while the reflection is given by T\mapsto \begin -1 & 1\\ 0 & 1\end so that T^2=I. Both of these matrices are unimodular, arbitrary products remain unimodular, and result in a matrix of the form S^TS^T\cdots TS^ = \begin \alpha & \beta\\ \gamma & \delta\end giving the precise value of the continued fraction. As all of the matrix entries are integers, this matrix belongs to the projective
modular group In mathematics, the modular group is the projective special linear group of matrices with integer coefficients and determinant 1. The matrices and are identified. The modular group acts on the upper-half of the complex plane by fraction ...
PSL(2,\mathbb). Solving explicitly, one has that \gamma x^2 + (\delta-\alpha)x-\beta=0. It is not hard to verify that the solutions to this meet the definition of quadratic irrationals. In fact, every quadratic irrational can be expressed in this way. Thus the quadratic irrationals are in one-to-one correspondence with the periodic orbits of the dyadic transform, which are in one-to-one correspondence with the (non-dyadic) rationals, which are in one-to-one correspondence with the dyadic rationals. The question mark function provides the correspondence in each case.


Properties of

The question-mark function is a
strictly increasing In mathematics, a monotonic function (or monotone function) is a function between ordered sets that preserves or reverses the given order. This concept first arose in calculus, and was later generalized to the more abstract setting of ord ...
and continuous, but not
absolutely continuous In calculus, absolute continuity is a smoothness property of functions that is stronger than continuity and uniform continuity. The notion of absolute continuity allows one to obtain generalizations of the relationship between the two central ope ...
function. The
derivative In mathematics, the derivative of a function of a real variable measures the sensitivity to change of the function value (output value) with respect to a change in its argument (input value). Derivatives are a fundamental tool of calculus. ...
is defined
almost everywhere In measure theory (a branch of mathematical analysis), a property holds almost everywhere if, in a technical sense, the set for which the property holds takes up nearly all possibilities. The notion of "almost everywhere" is a companion notion t ...
, and can take on only two values, 0 (its value almost everywhere, including at all
rational number In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (e.g. ). The set of all ra ...
s) and +\infty. There are several constructions for a measure that, when integrated, yields the question-mark function. One such construction is obtained by measuring the density of the Farey numbers on the real number line. The question-mark measure is the prototypical example of what are sometimes referred to as multi-fractal measures. The question-mark function maps rational numbers to dyadic rational numbers, meaning those whose
base two A binary number is a number expressed in the base-2 numeral system or binary numeral system, a method of mathematical expression which uses only two symbols: typically "0" (zero) and "1" ( one). The base-2 numeral system is a positional notatio ...
representation terminates, as may be proven by induction from the recursive construction outlined above. It maps
quadratic irrational In mathematics, a quadratic irrational number (also known as a quadratic irrational, a quadratic irrationality or quadratic surd) is an irrational number that is the solution to some quadratic equation with rational coefficients which is irreducible ...
s to non-dyadic rational numbers. In both cases it provides an
order isomorphism In the mathematical field of order theory, an order isomorphism is a special kind of monotone function that constitutes a suitable notion of isomorphism for partially ordered sets (posets). Whenever two posets are order isomorphic, they can be cons ...
between these sets, making concrete Cantor's isomorphism theorem according to which every two unbounded countable dense linear orders are order-isomorphic. It is an
odd function In mathematics, even functions and odd functions are functions which satisfy particular symmetry relations, with respect to taking additive inverses. They are important in many areas of mathematical analysis, especially the theory of power s ...
, and satisfies the functional equation ; consequently is an odd
periodic function A periodic function is a function that repeats its values at regular intervals. For example, the trigonometric functions, which repeat at intervals of 2\pi radians, are periodic functions. Periodic functions are used throughout science to d ...
with period one. If is irrational, then is either algebraic of degree greater than two, or
transcendental Transcendence, transcendent, or transcendental may refer to: Mathematics * Transcendental number, a number that is not the root of any polynomial with rational coefficients * Algebraic element or transcendental element, an element of a field exten ...
. The question-mark function has fixed points at 0, and 1, and at least two more, symmetric about the midpoint. One is approximately 0.42037. It was conjectured by Moshchevitin that they were the only 5 fixed points. In 1943,
Raphaël Salem Raphaël Salem (Greek: Ραφαέλ Σαλέμ; November 7, 1898 in Salonika, Ottoman Empire (now Thessaloniki, Greece) – June 20, 1963 in Paris, France) was a Greek mathematician after whom are named the Salem numbers and Salem–Spencer set ...
raised the question of whether the Fourier–Stieltjes coefficients of the question-mark function vanish at infinity. In other words, he wanted to know whether or not \lim_\int_0^1 e^ \, \operatorname(x)=0. This was answered affirmatively by Jordan and Sahlsten, as a special case of a result on
Gibbs measure In mathematics, the Gibbs measure, named after Josiah Willard Gibbs, is a probability measure frequently seen in many problems of probability theory and statistical mechanics. It is a generalization of the canonical ensemble to infinite systems. ...
s. The graph of Minkowski question mark function is a special case of fractal curves known as
de Rham curve In mathematics, a de Rham curve is a certain type of fractal curve named in honor of Georges de Rham. The Cantor function, Cesàro curve, Minkowski's question mark function, the Lévy C curve, the blancmange curve, and Koch curve are all s ...
s.


Algorithm

The recursive definition naturally lends itself to an
algorithm In mathematics and computer science, an algorithm () is a finite sequence of rigorous instructions, typically used to solve a class of specific problems or to perform a computation. Algorithms are used as specifications for performing ...
for computing the function to any desired degree of accuracy for any real number, as the following C function demonstrates. The algorithm descends the Stern–Brocot tree in search of the input , and sums the terms of the binary expansion of on the way. As long as the
loop invariant In computer science, a loop invariant is a property of a program loop that is true before (and after) each iteration. It is a logical assertion, sometimes checked within the code by an assertion call. Knowing its invariant(s) is essential in ...
remains satisfied there is no need to reduce the fraction , since it is already in lowest terms. Another invariant is . The for loop in this program may be analyzed somewhat like a while loop, with the conditional break statements in the first three lines making out the condition. The only statements in the loop that can possibly affect the invariants are in the last two lines, and these can be shown to preserve the truth of both invariants as long as the first three lines have executed successfully without breaking out of the loop. A third invariant for the body of the loop (up to floating point precision) is , but since is halved at the beginning of the loop before any conditions are tested, our conclusion is only that at the termination of the loop. To prove termination, it is sufficient to note that the sum q + s increases by at least 1 with every iteration of the loop, and that the loop will terminate when this sum is too large to be represented in the primitive C data type long. However, in practice, the conditional break when y + d

y
is what ensures the termination of the loop in a reasonable amount of time. /* Minkowski's question-mark function */ double minkowski(double x)


Probability distribution

Restricting the Minkowski question mark function to ?: ,1,1 it can be used as the
cumulative distribution function In probability theory and statistics, the cumulative distribution function (CDF) of a real-valued random variable X, or just distribution function of X, evaluated at x, is the probability that X will take a value less than or equal to x. Ev ...
of a singular distribution on the unit interval. This distribution is symmetric about its midpoint, with raw moments of about ''m''1 = 0.5, ''m''2 = 0.290926, ''m''3 = 0.186389 and ''m''4 = 0.126992, and so a mean and median of 0.5, a standard deviation of about 0.2023, a skewness of 0, and an excess kurtosis about -1.147.


See also

*
Pompeiu derivative In mathematical analysis, a Pompeiu derivative is a real-valued function of one real variable that is the derivative of an everywhere differentiable function and that vanishes in a dense set. In particular, a Pompeiu derivative is discontinuou ...


References


Notes


Historical sources

* *


Bibliography

* * * * * * *; reprinted by Dover Publications, 1997 * * *


Further reading

* * * * * * *


External links


An extensive bibliography list
*{{mathworld, urlname=MinkowskisQuestionMarkFunction, title=Minkowski's Question Mark Function, mode=cs2
Simple IEEE 754 implementation in C++
De Rham curves Continued fractions Special functions Theory of continuous functions Articles with example C code Hermann Minkowski