Assignment 4
Assignment 4
Abstract. We present a selection of a few discontinuous functions and we discuss some peda-
gogical advantages of using such functions in order to illustrate some basic concepts of math-
ematical analysis to beginners.
This level of generality is commonly attributed to Dirichlet, who in 1829 proposed his
celebrated function D defined on (0, 1) as follows:
(
1, if x ∈ (0, 1) ∩ Q,
D(x) = (1)
0, if x ∈ (0, 1) \ Q.
In fact, this example opened a door to a new world: functions are not just formulas,
or analytic expressions, as was commonly assumed in the 18th century. Functions can
be defined by very general laws.
From a pedagogical point of view, deciding the level of generality of functions to
use with young students is not straightforward. According to Kleiner [9, pp. 187–188],
it is possible to teach an elementary model of analysis by placing emphasis solely on
curves and the equations that represent them, without necessarily talking about func-
tions. Kleiner argues that students would find curves more natural than functions and
http://dx.doi.org/10.4169/amer.math.monthly.118.09.799
In [14] another approach has been developed. The introduction of [14] reads: “after
all, analysis has few bases: the concepts of function, infinity, limit, continuity, and
differentiability. To visit these locations in a comprehensive way, one should allow
these concepts the faculty of expressing all of their potential and all their fantastic
and incredible situations. To achieve this high level it is necessary to stick closely to
the definition of function as a correspondence of free sets.” The modern definition
of function clearly allows a deeper comprehension of other concepts, such as those
of limit, continuity, and differentiability. It is important that students understand the
far-reaching features of these notions, because only in this way will they be able to
avoid mistakes due to a limited concept of function. Students should be aware from
the very beginning that formulas provide a very small class of functions: analyticity is
a property enjoyed by very special functions. Being discontinuous is not synonymous
with being pathological because most functions are discontinuous. In the same way,
being continuous is not synonymous with being smooth since continuous functions
can be very rough, as in the case of the celebrated Weierstrass functions.
Following this plan, in [14] the authors propose a collection of problems the solu-
tions of which require the modern definition of function: in some cases, using highly
discontinuous functions is not essential but it simplifies the argument and makes the
situation clear.
We note that there is a vast literature devoted to so-called pathological functions. We
mention the classic book by Gelbaum and Olmsted [6] and the recent extensive mono-
graph by Kharazishvili [7]. We also mention Thim [12], which is basically a treatise
concerning continuous nowhere differentiable functions. However, at a pedagogical
level, not much material seems to be available.
In this paper, we adopt the approach of [14] and we discuss some peculiar examples,
some of which are taken from [14]. The focus is on special discontinuous functions,
the definitions of which are algebraically and technically simple in most cases. We
believe that this approach could be used not only with good students but also with weak
–3 –2 –1 1 2 3
–1
–2
–3
Figure 2. Graph of function F1 .
–2 – 2
–1
–2
Figure 3. Graph of function G 1 .
The function G 1 is continuous only at a countable set of points, precisely at the points
x = kπ with k ∈ Z.
Lemma 2. Let f, g, and h be functions from R to itself such that f (x) ≤ h(x) ≤ g(x)
for all x ∈ R. Let x0 ∈ R be fixed. If f and g are differentiable at x0 , f 0 (x0 ) = g 0 (x0 ),
and f (x0 ) = g(x0 ), then h is differentiable at x0 and h 0 (x0 ) = f 0 (x0 ) = g 0 (x0 ).
3 3
2 2
1 1
–2 –1 1 2 –2 –1 1 2
–1 –1
–2 –2
–3 –3
Figure 4. Graph of function F2 . Figure 5. A randomly generated function differ-
entiable at x = 0.
3. A function with positive derivative at one point, which is not monotone in any
neighborhood of that point. Let F3 be the function from R to itself defined by
(
x 2, if x ∈ Q,
F3 (x) =
2x − 1, if x ∈ R \ Q.
By Lemma 2, the function F3 is differentiable at the point x = 1 and F30 (1) = 2, but
F3 is not monotone in any neighborhood of 1. Those students who are used to identify-
ing increasing functions with functions with positive derivative may find this example
rather bizarre. However, this example points out a well-known subtle distinction con-
cerning increasing functions. In fact, if a function f from R to itself is differentiable
at a point x0 and f 0 (x0 ) > 0 then f is increasing at the point x0 in the sense that
for all x in a convenient neighborhood of x0 we have: f (x) > f (x0 ) if x > x0 and
f (x) < f (x0 ) if x < x0 . Monotonicity is a stronger notion and, in the case of differ-
entiable functions, it occurs when the derivative does not change sign in the whole of
an interval.
2.5
2.0
1.5
1.0
0.5
–0.5
Theorem 3. Let f be a function from R to itself. Let A be the set of those points x0 ∈ R
such that f is discontinuous at x0 and at least one of the two limits limx→x + f (x) and
0
limx→x − f (x) exists and is finite. Then A is at most countable.
0
0.8
0.6
0.4
0.2
0.0
0.0 0.2 0.4 0.6 0.8 1.0
Figure 8. Graph of function F4 (arrested at the fourth iteration).
0.8 0.8
0.6 0.6
0.4 0.4
0.2 0.2
0.0 0.0
0.0 0.2 0.4 0.6 0.8 1.0 0.0 0.2 0.4 0.6 0.8 1.0
1.0 1.0
0.8 0.8
0.6 0.6
0.4 0.4
0.2 0.2
0.0 0.0
0.0 0.2 0.4 0.6 0.8 1.0 0.0 0.2 0.4 0.6 0.8 1.0
Figure 9. The first four iterations.
np o
B= : n, p ∈ N, p is odd, p < 2 n
(5)
2n
p p+1
F4 = (6)
2n 2n
for all n, p ∈ N, where p is odd and p < 2n . This alternative definition allows an
easy proof of (4) since the summand 1/2n in the right-hand side of (6) vanishes in the
limiting procedure (see also (8) and (9)).
A well-known function which enjoys a similar property can be found in several
textbooks. It is defined as follows. Let G 4 be the function from (0, 1) ∩ Q to itself
defined by
1
p
G4 = (7)
q q
1
3
1
4
1
5
1 1 1 2 3
4 3 2 3 4
1
for all p, q ∈ N, 0 < p/q < 1, p, q coprime. It is not difficult to prove that
for all x0 ∈ (0, 1) ∩ Q. The function G 4 can be extended to the whole of (0, 1) by
setting G 4 (x) = 0 for all x ∈ (0, 1) \ Q and turns out to be continuous at any point
x ∈ (0, 1) \ Q. According to Appell [1, p. 10] some students would call function G 4
“Dirichlet light” because its set of discontinuities is “lighter” than the set of disconti-
nuities of the Dirichlet function.
We note that by (6) and (7) it immediately follows that
for all x ∈ B. Equality (9) could be used to define F4 via G 4 and to give a further
proof of (4). In this way, the function F4 , whose original definition is based on a geo-
metric construction, can eventually be represented via a function whose definition has
a completely different origin.
5. A function with jump discontinuities at all points of its domain. Monotone func-
tions with many jump discontinuities are well known in real analysis and probability
theory: these functions can be obtained as cumulative distribution functions associated
with discrete measures (see, e.g., Folland [5, p. 102]). Here we present two functions
defined on the set B of the dyadic rational numbers in (0, 1) with jump discontinuities
at every point of B. These functions are defined directly by using binary notation and
do not require any advanced tool.
We recall that the set B in (5) can be represented also in the form
∞ Xn
[ x j
B= x j ∈ {0, 1} for all j ∈ {1, . . . , n}, x n = 1 . (10)
n=1 j=1
2j
Thus, given x ∈ B there exists n(x) ∈ N such that x = n(x) j=1 x j /2 for suitable values
j
P
of x j ∈ {0, 1}, where xn(x) = 1; using binary notation x can be written as
0. x1 x2 · · · xn(x) .
G 5 = F4 ◦ F5 .
1.0
0.8
0.6
0.4
0.2
0.0
0.0 0.2 0.4 0.6 0.8 1.0
Figure 11. Graph of function G 5 (arrested at the third iteration).
6. A function approaching infinity at any point of its domain. The following ex-
ample is a simple variant of the function G 4 . Let F6 be the function from (0, 1) ∩ Q to
itself defined by
p
F6 =q
q
0.8
0.6
0.4
0.2
0.0
0.0 0.2 0.4 0.6 0.8 1.0
Figure 12. Construction of function G 5 .
50
40
30
20
10
0
1 1 1 2 3 1
4 3 2 3 4
lim F6 (x) = +∞
x→x0
ACKNOWLEDGMENTS. The authors are thankful to Prof. Maurizio Emaldi for pointing out reference [9]
and useful discussions, and also to Dr. Matteo Dalla Riva for pointing out reference [10]. The first two authors
are deeply indebted to the third author, P. Toni, who, in different periods, was their teacher of mathematics
and physics in secondary school, where he has developed and experienced the main pedagogical ideas that
are the basis of the present paper for about three decades. Those stimulating lessons led the second author,
P. D. Lamberti, to define the function F4 . The functions F5 and G 5 were defined by the first author, G. Drago,
in his dissertation [4], written under the supervision of the second author.
The authors are very thankful to a referee for suggesting formula (6), which simplifies a binary representa-
tion given in the first version of this paper, and for pointing out formula (9).
REFERENCES
GIACOMO DRAGO is 22 years old. He got his bachelor’s degree with honors from the University of Padova
in 2009. He distinguished himself in the national finals of three consecutive editions of the Kangourou Mathe-
matics Competitions in Italy (2004–2006). He is currently working on his master’s degree in mathematics, and
he dreams of becoming a teacher of mathematics.
Dipartimento di Matematica Pura ed Applicata, Università degli Studi di Padova, Via Trieste 63, 35121
Padova, Italy
[email protected]
PIER DOMENICO LAMBERTI received his Ph.D. in mathematics from the University of Padova in 2003.
He currently has a position as researcher in mathematical analysis at the same university. His research in-
PAOLO TONI received his master’s degree in mathematics from the University of Firenze in 1972. He has
taught mathematics and physics in high school for almost 40 years. He was a pioneer in the organization of
mathematics competitions in Italy. His interests are mainly in mathematical creativity and teacher education.
He retired in 2010. Now, he enjoys staying with his nephews and playing the organ. He believes in students’
creativity.
Liceo Scientifico Statale E. Fermi, Via Vittorio Emanuele II 50, 35100 Padova, Italy
[email protected]
n+ 12
1
A Ramanujan-Type Formula for 1+ e
n
n+ 12
Motivated by Sanjay Khattri’s proofs [1] that e < 1 + n1 , I offer the follow-
ing formula, which I think Ramanujan would have liked, for the ratio of the two
sides of Khattri’s inequality:
1 Z 1
1 n+ 2 u2
1+ e = exp du
0 (2n + 1) − u
n 2 2
Z 1
u2
= exp du (where m = n(n + 1)/2)
0 8m + 1 − u
2
Z 1
αu 2
= exp du (where α = 1/(8m))
0 1 + α(1 − u )
2
Z 1
= exp αu 2 − α 2 u 2 (1 − u 2 ) + α 3 u 2 (1 − u 2 )2 − α 4 u 2 (1 − u 2 )3 + · · · du
0
1 1 2 1 4 2 1 6 4 2 1 8 6 4 2 5
= exp α − · α2 + · · α3 − · · · α4 + · · · · α − ···
3 5 3 7 5 3 9 7 5 3 11 9 7 5 3
α 2α 4α 6α 8α
= exp 1− 1− 1− 1− 1 − ···
3 5 7 9 11
1 1 2 3 4
= exp 1− 1− 1− 1− 1 − ··· .
24m 5 · 4m 7 · 4m 9 · 4m 11 · 4m
REFERENCES
n+0.5
1. S. K. Khattri, Three proofs of the inequality e < 1 + n1 , Amer. Math. Monthly 117 (2010)
273–277. http://dx.doi.org/10.4169/000298910X480126