In
mathematics, a 'continuous function' is a
function for which, intuitively, small changes in the input result in small changes in the output. Otherwise, a function is said to be 'discontinuous'. A continuous function with a continuous
inverse function is called 'bicontinuous'.
An intuitive though imprecise (and inexact) idea of continuity is given by the common statement that a continuous function is a function whose graph can be drawn without lifting the chalk from the blackboard.
The context of this introduction is one in which the inputs and outputs of functions are
real numbers. More technical definitions are needed for
complex numbers or more general
topological spaces. In
order theory, especially in
domain theory, one considers a notion derived from this basic definition, which is known as
Scott continuity.
As an example, consider the function ''h''(''t'') which describes the
height of a growing flower at time ''t''. This function is continuous. In fact, there is a dictum of
classical physics which states that ''in nature everything is continuous''. By contrast, if ''M''(''t'') denotes the amount of money in a bank account at time ''t'', then the function jumps whenever money is deposited or withdrawn, so the function ''M''(''t'') is discontinuous.
Real-valued continuous functions
Suppose we have a function that maps
real numbers to real numbers and whose
domain is some
interval, like the functions ''h'' and ''M'' above. Such a function can be represented by a
graph in the
Cartesian plane; the function is continuous if, roughly speaking, the graph is a single unbroken
curve with no "holes" or "jumps".
To be more precise, we say that the function ''f'' is continuous at some
point ''c'' when the following two requirements are satisfied:
★ ''f''(''c'') must be defined (i.e. ''c'' must be an element of the
domain of ''f'').
★ The
limit of ''f''(''x'') as ''x'' approaches ''c'' must exist and be equal to ''f''(''c''). (If the point ''c'' in the domain of ''f'' is not a
limit point of the domain, then this condition is
vacuously true, since ''x'' cannot approach ''c''. Thus, for example, every function whose domain is the set of all integers is continuous, merely for lack of opportunity to be otherwise. However, one does not usually talk about continuous functions in this setting.)
We call the function 'everywhere continuous', or simply 'continuous', if it is continuous at every point of its
domain. More generally, we say that a function is continuous on some
subset of its domain if it is continuous at every point of that subset. If we simply say that a function is continuous, we usually mean that it is continuous for all real numbers.
The notation ''C''(Ω) or ''C''
0(Ω) is sometimes used to denote the set of all continuous functions with domain Ω. Similarly, ''C''
1(Ω) is used to denote the set of differentiable functions whose derivative is continuous, ''C''²(Ω) for the twice-differentiable functions whose second derivative is continuous, and so on. In the field of computer graphics, these three levels are sometimes called ''g0'' (continuity of position), ''g1'' (continuity of tangency), and ''g2'' (continuity of curvature). The notation
occurs in the definition of a more subtle concept, that of
Hölder continuity.
Cauchy definition (epsilon-delta)
Without resorting to limits, one can define continuity of real functions as follows.
Again consider a function ''f'' that maps a set of
real numbers to another set of real numbers, and suppose ''c'' is an element of the domain of ''f''. The function ''f'' is said to be continuous at the point ''c'' if (and only if) the following holds: For any number
however small, there exists some number
such that for all ''x'' in the domain with
, the value of ''f''(''x'') satisfies
Alternatively written: Given
(that is, ''I'' and ''D'' are subsets of the
real numbers), continuity of
(read
maps
into
) at
means that for all
there exists a
such that
and