In mathematics, a continuous function is a function such that a small variation of the argument induces a small variation of the value of the function. This implies there are no abrupt changes in value, known as discontinuities. More precisely, a function is continuous if arbitrarily small changes in its value can be assured by restricting to sufficiently small changes of its argument. A discontinuous function is a function that is . Until the 19th century, mathematicians largely relied on intuitive notions of continuity and considered only continuous functions. The epsilon–delta definition of a limit was introduced to formalize the definition of continuity.
Continuity is one of the core concepts of calculus and mathematical analysis, where arguments and values of functions are real and complex numbers. The concept has been generalized to functions between metric spaces and between topological spaces. The latter are the most general continuous functions, and their definition is the basis of topology.
A stronger form of continuity is uniform continuity. In order theory, especially in domain theory, a related concept of continuity is Scott continuity.
As an example, the function denoting the height of a growing flower at time would be considered continuous. In contrast, the function denoting the amount of money in a bank account at time would be considered discontinuous since it "jumps" at each point in time when money is deposited or withdrawn.
A form of the epsilon–delta definition of continuity was first given by Bernard Bolzano in 1817. Augustin-Louis Cauchy defined continuity of
y=f(x)
\alpha
f(x+\alpha)-f(x)
A real function that is a function from real numbers to real numbers can be represented by a graph in the Cartesian plane; such a function is continuous if, roughly speaking, the graph is a single unbroken curve whose domain is the entire real line. A more mathematically rigorous definition is given below.[2]
Continuity of real functions is usually defined in terms of limits. A function with variable is continuous at the real number, if the limit of
f(x),
f(c).
There are several different definitions of the (global) continuity of a function, which depend on the nature of its domain.
A function is continuous on an open interval if the interval is contained in the function's domain and the function is continuous at every interval point. A function that is continuous on the interval
(-infty,+infty)
A function is continuous on a semi-open or a closed interval; if the interval is contained in the domain of the function, the function is continuous at every interior point of the interval, and the value of the function at each endpoint that belongs to the interval is the limit of the values of the function when the variable tends to the endpoint from the interior of the interval. For example, the function
f(x)=\sqrt{x}
[0,+infty).
x\mapsto\tanx.
A partial function is discontinuous at a point if the point belongs to the topological closure of its domain, and either the point does not belong to the domain of the function or the function is not continuous at the point. For example, the functions and are discontinuous at, and remain discontinuous whichever value is chosen for defining them at . A point where a function is discontinuous is called a discontinuity.
Using mathematical notation, several ways exist to define continuous functions in the three senses mentioned above.
D
\R
This subset
D
D=\R
i.e.,
D
D=[a,b]=\{x\in\R\mida\leqx\leqb\}
D
D=(a,b)=\{x\in\R\mida<x<b\}
D
In the case of the domain
D
a
b
D
f(a)
f(b)
D
The function is continuous at some point of its domain if the limit of
f(x),
f(c).
f(c).
(Here, we have assumed that the domain of f does not have any isolated points.)
A neighborhood of a point c is a set that contains, at least, all points within some fixed distance of c. Intuitively, a function is continuous at a point c if the range of f over the neighborhood of c shrinks to a single point
f(c)
N1(f(c))
N2(c)
f(x)\inN1(f(c))
x\inN2(c).
As neighborhoods are defined in any topological space, this definition of a continuous function applies not only for real functions but also when the domain and the codomain are topological spaces and is thus the most general definition. It follows that a function is automatically continuous at every isolated point of its domain. For example, every real-valued function on the integers is continuous.
(xn)n
\left(f(xn)\right)n\in
f(c).
Explicitly including the definition of the limit of a function, we obtain a self-contained definition: Given a function
f:D\toR
x0
D
f
x0
\varepsilon>0,
\delta>0
x
f
x0-\delta<x<x0+\delta,
f(x)
Alternatively written, continuity of
f:D\toR
x0\inD
\varepsilon>0,
\delta>0
x\inD
More intuitively, we can say that if we want to get all the
f(x)
f\left(x0\right),
x
x0.
f(x0)
f
x0.
In modern terms, this is generalized by the definition of continuity of a function with respect to a basis for the topology, here the metric topology.
Weierstrass had required that the interval
x0-\delta<x<x0+\delta
D
In proofs and numerical analysis, we often need to know how fast limits are converging, or in other words, control of the remainder. We can formalize this to a definition of continuity. A function
C:[0,infty)\to[0,infty]
inf\deltaC(\delta)=0
A function
f:D\toR
x0
A function is continuous in
x0
This approach leads naturally to refining the notion of continuity by restricting the set of admissible control functions. For a given set of control functions
l{C}
C\inl{C}.
Continuity can also be defined in terms of oscillation: a function f is continuous at a point
x0
\omegaf(x0)=0.
This definition is helpful in descriptive set theory to study the set of discontinuities and continuous points – the continuous points are the intersection of the sets where the oscillation is less than
\varepsilon
G\delta
The oscillation is equivalent to the
\varepsilon-\delta
\varepsilon0
\delta
\varepsilon-\delta
\varepsilon0,
\varepsilon
\delta,
Cauchy defined the continuity of a function in the following intuitive terms: an infinitesimal change in the independent variable corresponds to an infinitesimal change of the dependent variable (see Cours d'analyse, page 34). Non-standard analysis is a way of making this mathematically rigorous. The real line is augmented by adding infinite and infinitesimal numbers to form the hyperreal numbers. In nonstandard analysis, continuity can be defined as follows.
(see microcontinuity). In other words, an infinitesimal increment of the independent variable always produces an infinitesimal change of the dependent variable, giving a modern expression to Augustin-Louis Cauchy's definition of continuity.
Checking the continuity of a given function can be simplified by checking one of the above defining properties for the building blocks of the given function. It is straightforward to show that the sum of two functions, continuous on some domain, is also continuous on this domain. Giventhen the (defined by
s(x)=f(x)+g(x)
x\inD
D.
The same holds for the,(defined by
p(x)=f(x) ⋅ g(x)
x\inD
D.
I(x)=x
In the same way, it can be shown that the (defined by
r(x)=1/f(x)
x\inD
f(x) ≠ 0
D\setminus\{x:f(x)=0\}.
This implies that, excluding the roots of
g,
q(x)=f(x)/g(x)
x\inD
g(x) ≠ 0
D\setminus\{x:g(x)=0\}
For example, the function (pictured)is defined for all real numbers
x ≠ -2
x=-2
x=-2
y.
F:\R\to\R
y(x)
x ≠ -2.
G(x)=\sin(x)/x,
x ≠ 0.
G(0)
G(x),
Thus, by setting
G(x)=\begin{cases}
\sin(x) | |
x |
&ifx\ne0\\ 1&ifx=0, \end{cases}
the sinc-function becomes a continuous function on all real numbers. The term is used in such cases when (re)defining values of a function to coincide with the appropriate limits make a function continuous at specific points.
A more involved construction of continuous functions is the function composition. Given two continuous functions their composition, denoted as
c=g\circf:Df\to\R,
c(x)=g(f(x)),
This construction allows stating, for example, that is continuous for all
x>0.
H
Pick for instance
\varepsilon=1/2
x=0
(-\delta, \delta)
\delta>0,
H(x)
H(0)
(1/2, 3/2)
Similarly, the signum or sign functionis discontinuous at
x=0
x=0
Besides plausible continuities and discontinuities like above, there are also functions with a behavior, often coined pathological, for example, Thomae's function,is continuous at all irrational numbers and discontinuous at all rational numbers. In a similar vein, Dirichlet's function, the indicator function for the set of rational numbers,is nowhere continuous.
Let
f(x)
x0,
y0
f\left(x0\right) ≠ y0.
f(x) ≠ y0
x0.
Proof: By the definition of continuity, take
\varepsilon=
|y0-f(x0)| | |
2 |
>0
\delta>0
|x-x0|<\delta
f(x)=y0;
The intermediate value theorem is an existence theorem, based on the real number property of completeness, and states:
[a,b],
f(a)
f(b),
c\in[a,b],
f(c)=k.
For example, if a child grows from 1 m to 1.5 m between the ages of two and six years, then, at some time between two and six years of age, the child's height must have been 1.25 m.
As a consequence, if f is continuous on
[a,b]
f(a)
f(b)
c\in[a,b],
f(c)
The extreme value theorem states that if a function f is defined on a closed interval
[a,b]
c\in[a,b]
f(c)\geqf(x)
x\in[a,b].
(a,b)
f(x)=
1 | |
x |
,
Every differentiable functionis continuous, as can be shown. The converse does not hold: for example, the absolute value function
f(x)=|x|=\begin{cases} x&ifx\geq0\\ -x&ifx<0 \end{cases}
x=0
The derivative f′(x) of a differentiable function f(x) need not be continuous. If f′(x) is continuous, f(x) is said to be continuously differentiable. The set of such functions is denoted
C1((a,b)).
\R
\Omega
n
n
Cn(\Omega).
C0,C1,C2
G0
G1
G2
Every continuous functionis integrable (for example in the sense of the Riemann integral). The converse does not hold, as the (integrable but discontinuous) sign function shows.
Given a sequenceof functions such that the limitexists for all
x\inD,
f(x)
\left(fn\right)n.
fn
fn
Discontinuous functions may be discontinuous in a restricted way, giving rise to the concept of directional continuity (or right and left continuous functions) and semi-continuity. Roughly speaking, a function is if no jump occurs when the limit point is approached from the right. Formally, f is said to be right-continuous at the point c if the following holds: For any number
\varepsilon>0
\delta>0
c<x<c+\delta,
f(x)
This is the same condition as continuous functions, except it is required to hold for x strictly larger than c only. Requiring it instead for all x with
c-\delta<x<c
See main article: Semicontinuity. A function f is if, roughly, any jumps that might occur only go down, but not up. That is, for any
\varepsilon>0,
\delta>0
|x-c|<\delta,
f(x)
The concept of continuous real-valued functions can be generalized to functions between metric spaces. A metric space is a set
X
dX,
\left(X,dX\right)
\left(Y,dY\right)
f
c\inX
\varepsilon>0,
\delta>0
x\inX
dX(x,c)<\delta
dY(f(x),f(c))<\varepsilon.
\left(xn\right)
X
\limxn=c,
\limf\left(xn\right)=f(c).
f
c
\left(xn\right)
X
c
\left(f\left(xn\right)\right)
c
f
The set of points at which a function between metric spaces is continuous is a G\delta
\varepsilon-\delta
This notion of continuity is applied, for example, in functional analysis. A key statement in this area says that a linear operatorbetween normed vector spaces
V
W
\|x\|
K
x\inV.
The concept of continuity for functions between metric spaces can be strengthened in various ways by limiting the way
\delta
\varepsilon
\delta
\varepsilon>0
\delta>0
c,b\inX
dX(b,c)<\delta,
dY(f(b),f(c))<\varepsilon.
A function is Hölder continuous with exponent α (a real number) if there is a constant K such that for all
b,c\inX,
\alpha=1
b,c\inX.
Another, more abstract, notion of continuity is the continuity of functions between topological spaces in which there generally is no formal notion of distance, as there is in the case of metric spaces. A topological space is a set X together with a topology on X, which is a set of subsets of X satisfying a few requirements with respect to their unions and intersections that generalize the properties of the open balls in metric spaces while still allowing one to talk about the neighborhoods of a given point. The elements of a topology are called open subsets of X (with respect to the topology).
A functionbetween two topological spaces X and Y is continuous if for every open set
V\subseteqY,
TX
This is equivalent to the condition that the preimages of the closed sets (which are the complements of the open subsets) in Y are closed in X.
An extreme example: if a set X is given the discrete topology (in which every subset is open), all functionsto any topological space T are continuous. On the other hand, if X is equipped with the indiscrete topology (in which the only open subsets are the empty set and X) and the space T set is at least T0, then the only continuous functions are the constant functions. Conversely, any function whose codomain is indiscrete is continuous.
The translation in the language of neighborhoods of the
(\varepsilon,\delta)
This definition is equivalent to the same statement with neighborhoods restricted to open neighborhoods and can be restated in several ways by using preimages rather than images.
Also, as every set that contains a neighborhood is also a neighborhood, and
f-1(V)
f(U)\subseteqV,
As an open set is a set that is a neighborhood of all its points, a function
f:X\toY
If X and Y are metric spaces, it is equivalent to consider the neighborhood system of open balls centered at x and f(x) instead of all neighborhoods. This gives back the above
\varepsilon-\delta
Given
x\inX,
f:X\toY
x
l{B}
X
x
X,
l{B}\tox,
f(l{B})\tof(x)
Y.
l{N}(x)
x
f:X\toY
x
f(l{N}(x))\tof(x)
Y.
f(l{N}(x))
f(x)
Y.
Several equivalent definitions for a topological structure exist; thus, several equivalent ways exist to define a continuous function.
In several contexts, the topology of a space is conveniently specified in terms of limit points. This is often accomplished by specifying when a point is the limit of a sequence. Still, for some spaces that are too large in some sense, one specifies also when a point is the limit of more general sets of points indexed by a directed set, known as nets. A function is (Heine-)continuous only if it takes limits of sequences to limits of sequences. In the former case, preservation of limits is also sufficient; in the latter, a function may preserve all limits of sequences yet still fail to be continuous, and preservation of nets is a necessary and sufficient condition.
In detail, a function
f:X\toY
\left(xn\right)
X
x,
\left(f\left(xn\right)\right)
f(x).
X
X
For instance, consider the case of real-valued functions of one real variable:[8]
Proof. Assume that
f:A\subseteq\R\to\R
x0
\epsilon-\delta
\left(xn\right)n\geq1
x0
xn=x,foralln
f
x0
\delta\epsilon
\nu\epsilon>0
n>\nu\epsilon,
\left(xn\right)
x0
(*)
f
f
x0
\delta\epsilon=1/n,\foralln>0
x | |
\delta\epsilon |
=:xn
(xn)n\geq1
xn\tox0
f(xn)\not\tof(x0)
\blacksquare
In terms of the interior operator, a function
f:X\toY
B\subseteqY,
In terms of the closure operator,
f:X\toY
A\subseteqX,
x\inX
A\subseteqX,
f(x)
f(A)
Y.
x
A\subseteqX
x\in\operatorname{cl}XA,
f
A\subseteqX,
f
A
f(A).
f
x\inX
x
A\subseteqX,
f(x)
f(A).
Instead of specifying topological spaces by their open subsets, any topology on
X
A
X
\operatorname{cl}XA
A\mapsto\operatorname{cl}A
\tau
X
\tau:=\{X\setminus\operatorname{cl}A:A\subseteqX\}
A\subseteqX,
\operatorname{cl}A
\operatorname{cl}(X,A
A
(X,\tau).
X
Y
\operatorname{cl}
f:X\toY
f(\operatorname{cl}A)\subseteq\operatorname{cl}(f(A))
A\subseteqX.
Similarly, the map that sends a subset
A
X
\operatorname{int}XA
A\mapsto\operatorname{int}A
\tau
X
\tau:=\{\operatorname{int}A:A\subseteqX\}
A\subseteqX,
\operatorname{int}A
\operatorname{int}(X,A
A
(X,\tau).
X
Y
\operatorname{int}
f:X\toY
f-1(\operatorname{int}B)\subseteq\operatorname{int}\left(f-1(B)\right)
B\subseteqY.
See main article: Filters in topology.
Continuity can also be characterized in terms of filters. A function
f:X\toY
l{B}
X
X
x\inX,
f(l{B})
Y
f(x).
If
f:X\toY
g:Y\toZ
g\circf:X\toZ.
f:X\toY
The possible topologies on a fixed set X are partially ordered: a topology
\tau1
\tau2
\tau1\subseteq\tau2
\tau1
\tau2.
\tau1\subseteq\tau2
\tauY
\tauX
Symmetric to the concept of a continuous map is an open map, for which of open sets are open. If an open map f has an inverse function, that inverse is continuous, and if a continuous map g has an inverse, that inverse is open. Given a bijective function f between two topological spaces, the inverse function
f-1
If a continuous bijection has as its domain a compact space and its codomain is Hausdorff, then it is a homeomorphism.
Given a functionwhere X is a topological space and S is a set (without a specified topology), the final topology on S is defined by letting the open sets of S be those subsets A of S for which
f-1(A)
Dually, for a function f from a set S to a topological space X, the initial topology on S is defined by designating as an open set every subset A of S such that
A=f-1(U)
A topology on a set S is uniquely determined by the class of all continuous functions
S\toX
X\toS.
If
f:S\toY
S
X
f
X
F:X\toY
F(s)=f(s)
s\inS,
f=F\vertS.
F:X\toY
f
S.
f:S\toY
Y
S
X
f:S\toY
X,
f:\R\to\R
D
\R
f\vertD:D\to\R
\R\to\R
Various other mathematical domains use the concept of continuity in different but related meanings. For example, in order theory, an order-preserving function
f:X\toY
X
Y
A
X,
\supf(A)=f(\supA).
\sup
X
Y,
In category theory, a functorbetween two categories is called if it commutes with small limits. That is to say,for any small (that is, indexed by a set
I,
lC
A is a generalization of metric spaces and posets,[12] [13] which uses the concept of quantales, and that can be used to unify the notions of metric spaces and domains.[14]
1/x
(0,infty)
(-infty,0),
x>0
x<0,
x=0,