13
A “Bouquet” of Discontinuous Functions for Beginners in Mathematical Analysis Giacomo Drago, Pier Domenico Lamberti, and Paolo Toni 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. 1. INTRODUCTION. In this paper we present a selection of several discontinuous real-valued functions of one real variable which we believe could be proposed to any beginner in mathematical analysis, even to students of secondary school dealing with the first notions of calculus. Some of them are elementary and well known, others a bit more sophisticated. Most of them are modeled on the Dirichlet function. Our aim is to point out some pedagogical advantages of using discontinuous func- tions rather than classical analytic functions. Usually, young students tend to think of basic mathematical analysis as a set of rules of calculus and, surely, many under- graduate students would claim to feel more acquainted with the notion of derivative rather than with the notion of function. This is not surprising at all, if we consider that the historical evolution of the notion of function has been very long and troubled; see Youschkevitch [15] and Kleiner [8, 9]. See also Nicholas [11], Deal [3], and Thurston [13] for an interesting discussion about some pedagogical issues related to the definition of function. A modern definition of function can be found, e.g., in the classic book of Bourbaki [2], published more than two hundred years after the defini- tion of Johann Bernoulli (1718). As is pointed out in [15, p. 79], a significant step in this process was the formulation of A. Cournot (1841), which we report here for the convenience of the reader: We understand that a quantity may depend on another [quantity], even in case the nature of this dependence is such that it cannot be expressed in terms of a combination of algebraic symbols. This level of generality is commonly attributed to Dirichlet, who in 1829 proposed his celebrated function D defined on (0, 1) as follows: D(x ) = ( 1, if x (0, 1) Q, 0, if x (0, 1) \ Q. (1) 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 November 2011] A “BOUQUET” OF DISCONTINUOUS FUNCTIONS 799

A Bouquet of Discontinuous Functions for Beginners in ...ceadserv1.nku.edu/.../mat420/days/highlights/PathologicalFunctions.… · A Bouquet of Discontinuous Functions for Beginners

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: A Bouquet of Discontinuous Functions for Beginners in ...ceadserv1.nku.edu/.../mat420/days/highlights/PathologicalFunctions.… · A Bouquet of Discontinuous Functions for Beginners

A ldquoBouquetrdquo of Discontinuous Functions forBeginners in Mathematical Analysis

Giacomo Drago Pier Domenico Lamberti and Paolo Toni

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

1 INTRODUCTION In this paper we present a selection of several discontinuousreal-valued functions of one real variable which we believe could be proposed to anybeginner in mathematical analysis even to students of secondary school dealing withthe first notions of calculus Some of them are elementary and well known others a bitmore sophisticated Most of them are modeled on the Dirichlet function

Our aim is to point out some pedagogical advantages of using discontinuous func-tions rather than classical analytic functions Usually young students tend to thinkof basic mathematical analysis as a set of rules of calculus and surely many under-graduate students would claim to feel more acquainted with the notion of derivativerather than with the notion of function This is not surprising at all if we consider thatthe historical evolution of the notion of function has been very long and troubledsee Youschkevitch [15] and Kleiner [8 9] See also Nicholas [11] Deal [3] andThurston [13] for an interesting discussion about some pedagogical issues related tothe definition of function A modern definition of function can be found eg in theclassic book of Bourbaki [2] published more than two hundred years after the defini-tion of Johann Bernoulli (1718) As is pointed out in [15 p 79] a significant step inthis process was the formulation of A Cournot (1841) which we report here for theconvenience of the reader

We understand that a quantity may depend on another [quantity] even in casethe nature of this dependence is such that it cannot be expressed in terms of acombination of algebraic symbols

This level of generality is commonly attributed to Dirichlet who in 1829 proposed hiscelebrated function D defined on (0 1) as follows

D(x) =

1 if x isin (0 1) capQ0 if x isin (0 1) Q

(1)

In fact this example opened a door to a new world functions are not just formulasor analytic expressions as was commonly assumed in the 18th century Functions canbe defined by very general laws

From a pedagogical point of view deciding the level of generality of functions touse with young students is not straightforward According to Kleiner [9 pp 187ndash188]it is possible to teach an elementary model of analysis by placing emphasis solely oncurves and the equations that represent them without necessarily talking about func-tions Kleiner argues that students would find curves more natural than functions and

httpdxdoiorg104169amermathmonthly11809799

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 799

teachers should introduce the notion of function only when there is an evident need forit Teaching mathematics should follow the historical evolution of mathematics itselfnew definitions and concepts were introduced when the need arose and it should be soin teaching too Thus the definition of function should be given gradually followingits historical path At first one should introduce functions as formulas then as rulesand only at last if required as a set of ordered pairs (after all as Kleiner [9] pointsout ldquogiving this latter definition and proceeding to discuss only linear and quadraticfunctions makes little pedagogical senserdquo)

1

1

Figure 1 Graph of the Dirichlet function

In [14] another approach has been developed The introduction of [14] reads ldquoafterall analysis has few bases the concepts of function infinity limit continuity anddifferentiability To visit these locations in a comprehensive way one should allowthese concepts the faculty of expressing all of their potential and all their fantasticand incredible situations To achieve this high level it is necessary to stick closely tothe definition of function as a correspondence of free setsrdquo The modern definitionof function clearly allows a deeper comprehension of other concepts such as thoseof limit continuity and differentiability It is important that students understand thefar-reaching features of these notions because only in this way will they be able toavoid mistakes due to a limited concept of function Students should be aware fromthe very beginning that formulas provide a very small class of functions analyticity isa property enjoyed by very special functions Being discontinuous is not synonymouswith being pathological because most functions are discontinuous In the same waybeing continuous is not synonymous with being smooth since continuous functionscan 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 highlydiscontinuous functions is not essential but it simplifies the argument and makes thesituation clear

We note that there is a vast literature devoted to so-called pathological functions Wemention 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 treatiseconcerning continuous nowhere differentiable functions However at a pedagogicallevel not much material seems to be available

In this paper we adopt the approach of [14] and we discuss some peculiar examplessome of which are taken from [14] The focus is on special discontinuous functionsthe definitions of which are algebraically and technically simple in most cases Webelieve that this approach could be used not only with good students but also with weak

800 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

students who may take advantage of examples which illustrate profound concepts butremain at a low level of complexity

2 EXAMPLES OF DIRICHLET-TYPE FUNCTIONS In this section we presentseveral discontinuous functions modeled on the Dirichlet function (1) We think thatstudents may find such examples easy and eventually amusing once they are ac-quainted with function (1) On the other hand asking a student of a first-year calculuscourse to provide such examples could be very challenging

1 A function continuous at only one point If we ask a beginner in mathematicalanalysis whether a function from R to itself can be continuous at only one point mostof the time we will get the answer ldquonordquo as a consequence of an over-simplified viewof the concept of continuity Usually students have an idea of continuity as a globalproperty of a function according to this point of view continuous functions are thosefunctions whose graphs can be drawn without lifting the chalk from the blackboardThis vision is not completely wrong since a function is continuous in the whole of aninterval if and only if its graph is a pathwise-connected set in the plane However thefollowing example clarifies the local nature of continuity

ndash3 ndash2 ndash1 1 2 3

ndash3

ndash2

ndash1

1

2

3

Figure 2 Graph of function F1

Let F1 be the function from R to itself defined by

F1(x) =

x if x isin Qminusx if x isin R Q

The function F1 is continuous only at x = 0As a variant of the function F1 one can consider the function G1 from R to itself

defined by

G1(x) =

sin x if x isin Qminus sin x if x isin R Q

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 801

ndash2 ndash 2

ndash2

ndash1

1

2

Figure 3 Graph of function G1

The function G1 is continuous only at a countable set of points precisely at the pointsx = kπ with k isin Z

2 A function differentiable at only one point Loosely speaking the derivative ofa function at a point is the slope of the tangent line to the graph of the function atthat point However the notion of differentiability has a local nature which goes muchbeyond the geometric idea of a tangent line

Let F2 be the function from R to itself defined by

F2(x) =

x2 if x isin Qminusx2 if x isin R Q

The function F2 is differentiable only at x = 0 and is discontinuous at any pointx 6= 0 Proving that F2 is differentiable at x = 0 is an easy exercise However it maybe instructive to deduce such a proof from the following elementary lemma

Lemma 2 Let f g and h be functions from R to itself such that f (x) le h(x) le g(x)for all x isin R Let x0 isin R be fixed If f and g are differentiable at x0 f prime(x0) = gprime(x0)and f (x0) = g(x0) then h is differentiable at x0 and hprime(x0) = f prime(x0) = gprime(x0)

ndash2 ndash1 1 2

ndash3

ndash2

ndash1

1

2

3

Figure 4 Graph of function F2

ndash2 ndash1 1 2

ndash3

ndash2

ndash1

1

2

3

Figure 5 A randomly generated function differ-entiable at x = 0

802 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

Students may find it entertaining to apply the previous lemma to randomly gener-ated functions h satisfying the condition minusx2

le h(x) le x2 for all x in a neighborhoodof zero and find out that such functions are differentiable at zero (see Figure 5)

3 A function with positive derivative at one point which is not monotone in anyneighborhood of that point Let F3 be the function from R to itself defined by

F3(x) =

x2 if x isin Q2x minus 1 if x isin R Q

By Lemma 2 the function F3 is differentiable at the point x = 1 and F prime3(1) = 2 butF3 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 examplerather 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 differentiableat a point x0 and f prime(x0) gt 0 then f is increasing at the point x0 in the sense thatfor all x in a convenient neighborhood of x0 we have f (x) gt f (x0) if x gt x0 andf (x) lt f (x0) if x lt 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 ofan interval

1

1

2

Figure 6 Graph of function F3

Variants of the function F3 can be easily defined by considering convex combina-tions of x2 and 2x minus 1 of the form

θ(x)x2+ (1minus θ(x))(2x minus 1)

where θ is a suitable function taking values in [0 1] A ldquocontinuous versionrdquo of F3 isgiven for example by the function G3 from R to itself defined by1

G3(x) = sin2

(9

x minus 1

)middot x2+

(1minus sin2

(9

x minus 1

))middot (2x minus 1)

1The choice of the number 9 in the definition of G3 is not essential and is only aimed at emphasizing theoscillations of the graph in Figure 7

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 803

for all x isin R 1 and G3(1) = 1 Again G prime3(1) = 2 gt 0 but G3 is not monotone inany neighborhood of the point x = 1

Clearly the function G3 is much smoother than F3 however defining F3 and prov-ing its nonmonotonicity is simpler

ndash05 05 10 15

ndash05

05

10

15

20

25

Figure 7 Graph of function G3

3 FURTHER EXAMPLES In this section we present examples of functions with aspecific type of discontinuity at any point of the domain such as removable discontinu-ities or jump discontinuities Although complicated the definitions of these functionsare constructive and make use of elementary notions We note that imposing a specifictype of discontinuity at any point of the domain of a function leads to limitations onthe structure of the domain itself In fact the following result in Klippert [10] holds

Theorem 3 Let f be a function from R to itself Let A be the set of those points x0 isin Rsuch that f is discontinuous at x0 and at least one of the two limits limxrarrx+0

f (x) andlimxrarrxminus0

f (x) exists and is finite Then A is at most countable

4 A function with removable discontinuities at every point of its domain Thefollowing function F4 is defined on the dyadic rational numbers in (0 1) ie thosenumbers in (0 1) with a finite binary expansion A simple formal definition is givenbelow in (6) However we prefer to begin by describing the elementary geometricconstruction given in [14] which could also be presented to beginners

We construct the function F4 by means of the following iterative procedure (seeFigure 9)

Step 1 Let V = 0 and L = 1 and consider the square in the Euclidean plane withedges parallel to the coordinate axes whose lower left vertex is (V V ) and

804 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

00 02 04 06 08 1000

02

04

06

08

10

Figure 8 Graph of function F4 (arrested at the fourth iteration)

whose edges have length L Let

BVL =

V +

nsumj=1

L

2 j n isin N

Then we set F4(x) = V + L for all x isin BVL

Step 2 Inside the square defined in Step 1 consider the sequence of squares withedges of length Ln =

L2n and parallel to the coordinate axes and lower left

vertices with coordinates (Vn Vn) where Vn = V +sumnminus1

j=1L2 j for all n isin N

with n ge 2 and (V1 V1) = (V V )

Repeat Step 1 and Step 2 using each square obtained in Step 2 in place ofthe original square and iterate the process

The domain of the function F4 defined by this procedure is B = cupVL BVL which isclearly the set of the dyadic rational numbers in (0 1)

Looking closely at the construction described above and at the few first iterations(see Figure 9) it is evident that

limxrarrv

F4(x) = v lt F4(v) (4)

for all v isin B Thus F4 has a removable discontinuity at each point v isin B Indeed inorder to remove the discontinuity at a point v it is enough to redefine the function bysetting F4(v) = v

It is possible to give a non-iterative definition of the function F4 Indeed the set Bcan be represented as

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 805

00 02 04 06 08 1000

02

04

06

08

10

00 02 04 06 08 1000

02

04

06

08

10

00 02 04 06 08 1000

02

04

06

08

10

00 02 04 06 08 1000

02

04

06

08

10

Figure 9 The first four iterations

B = p

2n n p isin N p is odd p lt 2n

(5)

and F4 can be defined on B directly by the equality

F4

( p

2n

)=

p + 1

2n(6)

for all n p isin N where p is odd and p lt 2n This alternative definition allows aneasy proof of (4) since the summand 12n in the right-hand side of (6) vanishes in thelimiting procedure (see also (8) and (9))

A well-known function which enjoys a similar property can be found in severaltextbooks It is defined as follows Let G4 be the function from (0 1) cap Q to itselfdefined by

G4

(p

q

)=

1

q(7)

806 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

112

13

23

14

34

12

131415

Figure 10 Graph of function G4

for all p q isin N 0 lt pq lt 1 p q coprime It is not difficult to prove that

limxrarrx0

G4(x) = 0 6= G4(x0) (8)

for all x0 isin (0 1) cap Q The function G4 can be extended to the whole of (0 1) bysetting G4(x) = 0 for all x isin (0 1) Q and turns out to be continuous at any pointx isin (0 1) Q According to Appell [1 p 10] some students would call function G4

ldquoDirichlet lightrdquo because its set of discontinuities is ldquolighterrdquo than the set of disconti-nuities of the Dirichlet function

We note that by (6) and (7) it immediately follows that

F4(x) = x + G4(x) (9)

for all x isin B Equality (9) could be used to define F4 via G4 and to give a furtherproof 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 hasa 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 probabilitytheory these functions can be obtained as cumulative distribution functions associatedwith discrete measures (see eg Folland [5 p 102]) Here we present two functionsdefined on the set B of the dyadic rational numbers in (0 1) with jump discontinuitiesat every point of B These functions are defined directly by using binary notation anddo not require any advanced tool

We recall that the set B in (5) can be represented also in the form

B =infin⋃

n=1

nsumj=1

x j

2 j

∣∣∣∣ x j isin 0 1 for all j isin 1 n xn = 1

(10)

Thus given x isin B there exists n(x) isin N such that x =sumn(x)

j=1 x j2 j for suitable valuesof x j isin 0 1 where xn(x) = 1 using binary notation x can be written as

0 x1 x2 middot middot middot xn(x)

Let F5 be the function from B to itself defined by

F5(0 x1 x2 middot middot middot xn(x)) = 0 y1 y2 middot middot middot ym(x)

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 807

where the digits y1 ym(x) are obtained from the digits x1 xn(x) of x bysimply replacing each 0 with 01 For example F5(001) = 0011 F5(0101001) =0101101011 F5(0000011) = 00101010111 and F5(01) = 01 It is easy to provethat F5 is a monotone function strictly increasing on B Thus F5 admits left and rightlimits at any point of B Moreover it is not difficult to realize that in fact

F5(v) = limxrarrvminus

F5(x) lt limxrarrv+

F5(x)

for all v isin B Hence F5 is left-continuous with a jump discontinuity at every pointv isin B In order to get rid of the monotonicity one can consider the function G5 definedby

G5 = F4 F5

The function G5 is particularly interesting since it admits a geometric description in thespirit of the iterative construction of F4 in this case one has to consider rectangles withno common vertices rather than squares (see Figures 11 and 12) The function G5 isdiscussed in detail in Drago [4] where it is also proved by using binary representationsthat for all v isin B the one-sided limits of G5 at v exist and satisfy

limxrarrvminus

G5(x) lt limxrarrv+

G5(x) lt G5(v)

00 02 04 06 08 1000

02

04

06

08

10

