Examples: • The
derivative of any
differentiable function is of class 1. An example of a differentiable function whose derivative is not continuous (at
x = 0) is the function equal to x^2 \sin(1/x) when
x ≠ 0, and 0 when
x = 0. An infinite sum of similar functions (scaled and displaced by
rational numbers) can even give a differentiable function whose derivative is discontinuous on a
dense set. However, it necessarily has points of continuity, which follows easily from The Baire Characterisation Theorem (below; take
K =
X =
R). • The characteristic function of the set of
integers, which equals 1 if
x is an integer and 0 otherwise. (An infinite number of large discontinuities.) •
Thomae's function, which is 0 for
irrational x and 1/
q for a rational number
p/
q (in reduced form). (A dense set of discontinuities, namely the set of rational numbers.) • The characteristic function of the
Cantor set, which equals 1 if
x is in the Cantor set and 0 otherwise. This function is 0 for an
uncountable set of
x values, and 1 for an uncountable set. It is discontinuous wherever it equals 1 and continuous wherever it equals 0. It is approximated by the continuous functions g_n(x) = \max(0,{1-nd(x,C)}), where d(x,C) is the distance of x from the nearest point in the Cantor set. The Baire Characterisation Theorem states that a real valued function
f defined on a
Banach space X is a Baire-1 function
if and only if for every
non-empty closed subset
K of
X, the
restriction of
f to
K has a point of continuity relative to the
topology of
K. By another theorem of Baire, for every Baire-1 function the points of continuity are a
comeager Gδ set . ==Baire class 2==