Figure 11 Graph of function G5 (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 G4 Let F6 be the function from (0 1) capQ toitself defined by

F6

(p

q

)= q

808 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

00 02 04 06 08 1000

02

04

06

08

10

Figure 12 Construction of function G5

112

13

23

14

34

0

10

20

30

40

50

Figure 13 Graph of function F6

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 809

for all p q isin N 0 lt pq lt 1 p q coprime It is not difficult to prove that

limxrarrx0

F6(x) = +infin

for all x0 isin [0 1]

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 authorsare deeply indebted to the third author P Toni who in different periods was their teacher of mathematicsand physics in secondary school where he has developed and experienced the main pedagogical ideas thatare the basis of the present paper for about three decades Those stimulating lessons led the second authorP D Lamberti to define the function F4 The functions F5 and G5 were defined by the first author G Dragoin 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

1 J Appell Analysis in Beispielen und Gegenbeispielen Springer Berlin 20092 N Bourbaki Elements de Mathematique Theorie des Ensembles Hermann Paris 19703 R B Deal Some remarks on ldquoA dilemma in definitionrdquo Amer Math Monthly 74 (1967) 1258ndash1259

httpdxdoiorg1023072315696

4 G Drago Funzioni e Funzioni Strane Alcuni Aspetti Storici e Didattici BA thesis University ofPadova Padova 2009

5 G B Folland Real Analysis Modern Techniques and Their Applications John Wiley New York 19846 B R Gelbaum and J M H Olmsted Counterexamples in Analysis Holden-Day San Francisco 19647 A B Kharazishvili Strange Functions in Real Analysis 2nd ed Pure and Applied Mathematics vol

272 Chapman amp HallCRC Boca Raton FL 20068 I Kleiner Evolution of the function concept A brief survey College Math J 20 (1989) 282ndash300 http

dxdoiorg1023072686848

9 Functions Historical and pedagogical aspects Science amp Education 2 (1993) 183ndash209 httpdxdoiorg101007BF00592206

10 J Klippert Advanced advanced calculus Counting the discontinuities of a real-valued function withinterval domain Math Mag 62 (1989) 43ndash48 httpdxdoiorg1023072689945

11 C P Nicholas A dilemma in definition Amer Math Monthly 73 (1966) 762ndash768 httpdxdoiorg1023072313993

12 J Thim Continuous Nowhere Differentiable Functions MA thesis Lulea University of TechnologyLulea Sweden 2003

13 H A Thurston A reply to ldquoA dilemma in definitionrdquo Amer Math Monthly 74 (1967) 1259ndash1261 httpdxdoiorg1023072315697

14 P Toni and P D Lamberti Esplorando lrsquoAnalisi Matematica Societa Editrice Internazionale Torino1996

15 A P Youschkevitch The concept of function up to the middle of the 19th century Arch Hist Exact Sci16 (197677) 37ndash85

GIACOMO DRAGO is 22 years old He got his bachelorrsquos degree with honors from the University of Padovain 2009 He distinguished himself in the national finals of three consecutive editions of the Kangourou Mathe-matics Competitions in Italy (2004ndash2006) He is currently working on his masterrsquos degree in mathematics andhe dreams of becoming a teacher of mathematicsDipartimento di Matematica Pura ed Applicata Universita degli Studi di Padova Via Trieste 63 35121Padova Italygiacomodragogmailcom

PIER DOMENICO LAMBERTI received his PhD in mathematics from the University of Padova in 2003He currently has a position as researcher in mathematical analysis at the same university His research in-

810 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

terests are mainly in spectral stability problems for elliptic partial differential equations He likes to think ofmathematics as a form of artDipartimento di Matematica Pura ed Applicata Universita degli Studi di Padova Via Trieste 63 35121Padova Italylambertimathunipdit

PAOLO TONI received his masterrsquos degree in mathematics from the University of Firenze in 1972 He hastaught mathematics and physics in high school for almost 40 years He was a pioneer in the organization ofmathematics competitions in Italy His interests are mainly in mathematical creativity and teacher educationHe retired in 2010 Now he enjoys staying with his nephews and playing the organ He believes in studentsrsquocreativityLiceo Scientifico Statale E Fermi Via Vittorio Emanuele II 50 35100 Padova Italypaolotoniinwindit

A Ramanujan-Type Formula for(

1 +1n

)n+12

e

Motivated by Sanjay Khattrirsquos proofs [1] that e lt(1+ 1

n

)n+ 12 I offer the follow-

ing formula which I think Ramanujan would have liked for the ratio of the twosides of Khattrirsquos inequality(

1+1

n

)n+ 12

e = exp

int 1

0

u2

(2n + 1)2 minus u2du

= exp

int 1

0

u2

8m + 1minus u2du

(where m = n(n + 1)2)

= exp

int 1

0

αu2

1+ α(1minus u2)du

(where α = 1(8m))

= exp

int 1

0αu2minus α2u2(1minus u2)+ α3u2(1minus u2)2 minus α4u2(1minus u2)3 + middot middot middot du

= exp

1

3α minus

1

5middot

2

3α2+

1

7middot

4

5middot

2

3α3minus

1

9middot

6

7middot

4

5middot

2

3α4+

1

11middot

8

9middot

6

7middot

4

5middot

2

3α5minus middot middot middot

= exp

α

3

(1minus

5

(1minus

7

(1minus

9

(1minus

11

(1minus middot middot middot

)))))= exp

1

24m

(1minus

1

5 middot 4m

(1minus

2

7 middot 4m

(1minus

3

9 middot 4m

(1minus

4

11 middot 4m

(1minus middot middot middot

)))))

REFERENCES

1 S K Khattri Three proofs of the inequality e lt(

1+ 1n

)n+05 Amer Math Monthly 117 (2010)

273ndash277 httpdxdoiorg104169000298910X480126

mdashSubmitted by Michael D HirschhornUniversity of New South Wales Sydney Australia

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 811

Page 2: A Bouquet of Discontinuous Functions for Beginners in ...ceadserv1.nku.edu/.../mat420/days/highlights/PathologicalFunctions.… · A Bouquet of Discontinuous Functions for Beginners

teachers should introduce the notion of function only when there is an evident need forit Teaching mathematics should follow the historical evolution of mathematics itselfnew definitions and concepts were introduced when the need arose and it should be soin teaching too Thus the definition of function should be given gradually followingits historical path At first one should introduce functions as formulas then as rulesand only at last if required as a set of ordered pairs (after all as Kleiner [9] pointsout ldquogiving this latter definition and proceeding to discuss only linear and quadraticfunctions makes little pedagogical senserdquo)

1

1

Figure 1 Graph of the Dirichlet function

In [14] another approach has been developed The introduction of [14] reads ldquoafterall analysis has few bases the concepts of function infinity limit continuity anddifferentiability To visit these locations in a comprehensive way one should allowthese concepts the faculty of expressing all of their potential and all their fantasticand incredible situations To achieve this high level it is necessary to stick closely tothe definition of function as a correspondence of free setsrdquo The modern definitionof function clearly allows a deeper comprehension of other concepts such as thoseof limit continuity and differentiability It is important that students understand thefar-reaching features of these notions because only in this way will they be able toavoid mistakes due to a limited concept of function Students should be aware fromthe very beginning that formulas provide a very small class of functions analyticity isa property enjoyed by very special functions Being discontinuous is not synonymouswith being pathological because most functions are discontinuous In the same waybeing continuous is not synonymous with being smooth since continuous functionscan 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 highlydiscontinuous functions is not essential but it simplifies the argument and makes thesituation clear

We note that there is a vast literature devoted to so-called pathological functions Wemention 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 treatiseconcerning continuous nowhere differentiable functions However at a pedagogicallevel not much material seems to be available

In this paper we adopt the approach of [14] and we discuss some peculiar examplessome of which are taken from [14] The focus is on special discontinuous functionsthe definitions of which are algebraically and technically simple in most cases Webelieve that this approach could be used not only with good students but also with weak

800 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

students who may take advantage of examples which illustrate profound concepts butremain at a low level of complexity

2 EXAMPLES OF DIRICHLET-TYPE FUNCTIONS In this section we presentseveral discontinuous functions modeled on the Dirichlet function (1) We think thatstudents may find such examples easy and eventually amusing once they are ac-quainted with function (1) On the other hand asking a student of a first-year calculuscourse to provide such examples could be very challenging

1 A function continuous at only one point If we ask a beginner in mathematicalanalysis whether a function from R to itself can be continuous at only one point mostof the time we will get the answer ldquonordquo as a consequence of an over-simplified viewof the concept of continuity Usually students have an idea of continuity as a globalproperty of a function according to this point of view continuous functions are thosefunctions whose graphs can be drawn without lifting the chalk from the blackboardThis vision is not completely wrong since a function is continuous in the whole of aninterval if and only if its graph is a pathwise-connected set in the plane However thefollowing example clarifies the local nature of continuity

ndash3 ndash2 ndash1 1 2 3

ndash3

ndash2

ndash1

1

2

3

Figure 2 Graph of function F1

Let F1 be the function from R to itself defined by

F1(x) =

x if x isin Qminusx if x isin R Q

The function F1 is continuous only at x = 0As a variant of the function F1 one can consider the function G1 from R to itself

defined by

G1(x) =

sin x if x isin Qminus sin x if x isin R Q

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 801

ndash2 ndash 2

ndash2

ndash1

1

2

Figure 3 Graph of function G1

The function G1 is continuous only at a countable set of points precisely at the pointsx = kπ with k isin Z

2 A function differentiable at only one point Loosely speaking the derivative ofa function at a point is the slope of the tangent line to the graph of the function atthat point However the notion of differentiability has a local nature which goes muchbeyond the geometric idea of a tangent line

Let F2 be the function from R to itself defined by

F2(x) =

x2 if x isin Qminusx2 if x isin R Q

The function F2 is differentiable only at x = 0 and is discontinuous at any pointx 6= 0 Proving that F2 is differentiable at x = 0 is an easy exercise However it maybe instructive to deduce such a proof from the following elementary lemma

Lemma 2 Let f g and h be functions from R to itself such that f (x) le h(x) le g(x)for all x isin R Let x0 isin R be fixed If f and g are differentiable at x0 f prime(x0) = gprime(x0)and f (x0) = g(x0) then h is differentiable at x0 and hprime(x0) = f prime(x0) = gprime(x0)

ndash2 ndash1 1 2

ndash3

ndash2

ndash1

1

2

3

Figure 4 Graph of function F2

ndash2 ndash1 1 2

ndash3

ndash2

ndash1

1

2

3

Figure 5 A randomly generated function differ-entiable at x = 0

802 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

Students may find it entertaining to apply the previous lemma to randomly gener-ated functions h satisfying the condition minusx2

le h(x) le x2 for all x in a neighborhoodof zero and find out that such functions are differentiable at zero (see Figure 5)

3 A function with positive derivative at one point which is not monotone in anyneighborhood of that point Let F3 be the function from R to itself defined by

F3(x) =

x2 if x isin Q2x minus 1 if x isin R Q

By Lemma 2 the function F3 is differentiable at the point x = 1 and F prime3(1) = 2 butF3 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 examplerather 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 differentiableat a point x0 and f prime(x0) gt 0 then f is increasing at the point x0 in the sense thatfor all x in a convenient neighborhood of x0 we have f (x) gt f (x0) if x gt x0 andf (x) lt f (x0) if x lt 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 ofan interval

1

1

2

Figure 6 Graph of function F3

Variants of the function F3 can be easily defined by considering convex combina-tions of x2 and 2x minus 1 of the form

θ(x)x2+ (1minus θ(x))(2x minus 1)

where θ is a suitable function taking values in [0 1] A ldquocontinuous versionrdquo of F3 isgiven for example by the function G3 from R to itself defined by1

G3(x) = sin2

(9

x minus 1

)middot x2+

(1minus sin2

(9

x minus 1

))middot (2x minus 1)

1The choice of the number 9 in the definition of G3 is not essential and is only aimed at emphasizing theoscillations of the graph in Figure 7

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 803

for all x isin R 1 and G3(1) = 1 Again G prime3(1) = 2 gt 0 but G3 is not monotone inany neighborhood of the point x = 1

Clearly the function G3 is much smoother than F3 however defining F3 and prov-ing its nonmonotonicity is simpler

ndash05 05 10 15

ndash05

05

10

15

20

25

Figure 7 Graph of function G3

3 FURTHER EXAMPLES In this section we present examples of functions with aspecific type of discontinuity at any point of the domain such as removable discontinu-ities or jump discontinuities Although complicated the definitions of these functionsare constructive and make use of elementary notions We note that imposing a specifictype of discontinuity at any point of the domain of a function leads to limitations onthe structure of the domain itself In fact the following result in Klippert [10] holds

Theorem 3 Let f be a function from R to itself Let A be the set of those points x0 isin Rsuch that f is discontinuous at x0 and at least one of the two limits limxrarrx+0

f (x) andlimxrarrxminus0

f (x) exists and is finite Then A is at most countable

4 A function with removable discontinuities at every point of its domain Thefollowing function F4 is defined on the dyadic rational numbers in (0 1) ie thosenumbers in (0 1) with a finite binary expansion A simple formal definition is givenbelow in (6) However we prefer to begin by describing the elementary geometricconstruction given in [14] which could also be presented to beginners

We construct the function F4 by means of the following iterative procedure (seeFigure 9)

Step 1 Let V = 0 and L = 1 and consider the square in the Euclidean plane withedges parallel to the coordinate axes whose lower left vertex is (V V ) and

804 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

00 02 04 06 08 1000

02

04

06

08

10

Figure 8 Graph of function F4 (arrested at the fourth iteration)

whose edges have length L Let

BVL =

V +

nsumj=1

L

2 j n isin N

Then we set F4(x) = V + L for all x isin BVL

Step 2 Inside the square defined in Step 1 consider the sequence of squares withedges of length Ln =

L2n and parallel to the coordinate axes and lower left

vertices with coordinates (Vn Vn) where Vn = V +sumnminus1

j=1L2 j for all n isin N

with n ge 2 and (V1 V1) = (V V )

Repeat Step 1 and Step 2 using each square obtained in Step 2 in place ofthe original square and iterate the process

The domain of the function F4 defined by this procedure is B = cupVL BVL which isclearly the set of the dyadic rational numbers in (0 1)

Looking closely at the construction described above and at the few first iterations(see Figure 9) it is evident that

limxrarrv

F4(x) = v lt F4(v) (4)

for all v isin B Thus F4 has a removable discontinuity at each point v isin B Indeed inorder to remove the discontinuity at a point v it is enough to redefine the function bysetting F4(v) = v

It is possible to give a non-iterative definition of the function F4 Indeed the set Bcan be represented as

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 805

00 02 04 06 08 1000

02

04

06

08

10

00 02 04 06 08 1000

02

04

06

08

10

00 02 04 06 08 1000

02

04

06

08

10

00 02 04 06 08 1000

02

04

06

08

10

Figure 9 The first four iterations

B = p

2n n p isin N p is odd p lt 2n

(5)

and F4 can be defined on B directly by the equality

F4

( p

2n

)=

p + 1

2n(6)

for all n p isin N where p is odd and p lt 2n This alternative definition allows aneasy proof of (4) since the summand 12n in the right-hand side of (6) vanishes in thelimiting procedure (see also (8) and (9))

A well-known function which enjoys a similar property can be found in severaltextbooks It is defined as follows Let G4 be the function from (0 1) cap Q to itselfdefined by

G4

(p

q

)=

1

q(7)

806 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

112

13

23

14

34

12

131415

Figure 10 Graph of function G4

for all p q isin N 0 lt pq lt 1 p q coprime It is not difficult to prove that

limxrarrx0

G4(x) = 0 6= G4(x0) (8)

for all x0 isin (0 1) cap Q The function G4 can be extended to the whole of (0 1) bysetting G4(x) = 0 for all x isin (0 1) Q and turns out to be continuous at any pointx isin (0 1) Q According to Appell [1 p 10] some students would call function G4

ldquoDirichlet lightrdquo because its set of discontinuities is ldquolighterrdquo than the set of disconti-nuities of the Dirichlet function

We note that by (6) and (7) it immediately follows that

F4(x) = x + G4(x) (9)

for all x isin B Equality (9) could be used to define F4 via G4 and to give a furtherproof 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 hasa 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 probabilitytheory these functions can be obtained as cumulative distribution functions associatedwith discrete measures (see eg Folland [5 p 102]) Here we present two functionsdefined on the set B of the dyadic rational numbers in (0 1) with jump discontinuitiesat every point of B These functions are defined directly by using binary notation anddo not require any advanced tool

We recall that the set B in (5) can be represented also in the form

B =infin⋃

n=1

nsumj=1

x j

2 j

∣∣∣∣ x j isin 0 1 for all j isin 1 n xn = 1

(10)

Thus given x isin B there exists n(x) isin N such that x =sumn(x)

j=1 x j2 j for suitable valuesof x j isin 0 1 where xn(x) = 1 using binary notation x can be written as

0 x1 x2 middot middot middot xn(x)

Let F5 be the function from B to itself defined by

F5(0 x1 x2 middot middot middot xn(x)) = 0 y1 y2 middot middot middot ym(x)

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 807

where the digits y1 ym(x) are obtained from the digits x1 xn(x) of x bysimply replacing each 0 with 01 For example F5(001) = 0011 F5(0101001) =0101101011 F5(0000011) = 00101010111 and F5(01) = 01 It is easy to provethat F5 is a monotone function strictly increasing on B Thus F5 admits left and rightlimits at any point of B Moreover it is not difficult to realize that in fact

F5(v) = limxrarrvminus

F5(x) lt limxrarrv+

F5(x)

for all v isin B Hence F5 is left-continuous with a jump discontinuity at every pointv isin B In order to get rid of the monotonicity one can consider the function G5 definedby

G5 = F4 F5

The function G5 is particularly interesting since it admits a geometric description in thespirit of the iterative construction of F4 in this case one has to consider rectangles withno common vertices rather than squares (see Figures 11 and 12) The function G5 isdiscussed in detail in Drago [4] where it is also proved by using binary representationsthat for all v isin B the one-sided limits of G5 at v exist and satisfy

limxrarrvminus

G5(x) lt limxrarrv+

G5(x) lt G5(v)

00 02 04 06 08 1000

02

04

06

08

10

Figure 11 Graph of function G5 (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 G4 Let F6 be the function from (0 1) capQ toitself defined by

F6

(p

q

)= q

808 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

00 02 04 06 08 1000

02

04

06

08

10

Figure 12 Construction of function G5

112

13

23

14

34

0

10

20

30

40

50

Figure 13 Graph of function F6

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 809

for all p q isin N 0 lt pq lt 1 p q coprime It is not difficult to prove that

limxrarrx0

F6(x) = +infin

for all x0 isin [0 1]

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 authorsare deeply indebted to the third author P Toni who in different periods was their teacher of mathematicsand physics in secondary school where he has developed and experienced the main pedagogical ideas thatare the basis of the present paper for about three decades Those stimulating lessons led the second authorP D Lamberti to define the function F4 The functions F5 and G5 were defined by the first author G Dragoin 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

1 J Appell Analysis in Beispielen und Gegenbeispielen Springer Berlin 20092 N Bourbaki Elements de Mathematique Theorie des Ensembles Hermann Paris 19703 R B Deal Some remarks on ldquoA dilemma in definitionrdquo Amer Math Monthly 74 (1967) 1258ndash1259

httpdxdoiorg1023072315696

4 G Drago Funzioni e Funzioni Strane Alcuni Aspetti Storici e Didattici BA thesis University ofPadova Padova 2009

5 G B Folland Real Analysis Modern Techniques and Their Applications John Wiley New York 19846 B R Gelbaum and J M H Olmsted Counterexamples in Analysis Holden-Day San Francisco 19647 A B Kharazishvili Strange Functions in Real Analysis 2nd ed Pure and Applied Mathematics vol

272 Chapman amp HallCRC Boca Raton FL 20068 I Kleiner Evolution of the function concept A brief survey College Math J 20 (1989) 282ndash300 http

dxdoiorg1023072686848

9 Functions Historical and pedagogical aspects Science amp Education 2 (1993) 183ndash209 httpdxdoiorg101007BF00592206

10 J Klippert Advanced advanced calculus Counting the discontinuities of a real-valued function withinterval domain Math Mag 62 (1989) 43ndash48 httpdxdoiorg1023072689945

11 C P Nicholas A dilemma in definition Amer Math Monthly 73 (1966) 762ndash768 httpdxdoiorg1023072313993

12 J Thim Continuous Nowhere Differentiable Functions MA thesis Lulea University of TechnologyLulea Sweden 2003

13 H A Thurston A reply to ldquoA dilemma in definitionrdquo Amer Math Monthly 74 (1967) 1259ndash1261 httpdxdoiorg1023072315697

14 P Toni and P D Lamberti Esplorando lrsquoAnalisi Matematica Societa Editrice Internazionale Torino1996

15 A P Youschkevitch The concept of function up to the middle of the 19th century Arch Hist Exact Sci16 (197677) 37ndash85

GIACOMO DRAGO is 22 years old He got his bachelorrsquos degree with honors from the University of Padovain 2009 He distinguished himself in the national finals of three consecutive editions of the Kangourou Mathe-matics Competitions in Italy (2004ndash2006) He is currently working on his masterrsquos degree in mathematics andhe dreams of becoming a teacher of mathematicsDipartimento di Matematica Pura ed Applicata Universita degli Studi di Padova Via Trieste 63 35121Padova Italygiacomodragogmailcom

PIER DOMENICO LAMBERTI received his PhD in mathematics from the University of Padova in 2003He currently has a position as researcher in mathematical analysis at the same university His research in-

810 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

terests are mainly in spectral stability problems for elliptic partial differential equations He likes to think ofmathematics as a form of artDipartimento di Matematica Pura ed Applicata Universita degli Studi di Padova Via Trieste 63 35121Padova Italylambertimathunipdit

PAOLO TONI received his masterrsquos degree in mathematics from the University of Firenze in 1972 He hastaught mathematics and physics in high school for almost 40 years He was a pioneer in the organization ofmathematics competitions in Italy His interests are mainly in mathematical creativity and teacher educationHe retired in 2010 Now he enjoys staying with his nephews and playing the organ He believes in studentsrsquocreativityLiceo Scientifico Statale E Fermi Via Vittorio Emanuele II 50 35100 Padova Italypaolotoniinwindit

A Ramanujan-Type Formula for(

1 +1n

)n+12

e

Motivated by Sanjay Khattrirsquos proofs [1] that e lt(1+ 1

n

)n+ 12 I offer the follow-

ing formula which I think Ramanujan would have liked for the ratio of the twosides of Khattrirsquos inequality(

1+1

n

)n+ 12

e = exp

int 1

0

u2

(2n + 1)2 minus u2du

= exp

int 1

0

u2

8m + 1minus u2du

(where m = n(n + 1)2)

= exp

int 1

0

αu2

1+ α(1minus u2)du

(where α = 1(8m))

= exp

int 1

0αu2minus α2u2(1minus u2)+ α3u2(1minus u2)2 minus α4u2(1minus u2)3 + middot middot middot du

= exp

1

3α minus

1

5middot

2

3α2+

1

7middot

4

5middot

2

3α3minus

1

9middot

6

7middot

4

5middot

2

3α4+

1

11middot

8

9middot

6

7middot

4

5middot

2

3α5minus middot middot middot

= exp

α

3

(1minus

5

(1minus

7

(1minus

9

(1minus

11

(1minus middot middot middot

)))))= exp

1

24m

(1minus

1

5 middot 4m

(1minus

2

7 middot 4m

(1minus

3

9 middot 4m

(1minus

4

11 middot 4m

(1minus middot middot middot

)))))

REFERENCES

1 S K Khattri Three proofs of the inequality e lt(

1+ 1n

)n+05 Amer Math Monthly 117 (2010)

273ndash277 httpdxdoiorg104169000298910X480126

mdashSubmitted by Michael D HirschhornUniversity of New South Wales Sydney Australia

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 811

Page 3: A Bouquet of Discontinuous Functions for Beginners in ...ceadserv1.nku.edu/.../mat420/days/highlights/PathologicalFunctions.… · A Bouquet of Discontinuous Functions for Beginners

students who may take advantage of examples which illustrate profound concepts butremain at a low level of complexity

2 EXAMPLES OF DIRICHLET-TYPE FUNCTIONS In this section we presentseveral discontinuous functions modeled on the Dirichlet function (1) We think thatstudents may find such examples easy and eventually amusing once they are ac-quainted with function (1) On the other hand asking a student of a first-year calculuscourse to provide such examples could be very challenging

1 A function continuous at only one point If we ask a beginner in mathematicalanalysis whether a function from R to itself can be continuous at only one point mostof the time we will get the answer ldquonordquo as a consequence of an over-simplified viewof the concept of continuity Usually students have an idea of continuity as a globalproperty of a function according to this point of view continuous functions are thosefunctions whose graphs can be drawn without lifting the chalk from the blackboardThis vision is not completely wrong since a function is continuous in the whole of aninterval if and only if its graph is a pathwise-connected set in the plane However thefollowing example clarifies the local nature of continuity

ndash3 ndash2 ndash1 1 2 3

ndash3

ndash2

ndash1

1

2

3

Figure 2 Graph of function F1

Let F1 be the function from R to itself defined by

F1(x) =

x if x isin Qminusx if x isin R Q

The function F1 is continuous only at x = 0As a variant of the function F1 one can consider the function G1 from R to itself

defined by

G1(x) =

sin x if x isin Qminus sin x if x isin R Q

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 801

ndash2 ndash 2

ndash2

ndash1

1

2

Figure 3 Graph of function G1

The function G1 is continuous only at a countable set of points precisely at the pointsx = kπ with k isin Z

2 A function differentiable at only one point Loosely speaking the derivative ofa function at a point is the slope of the tangent line to the graph of the function atthat point However the notion of differentiability has a local nature which goes muchbeyond the geometric idea of a tangent line

Let F2 be the function from R to itself defined by

F2(x) =

x2 if x isin Qminusx2 if x isin R Q

The function F2 is differentiable only at x = 0 and is discontinuous at any pointx 6= 0 Proving that F2 is differentiable at x = 0 is an easy exercise However it maybe instructive to deduce such a proof from the following elementary lemma

Lemma 2 Let f g and h be functions from R to itself such that f (x) le h(x) le g(x)for all x isin R Let x0 isin R be fixed If f and g are differentiable at x0 f prime(x0) = gprime(x0)and f (x0) = g(x0) then h is differentiable at x0 and hprime(x0) = f prime(x0) = gprime(x0)

ndash2 ndash1 1 2

ndash3

ndash2

ndash1

1

2

3

Figure 4 Graph of function F2

ndash2 ndash1 1 2

ndash3

ndash2

ndash1

1

2

3

Figure 5 A randomly generated function differ-entiable at x = 0

802 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

Students may find it entertaining to apply the previous lemma to randomly gener-ated functions h satisfying the condition minusx2

le h(x) le x2 for all x in a neighborhoodof zero and find out that such functions are differentiable at zero (see Figure 5)

3 A function with positive derivative at one point which is not monotone in anyneighborhood of that point Let F3 be the function from R to itself defined by

F3(x) =

x2 if x isin Q2x minus 1 if x isin R Q

By Lemma 2 the function F3 is differentiable at the point x = 1 and F prime3(1) = 2 butF3 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 examplerather 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 differentiableat a point x0 and f prime(x0) gt 0 then f is increasing at the point x0 in the sense thatfor all x in a convenient neighborhood of x0 we have f (x) gt f (x0) if x gt x0 andf (x) lt f (x0) if x lt 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 ofan interval

1

1

2

Figure 6 Graph of function F3

Variants of the function F3 can be easily defined by considering convex combina-tions of x2 and 2x minus 1 of the form

θ(x)x2+ (1minus θ(x))(2x minus 1)

where θ is a suitable function taking values in [0 1] A ldquocontinuous versionrdquo of F3 isgiven for example by the function G3 from R to itself defined by1

G3(x) = sin2

(9

x minus 1

)middot x2+

(1minus sin2

(9

x minus 1

))middot (2x minus 1)

1The choice of the number 9 in the definition of G3 is not essential and is only aimed at emphasizing theoscillations of the graph in Figure 7

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 803

for all x isin R 1 and G3(1) = 1 Again G prime3(1) = 2 gt 0 but G3 is not monotone inany neighborhood of the point x = 1

Clearly the function G3 is much smoother than F3 however defining F3 and prov-ing its nonmonotonicity is simpler

ndash05 05 10 15

ndash05

05

10

15

20

25

Figure 7 Graph of function G3

3 FURTHER EXAMPLES In this section we present examples of functions with aspecific type of discontinuity at any point of the domain such as removable discontinu-ities or jump discontinuities Although complicated the definitions of these functionsare constructive and make use of elementary notions We note that imposing a specifictype of discontinuity at any point of the domain of a function leads to limitations onthe structure of the domain itself In fact the following result in Klippert [10] holds

Theorem 3 Let f be a function from R to itself Let A be the set of those points x0 isin Rsuch that f is discontinuous at x0 and at least one of the two limits limxrarrx+0

f (x) andlimxrarrxminus0

f (x) exists and is finite Then A is at most countable

4 A function with removable discontinuities at every point of its domain Thefollowing function F4 is defined on the dyadic rational numbers in (0 1) ie thosenumbers in (0 1) with a finite binary expansion A simple formal definition is givenbelow in (6) However we prefer to begin by describing the elementary geometricconstruction given in [14] which could also be presented to beginners

We construct the function F4 by means of the following iterative procedure (seeFigure 9)

Step 1 Let V = 0 and L = 1 and consider the square in the Euclidean plane withedges parallel to the coordinate axes whose lower left vertex is (V V ) and

804 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

00 02 04 06 08 1000

02

04

06

08

10

Figure 8 Graph of function F4 (arrested at the fourth iteration)

whose edges have length L Let

BVL =

V +

nsumj=1

L

2 j n isin N

Then we set F4(x) = V + L for all x isin BVL

Step 2 Inside the square defined in Step 1 consider the sequence of squares withedges of length Ln =

L2n and parallel to the coordinate axes and lower left

vertices with coordinates (Vn Vn) where Vn = V +sumnminus1

j=1L2 j for all n isin N

with n ge 2 and (V1 V1) = (V V )

Repeat Step 1 and Step 2 using each square obtained in Step 2 in place ofthe original square and iterate the process

The domain of the function F4 defined by this procedure is B = cupVL BVL which isclearly the set of the dyadic rational numbers in (0 1)

Looking closely at the construction described above and at the few first iterations(see Figure 9) it is evident that

limxrarrv

F4(x) = v lt F4(v) (4)

for all v isin B Thus F4 has a removable discontinuity at each point v isin B Indeed inorder to remove the discontinuity at a point v it is enough to redefine the function bysetting F4(v) = v

It is possible to give a non-iterative definition of the function F4 Indeed the set Bcan be represented as

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 805

00 02 04 06 08 1000

02

04

06

08

10

00 02 04 06 08 1000

02

04

06

08

10

00 02 04 06 08 1000

02

04

06

08

10

00 02 04 06 08 1000

02

04

06

08

10

Figure 9 The first four iterations

B = p

2n n p isin N p is odd p lt 2n

(5)

and F4 can be defined on B directly by the equality

F4

( p

2n

)=

p + 1

2n(6)

for all n p isin N where p is odd and p lt 2n This alternative definition allows aneasy proof of (4) since the summand 12n in the right-hand side of (6) vanishes in thelimiting procedure (see also (8) and (9))

A well-known function which enjoys a similar property can be found in severaltextbooks It is defined as follows Let G4 be the function from (0 1) cap Q to itselfdefined by

G4

(p

q

)=

1

q(7)

806 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

112

13

23

14

34

12

131415

Figure 10 Graph of function G4

for all p q isin N 0 lt pq lt 1 p q coprime It is not difficult to prove that

limxrarrx0

G4(x) = 0 6= G4(x0) (8)

for all x0 isin (0 1) cap Q The function G4 can be extended to the whole of (0 1) bysetting G4(x) = 0 for all x isin (0 1) Q and turns out to be continuous at any pointx isin (0 1) Q According to Appell [1 p 10] some students would call function G4

ldquoDirichlet lightrdquo because its set of discontinuities is ldquolighterrdquo than the set of disconti-nuities of the Dirichlet function

We note that by (6) and (7) it immediately follows that

F4(x) = x + G4(x) (9)

for all x isin B Equality (9) could be used to define F4 via G4 and to give a furtherproof 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 hasa 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 probabilitytheory these functions can be obtained as cumulative distribution functions associatedwith discrete measures (see eg Folland [5 p 102]) Here we present two functionsdefined on the set B of the dyadic rational numbers in (0 1) with jump discontinuitiesat every point of B These functions are defined directly by using binary notation anddo not require any advanced tool

We recall that the set B in (5) can be represented also in the form

B =infin⋃

n=1

nsumj=1

x j

2 j

∣∣∣∣ x j isin 0 1 for all j isin 1 n xn = 1

(10)

Thus given x isin B there exists n(x) isin N such that x =sumn(x)

j=1 x j2 j for suitable valuesof x j isin 0 1 where xn(x) = 1 using binary notation x can be written as

0 x1 x2 middot middot middot xn(x)

Let F5 be the function from B to itself defined by

F5(0 x1 x2 middot middot middot xn(x)) = 0 y1 y2 middot middot middot ym(x)

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 807

where the digits y1 ym(x) are obtained from the digits x1 xn(x) of x bysimply replacing each 0 with 01 For example F5(001) = 0011 F5(0101001) =0101101011 F5(0000011) = 00101010111 and F5(01) = 01 It is easy to provethat F5 is a monotone function strictly increasing on B Thus F5 admits left and rightlimits at any point of B Moreover it is not difficult to realize that in fact

F5(v) = limxrarrvminus

F5(x) lt limxrarrv+

F5(x)

for all v isin B Hence F5 is left-continuous with a jump discontinuity at every pointv isin B In order to get rid of the monotonicity one can consider the function G5 definedby

G5 = F4 F5

The function G5 is particularly interesting since it admits a geometric description in thespirit of the iterative construction of F4 in this case one has to consider rectangles withno common vertices rather than squares (see Figures 11 and 12) The function G5 isdiscussed in detail in Drago [4] where it is also proved by using binary representationsthat for all v isin B the one-sided limits of G5 at v exist and satisfy

limxrarrvminus

G5(x) lt limxrarrv+

G5(x) lt G5(v)

00 02 04 06 08 1000

02

04

06

08

10

Figure 11 Graph of function G5 (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 G4 Let F6 be the function from (0 1) capQ toitself defined by

F6

(p

q

)= q

808 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

00 02 04 06 08 1000

02

04

06

08

10

Figure 12 Construction of function G5

112

13

23

14

34

0

10

20

30

40

50

Figure 13 Graph of function F6

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 809

for all p q isin N 0 lt pq lt 1 p q coprime It is not difficult to prove that

limxrarrx0

F6(x) = +infin

for all x0 isin [0 1]

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 authorsare deeply indebted to the third author P Toni who in different periods was their teacher of mathematicsand physics in secondary school where he has developed and experienced the main pedagogical ideas thatare the basis of the present paper for about three decades Those stimulating lessons led the second authorP D Lamberti to define the function F4 The functions F5 and G5 were defined by the first author G Dragoin 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

1 J Appell Analysis in Beispielen und Gegenbeispielen Springer Berlin 20092 N Bourbaki Elements de Mathematique Theorie des Ensembles Hermann Paris 19703 R B Deal Some remarks on ldquoA dilemma in definitionrdquo Amer Math Monthly 74 (1967) 1258ndash1259

httpdxdoiorg1023072315696

4 G Drago Funzioni e Funzioni Strane Alcuni Aspetti Storici e Didattici BA thesis University ofPadova Padova 2009

5 G B Folland Real Analysis Modern Techniques and Their Applications John Wiley New York 19846 B R Gelbaum and J M H Olmsted Counterexamples in Analysis Holden-Day San Francisco 19647 A B Kharazishvili Strange Functions in Real Analysis 2nd ed Pure and Applied Mathematics vol

272 Chapman amp HallCRC Boca Raton FL 20068 I Kleiner Evolution of the function concept A brief survey College Math J 20 (1989) 282ndash300 http

dxdoiorg1023072686848

9 Functions Historical and pedagogical aspects Science amp Education 2 (1993) 183ndash209 httpdxdoiorg101007BF00592206

10 J Klippert Advanced advanced calculus Counting the discontinuities of a real-valued function withinterval domain Math Mag 62 (1989) 43ndash48 httpdxdoiorg1023072689945

11 C P Nicholas A dilemma in definition Amer Math Monthly 73 (1966) 762ndash768 httpdxdoiorg1023072313993

12 J Thim Continuous Nowhere Differentiable Functions MA thesis Lulea University of TechnologyLulea Sweden 2003

13 H A Thurston A reply to ldquoA dilemma in definitionrdquo Amer Math Monthly 74 (1967) 1259ndash1261 httpdxdoiorg1023072315697

14 P Toni and P D Lamberti Esplorando lrsquoAnalisi Matematica Societa Editrice Internazionale Torino1996

15 A P Youschkevitch The concept of function up to the middle of the 19th century Arch Hist Exact Sci16 (197677) 37ndash85

GIACOMO DRAGO is 22 years old He got his bachelorrsquos degree with honors from the University of Padovain 2009 He distinguished himself in the national finals of three consecutive editions of the Kangourou Mathe-matics Competitions in Italy (2004ndash2006) He is currently working on his masterrsquos degree in mathematics andhe dreams of becoming a teacher of mathematicsDipartimento di Matematica Pura ed Applicata Universita degli Studi di Padova Via Trieste 63 35121Padova Italygiacomodragogmailcom

PIER DOMENICO LAMBERTI received his PhD in mathematics from the University of Padova in 2003He currently has a position as researcher in mathematical analysis at the same university His research in-

810 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

terests are mainly in spectral stability problems for elliptic partial differential equations He likes to think ofmathematics as a form of artDipartimento di Matematica Pura ed Applicata Universita degli Studi di Padova Via Trieste 63 35121Padova Italylambertimathunipdit

PAOLO TONI received his masterrsquos degree in mathematics from the University of Firenze in 1972 He hastaught mathematics and physics in high school for almost 40 years He was a pioneer in the organization ofmathematics competitions in Italy His interests are mainly in mathematical creativity and teacher educationHe retired in 2010 Now he enjoys staying with his nephews and playing the organ He believes in studentsrsquocreativityLiceo Scientifico Statale E Fermi Via Vittorio Emanuele II 50 35100 Padova Italypaolotoniinwindit

A Ramanujan-Type Formula for(

1 +1n

)n+12

e

Motivated by Sanjay Khattrirsquos proofs [1] that e lt(1+ 1

n

)n+ 12 I offer the follow-

ing formula which I think Ramanujan would have liked for the ratio of the twosides of Khattrirsquos inequality(

1+1

n

)n+ 12

e = exp

int 1

0

u2

(2n + 1)2 minus u2du

= exp

int 1

0

u2

8m + 1minus u2du

(where m = n(n + 1)2)

= exp

int 1

0

αu2

1+ α(1minus u2)du

(where α = 1(8m))

= exp

int 1

0αu2minus α2u2(1minus u2)+ α3u2(1minus u2)2 minus α4u2(1minus u2)3 + middot middot middot du

= exp

1

3α minus

1

5middot

2

3α2+

1

7middot

4

5middot

2

3α3minus

1

9middot

6

7middot

4

5middot

2

3α4+

1

11middot

8

9middot

6

7middot

4

5middot

2

3α5minus middot middot middot

= exp

α

3

(1minus

5

(1minus

7

(1minus

9

(1minus

11

(1minus middot middot middot

)))))= exp

1

24m

(1minus

1

5 middot 4m

(1minus

2

7 middot 4m

(1minus

3

9 middot 4m

(1minus

4

11 middot 4m

(1minus middot middot middot

)))))

REFERENCES

1 S K Khattri Three proofs of the inequality e lt(

1+ 1n

)n+05 Amer Math Monthly 117 (2010)

273ndash277 httpdxdoiorg104169000298910X480126

mdashSubmitted by Michael D HirschhornUniversity of New South Wales Sydney Australia

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 811

Page 4: A Bouquet of Discontinuous Functions for Beginners in ...ceadserv1.nku.edu/.../mat420/days/highlights/PathologicalFunctions.… · A Bouquet of Discontinuous Functions for Beginners

ndash2 ndash 2

ndash2

ndash1

1

2

Figure 3 Graph of function G1

The function G1 is continuous only at a countable set of points precisely at the pointsx = kπ with k isin Z

2 A function differentiable at only one point Loosely speaking the derivative ofa function at a point is the slope of the tangent line to the graph of the function atthat point However the notion of differentiability has a local nature which goes muchbeyond the geometric idea of a tangent line

Let F2 be the function from R to itself defined by

F2(x) =

x2 if x isin Qminusx2 if x isin R Q

The function F2 is differentiable only at x = 0 and is discontinuous at any pointx 6= 0 Proving that F2 is differentiable at x = 0 is an easy exercise However it maybe instructive to deduce such a proof from the following elementary lemma

Lemma 2 Let f g and h be functions from R to itself such that f (x) le h(x) le g(x)for all x isin R Let x0 isin R be fixed If f and g are differentiable at x0 f prime(x0) = gprime(x0)and f (x0) = g(x0) then h is differentiable at x0 and hprime(x0) = f prime(x0) = gprime(x0)

ndash2 ndash1 1 2

ndash3

ndash2

ndash1

1

2

3

Figure 4 Graph of function F2

ndash2 ndash1 1 2

ndash3

ndash2

ndash1

1

2

3

Figure 5 A randomly generated function differ-entiable at x = 0

802 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

Students may find it entertaining to apply the previous lemma to randomly gener-ated functions h satisfying the condition minusx2

le h(x) le x2 for all x in a neighborhoodof zero and find out that such functions are differentiable at zero (see Figure 5)

3 A function with positive derivative at one point which is not monotone in anyneighborhood of that point Let F3 be the function from R to itself defined by

F3(x) =

x2 if x isin Q2x minus 1 if x isin R Q

By Lemma 2 the function F3 is differentiable at the point x = 1 and F prime3(1) = 2 butF3 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 examplerather 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 differentiableat a point x0 and f prime(x0) gt 0 then f is increasing at the point x0 in the sense thatfor all x in a convenient neighborhood of x0 we have f (x) gt f (x0) if x gt x0 andf (x) lt f (x0) if x lt 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 ofan interval

1

1

2

Figure 6 Graph of function F3

Variants of the function F3 can be easily defined by considering convex combina-tions of x2 and 2x minus 1 of the form

θ(x)x2+ (1minus θ(x))(2x minus 1)

where θ is a suitable function taking values in [0 1] A ldquocontinuous versionrdquo of F3 isgiven for example by the function G3 from R to itself defined by1

G3(x) = sin2

(9

x minus 1

)middot x2+

(1minus sin2

(9

x minus 1

))middot (2x minus 1)

1The choice of the number 9 in the definition of G3 is not essential and is only aimed at emphasizing theoscillations of the graph in Figure 7

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 803

for all x isin R 1 and G3(1) = 1 Again G prime3(1) = 2 gt 0 but G3 is not monotone inany neighborhood of the point x = 1

Clearly the function G3 is much smoother than F3 however defining F3 and prov-ing its nonmonotonicity is simpler

ndash05 05 10 15

ndash05

05

10

15

20

25

Figure 7 Graph of function G3

3 FURTHER EXAMPLES In this section we present examples of functions with aspecific type of discontinuity at any point of the domain such as removable discontinu-ities or jump discontinuities Although complicated the definitions of these functionsare constructive and make use of elementary notions We note that imposing a specifictype of discontinuity at any point of the domain of a function leads to limitations onthe structure of the domain itself In fact the following result in Klippert [10] holds

Theorem 3 Let f be a function from R to itself Let A be the set of those points x0 isin Rsuch that f is discontinuous at x0 and at least one of the two limits limxrarrx+0

f (x) andlimxrarrxminus0

f (x) exists and is finite Then A is at most countable

4 A function with removable discontinuities at every point of its domain Thefollowing function F4 is defined on the dyadic rational numbers in (0 1) ie thosenumbers in (0 1) with a finite binary expansion A simple formal definition is givenbelow in (6) However we prefer to begin by describing the elementary geometricconstruction given in [14] which could also be presented to beginners

We construct the function F4 by means of the following iterative procedure (seeFigure 9)

Step 1 Let V = 0 and L = 1 and consider the square in the Euclidean plane withedges parallel to the coordinate axes whose lower left vertex is (V V ) and

804 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

00 02 04 06 08 1000

02

04

06

08

10

Figure 8 Graph of function F4 (arrested at the fourth iteration)

whose edges have length L Let

BVL =

V +

nsumj=1

L

2 j n isin N

Then we set F4(x) = V + L for all x isin BVL

Step 2 Inside the square defined in Step 1 consider the sequence of squares withedges of length Ln =

L2n and parallel to the coordinate axes and lower left

vertices with coordinates (Vn Vn) where Vn = V +sumnminus1

j=1L2 j for all n isin N

with n ge 2 and (V1 V1) = (V V )

Repeat Step 1 and Step 2 using each square obtained in Step 2 in place ofthe original square and iterate the process

The domain of the function F4 defined by this procedure is B = cupVL BVL which isclearly the set of the dyadic rational numbers in (0 1)

Looking closely at the construction described above and at the few first iterations(see Figure 9) it is evident that

limxrarrv

F4(x) = v lt F4(v) (4)

for all v isin B Thus F4 has a removable discontinuity at each point v isin B Indeed inorder to remove the discontinuity at a point v it is enough to redefine the function bysetting F4(v) = v

It is possible to give a non-iterative definition of the function F4 Indeed the set Bcan be represented as

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 805

00 02 04 06 08 1000

02

04

06

08

10

00 02 04 06 08 1000

02

04

06

08

10

00 02 04 06 08 1000

02

04

06

08

10

00 02 04 06 08 1000

02

04

06

08

10

Figure 9 The first four iterations

B = p

2n n p isin N p is odd p lt 2n

(5)

and F4 can be defined on B directly by the equality

F4

( p

2n

)=

p + 1

2n(6)

for all n p isin N where p is odd and p lt 2n This alternative definition allows aneasy proof of (4) since the summand 12n in the right-hand side of (6) vanishes in thelimiting procedure (see also (8) and (9))

A well-known function which enjoys a similar property can be found in severaltextbooks It is defined as follows Let G4 be the function from (0 1) cap Q to itselfdefined by

G4

(p

q

)=

1

q(7)

806 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

112

13

23

14

34

12

131415

Figure 10 Graph of function G4

for all p q isin N 0 lt pq lt 1 p q coprime It is not difficult to prove that

limxrarrx0

G4(x) = 0 6= G4(x0) (8)

for all x0 isin (0 1) cap Q The function G4 can be extended to the whole of (0 1) bysetting G4(x) = 0 for all x isin (0 1) Q and turns out to be continuous at any pointx isin (0 1) Q According to Appell [1 p 10] some students would call function G4

ldquoDirichlet lightrdquo because its set of discontinuities is ldquolighterrdquo than the set of disconti-nuities of the Dirichlet function

We note that by (6) and (7) it immediately follows that

F4(x) = x + G4(x) (9)

for all x isin B Equality (9) could be used to define F4 via G4 and to give a furtherproof 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 hasa 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 probabilitytheory these functions can be obtained as cumulative distribution functions associatedwith discrete measures (see eg Folland [5 p 102]) Here we present two functionsdefined on the set B of the dyadic rational numbers in (0 1) with jump discontinuitiesat every point of B These functions are defined directly by using binary notation anddo not require any advanced tool

We recall that the set B in (5) can be represented also in the form

B =infin⋃

n=1

nsumj=1

x j

2 j

∣∣∣∣ x j isin 0 1 for all j isin 1 n xn = 1

(10)

Thus given x isin B there exists n(x) isin N such that x =sumn(x)

j=1 x j2 j for suitable valuesof x j isin 0 1 where xn(x) = 1 using binary notation x can be written as

0 x1 x2 middot middot middot xn(x)

Let F5 be the function from B to itself defined by

F5(0 x1 x2 middot middot middot xn(x)) = 0 y1 y2 middot middot middot ym(x)

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 807

where the digits y1 ym(x) are obtained from the digits x1 xn(x) of x bysimply replacing each 0 with 01 For example F5(001) = 0011 F5(0101001) =0101101011 F5(0000011) = 00101010111 and F5(01) = 01 It is easy to provethat F5 is a monotone function strictly increasing on B Thus F5 admits left and rightlimits at any point of B Moreover it is not difficult to realize that in fact

F5(v) = limxrarrvminus

F5(x) lt limxrarrv+

F5(x)

for all v isin B Hence F5 is left-continuous with a jump discontinuity at every pointv isin B In order to get rid of the monotonicity one can consider the function G5 definedby

G5 = F4 F5

The function G5 is particularly interesting since it admits a geometric description in thespirit of the iterative construction of F4 in this case one has to consider rectangles withno common vertices rather than squares (see Figures 11 and 12) The function G5 isdiscussed in detail in Drago [4] where it is also proved by using binary representationsthat for all v isin B the one-sided limits of G5 at v exist and satisfy

limxrarrvminus

G5(x) lt limxrarrv+

G5(x) lt G5(v)

00 02 04 06 08 1000

02

04

06

08

10

Figure 11 Graph of function G5 (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 G4 Let F6 be the function from (0 1) capQ toitself defined by

F6

(p

q

)= q

808 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

00 02 04 06 08 1000

02

04

06

08

10

Figure 12 Construction of function G5

112

13

23

14

34

0

10

20

30

40

50

Figure 13 Graph of function F6

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 809

for all p q isin N 0 lt pq lt 1 p q coprime It is not difficult to prove that

limxrarrx0

F6(x) = +infin

for all x0 isin [0 1]

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 authorsare deeply indebted to the third author P Toni who in different periods was their teacher of mathematicsand physics in secondary school where he has developed and experienced the main pedagogical ideas thatare the basis of the present paper for about three decades Those stimulating lessons led the second authorP D Lamberti to define the function F4 The functions F5 and G5 were defined by the first author G Dragoin 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

1 J Appell Analysis in Beispielen und Gegenbeispielen Springer Berlin 20092 N Bourbaki Elements de Mathematique Theorie des Ensembles Hermann Paris 19703 R B Deal Some remarks on ldquoA dilemma in definitionrdquo Amer Math Monthly 74 (1967) 1258ndash1259

httpdxdoiorg1023072315696

4 G Drago Funzioni e Funzioni Strane Alcuni Aspetti Storici e Didattici BA thesis University ofPadova Padova 2009

5 G B Folland Real Analysis Modern Techniques and Their Applications John Wiley New York 19846 B R Gelbaum and J M H Olmsted Counterexamples in Analysis Holden-Day San Francisco 19647 A B Kharazishvili Strange Functions in Real Analysis 2nd ed Pure and Applied Mathematics vol

272 Chapman amp HallCRC Boca Raton FL 20068 I Kleiner Evolution of the function concept A brief survey College Math J 20 (1989) 282ndash300 http

dxdoiorg1023072686848

9 Functions Historical and pedagogical aspects Science amp Education 2 (1993) 183ndash209 httpdxdoiorg101007BF00592206

10 J Klippert Advanced advanced calculus Counting the discontinuities of a real-valued function withinterval domain Math Mag 62 (1989) 43ndash48 httpdxdoiorg1023072689945

11 C P Nicholas A dilemma in definition Amer Math Monthly 73 (1966) 762ndash768 httpdxdoiorg1023072313993

12 J Thim Continuous Nowhere Differentiable Functions MA thesis Lulea University of TechnologyLulea Sweden 2003

13 H A Thurston A reply to ldquoA dilemma in definitionrdquo Amer Math Monthly 74 (1967) 1259ndash1261 httpdxdoiorg1023072315697

14 P Toni and P D Lamberti Esplorando lrsquoAnalisi Matematica Societa Editrice Internazionale Torino1996

15 A P Youschkevitch The concept of function up to the middle of the 19th century Arch Hist Exact Sci16 (197677) 37ndash85

GIACOMO DRAGO is 22 years old He got his bachelorrsquos degree with honors from the University of Padovain 2009 He distinguished himself in the national finals of three consecutive editions of the Kangourou Mathe-matics Competitions in Italy (2004ndash2006) He is currently working on his masterrsquos degree in mathematics andhe dreams of becoming a teacher of mathematicsDipartimento di Matematica Pura ed Applicata Universita degli Studi di Padova Via Trieste 63 35121Padova Italygiacomodragogmailcom

PIER DOMENICO LAMBERTI received his PhD in mathematics from the University of Padova in 2003He currently has a position as researcher in mathematical analysis at the same university His research in-

810 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

terests are mainly in spectral stability problems for elliptic partial differential equations He likes to think ofmathematics as a form of artDipartimento di Matematica Pura ed Applicata Universita degli Studi di Padova Via Trieste 63 35121Padova Italylambertimathunipdit

PAOLO TONI received his masterrsquos degree in mathematics from the University of Firenze in 1972 He hastaught mathematics and physics in high school for almost 40 years He was a pioneer in the organization ofmathematics competitions in Italy His interests are mainly in mathematical creativity and teacher educationHe retired in 2010 Now he enjoys staying with his nephews and playing the organ He believes in studentsrsquocreativityLiceo Scientifico Statale E Fermi Via Vittorio Emanuele II 50 35100 Padova Italypaolotoniinwindit

A Ramanujan-Type Formula for(

1 +1n

)n+12

e

Motivated by Sanjay Khattrirsquos proofs [1] that e lt(1+ 1

n

)n+ 12 I offer the follow-

ing formula which I think Ramanujan would have liked for the ratio of the twosides of Khattrirsquos inequality(

1+1

n

)n+ 12

e = exp

int 1

0

u2

(2n + 1)2 minus u2du

= exp

int 1

0

u2

8m + 1minus u2du

(where m = n(n + 1)2)

= exp

int 1

0

αu2

1+ α(1minus u2)du

(where α = 1(8m))

= exp

int 1

0αu2minus α2u2(1minus u2)+ α3u2(1minus u2)2 minus α4u2(1minus u2)3 + middot middot middot du

= exp

1

3α minus

1

5middot

2

3α2+

1

7middot

4

5middot

2

3α3minus

1

9middot

6

7middot

4

5middot

2

3α4+

1

11middot

8

9middot

6

7middot

4

5middot

2

3α5minus middot middot middot

= exp

α

3

(1minus

5

(1minus

7

(1minus

9

(1minus

11

(1minus middot middot middot

)))))= exp

1

24m

(1minus

1

5 middot 4m

(1minus

2

7 middot 4m

(1minus

3

9 middot 4m

(1minus

4

11 middot 4m

(1minus middot middot middot

)))))

REFERENCES

1 S K Khattri Three proofs of the inequality e lt(

1+ 1n

)n+05 Amer Math Monthly 117 (2010)

273ndash277 httpdxdoiorg104169000298910X480126

mdashSubmitted by Michael D HirschhornUniversity of New South Wales Sydney Australia

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 811

Page 5: A Bouquet of Discontinuous Functions for Beginners in ...ceadserv1.nku.edu/.../mat420/days/highlights/PathologicalFunctions.… · A Bouquet of Discontinuous Functions for Beginners

Students may find it entertaining to apply the previous lemma to randomly gener-ated functions h satisfying the condition minusx2

le h(x) le x2 for all x in a neighborhoodof zero and find out that such functions are differentiable at zero (see Figure 5)

3 A function with positive derivative at one point which is not monotone in anyneighborhood of that point Let F3 be the function from R to itself defined by

F3(x) =

x2 if x isin Q2x minus 1 if x isin R Q

By Lemma 2 the function F3 is differentiable at the point x = 1 and F prime3(1) = 2 butF3 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 examplerather 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 differentiableat a point x0 and f prime(x0) gt 0 then f is increasing at the point x0 in the sense thatfor all x in a convenient neighborhood of x0 we have f (x) gt f (x0) if x gt x0 andf (x) lt f (x0) if x lt 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 ofan interval

1

1

2

Figure 6 Graph of function F3

Variants of the function F3 can be easily defined by considering convex combina-tions of x2 and 2x minus 1 of the form

θ(x)x2+ (1minus θ(x))(2x minus 1)

where θ is a suitable function taking values in [0 1] A ldquocontinuous versionrdquo of F3 isgiven for example by the function G3 from R to itself defined by1

G3(x) = sin2

(9

x minus 1

)middot x2+

(1minus sin2

(9

x minus 1

))middot (2x minus 1)

1The choice of the number 9 in the definition of G3 is not essential and is only aimed at emphasizing theoscillations of the graph in Figure 7

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 803

for all x isin R 1 and G3(1) = 1 Again G prime3(1) = 2 gt 0 but G3 is not monotone inany neighborhood of the point x = 1

Clearly the function G3 is much smoother than F3 however defining F3 and prov-ing its nonmonotonicity is simpler

ndash05 05 10 15

ndash05

05

10

15

20

25

Figure 7 Graph of function G3

3 FURTHER EXAMPLES In this section we present examples of functions with aspecific type of discontinuity at any point of the domain such as removable discontinu-ities or jump discontinuities Although complicated the definitions of these functionsare constructive and make use of elementary notions We note that imposing a specifictype of discontinuity at any point of the domain of a function leads to limitations onthe structure of the domain itself In fact the following result in Klippert [10] holds

Theorem 3 Let f be a function from R to itself Let A be the set of those points x0 isin Rsuch that f is discontinuous at x0 and at least one of the two limits limxrarrx+0

f (x) andlimxrarrxminus0

f (x) exists and is finite Then A is at most countable

4 A function with removable discontinuities at every point of its domain Thefollowing function F4 is defined on the dyadic rational numbers in (0 1) ie thosenumbers in (0 1) with a finite binary expansion A simple formal definition is givenbelow in (6) However we prefer to begin by describing the elementary geometricconstruction given in [14] which could also be presented to beginners

We construct the function F4 by means of the following iterative procedure (seeFigure 9)

Step 1 Let V = 0 and L = 1 and consider the square in the Euclidean plane withedges parallel to the coordinate axes whose lower left vertex is (V V ) and

804 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

00 02 04 06 08 1000

02

04

06

08

10

Figure 8 Graph of function F4 (arrested at the fourth iteration)

whose edges have length L Let

BVL =

V +

nsumj=1

L

2 j n isin N

Then we set F4(x) = V + L for all x isin BVL

Step 2 Inside the square defined in Step 1 consider the sequence of squares withedges of length Ln =

L2n and parallel to the coordinate axes and lower left

vertices with coordinates (Vn Vn) where Vn = V +sumnminus1

j=1L2 j for all n isin N

with n ge 2 and (V1 V1) = (V V )

Repeat Step 1 and Step 2 using each square obtained in Step 2 in place ofthe original square and iterate the process

The domain of the function F4 defined by this procedure is B = cupVL BVL which isclearly the set of the dyadic rational numbers in (0 1)

Looking closely at the construction described above and at the few first iterations(see Figure 9) it is evident that

limxrarrv

F4(x) = v lt F4(v) (4)

for all v isin B Thus F4 has a removable discontinuity at each point v isin B Indeed inorder to remove the discontinuity at a point v it is enough to redefine the function bysetting F4(v) = v

It is possible to give a non-iterative definition of the function F4 Indeed the set Bcan be represented as

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 805

00 02 04 06 08 1000

02

04

06

08

10

00 02 04 06 08 1000

02

04

06

08

10

00 02 04 06 08 1000

02

04

06

08

10

00 02 04 06 08 1000

02

04

06

08

10

Figure 9 The first four iterations

B = p

2n n p isin N p is odd p lt 2n

(5)

and F4 can be defined on B directly by the equality

F4

( p

2n

)=

p + 1

2n(6)

for all n p isin N where p is odd and p lt 2n This alternative definition allows aneasy proof of (4) since the summand 12n in the right-hand side of (6) vanishes in thelimiting procedure (see also (8) and (9))

A well-known function which enjoys a similar property can be found in severaltextbooks It is defined as follows Let G4 be the function from (0 1) cap Q to itselfdefined by

G4

(p

q

)=

1

q(7)

806 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

112

13

23

14

34

12

131415

Figure 10 Graph of function G4

for all p q isin N 0 lt pq lt 1 p q coprime It is not difficult to prove that

limxrarrx0

G4(x) = 0 6= G4(x0) (8)

for all x0 isin (0 1) cap Q The function G4 can be extended to the whole of (0 1) bysetting G4(x) = 0 for all x isin (0 1) Q and turns out to be continuous at any pointx isin (0 1) Q According to Appell [1 p 10] some students would call function G4

ldquoDirichlet lightrdquo because its set of discontinuities is ldquolighterrdquo than the set of disconti-nuities of the Dirichlet function

We note that by (6) and (7) it immediately follows that

F4(x) = x + G4(x) (9)

for all x isin B Equality (9) could be used to define F4 via G4 and to give a furtherproof 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 hasa 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 probabilitytheory these functions can be obtained as cumulative distribution functions associatedwith discrete measures (see eg Folland [5 p 102]) Here we present two functionsdefined on the set B of the dyadic rational numbers in (0 1) with jump discontinuitiesat every point of B These functions are defined directly by using binary notation anddo not require any advanced tool

We recall that the set B in (5) can be represented also in the form

B =infin⋃

n=1

nsumj=1

x j

2 j

∣∣∣∣ x j isin 0 1 for all j isin 1 n xn = 1

(10)

Thus given x isin B there exists n(x) isin N such that x =sumn(x)

j=1 x j2 j for suitable valuesof x j isin 0 1 where xn(x) = 1 using binary notation x can be written as

0 x1 x2 middot middot middot xn(x)

Let F5 be the function from B to itself defined by

F5(0 x1 x2 middot middot middot xn(x)) = 0 y1 y2 middot middot middot ym(x)

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 807

where the digits y1 ym(x) are obtained from the digits x1 xn(x) of x bysimply replacing each 0 with 01 For example F5(001) = 0011 F5(0101001) =0101101011 F5(0000011) = 00101010111 and F5(01) = 01 It is easy to provethat F5 is a monotone function strictly increasing on B Thus F5 admits left and rightlimits at any point of B Moreover it is not difficult to realize that in fact

F5(v) = limxrarrvminus

F5(x) lt limxrarrv+

F5(x)

for all v isin B Hence F5 is left-continuous with a jump discontinuity at every pointv isin B In order to get rid of the monotonicity one can consider the function G5 definedby

G5 = F4 F5

The function G5 is particularly interesting since it admits a geometric description in thespirit of the iterative construction of F4 in this case one has to consider rectangles withno common vertices rather than squares (see Figures 11 and 12) The function G5 isdiscussed in detail in Drago [4] where it is also proved by using binary representationsthat for all v isin B the one-sided limits of G5 at v exist and satisfy

limxrarrvminus

G5(x) lt limxrarrv+

G5(x) lt G5(v)

00 02 04 06 08 1000

02

04

06

08

10

Figure 11 Graph of function G5 (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 G4 Let F6 be the function from (0 1) capQ toitself defined by

F6

(p

q

)= q

808 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

00 02 04 06 08 1000

02

04

06

08

10

Figure 12 Construction of function G5

112

13

23

14

34

0

10

20

30

40

50

Figure 13 Graph of function F6

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 809

for all p q isin N 0 lt pq lt 1 p q coprime It is not difficult to prove that

limxrarrx0

F6(x) = +infin

for all x0 isin [0 1]

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 authorsare deeply indebted to the third author P Toni who in different periods was their teacher of mathematicsand physics in secondary school where he has developed and experienced the main pedagogical ideas thatare the basis of the present paper for about three decades Those stimulating lessons led the second authorP D Lamberti to define the function F4 The functions F5 and G5 were defined by the first author G Dragoin 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

1 J Appell Analysis in Beispielen und Gegenbeispielen Springer Berlin 20092 N Bourbaki Elements de Mathematique Theorie des Ensembles Hermann Paris 19703 R B Deal Some remarks on ldquoA dilemma in definitionrdquo Amer Math Monthly 74 (1967) 1258ndash1259

httpdxdoiorg1023072315696

4 G Drago Funzioni e Funzioni Strane Alcuni Aspetti Storici e Didattici BA thesis University ofPadova Padova 2009

5 G B Folland Real Analysis Modern Techniques and Their Applications John Wiley New York 19846 B R Gelbaum and J M H Olmsted Counterexamples in Analysis Holden-Day San Francisco 19647 A B Kharazishvili Strange Functions in Real Analysis 2nd ed Pure and Applied Mathematics vol

272 Chapman amp HallCRC Boca Raton FL 20068 I Kleiner Evolution of the function concept A brief survey College Math J 20 (1989) 282ndash300 http

dxdoiorg1023072686848

9 Functions Historical and pedagogical aspects Science amp Education 2 (1993) 183ndash209 httpdxdoiorg101007BF00592206

10 J Klippert Advanced advanced calculus Counting the discontinuities of a real-valued function withinterval domain Math Mag 62 (1989) 43ndash48 httpdxdoiorg1023072689945

11 C P Nicholas A dilemma in definition Amer Math Monthly 73 (1966) 762ndash768 httpdxdoiorg1023072313993

12 J Thim Continuous Nowhere Differentiable Functions MA thesis Lulea University of TechnologyLulea Sweden 2003

13 H A Thurston A reply to ldquoA dilemma in definitionrdquo Amer Math Monthly 74 (1967) 1259ndash1261 httpdxdoiorg1023072315697

14 P Toni and P D Lamberti Esplorando lrsquoAnalisi Matematica Societa Editrice Internazionale Torino1996

15 A P Youschkevitch The concept of function up to the middle of the 19th century Arch Hist Exact Sci16 (197677) 37ndash85

GIACOMO DRAGO is 22 years old He got his bachelorrsquos degree with honors from the University of Padovain 2009 He distinguished himself in the national finals of three consecutive editions of the Kangourou Mathe-matics Competitions in Italy (2004ndash2006) He is currently working on his masterrsquos degree in mathematics andhe dreams of becoming a teacher of mathematicsDipartimento di Matematica Pura ed Applicata Universita degli Studi di Padova Via Trieste 63 35121Padova Italygiacomodragogmailcom

PIER DOMENICO LAMBERTI received his PhD in mathematics from the University of Padova in 2003He currently has a position as researcher in mathematical analysis at the same university His research in-

810 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

terests are mainly in spectral stability problems for elliptic partial differential equations He likes to think ofmathematics as a form of artDipartimento di Matematica Pura ed Applicata Universita degli Studi di Padova Via Trieste 63 35121Padova Italylambertimathunipdit

PAOLO TONI received his masterrsquos degree in mathematics from the University of Firenze in 1972 He hastaught mathematics and physics in high school for almost 40 years He was a pioneer in the organization ofmathematics competitions in Italy His interests are mainly in mathematical creativity and teacher educationHe retired in 2010 Now he enjoys staying with his nephews and playing the organ He believes in studentsrsquocreativityLiceo Scientifico Statale E Fermi Via Vittorio Emanuele II 50 35100 Padova Italypaolotoniinwindit

A Ramanujan-Type Formula for(

1 +1n

)n+12

e

Motivated by Sanjay Khattrirsquos proofs [1] that e lt(1+ 1

n

)n+ 12 I offer the follow-

ing formula which I think Ramanujan would have liked for the ratio of the twosides of Khattrirsquos inequality(

1+1

n

)n+ 12

e = exp

int 1

0

u2

(2n + 1)2 minus u2du

= exp

int 1

0

u2

8m + 1minus u2du

(where m = n(n + 1)2)

= exp

int 1

0

αu2

1+ α(1minus u2)du

(where α = 1(8m))

= exp

int 1

0αu2minus α2u2(1minus u2)+ α3u2(1minus u2)2 minus α4u2(1minus u2)3 + middot middot middot du

= exp

1

3α minus

1

5middot

2

3α2+

1

7middot

4

5middot

2

3α3minus

1

9middot

6

7middot

4

5middot

2

3α4+

1

11middot

8

9middot

6

7middot

4

5middot

2

3α5minus middot middot middot

= exp

α

3

(1minus

5

(1minus

7

(1minus

9

(1minus

11

(1minus middot middot middot

)))))= exp

1

24m

(1minus

1

5 middot 4m

(1minus

2

7 middot 4m

(1minus

3

9 middot 4m

(1minus

4

11 middot 4m

(1minus middot middot middot

)))))

REFERENCES

1 S K Khattri Three proofs of the inequality e lt(

1+ 1n

)n+05 Amer Math Monthly 117 (2010)

273ndash277 httpdxdoiorg104169000298910X480126

mdashSubmitted by Michael D HirschhornUniversity of New South Wales Sydney Australia

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 811

Page 6: A Bouquet of Discontinuous Functions for Beginners in ...ceadserv1.nku.edu/.../mat420/days/highlights/PathologicalFunctions.… · A Bouquet of Discontinuous Functions for Beginners

for all x isin R 1 and G3(1) = 1 Again G prime3(1) = 2 gt 0 but G3 is not monotone inany neighborhood of the point x = 1

Clearly the function G3 is much smoother than F3 however defining F3 and prov-ing its nonmonotonicity is simpler

ndash05 05 10 15

ndash05

05

10

15

20

25

Figure 7 Graph of function G3

3 FURTHER EXAMPLES In this section we present examples of functions with aspecific type of discontinuity at any point of the domain such as removable discontinu-ities or jump discontinuities Although complicated the definitions of these functionsare constructive and make use of elementary notions We note that imposing a specifictype of discontinuity at any point of the domain of a function leads to limitations onthe structure of the domain itself In fact the following result in Klippert [10] holds

Theorem 3 Let f be a function from R to itself Let A be the set of those points x0 isin Rsuch that f is discontinuous at x0 and at least one of the two limits limxrarrx+0

f (x) andlimxrarrxminus0

f (x) exists and is finite Then A is at most countable

4 A function with removable discontinuities at every point of its domain Thefollowing function F4 is defined on the dyadic rational numbers in (0 1) ie thosenumbers in (0 1) with a finite binary expansion A simple formal definition is givenbelow in (6) However we prefer to begin by describing the elementary geometricconstruction given in [14] which could also be presented to beginners

We construct the function F4 by means of the following iterative procedure (seeFigure 9)

Step 1 Let V = 0 and L = 1 and consider the square in the Euclidean plane withedges parallel to the coordinate axes whose lower left vertex is (V V ) and

804 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

00 02 04 06 08 1000

02

04

06

08

10

Figure 8 Graph of function F4 (arrested at the fourth iteration)

whose edges have length L Let

BVL =

V +

nsumj=1

L

2 j n isin N

Then we set F4(x) = V + L for all x isin BVL

Step 2 Inside the square defined in Step 1 consider the sequence of squares withedges of length Ln =

L2n and parallel to the coordinate axes and lower left

vertices with coordinates (Vn Vn) where Vn = V +sumnminus1

j=1L2 j for all n isin N

with n ge 2 and (V1 V1) = (V V )

Repeat Step 1 and Step 2 using each square obtained in Step 2 in place ofthe original square and iterate the process

The domain of the function F4 defined by this procedure is B = cupVL BVL which isclearly the set of the dyadic rational numbers in (0 1)

Looking closely at the construction described above and at the few first iterations(see Figure 9) it is evident that

limxrarrv

F4(x) = v lt F4(v) (4)

for all v isin B Thus F4 has a removable discontinuity at each point v isin B Indeed inorder to remove the discontinuity at a point v it is enough to redefine the function bysetting F4(v) = v

It is possible to give a non-iterative definition of the function F4 Indeed the set Bcan be represented as

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 805

00 02 04 06 08 1000

02

04

06

08

10

00 02 04 06 08 1000

02

04

06

08

10

00 02 04 06 08 1000

02

04

06

08

10

00 02 04 06 08 1000

02

04

06

08

10

Figure 9 The first four iterations

B = p

2n n p isin N p is odd p lt 2n

(5)

and F4 can be defined on B directly by the equality

F4

( p

2n

)=

p + 1

2n(6)

for all n p isin N where p is odd and p lt 2n This alternative definition allows aneasy proof of (4) since the summand 12n in the right-hand side of (6) vanishes in thelimiting procedure (see also (8) and (9))

A well-known function which enjoys a similar property can be found in severaltextbooks It is defined as follows Let G4 be the function from (0 1) cap Q to itselfdefined by

G4

(p

q

)=

1

q(7)

806 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

112

13

23

14

34

12

131415

Figure 10 Graph of function G4

for all p q isin N 0 lt pq lt 1 p q coprime It is not difficult to prove that

limxrarrx0

G4(x) = 0 6= G4(x0) (8)

for all x0 isin (0 1) cap Q The function G4 can be extended to the whole of (0 1) bysetting G4(x) = 0 for all x isin (0 1) Q and turns out to be continuous at any pointx isin (0 1) Q According to Appell [1 p 10] some students would call function G4

ldquoDirichlet lightrdquo because its set of discontinuities is ldquolighterrdquo than the set of disconti-nuities of the Dirichlet function

We note that by (6) and (7) it immediately follows that

F4(x) = x + G4(x) (9)

for all x isin B Equality (9) could be used to define F4 via G4 and to give a furtherproof 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 hasa 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 probabilitytheory these functions can be obtained as cumulative distribution functions associatedwith discrete measures (see eg Folland [5 p 102]) Here we present two functionsdefined on the set B of the dyadic rational numbers in (0 1) with jump discontinuitiesat every point of B These functions are defined directly by using binary notation anddo not require any advanced tool

We recall that the set B in (5) can be represented also in the form

B =infin⋃

n=1

nsumj=1

x j

2 j

∣∣∣∣ x j isin 0 1 for all j isin 1 n xn = 1

(10)

Thus given x isin B there exists n(x) isin N such that x =sumn(x)

j=1 x j2 j for suitable valuesof x j isin 0 1 where xn(x) = 1 using binary notation x can be written as

0 x1 x2 middot middot middot xn(x)

Let F5 be the function from B to itself defined by

F5(0 x1 x2 middot middot middot xn(x)) = 0 y1 y2 middot middot middot ym(x)

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 807

where the digits y1 ym(x) are obtained from the digits x1 xn(x) of x bysimply replacing each 0 with 01 For example F5(001) = 0011 F5(0101001) =0101101011 F5(0000011) = 00101010111 and F5(01) = 01 It is easy to provethat F5 is a monotone function strictly increasing on B Thus F5 admits left and rightlimits at any point of B Moreover it is not difficult to realize that in fact

F5(v) = limxrarrvminus

F5(x) lt limxrarrv+

F5(x)

for all v isin B Hence F5 is left-continuous with a jump discontinuity at every pointv isin B In order to get rid of the monotonicity one can consider the function G5 definedby

G5 = F4 F5

The function G5 is particularly interesting since it admits a geometric description in thespirit of the iterative construction of F4 in this case one has to consider rectangles withno common vertices rather than squares (see Figures 11 and 12) The function G5 isdiscussed in detail in Drago [4] where it is also proved by using binary representationsthat for all v isin B the one-sided limits of G5 at v exist and satisfy

limxrarrvminus

G5(x) lt limxrarrv+

G5(x) lt G5(v)

00 02 04 06 08 1000

02

04

06

08

10

Figure 11 Graph of function G5 (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 G4 Let F6 be the function from (0 1) capQ toitself defined by

F6

(p

q

)= q

808 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

00 02 04 06 08 1000

02

04

06

08

10

Figure 12 Construction of function G5

112

13

23

14

34

0

10

20

30

40

50

Figure 13 Graph of function F6

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 809

for all p q isin N 0 lt pq lt 1 p q coprime It is not difficult to prove that

limxrarrx0

F6(x) = +infin

for all x0 isin [0 1]

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 authorsare deeply indebted to the third author P Toni who in different periods was their teacher of mathematicsand physics in secondary school where he has developed and experienced the main pedagogical ideas thatare the basis of the present paper for about three decades Those stimulating lessons led the second authorP D Lamberti to define the function F4 The functions F5 and G5 were defined by the first author G Dragoin 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

1 J Appell Analysis in Beispielen und Gegenbeispielen Springer Berlin 20092 N Bourbaki Elements de Mathematique Theorie des Ensembles Hermann Paris 19703 R B Deal Some remarks on ldquoA dilemma in definitionrdquo Amer Math Monthly 74 (1967) 1258ndash1259

httpdxdoiorg1023072315696

4 G Drago Funzioni e Funzioni Strane Alcuni Aspetti Storici e Didattici BA thesis University ofPadova Padova 2009

5 G B Folland Real Analysis Modern Techniques and Their Applications John Wiley New York 19846 B R Gelbaum and J M H Olmsted Counterexamples in Analysis Holden-Day San Francisco 19647 A B Kharazishvili Strange Functions in Real Analysis 2nd ed Pure and Applied Mathematics vol

272 Chapman amp HallCRC Boca Raton FL 20068 I Kleiner Evolution of the function concept A brief survey College Math J 20 (1989) 282ndash300 http

dxdoiorg1023072686848

9 Functions Historical and pedagogical aspects Science amp Education 2 (1993) 183ndash209 httpdxdoiorg101007BF00592206

10 J Klippert Advanced advanced calculus Counting the discontinuities of a real-valued function withinterval domain Math Mag 62 (1989) 43ndash48 httpdxdoiorg1023072689945

11 C P Nicholas A dilemma in definition Amer Math Monthly 73 (1966) 762ndash768 httpdxdoiorg1023072313993

12 J Thim Continuous Nowhere Differentiable Functions MA thesis Lulea University of TechnologyLulea Sweden 2003

13 H A Thurston A reply to ldquoA dilemma in definitionrdquo Amer Math Monthly 74 (1967) 1259ndash1261 httpdxdoiorg1023072315697

14 P Toni and P D Lamberti Esplorando lrsquoAnalisi Matematica Societa Editrice Internazionale Torino1996

15 A P Youschkevitch The concept of function up to the middle of the 19th century Arch Hist Exact Sci16 (197677) 37ndash85

GIACOMO DRAGO is 22 years old He got his bachelorrsquos degree with honors from the University of Padovain 2009 He distinguished himself in the national finals of three consecutive editions of the Kangourou Mathe-matics Competitions in Italy (2004ndash2006) He is currently working on his masterrsquos degree in mathematics andhe dreams of becoming a teacher of mathematicsDipartimento di Matematica Pura ed Applicata Universita degli Studi di Padova Via Trieste 63 35121Padova Italygiacomodragogmailcom

PIER DOMENICO LAMBERTI received his PhD in mathematics from the University of Padova in 2003He currently has a position as researcher in mathematical analysis at the same university His research in-

810 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

terests are mainly in spectral stability problems for elliptic partial differential equations He likes to think ofmathematics as a form of artDipartimento di Matematica Pura ed Applicata Universita degli Studi di Padova Via Trieste 63 35121Padova Italylambertimathunipdit

PAOLO TONI received his masterrsquos degree in mathematics from the University of Firenze in 1972 He hastaught mathematics and physics in high school for almost 40 years He was a pioneer in the organization ofmathematics competitions in Italy His interests are mainly in mathematical creativity and teacher educationHe retired in 2010 Now he enjoys staying with his nephews and playing the organ He believes in studentsrsquocreativityLiceo Scientifico Statale E Fermi Via Vittorio Emanuele II 50 35100 Padova Italypaolotoniinwindit

A Ramanujan-Type Formula for(

1 +1n

)n+12

e

Motivated by Sanjay Khattrirsquos proofs [1] that e lt(1+ 1

n

)n+ 12 I offer the follow-

ing formula which I think Ramanujan would have liked for the ratio of the twosides of Khattrirsquos inequality(

1+1

n

)n+ 12

e = exp

int 1

0

u2

(2n + 1)2 minus u2du

= exp

int 1

0

u2

8m + 1minus u2du

(where m = n(n + 1)2)

= exp

int 1

0

αu2

1+ α(1minus u2)du

(where α = 1(8m))

= exp

int 1

0αu2minus α2u2(1minus u2)+ α3u2(1minus u2)2 minus α4u2(1minus u2)3 + middot middot middot du

= exp

1

3α minus

1

5middot

2

3α2+

1

7middot

4

5middot

2

3α3minus

1

9middot

6

7middot

4

5middot

2

3α4+

1

11middot

8

9middot

6

7middot

4

5middot

2

3α5minus middot middot middot

= exp

α

3

(1minus

5

(1minus

7

(1minus

9

(1minus

11

(1minus middot middot middot

)))))= exp

1

24m

(1minus

1

5 middot 4m

(1minus

2

7 middot 4m

(1minus

3

9 middot 4m

(1minus

4

11 middot 4m

(1minus middot middot middot

)))))

REFERENCES

1 S K Khattri Three proofs of the inequality e lt(

1+ 1n

)n+05 Amer Math Monthly 117 (2010)

273ndash277 httpdxdoiorg104169000298910X480126

mdashSubmitted by Michael D HirschhornUniversity of New South Wales Sydney Australia

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 811

Page 7: A Bouquet of Discontinuous Functions for Beginners in ...ceadserv1.nku.edu/.../mat420/days/highlights/PathologicalFunctions.… · A Bouquet of Discontinuous Functions for Beginners

00 02 04 06 08 1000

02

04

06

08

10

Figure 8 Graph of function F4 (arrested at the fourth iteration)

whose edges have length L Let

BVL =

V +

nsumj=1

L

2 j n isin N

Then we set F4(x) = V + L for all x isin BVL

Step 2 Inside the square defined in Step 1 consider the sequence of squares withedges of length Ln =

L2n and parallel to the coordinate axes and lower left

vertices with coordinates (Vn Vn) where Vn = V +sumnminus1

j=1L2 j for all n isin N

with n ge 2 and (V1 V1) = (V V )

Repeat Step 1 and Step 2 using each square obtained in Step 2 in place ofthe original square and iterate the process

The domain of the function F4 defined by this procedure is B = cupVL BVL which isclearly the set of the dyadic rational numbers in (0 1)

Looking closely at the construction described above and at the few first iterations(see Figure 9) it is evident that

limxrarrv

F4(x) = v lt F4(v) (4)

for all v isin B Thus F4 has a removable discontinuity at each point v isin B Indeed inorder to remove the discontinuity at a point v it is enough to redefine the function bysetting F4(v) = v

It is possible to give a non-iterative definition of the function F4 Indeed the set Bcan be represented as

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 805

00 02 04 06 08 1000

02

04

06

08

10

00 02 04 06 08 1000

02

04

06

08

10

00 02 04 06 08 1000

02

04

06

08

10

00 02 04 06 08 1000

02

04

06

08

10

Figure 9 The first four iterations

B = p

2n n p isin N p is odd p lt 2n

(5)

and F4 can be defined on B directly by the equality

F4

( p

2n

)=

p + 1

2n(6)

for all n p isin N where p is odd and p lt 2n This alternative definition allows aneasy proof of (4) since the summand 12n in the right-hand side of (6) vanishes in thelimiting procedure (see also (8) and (9))

A well-known function which enjoys a similar property can be found in severaltextbooks It is defined as follows Let G4 be the function from (0 1) cap Q to itselfdefined by

G4

(p

q

)=

1

q(7)

806 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

112

13

23

14

34

12

131415

Figure 10 Graph of function G4

for all p q isin N 0 lt pq lt 1 p q coprime It is not difficult to prove that

limxrarrx0

G4(x) = 0 6= G4(x0) (8)

for all x0 isin (0 1) cap Q The function G4 can be extended to the whole of (0 1) bysetting G4(x) = 0 for all x isin (0 1) Q and turns out to be continuous at any pointx isin (0 1) Q According to Appell [1 p 10] some students would call function G4

ldquoDirichlet lightrdquo because its set of discontinuities is ldquolighterrdquo than the set of disconti-nuities of the Dirichlet function

We note that by (6) and (7) it immediately follows that

F4(x) = x + G4(x) (9)

for all x isin B Equality (9) could be used to define F4 via G4 and to give a furtherproof 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 hasa 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 probabilitytheory these functions can be obtained as cumulative distribution functions associatedwith discrete measures (see eg Folland [5 p 102]) Here we present two functionsdefined on the set B of the dyadic rational numbers in (0 1) with jump discontinuitiesat every point of B These functions are defined directly by using binary notation anddo not require any advanced tool

We recall that the set B in (5) can be represented also in the form

B =infin⋃

n=1

nsumj=1

x j

2 j

∣∣∣∣ x j isin 0 1 for all j isin 1 n xn = 1

(10)

Thus given x isin B there exists n(x) isin N such that x =sumn(x)

j=1 x j2 j for suitable valuesof x j isin 0 1 where xn(x) = 1 using binary notation x can be written as

0 x1 x2 middot middot middot xn(x)

Let F5 be the function from B to itself defined by

F5(0 x1 x2 middot middot middot xn(x)) = 0 y1 y2 middot middot middot ym(x)

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 807

where the digits y1 ym(x) are obtained from the digits x1 xn(x) of x bysimply replacing each 0 with 01 For example F5(001) = 0011 F5(0101001) =0101101011 F5(0000011) = 00101010111 and F5(01) = 01 It is easy to provethat F5 is a monotone function strictly increasing on B Thus F5 admits left and rightlimits at any point of B Moreover it is not difficult to realize that in fact

F5(v) = limxrarrvminus

F5(x) lt limxrarrv+

F5(x)

for all v isin B Hence F5 is left-continuous with a jump discontinuity at every pointv isin B In order to get rid of the monotonicity one can consider the function G5 definedby

G5 = F4 F5

The function G5 is particularly interesting since it admits a geometric description in thespirit of the iterative construction of F4 in this case one has to consider rectangles withno common vertices rather than squares (see Figures 11 and 12) The function G5 isdiscussed in detail in Drago [4] where it is also proved by using binary representationsthat for all v isin B the one-sided limits of G5 at v exist and satisfy

limxrarrvminus

G5(x) lt limxrarrv+

G5(x) lt G5(v)

00 02 04 06 08 1000

02

04

06

08

10

Figure 11 Graph of function G5 (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 G4 Let F6 be the function from (0 1) capQ toitself defined by

F6

(p

q

)= q

808 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

00 02 04 06 08 1000

02

04

06

08

10

Figure 12 Construction of function G5

112

13

23

14

34

0

10

20

30

40

50

Figure 13 Graph of function F6

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 809

for all p q isin N 0 lt pq lt 1 p q coprime It is not difficult to prove that

limxrarrx0

F6(x) = +infin

for all x0 isin [0 1]

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 authorsare deeply indebted to the third author P Toni who in different periods was their teacher of mathematicsand physics in secondary school where he has developed and experienced the main pedagogical ideas thatare the basis of the present paper for about three decades Those stimulating lessons led the second authorP D Lamberti to define the function F4 The functions F5 and G5 were defined by the first author G Dragoin 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

1 J Appell Analysis in Beispielen und Gegenbeispielen Springer Berlin 20092 N Bourbaki Elements de Mathematique Theorie des Ensembles Hermann Paris 19703 R B Deal Some remarks on ldquoA dilemma in definitionrdquo Amer Math Monthly 74 (1967) 1258ndash1259

httpdxdoiorg1023072315696

4 G Drago Funzioni e Funzioni Strane Alcuni Aspetti Storici e Didattici BA thesis University ofPadova Padova 2009

5 G B Folland Real Analysis Modern Techniques and Their Applications John Wiley New York 19846 B R Gelbaum and J M H Olmsted Counterexamples in Analysis Holden-Day San Francisco 19647 A B Kharazishvili Strange Functions in Real Analysis 2nd ed Pure and Applied Mathematics vol

272 Chapman amp HallCRC Boca Raton FL 20068 I Kleiner Evolution of the function concept A brief survey College Math J 20 (1989) 282ndash300 http

dxdoiorg1023072686848

9 Functions Historical and pedagogical aspects Science amp Education 2 (1993) 183ndash209 httpdxdoiorg101007BF00592206

10 J Klippert Advanced advanced calculus Counting the discontinuities of a real-valued function withinterval domain Math Mag 62 (1989) 43ndash48 httpdxdoiorg1023072689945

11 C P Nicholas A dilemma in definition Amer Math Monthly 73 (1966) 762ndash768 httpdxdoiorg1023072313993

12 J Thim Continuous Nowhere Differentiable Functions MA thesis Lulea University of TechnologyLulea Sweden 2003

13 H A Thurston A reply to ldquoA dilemma in definitionrdquo Amer Math Monthly 74 (1967) 1259ndash1261 httpdxdoiorg1023072315697

14 P Toni and P D Lamberti Esplorando lrsquoAnalisi Matematica Societa Editrice Internazionale Torino1996

15 A P Youschkevitch The concept of function up to the middle of the 19th century Arch Hist Exact Sci16 (197677) 37ndash85

GIACOMO DRAGO is 22 years old He got his bachelorrsquos degree with honors from the University of Padovain 2009 He distinguished himself in the national finals of three consecutive editions of the Kangourou Mathe-matics Competitions in Italy (2004ndash2006) He is currently working on his masterrsquos degree in mathematics andhe dreams of becoming a teacher of mathematicsDipartimento di Matematica Pura ed Applicata Universita degli Studi di Padova Via Trieste 63 35121Padova Italygiacomodragogmailcom

PIER DOMENICO LAMBERTI received his PhD in mathematics from the University of Padova in 2003He currently has a position as researcher in mathematical analysis at the same university His research in-

810 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

terests are mainly in spectral stability problems for elliptic partial differential equations He likes to think ofmathematics as a form of artDipartimento di Matematica Pura ed Applicata Universita degli Studi di Padova Via Trieste 63 35121Padova Italylambertimathunipdit

PAOLO TONI received his masterrsquos degree in mathematics from the University of Firenze in 1972 He hastaught mathematics and physics in high school for almost 40 years He was a pioneer in the organization ofmathematics competitions in Italy His interests are mainly in mathematical creativity and teacher educationHe retired in 2010 Now he enjoys staying with his nephews and playing the organ He believes in studentsrsquocreativityLiceo Scientifico Statale E Fermi Via Vittorio Emanuele II 50 35100 Padova Italypaolotoniinwindit

A Ramanujan-Type Formula for(

1 +1n

)n+12

e

Motivated by Sanjay Khattrirsquos proofs [1] that e lt(1+ 1

n

)n+ 12 I offer the follow-

ing formula which I think Ramanujan would have liked for the ratio of the twosides of Khattrirsquos inequality(

1+1

n

)n+ 12

e = exp

int 1

0

u2

(2n + 1)2 minus u2du

= exp

int 1

0

u2

8m + 1minus u2du

(where m = n(n + 1)2)

= exp

int 1

0

αu2

1+ α(1minus u2)du

(where α = 1(8m))

= exp

int 1

0αu2minus α2u2(1minus u2)+ α3u2(1minus u2)2 minus α4u2(1minus u2)3 + middot middot middot du

= exp

1

3α minus

1

5middot

2

3α2+

1

7middot

4

5middot

2

3α3minus

1

9middot

6

7middot

4

5middot

2

3α4+

1

11middot

8

9middot

6

7middot

4

5middot

2

3α5minus middot middot middot

= exp

α

3

(1minus

5

(1minus

7

(1minus

9

(1minus

11

(1minus middot middot middot

)))))= exp

1

24m

(1minus

1

5 middot 4m

(1minus

2

7 middot 4m

(1minus

3

9 middot 4m

(1minus

4

11 middot 4m

(1minus middot middot middot

)))))

REFERENCES

1 S K Khattri Three proofs of the inequality e lt(

1+ 1n

)n+05 Amer Math Monthly 117 (2010)

273ndash277 httpdxdoiorg104169000298910X480126

mdashSubmitted by Michael D HirschhornUniversity of New South Wales Sydney Australia

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 811

Page 8: A Bouquet of Discontinuous Functions for Beginners in ...ceadserv1.nku.edu/.../mat420/days/highlights/PathologicalFunctions.… · A Bouquet of Discontinuous Functions for Beginners

00 02 04 06 08 1000

02

04

06

08

10

00 02 04 06 08 1000

02

04

06

08

10

00 02 04 06 08 1000

02

04

06

08

10

00 02 04 06 08 1000

02

04

06

08

10

Figure 9 The first four iterations

B = p

2n n p isin N p is odd p lt 2n

(5)

and F4 can be defined on B directly by the equality

F4

( p

2n

)=

p + 1

2n(6)

for all n p isin N where p is odd and p lt 2n This alternative definition allows aneasy proof of (4) since the summand 12n in the right-hand side of (6) vanishes in thelimiting procedure (see also (8) and (9))

A well-known function which enjoys a similar property can be found in severaltextbooks It is defined as follows Let G4 be the function from (0 1) cap Q to itselfdefined by

G4

(p

q

)=

1

q(7)

806 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

112

13

23

14

34

12

131415

Figure 10 Graph of function G4

for all p q isin N 0 lt pq lt 1 p q coprime It is not difficult to prove that

limxrarrx0

G4(x) = 0 6= G4(x0) (8)

for all x0 isin (0 1) cap Q The function G4 can be extended to the whole of (0 1) bysetting G4(x) = 0 for all x isin (0 1) Q and turns out to be continuous at any pointx isin (0 1) Q According to Appell [1 p 10] some students would call function G4

ldquoDirichlet lightrdquo because its set of discontinuities is ldquolighterrdquo than the set of disconti-nuities of the Dirichlet function

We note that by (6) and (7) it immediately follows that

F4(x) = x + G4(x) (9)

for all x isin B Equality (9) could be used to define F4 via G4 and to give a furtherproof 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 hasa 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 probabilitytheory these functions can be obtained as cumulative distribution functions associatedwith discrete measures (see eg Folland [5 p 102]) Here we present two functionsdefined on the set B of the dyadic rational numbers in (0 1) with jump discontinuitiesat every point of B These functions are defined directly by using binary notation anddo not require any advanced tool

We recall that the set B in (5) can be represented also in the form

B =infin⋃

n=1

nsumj=1

x j

2 j

∣∣∣∣ x j isin 0 1 for all j isin 1 n xn = 1

(10)

Thus given x isin B there exists n(x) isin N such that x =sumn(x)

j=1 x j2 j for suitable valuesof x j isin 0 1 where xn(x) = 1 using binary notation x can be written as

0 x1 x2 middot middot middot xn(x)

Let F5 be the function from B to itself defined by

F5(0 x1 x2 middot middot middot xn(x)) = 0 y1 y2 middot middot middot ym(x)

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 807

where the digits y1 ym(x) are obtained from the digits x1 xn(x) of x bysimply replacing each 0 with 01 For example F5(001) = 0011 F5(0101001) =0101101011 F5(0000011) = 00101010111 and F5(01) = 01 It is easy to provethat F5 is a monotone function strictly increasing on B Thus F5 admits left and rightlimits at any point of B Moreover it is not difficult to realize that in fact

F5(v) = limxrarrvminus

F5(x) lt limxrarrv+

F5(x)

for all v isin B Hence F5 is left-continuous with a jump discontinuity at every pointv isin B In order to get rid of the monotonicity one can consider the function G5 definedby

G5 = F4 F5

The function G5 is particularly interesting since it admits a geometric description in thespirit of the iterative construction of F4 in this case one has to consider rectangles withno common vertices rather than squares (see Figures 11 and 12) The function G5 isdiscussed in detail in Drago [4] where it is also proved by using binary representationsthat for all v isin B the one-sided limits of G5 at v exist and satisfy

limxrarrvminus

G5(x) lt limxrarrv+

G5(x) lt G5(v)

00 02 04 06 08 1000

02

04

06

08

10

Figure 11 Graph of function G5 (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 G4 Let F6 be the function from (0 1) capQ toitself defined by

F6

(p

q

)= q

808 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

00 02 04 06 08 1000

02

04

06

08

10

Figure 12 Construction of function G5

112

13

23

14

34

0

10

20

30

40

50

Figure 13 Graph of function F6

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 809

for all p q isin N 0 lt pq lt 1 p q coprime It is not difficult to prove that

limxrarrx0

F6(x) = +infin

for all x0 isin [0 1]

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 authorsare deeply indebted to the third author P Toni who in different periods was their teacher of mathematicsand physics in secondary school where he has developed and experienced the main pedagogical ideas thatare the basis of the present paper for about three decades Those stimulating lessons led the second authorP D Lamberti to define the function F4 The functions F5 and G5 were defined by the first author G Dragoin 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

1 J Appell Analysis in Beispielen und Gegenbeispielen Springer Berlin 20092 N Bourbaki Elements de Mathematique Theorie des Ensembles Hermann Paris 19703 R B Deal Some remarks on ldquoA dilemma in definitionrdquo Amer Math Monthly 74 (1967) 1258ndash1259

httpdxdoiorg1023072315696

4 G Drago Funzioni e Funzioni Strane Alcuni Aspetti Storici e Didattici BA thesis University ofPadova Padova 2009

5 G B Folland Real Analysis Modern Techniques and Their Applications John Wiley New York 19846 B R Gelbaum and J M H Olmsted Counterexamples in Analysis Holden-Day San Francisco 19647 A B Kharazishvili Strange Functions in Real Analysis 2nd ed Pure and Applied Mathematics vol

272 Chapman amp HallCRC Boca Raton FL 20068 I Kleiner Evolution of the function concept A brief survey College Math J 20 (1989) 282ndash300 http

dxdoiorg1023072686848

9 Functions Historical and pedagogical aspects Science amp Education 2 (1993) 183ndash209 httpdxdoiorg101007BF00592206

10 J Klippert Advanced advanced calculus Counting the discontinuities of a real-valued function withinterval domain Math Mag 62 (1989) 43ndash48 httpdxdoiorg1023072689945

11 C P Nicholas A dilemma in definition Amer Math Monthly 73 (1966) 762ndash768 httpdxdoiorg1023072313993

12 J Thim Continuous Nowhere Differentiable Functions MA thesis Lulea University of TechnologyLulea Sweden 2003

13 H A Thurston A reply to ldquoA dilemma in definitionrdquo Amer Math Monthly 74 (1967) 1259ndash1261 httpdxdoiorg1023072315697

14 P Toni and P D Lamberti Esplorando lrsquoAnalisi Matematica Societa Editrice Internazionale Torino1996

15 A P Youschkevitch The concept of function up to the middle of the 19th century Arch Hist Exact Sci16 (197677) 37ndash85

GIACOMO DRAGO is 22 years old He got his bachelorrsquos degree with honors from the University of Padovain 2009 He distinguished himself in the national finals of three consecutive editions of the Kangourou Mathe-matics Competitions in Italy (2004ndash2006) He is currently working on his masterrsquos degree in mathematics andhe dreams of becoming a teacher of mathematicsDipartimento di Matematica Pura ed Applicata Universita degli Studi di Padova Via Trieste 63 35121Padova Italygiacomodragogmailcom

PIER DOMENICO LAMBERTI received his PhD in mathematics from the University of Padova in 2003He currently has a position as researcher in mathematical analysis at the same university His research in-

810 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

terests are mainly in spectral stability problems for elliptic partial differential equations He likes to think ofmathematics as a form of artDipartimento di Matematica Pura ed Applicata Universita degli Studi di Padova Via Trieste 63 35121Padova Italylambertimathunipdit

PAOLO TONI received his masterrsquos degree in mathematics from the University of Firenze in 1972 He hastaught mathematics and physics in high school for almost 40 years He was a pioneer in the organization ofmathematics competitions in Italy His interests are mainly in mathematical creativity and teacher educationHe retired in 2010 Now he enjoys staying with his nephews and playing the organ He believes in studentsrsquocreativityLiceo Scientifico Statale E Fermi Via Vittorio Emanuele II 50 35100 Padova Italypaolotoniinwindit

A Ramanujan-Type Formula for(

1 +1n

)n+12

e

Motivated by Sanjay Khattrirsquos proofs [1] that e lt(1+ 1

n

)n+ 12 I offer the follow-

ing formula which I think Ramanujan would have liked for the ratio of the twosides of Khattrirsquos inequality(

1+1

n

)n+ 12

e = exp

int 1

0

u2

(2n + 1)2 minus u2du

= exp

int 1

0

u2

8m + 1minus u2du

(where m = n(n + 1)2)

= exp

int 1

0

αu2

1+ α(1minus u2)du

(where α = 1(8m))

= exp

int 1

0αu2minus α2u2(1minus u2)+ α3u2(1minus u2)2 minus α4u2(1minus u2)3 + middot middot middot du

= exp

1

3α minus

1

5middot

2

3α2+

1

7middot

4

5middot

2

3α3minus

1

9middot

6

7middot

4

5middot

2

3α4+

1

11middot

8

9middot

6

7middot

4

5middot

2

3α5minus middot middot middot

= exp

α

3

(1minus

5

(1minus

7

(1minus

9

(1minus

11

(1minus middot middot middot

)))))= exp

1

24m

(1minus

1

5 middot 4m

(1minus

2

7 middot 4m

(1minus

3

9 middot 4m

(1minus

4

11 middot 4m

(1minus middot middot middot

)))))

REFERENCES

1 S K Khattri Three proofs of the inequality e lt(

1+ 1n

)n+05 Amer Math Monthly 117 (2010)

273ndash277 httpdxdoiorg104169000298910X480126

mdashSubmitted by Michael D HirschhornUniversity of New South Wales Sydney Australia

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 811

Page 9: A Bouquet of Discontinuous Functions for Beginners in ...ceadserv1.nku.edu/.../mat420/days/highlights/PathologicalFunctions.… · A Bouquet of Discontinuous Functions for Beginners

112

13

23

14

34

12

131415

Figure 10 Graph of function G4

for all p q isin N 0 lt pq lt 1 p q coprime It is not difficult to prove that

limxrarrx0

G4(x) = 0 6= G4(x0) (8)

for all x0 isin (0 1) cap Q The function G4 can be extended to the whole of (0 1) bysetting G4(x) = 0 for all x isin (0 1) Q and turns out to be continuous at any pointx isin (0 1) Q According to Appell [1 p 10] some students would call function G4

ldquoDirichlet lightrdquo because its set of discontinuities is ldquolighterrdquo than the set of disconti-nuities of the Dirichlet function

We note that by (6) and (7) it immediately follows that

F4(x) = x + G4(x) (9)

for all x isin B Equality (9) could be used to define F4 via G4 and to give a furtherproof 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 hasa 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 probabilitytheory these functions can be obtained as cumulative distribution functions associatedwith discrete measures (see eg Folland [5 p 102]) Here we present two functionsdefined on the set B of the dyadic rational numbers in (0 1) with jump discontinuitiesat every point of B These functions are defined directly by using binary notation anddo not require any advanced tool

We recall that the set B in (5) can be represented also in the form

B =infin⋃

n=1

nsumj=1

x j

2 j

∣∣∣∣ x j isin 0 1 for all j isin 1 n xn = 1

(10)

Thus given x isin B there exists n(x) isin N such that x =sumn(x)

j=1 x j2 j for suitable valuesof x j isin 0 1 where xn(x) = 1 using binary notation x can be written as

0 x1 x2 middot middot middot xn(x)

Let F5 be the function from B to itself defined by

F5(0 x1 x2 middot middot middot xn(x)) = 0 y1 y2 middot middot middot ym(x)

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 807

where the digits y1 ym(x) are obtained from the digits x1 xn(x) of x bysimply replacing each 0 with 01 For example F5(001) = 0011 F5(0101001) =0101101011 F5(0000011) = 00101010111 and F5(01) = 01 It is easy to provethat F5 is a monotone function strictly increasing on B Thus F5 admits left and rightlimits at any point of B Moreover it is not difficult to realize that in fact

F5(v) = limxrarrvminus

F5(x) lt limxrarrv+

F5(x)

for all v isin B Hence F5 is left-continuous with a jump discontinuity at every pointv isin B In order to get rid of the monotonicity one can consider the function G5 definedby

G5 = F4 F5

The function G5 is particularly interesting since it admits a geometric description in thespirit of the iterative construction of F4 in this case one has to consider rectangles withno common vertices rather than squares (see Figures 11 and 12) The function G5 isdiscussed in detail in Drago [4] where it is also proved by using binary representationsthat for all v isin B the one-sided limits of G5 at v exist and satisfy

limxrarrvminus

G5(x) lt limxrarrv+

G5(x) lt G5(v)

00 02 04 06 08 1000

02

04

06

08

10

Figure 11 Graph of function G5 (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 G4 Let F6 be the function from (0 1) capQ toitself defined by

F6

(p

q

)= q

808 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

00 02 04 06 08 1000

02

04

06

08

10

Figure 12 Construction of function G5

112

13

23

14

34

0

10

20

30

40

50

Figure 13 Graph of function F6

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 809

for all p q isin N 0 lt pq lt 1 p q coprime It is not difficult to prove that

limxrarrx0

F6(x) = +infin

for all x0 isin [0 1]

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 authorsare deeply indebted to the third author P Toni who in different periods was their teacher of mathematicsand physics in secondary school where he has developed and experienced the main pedagogical ideas thatare the basis of the present paper for about three decades Those stimulating lessons led the second authorP D Lamberti to define the function F4 The functions F5 and G5 were defined by the first author G Dragoin 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

1 J Appell Analysis in Beispielen und Gegenbeispielen Springer Berlin 20092 N Bourbaki Elements de Mathematique Theorie des Ensembles Hermann Paris 19703 R B Deal Some remarks on ldquoA dilemma in definitionrdquo Amer Math Monthly 74 (1967) 1258ndash1259

httpdxdoiorg1023072315696

4 G Drago Funzioni e Funzioni Strane Alcuni Aspetti Storici e Didattici BA thesis University ofPadova Padova 2009

5 G B Folland Real Analysis Modern Techniques and Their Applications John Wiley New York 19846 B R Gelbaum and J M H Olmsted Counterexamples in Analysis Holden-Day San Francisco 19647 A B Kharazishvili Strange Functions in Real Analysis 2nd ed Pure and Applied Mathematics vol

272 Chapman amp HallCRC Boca Raton FL 20068 I Kleiner Evolution of the function concept A brief survey College Math J 20 (1989) 282ndash300 http

dxdoiorg1023072686848

9 Functions Historical and pedagogical aspects Science amp Education 2 (1993) 183ndash209 httpdxdoiorg101007BF00592206

10 J Klippert Advanced advanced calculus Counting the discontinuities of a real-valued function withinterval domain Math Mag 62 (1989) 43ndash48 httpdxdoiorg1023072689945

11 C P Nicholas A dilemma in definition Amer Math Monthly 73 (1966) 762ndash768 httpdxdoiorg1023072313993

12 J Thim Continuous Nowhere Differentiable Functions MA thesis Lulea University of TechnologyLulea Sweden 2003

13 H A Thurston A reply to ldquoA dilemma in definitionrdquo Amer Math Monthly 74 (1967) 1259ndash1261 httpdxdoiorg1023072315697

14 P Toni and P D Lamberti Esplorando lrsquoAnalisi Matematica Societa Editrice Internazionale Torino1996

15 A P Youschkevitch The concept of function up to the middle of the 19th century Arch Hist Exact Sci16 (197677) 37ndash85

GIACOMO DRAGO is 22 years old He got his bachelorrsquos degree with honors from the University of Padovain 2009 He distinguished himself in the national finals of three consecutive editions of the Kangourou Mathe-matics Competitions in Italy (2004ndash2006) He is currently working on his masterrsquos degree in mathematics andhe dreams of becoming a teacher of mathematicsDipartimento di Matematica Pura ed Applicata Universita degli Studi di Padova Via Trieste 63 35121Padova Italygiacomodragogmailcom

PIER DOMENICO LAMBERTI received his PhD in mathematics from the University of Padova in 2003He currently has a position as researcher in mathematical analysis at the same university His research in-

810 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

terests are mainly in spectral stability problems for elliptic partial differential equations He likes to think ofmathematics as a form of artDipartimento di Matematica Pura ed Applicata Universita degli Studi di Padova Via Trieste 63 35121Padova Italylambertimathunipdit

PAOLO TONI received his masterrsquos degree in mathematics from the University of Firenze in 1972 He hastaught mathematics and physics in high school for almost 40 years He was a pioneer in the organization ofmathematics competitions in Italy His interests are mainly in mathematical creativity and teacher educationHe retired in 2010 Now he enjoys staying with his nephews and playing the organ He believes in studentsrsquocreativityLiceo Scientifico Statale E Fermi Via Vittorio Emanuele II 50 35100 Padova Italypaolotoniinwindit

A Ramanujan-Type Formula for(

1 +1n

)n+12

e

Motivated by Sanjay Khattrirsquos proofs [1] that e lt(1+ 1

n

)n+ 12 I offer the follow-

ing formula which I think Ramanujan would have liked for the ratio of the twosides of Khattrirsquos inequality(

1+1

n

)n+ 12

e = exp

int 1

0

u2

(2n + 1)2 minus u2du

= exp

int 1

0

u2

8m + 1minus u2du

(where m = n(n + 1)2)

= exp

int 1

0

αu2

1+ α(1minus u2)du

(where α = 1(8m))

= exp

int 1

0αu2minus α2u2(1minus u2)+ α3u2(1minus u2)2 minus α4u2(1minus u2)3 + middot middot middot du

= exp

1

3α minus

1

5middot

2

3α2+

1

7middot

4

5middot

2

3α3minus

1

9middot

6

7middot

4

5middot

2

3α4+

1

11middot

8

9middot

6

7middot

4

5middot

2

3α5minus middot middot middot

= exp

α

3

(1minus

5

(1minus

7

(1minus

9

(1minus

11

(1minus middot middot middot

)))))= exp

1

24m

(1minus

1

5 middot 4m

(1minus

2

7 middot 4m

(1minus

3

9 middot 4m

(1minus

4

11 middot 4m

(1minus middot middot middot

)))))

REFERENCES

1 S K Khattri Three proofs of the inequality e lt(

1+ 1n

)n+05 Amer Math Monthly 117 (2010)

273ndash277 httpdxdoiorg104169000298910X480126

mdashSubmitted by Michael D HirschhornUniversity of New South Wales Sydney Australia

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 811

Page 10: A Bouquet of Discontinuous Functions for Beginners in ...ceadserv1.nku.edu/.../mat420/days/highlights/PathologicalFunctions.… · A Bouquet of Discontinuous Functions for Beginners

where the digits y1 ym(x) are obtained from the digits x1 xn(x) of x bysimply replacing each 0 with 01 For example F5(001) = 0011 F5(0101001) =0101101011 F5(0000011) = 00101010111 and F5(01) = 01 It is easy to provethat F5 is a monotone function strictly increasing on B Thus F5 admits left and rightlimits at any point of B Moreover it is not difficult to realize that in fact

F5(v) = limxrarrvminus

F5(x) lt limxrarrv+

F5(x)

for all v isin B Hence F5 is left-continuous with a jump discontinuity at every pointv isin B In order to get rid of the monotonicity one can consider the function G5 definedby

G5 = F4 F5

The function G5 is particularly interesting since it admits a geometric description in thespirit of the iterative construction of F4 in this case one has to consider rectangles withno common vertices rather than squares (see Figures 11 and 12) The function G5 isdiscussed in detail in Drago [4] where it is also proved by using binary representationsthat for all v isin B the one-sided limits of G5 at v exist and satisfy

limxrarrvminus

G5(x) lt limxrarrv+

G5(x) lt G5(v)

00 02 04 06 08 1000

02

04

06

08

10

Figure 11 Graph of function G5 (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 G4 Let F6 be the function from (0 1) capQ toitself defined by

F6

(p

q

)= q

808 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

00 02 04 06 08 1000

02

04

06

08

10

Figure 12 Construction of function G5

112

13

23

14

34

0

10

20

30

40

50

Figure 13 Graph of function F6

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 809

for all p q isin N 0 lt pq lt 1 p q coprime It is not difficult to prove that

limxrarrx0

F6(x) = +infin

for all x0 isin [0 1]

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 authorsare deeply indebted to the third author P Toni who in different periods was their teacher of mathematicsand physics in secondary school where he has developed and experienced the main pedagogical ideas thatare the basis of the present paper for about three decades Those stimulating lessons led the second authorP D Lamberti to define the function F4 The functions F5 and G5 were defined by the first author G Dragoin 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

1 J Appell Analysis in Beispielen und Gegenbeispielen Springer Berlin 20092 N Bourbaki Elements de Mathematique Theorie des Ensembles Hermann Paris 19703 R B Deal Some remarks on ldquoA dilemma in definitionrdquo Amer Math Monthly 74 (1967) 1258ndash1259

httpdxdoiorg1023072315696

4 G Drago Funzioni e Funzioni Strane Alcuni Aspetti Storici e Didattici BA thesis University ofPadova Padova 2009

5 G B Folland Real Analysis Modern Techniques and Their Applications John Wiley New York 19846 B R Gelbaum and J M H Olmsted Counterexamples in Analysis Holden-Day San Francisco 19647 A B Kharazishvili Strange Functions in Real Analysis 2nd ed Pure and Applied Mathematics vol

272 Chapman amp HallCRC Boca Raton FL 20068 I Kleiner Evolution of the function concept A brief survey College Math J 20 (1989) 282ndash300 http

dxdoiorg1023072686848

9 Functions Historical and pedagogical aspects Science amp Education 2 (1993) 183ndash209 httpdxdoiorg101007BF00592206

10 J Klippert Advanced advanced calculus Counting the discontinuities of a real-valued function withinterval domain Math Mag 62 (1989) 43ndash48 httpdxdoiorg1023072689945

11 C P Nicholas A dilemma in definition Amer Math Monthly 73 (1966) 762ndash768 httpdxdoiorg1023072313993

12 J Thim Continuous Nowhere Differentiable Functions MA thesis Lulea University of TechnologyLulea Sweden 2003

13 H A Thurston A reply to ldquoA dilemma in definitionrdquo Amer Math Monthly 74 (1967) 1259ndash1261 httpdxdoiorg1023072315697

14 P Toni and P D Lamberti Esplorando lrsquoAnalisi Matematica Societa Editrice Internazionale Torino1996

15 A P Youschkevitch The concept of function up to the middle of the 19th century Arch Hist Exact Sci16 (197677) 37ndash85

GIACOMO DRAGO is 22 years old He got his bachelorrsquos degree with honors from the University of Padovain 2009 He distinguished himself in the national finals of three consecutive editions of the Kangourou Mathe-matics Competitions in Italy (2004ndash2006) He is currently working on his masterrsquos degree in mathematics andhe dreams of becoming a teacher of mathematicsDipartimento di Matematica Pura ed Applicata Universita degli Studi di Padova Via Trieste 63 35121Padova Italygiacomodragogmailcom

PIER DOMENICO LAMBERTI received his PhD in mathematics from the University of Padova in 2003He currently has a position as researcher in mathematical analysis at the same university His research in-

810 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

terests are mainly in spectral stability problems for elliptic partial differential equations He likes to think ofmathematics as a form of artDipartimento di Matematica Pura ed Applicata Universita degli Studi di Padova Via Trieste 63 35121Padova Italylambertimathunipdit

PAOLO TONI received his masterrsquos degree in mathematics from the University of Firenze in 1972 He hastaught mathematics and physics in high school for almost 40 years He was a pioneer in the organization ofmathematics competitions in Italy His interests are mainly in mathematical creativity and teacher educationHe retired in 2010 Now he enjoys staying with his nephews and playing the organ He believes in studentsrsquocreativityLiceo Scientifico Statale E Fermi Via Vittorio Emanuele II 50 35100 Padova Italypaolotoniinwindit

A Ramanujan-Type Formula for(

1 +1n

)n+12

e

Motivated by Sanjay Khattrirsquos proofs [1] that e lt(1+ 1

n

)n+ 12 I offer the follow-

ing formula which I think Ramanujan would have liked for the ratio of the twosides of Khattrirsquos inequality(

1+1

n

)n+ 12

e = exp

int 1

0

u2

(2n + 1)2 minus u2du

= exp

int 1

0

u2

8m + 1minus u2du

(where m = n(n + 1)2)

= exp

int 1

0

αu2

1+ α(1minus u2)du

(where α = 1(8m))

= exp

int 1

0αu2minus α2u2(1minus u2)+ α3u2(1minus u2)2 minus α4u2(1minus u2)3 + middot middot middot du

= exp

1

3α minus

1

5middot

2

3α2+

1

7middot

4

5middot

2

3α3minus

1

9middot

6

7middot

4

5middot

2

3α4+

1

11middot

8

9middot

6

7middot

4

5middot

2

3α5minus middot middot middot

= exp

α

3

(1minus

5

(1minus

7

(1minus

9

(1minus

11

(1minus middot middot middot

)))))= exp

1

24m

(1minus

1

5 middot 4m

(1minus

2

7 middot 4m

(1minus

3

9 middot 4m

(1minus

4

11 middot 4m

(1minus middot middot middot

)))))

REFERENCES

1 S K Khattri Three proofs of the inequality e lt(

1+ 1n

)n+05 Amer Math Monthly 117 (2010)

273ndash277 httpdxdoiorg104169000298910X480126

mdashSubmitted by Michael D HirschhornUniversity of New South Wales Sydney Australia

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 811

Page 11: A Bouquet of Discontinuous Functions for Beginners in ...ceadserv1.nku.edu/.../mat420/days/highlights/PathologicalFunctions.… · A Bouquet of Discontinuous Functions for Beginners

00 02 04 06 08 1000

02

04

06

08

10

Figure 12 Construction of function G5

112

13

23

14

34

0

10

20

30

40

50

Figure 13 Graph of function F6

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 809

for all p q isin N 0 lt pq lt 1 p q coprime It is not difficult to prove that

limxrarrx0

F6(x) = +infin

for all x0 isin [0 1]

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 authorsare deeply indebted to the third author P Toni who in different periods was their teacher of mathematicsand physics in secondary school where he has developed and experienced the main pedagogical ideas thatare the basis of the present paper for about three decades Those stimulating lessons led the second authorP D Lamberti to define the function F4 The functions F5 and G5 were defined by the first author G Dragoin 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

1 J Appell Analysis in Beispielen und Gegenbeispielen Springer Berlin 20092 N Bourbaki Elements de Mathematique Theorie des Ensembles Hermann Paris 19703 R B Deal Some remarks on ldquoA dilemma in definitionrdquo Amer Math Monthly 74 (1967) 1258ndash1259

httpdxdoiorg1023072315696

4 G Drago Funzioni e Funzioni Strane Alcuni Aspetti Storici e Didattici BA thesis University ofPadova Padova 2009

5 G B Folland Real Analysis Modern Techniques and Their Applications John Wiley New York 19846 B R Gelbaum and J M H Olmsted Counterexamples in Analysis Holden-Day San Francisco 19647 A B Kharazishvili Strange Functions in Real Analysis 2nd ed Pure and Applied Mathematics vol

272 Chapman amp HallCRC Boca Raton FL 20068 I Kleiner Evolution of the function concept A brief survey College Math J 20 (1989) 282ndash300 http

dxdoiorg1023072686848

9 Functions Historical and pedagogical aspects Science amp Education 2 (1993) 183ndash209 httpdxdoiorg101007BF00592206

10 J Klippert Advanced advanced calculus Counting the discontinuities of a real-valued function withinterval domain Math Mag 62 (1989) 43ndash48 httpdxdoiorg1023072689945

11 C P Nicholas A dilemma in definition Amer Math Monthly 73 (1966) 762ndash768 httpdxdoiorg1023072313993

12 J Thim Continuous Nowhere Differentiable Functions MA thesis Lulea University of TechnologyLulea Sweden 2003

13 H A Thurston A reply to ldquoA dilemma in definitionrdquo Amer Math Monthly 74 (1967) 1259ndash1261 httpdxdoiorg1023072315697

14 P Toni and P D Lamberti Esplorando lrsquoAnalisi Matematica Societa Editrice Internazionale Torino1996

15 A P Youschkevitch The concept of function up to the middle of the 19th century Arch Hist Exact Sci16 (197677) 37ndash85

GIACOMO DRAGO is 22 years old He got his bachelorrsquos degree with honors from the University of Padovain 2009 He distinguished himself in the national finals of three consecutive editions of the Kangourou Mathe-matics Competitions in Italy (2004ndash2006) He is currently working on his masterrsquos degree in mathematics andhe dreams of becoming a teacher of mathematicsDipartimento di Matematica Pura ed Applicata Universita degli Studi di Padova Via Trieste 63 35121Padova Italygiacomodragogmailcom

PIER DOMENICO LAMBERTI received his PhD in mathematics from the University of Padova in 2003He currently has a position as researcher in mathematical analysis at the same university His research in-

810 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

terests are mainly in spectral stability problems for elliptic partial differential equations He likes to think ofmathematics as a form of artDipartimento di Matematica Pura ed Applicata Universita degli Studi di Padova Via Trieste 63 35121Padova Italylambertimathunipdit

PAOLO TONI received his masterrsquos degree in mathematics from the University of Firenze in 1972 He hastaught mathematics and physics in high school for almost 40 years He was a pioneer in the organization ofmathematics competitions in Italy His interests are mainly in mathematical creativity and teacher educationHe retired in 2010 Now he enjoys staying with his nephews and playing the organ He believes in studentsrsquocreativityLiceo Scientifico Statale E Fermi Via Vittorio Emanuele II 50 35100 Padova Italypaolotoniinwindit

A Ramanujan-Type Formula for(

1 +1n

)n+12

e

Motivated by Sanjay Khattrirsquos proofs [1] that e lt(1+ 1

n

)n+ 12 I offer the follow-

ing formula which I think Ramanujan would have liked for the ratio of the twosides of Khattrirsquos inequality(

1+1

n

)n+ 12

e = exp

int 1

0

u2

(2n + 1)2 minus u2du

= exp

int 1

0

u2

8m + 1minus u2du

(where m = n(n + 1)2)

= exp

int 1

0

αu2

1+ α(1minus u2)du

(where α = 1(8m))

= exp

int 1

0αu2minus α2u2(1minus u2)+ α3u2(1minus u2)2 minus α4u2(1minus u2)3 + middot middot middot du

= exp

1

3α minus

1

5middot

2

3α2+

1

7middot

4

5middot

2

3α3minus

1

9middot

6

7middot

4

5middot

2

3α4+

1

11middot

8

9middot

6

7middot

4

5middot

2

3α5minus middot middot middot

= exp

α

3

(1minus

5

(1minus

7

(1minus

9

(1minus

11

(1minus middot middot middot

)))))= exp

1

24m

(1minus

1

5 middot 4m

(1minus

2

7 middot 4m

(1minus

3

9 middot 4m

(1minus

4

11 middot 4m

(1minus middot middot middot

)))))

REFERENCES

1 S K Khattri Three proofs of the inequality e lt(

1+ 1n

)n+05 Amer Math Monthly 117 (2010)

273ndash277 httpdxdoiorg104169000298910X480126

mdashSubmitted by Michael D HirschhornUniversity of New South Wales Sydney Australia

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 811

Page 12: A Bouquet of Discontinuous Functions for Beginners in ...ceadserv1.nku.edu/.../mat420/days/highlights/PathologicalFunctions.… · A Bouquet of Discontinuous Functions for Beginners

for all p q isin N 0 lt pq lt 1 p q coprime It is not difficult to prove that

limxrarrx0

F6(x) = +infin

for all x0 isin [0 1]

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 authorsare deeply indebted to the third author P Toni who in different periods was their teacher of mathematicsand physics in secondary school where he has developed and experienced the main pedagogical ideas thatare the basis of the present paper for about three decades Those stimulating lessons led the second authorP D Lamberti to define the function F4 The functions F5 and G5 were defined by the first author G Dragoin 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

1 J Appell Analysis in Beispielen und Gegenbeispielen Springer Berlin 20092 N Bourbaki Elements de Mathematique Theorie des Ensembles Hermann Paris 19703 R B Deal Some remarks on ldquoA dilemma in definitionrdquo Amer Math Monthly 74 (1967) 1258ndash1259

httpdxdoiorg1023072315696

4 G Drago Funzioni e Funzioni Strane Alcuni Aspetti Storici e Didattici BA thesis University ofPadova Padova 2009

5 G B Folland Real Analysis Modern Techniques and Their Applications John Wiley New York 19846 B R Gelbaum and J M H Olmsted Counterexamples in Analysis Holden-Day San Francisco 19647 A B Kharazishvili Strange Functions in Real Analysis 2nd ed Pure and Applied Mathematics vol

272 Chapman amp HallCRC Boca Raton FL 20068 I Kleiner Evolution of the function concept A brief survey College Math J 20 (1989) 282ndash300 http

dxdoiorg1023072686848

9 Functions Historical and pedagogical aspects Science amp Education 2 (1993) 183ndash209 httpdxdoiorg101007BF00592206

10 J Klippert Advanced advanced calculus Counting the discontinuities of a real-valued function withinterval domain Math Mag 62 (1989) 43ndash48 httpdxdoiorg1023072689945

11 C P Nicholas A dilemma in definition Amer Math Monthly 73 (1966) 762ndash768 httpdxdoiorg1023072313993

12 J Thim Continuous Nowhere Differentiable Functions MA thesis Lulea University of TechnologyLulea Sweden 2003

13 H A Thurston A reply to ldquoA dilemma in definitionrdquo Amer Math Monthly 74 (1967) 1259ndash1261 httpdxdoiorg1023072315697

14 P Toni and P D Lamberti Esplorando lrsquoAnalisi Matematica Societa Editrice Internazionale Torino1996

15 A P Youschkevitch The concept of function up to the middle of the 19th century Arch Hist Exact Sci16 (197677) 37ndash85

GIACOMO DRAGO is 22 years old He got his bachelorrsquos degree with honors from the University of Padovain 2009 He distinguished himself in the national finals of three consecutive editions of the Kangourou Mathe-matics Competitions in Italy (2004ndash2006) He is currently working on his masterrsquos degree in mathematics andhe dreams of becoming a teacher of mathematicsDipartimento di Matematica Pura ed Applicata Universita degli Studi di Padova Via Trieste 63 35121Padova Italygiacomodragogmailcom

PIER DOMENICO LAMBERTI received his PhD in mathematics from the University of Padova in 2003He currently has a position as researcher in mathematical analysis at the same university His research in-

810 ccopy THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 118

terests are mainly in spectral stability problems for elliptic partial differential equations He likes to think ofmathematics as a form of artDipartimento di Matematica Pura ed Applicata Universita degli Studi di Padova Via Trieste 63 35121Padova Italylambertimathunipdit

PAOLO TONI received his masterrsquos degree in mathematics from the University of Firenze in 1972 He hastaught mathematics and physics in high school for almost 40 years He was a pioneer in the organization ofmathematics competitions in Italy His interests are mainly in mathematical creativity and teacher educationHe retired in 2010 Now he enjoys staying with his nephews and playing the organ He believes in studentsrsquocreativityLiceo Scientifico Statale E Fermi Via Vittorio Emanuele II 50 35100 Padova Italypaolotoniinwindit

A Ramanujan-Type Formula for(

1 +1n

)n+12

e

Motivated by Sanjay Khattrirsquos proofs [1] that e lt(1+ 1

n

)n+ 12 I offer the follow-

ing formula which I think Ramanujan would have liked for the ratio of the twosides of Khattrirsquos inequality(

1+1

n

)n+ 12

e = exp

int 1

0

u2

(2n + 1)2 minus u2du

= exp

int 1

0

u2

8m + 1minus u2du

(where m = n(n + 1)2)

= exp

int 1

0

αu2

1+ α(1minus u2)du

(where α = 1(8m))

= exp

int 1

0αu2minus α2u2(1minus u2)+ α3u2(1minus u2)2 minus α4u2(1minus u2)3 + middot middot middot du

= exp

1

3α minus

1

5middot

2

3α2+

1

7middot

4

5middot

2

3α3minus

1

9middot

6

7middot

4

5middot

2

3α4+

1

11middot

8

9middot

6

7middot

4

5middot

2

3α5minus middot middot middot

= exp

α

3

(1minus

5

(1minus

7

(1minus

9

(1minus

11

(1minus middot middot middot

)))))= exp

1

24m

(1minus

1

5 middot 4m

(1minus

2

7 middot 4m

(1minus

3

9 middot 4m

(1minus

4

11 middot 4m

(1minus middot middot middot

)))))

REFERENCES

1 S K Khattri Three proofs of the inequality e lt(

1+ 1n

)n+05 Amer Math Monthly 117 (2010)

273ndash277 httpdxdoiorg104169000298910X480126

mdashSubmitted by Michael D HirschhornUniversity of New South Wales Sydney Australia

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 811

Page 13: A Bouquet of Discontinuous Functions for Beginners in ...ceadserv1.nku.edu/.../mat420/days/highlights/PathologicalFunctions.… · A Bouquet of Discontinuous Functions for Beginners

terests are mainly in spectral stability problems for elliptic partial differential equations He likes to think ofmathematics as a form of artDipartimento di Matematica Pura ed Applicata Universita degli Studi di Padova Via Trieste 63 35121Padova Italylambertimathunipdit

PAOLO TONI received his masterrsquos degree in mathematics from the University of Firenze in 1972 He hastaught mathematics and physics in high school for almost 40 years He was a pioneer in the organization ofmathematics competitions in Italy His interests are mainly in mathematical creativity and teacher educationHe retired in 2010 Now he enjoys staying with his nephews and playing the organ He believes in studentsrsquocreativityLiceo Scientifico Statale E Fermi Via Vittorio Emanuele II 50 35100 Padova Italypaolotoniinwindit

A Ramanujan-Type Formula for(

1 +1n

)n+12

e

Motivated by Sanjay Khattrirsquos proofs [1] that e lt(1+ 1

n

)n+ 12 I offer the follow-

ing formula which I think Ramanujan would have liked for the ratio of the twosides of Khattrirsquos inequality(

1+1

n

)n+ 12

e = exp

int 1

0

u2

(2n + 1)2 minus u2du

= exp

int 1

0

u2

8m + 1minus u2du

(where m = n(n + 1)2)

= exp

int 1

0

αu2

1+ α(1minus u2)du

(where α = 1(8m))

= exp

int 1

0αu2minus α2u2(1minus u2)+ α3u2(1minus u2)2 minus α4u2(1minus u2)3 + middot middot middot du

= exp

1

3α minus

1

5middot

2

3α2+

1

7middot

4

5middot

2

3α3minus

1

9middot

6

7middot

4

5middot

2

3α4+

1

11middot

8

9middot

6

7middot

4

5middot

2

3α5minus middot middot middot

= exp

α

3

(1minus

5

(1minus

7

(1minus

9

(1minus

11

(1minus middot middot middot

)))))= exp

1

24m

(1minus

1

5 middot 4m

(1minus

2

7 middot 4m

(1minus

3

9 middot 4m

(1minus

4

11 middot 4m

(1minus middot middot middot

)))))

REFERENCES

1 S K Khattri Three proofs of the inequality e lt(

1+ 1n

)n+05 Amer Math Monthly 117 (2010)

273ndash277 httpdxdoiorg104169000298910X480126

mdashSubmitted by Michael D HirschhornUniversity of New South Wales Sydney Australia

November 2011] A ldquoBOUQUETrdquo OF DISCONTINUOUS FUNCTIONS 811