Inmathematics, acontinuous function is afunction such that a small variation of theargument induces a small variation of thevalue of the function. This implies there are no abrupt changes in value, known asdiscontinuities. 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. Adiscontinuous function is a function that isnot continuous. Until the 19th century, mathematicians largely relied onintuitive notions of continuity and considered only continuous functions. Theepsilon–delta definition of a limit was introduced to formalize the definition of continuity.
As an example, the functionH(t) denoting the height of a growing flower at timet would be considered continuous. In contrast, the functionM(t) denoting the amount of money in a bank account at timet would be considered discontinuous since it "jumps" at each point in time when money is deposited or withdrawn.
A form of theepsilon–delta definition of continuity was first given byBernard Bolzano in 1817.Augustin-Louis Cauchy defined continuity of as follows: an infinitely small increment of the independent variablex always produces an infinitely small change of the dependent variabley (see e.g.Cours d'Analyse, p. 34). Cauchy defined infinitely small quantities in terms of variable quantities, and his definition of continuity closely parallels the infinitesimal definition used today (seemicrocontinuity). The formal definition and the distinction between pointwise continuity anduniform continuity were first given by Bolzano in the 1830s, but the work wasn't published until the 1930s. Like Bolzano,[1]Karl Weierstrass[2] denied continuity of a function at a pointc unless it was defined at and on both sides ofc, butÉdouard Goursat[3] allowed the function to be defined only at and on one side ofc, andCamille Jordan[4] allowed it even if the function was defined only atc. All three of those nonequivalent definitions of pointwise continuity are still in use.[5]Eduard Heine provided the first published definition of uniform continuity in 1872, but based these ideas on lectures given byPeter Gustav Lejeune Dirichlet in 1854.[6]
The function is continuous on its domain (), but is discontinuous at when considered as apartial function defined on the reals.[7]
Areal function that is afunction fromreal numbers to real numbers can be represented by agraph in theCartesian plane; such a function is continuous if, roughly speaking, the graph is a single unbrokencurve whosedomain is the entire real line. A more mathematically rigorous definition is given below.[8]
Continuity of real functions is usually defined in terms oflimits. A functionf with variablex iscontinuous at thereal numberc, if the limit of asx tends toc, is equal to
There are several different definitions of the (global) continuity of a function, which depend on the nature of itsdomain.
A function is continuous on anopen 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 (the wholereal line) is often called simply a continuous function; one also says that such a function iscontinuous everywhere. For example, allpolynomial functions are continuous everywhere.
A function is continuous on asemi-open or aclosed 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 is continuous on its whole domain, which is the closed interval
Many commonly encountered functions arepartial functions that have a domain formed by all real numbers, except someisolated points. Examples include thereciprocal function and thetangent function When they are continuous on their domain, one says, in some contexts, that they are continuous, although they are not continuous everywhere. In other contexts, mainly when one is interested in their behavior near the exceptional points, one says they are discontinuous.
A partial function isdiscontinuous at a point if the point belongs to thetopological 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 at0, and remain discontinuous whichever value is chosen for defining them at0. A point where a function is discontinuous is called adiscontinuity.
Using mathematical notation, several ways exist to define continuous functions in the three senses mentioned above.
Let be a function whosedomain is contained in of real numbers.
The functionf iscontinuous at some pointc of its domain if thelimit of asx approachesc through the domain off, exists and is equal to[9] In mathematical notation, this is written asIn detail this means three conditions: first,f has to be defined atc (guaranteed by the requirement thatc is in the domain off). Second, the limit of that equation has to exist. Third, the value of this limit must equal
(Here, we have assumed that the domain off does not have anyisolated points.)
Aneighborhood of a pointc is a set that contains, at least, all points within some fixed distance ofc. Intuitively, a function is continuous at a pointc if the range off over the neighborhood ofc shrinks to a single point as the width of the neighborhood aroundc shrinks to zero. More precisely, a functionf is continuous at a pointc of its domain if, for any neighborhood there is a neighborhood in its domain such that whenever
As neighborhoods are defined in anytopological space, this definition of a continuous function applies not only for real functions but also when the domain and thecodomain aretopological spaces and is thus the most general definition. It follows that a function is automatically continuous at everyisolated point of its domain. For example, every real-valued function on the integers is continuous.
One can instead require that for anysequence of points in the domain whichconverges toc, the corresponding sequence converges to In mathematical notation,
Weierstrass and Jordan definitions (epsilon–delta) of continuous functions
Illustration of theε-δ-definition: atx = 2, any valueδ ≤ 0.5 satisfies the condition of the definition forε = 0.5.
Explicitly including the definition of the limit of a function, we obtain a self-contained definition: Given a function as above and an element of the domain, is said to be continuous at the point when the following holds: For any positive real number however small, there exists some positive real number such that for all in the domain of with the value of satisfies
Alternatively written, continuity of at means that for every there exists a such that for all:
More intuitively, we can say that if we want to get all the values to stay in some smallneighborhood around we need to choose a small enough neighborhood for the values around If we can do that no matter how small the neighborhood is, then is continuous at
In modern terms, this is generalized by the definition of continuity of a function with respect to abasis for the topology, here themetric topology.
Weierstrass had required that the interval be entirely within the domain, but Jordan removed that restriction.
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 is called a control function if
C is non-decreasing
A function isC-continuous at if there exists such a neighbourhood that
A function is continuous in if it isC-continuous for some control functionC.
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 a function is-continuous if it is-continuous for some For example, theLipschitz, theHölder continuous functions of exponentα and theuniformly continuous functions below are defined by the set of control functionsrespectively.
The failure of a function to be continuous at a point is quantified by itsoscillation.
Continuity can also be defined in terms ofoscillation: a functionf is continuous at a point if and only if its oscillation at that point is zero;[10] in symbols, A benefit of this definition is that itquantifies discontinuity: the oscillation gives howmuch the function is discontinuous at a point.
This definition is helpful indescriptive 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 (hence a set) – and gives a rapid proof of one direction of theLebesgue integrability condition.[11]
The oscillation is equivalent to the definition by a simple re-arrangement and by using a limit (lim sup,lim inf) to define oscillation: if (at a given point) for a given there is no that satisfies the definition, then the oscillation is at least and conversely if for every there is a desired the oscillation is 0. The oscillation definition can be naturally generalized to maps from a topological space to ametric space.
Cauchy defined the continuity of a function in the following intuitive terms: aninfinitesimal change in the independent variable corresponds to an infinitesimal change of the dependent variable (seeCours 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 thehyperreal numbers. In nonstandard analysis, continuity can be defined as follows.
A real-valued functionf is continuous atx if its natural extension to the hyperreals has the property that for all infinitesimaldx, is infinitesimal[12]
(seemicrocontinuity). In other words, an infinitesimal increment of the independent variable always produces an infinitesimal change of the dependent variable, giving a modern expression toAugustin-Louis Cauchy's definition of continuity.
The graph of acubic function has no jumps or holes. The function is continuous.
Proving the continuity of a function by a direct application of the definition is generaly a noneasy task. Fortunately, in practice, most functions are built from simpler functions, and their continuity can be deduced immediately from the way they are defined, by applying the following rules:
Addition and multiplication: If the functions and are continuous on their respective domains and, then their sum and their product are continuous on theintersection, where and are defined by and.
Reciprocal: If the function is continuous on the domain, then its reciprocal, defined by is continuous on the domain, that is, the domain from which the points such that are removed.
Function composition: If the functions and are continuous on their respective domains and, then the composition defined by is continuous on, that the part of that is mapped by inside.
Thesine and cosine functions ( and) are continuous everywhere.
Thenatural logarithm is continuous on the domain formed by all positive real numbers.
The graph of a continuousrational function. The function is not defined for The vertical and horizontal lines areasymptotes.
These rules imply that everypolynomial function is continuous everywhere and that arational function is continuous everywhere where it is defined, if the numerator and the denominator have no commonzeros. More generally, the quotient of two continuous functions is continuous outside the zeros of the denominator.
The sinc and the cos functions
An example of a function for which the above rules are not sufficirent is thesinc function, which is defined by and for. The above rules show immediately that the function is continuous for, but, for proving the continuity at, one has to proveAs this is true, one gets that the sinc function is continuous function on all real numbers.
Pick for instance. Then there is no-neighborhood around, i.e. no open interval with that will force all the values to be within the-neighborhood of, i.e. within. Intuitively, we can think of this type of discontinuity as a suddenjump in function values.
Similarly, thesignum or sign functionis discontinuous at but continuous everywhere else. Yet another example: the functionis continuous everywhere apart from.
Point plot of Thomae's function on the interval (0,1). The topmost point in the middle shows f(1/2) = 1/2.
Besides plausible continuities and discontinuities like above, there are also functions with a behavior, often coinedpathological, for example,Thomae's function,is continuous at all irrational numbers and discontinuous at all rational numbers. In a similar vein,Dirichlet's function, theindicator function for the set of rational numbers,is nowhere continuous.
Let be a function that is continuous at a point and be a value such Then throughout some neighbourhood of[13]
Proof: By the definition of continuity, take , then there exists such thatSuppose there is a point in the neighbourhood for which then we have the contradiction
If the real-valued functionf is continuous on theclosed interval andk is some number between and then there is some number such that
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, iff is continuous on and and differ insign, then, at some point must equalzero.
Theextreme value theorem states that if a functionf is defined on a closed interval (or any closed and bounded set) and is continuous there, then the function attains its maximum, i.e. there exists with for all The same is true of the minimum off. These statements are not, in general, true if the function is defined on an open interval (or any set that is not both closed and bounded), as, for example, the continuous function defined on the open interval (0,1), does not attain a maximum, being unbounded above.
is everywhere continuous. However, it is not differentiable at (but is so everywhere else).Weierstrass's function is also everywhere continuous but nowhere differentiable.
Thederivativef′(x) of a differentiable functionf(x) need not be continuous. Iff′(x) is continuous,f(x) is said to becontinuously differentiable. The set of such functions is denoted More generally, the set of functions(from an open interval (oropen subset of) to the reals) such thatf is times differentiable and such that the-th derivative off is continuous is denoted Seedifferentiability class. In the field of computer graphics, properties related (but not identical) to are sometimes called (continuity of position), (continuity of tangency), and (continuity of curvature); seeSmoothness of curves and surfaces.
Every continuous functionisintegrable (for example in the sense of theRiemann integral). The converse does not hold, as the (integrable but discontinuous)sign function shows.
A sequence of continuous functions whose (pointwise) limit function is discontinuous. The convergence is not uniform.
Given asequenceof functions such that the limitexists for all, the resulting function is referred to as thepointwise limit of the sequence of functions The pointwise limit function need not be continuous, even if all functions are continuous, as the animation at the right shows. However,f is continuous if all functions are continuous and the sequenceconverges uniformly, by theuniform convergence theorem. This theorem can be used to show that theexponential functions,logarithms,square root function, andtrigonometric functions are continuous.
Discontinuous functions may be discontinuous in a restricted way, giving rise to the concept of directional continuity (or right and left continuous functions) andsemi-continuity. Roughly speaking, a function isright-continuous if no jump occurs when the limit point is approached from the right. Formally,f is said to be right-continuous at the pointc if the following holds: For any number however small, there exists some number such that for allx in the domain with the value of will satisfy
This is the same condition as continuous functions, except it is required to hold forx strictly larger thanc only. Requiring it instead for allx with yields the notion ofleft-continuous functions. A function is continuous if and only if it is both right-continuous and left-continuous.
A functionf islower semi-continuous if, roughly, any jumps that might occur only go down, but not up. That is, for any there exists some number such that for allx in the domain with the value of satisfiesThe reverse condition isupper semi-continuity.
The concept of continuous real-valued functions can be generalized to functions betweenmetric spaces. A metric space is a set equipped with a function (calledmetric) that can be thought of as a measurement of the distance of any two elements inX. Formally, the metric is a functionthat satisfies a number of requirements, notably thetriangle inequality. Given two metric spaces and and a functionthen is continuous at the point (with respect to the given metrics) if for any positive real number there exists a positive real number such that all satisfying will also satisfy As in the case of real functions above, this is equivalent to the condition that for every sequence in with limit we have The latter condition can be weakened as follows: is continuous at the point if and only if for every convergent sequence in with limit, the sequence is aCauchy sequence, and is in the domain of.
The set of points at which a function between metric spaces is continuous is a set – this follows from the definition of continuity.
This notion of continuity is applied, for example, infunctional analysis. A key statement in this area says that alinear operatorbetweennormed vector spaces and (which arevector spaces equipped with a compatiblenorm, denoted) is continuous if and only if it isbounded, that is, there is a constant such thatfor all
For a Lipschitz continuous function, there is a double cone (shown in white) whose vertex can be translated along the graph so that the graph always remains entirely outside the cone.
The concept of continuity for functions between metric spaces can be strengthened in various ways by limiting the way depends on andc in the definition above. Intuitively, a functionf as above isuniformly continuous if the doesnot depend on the pointc. More precisely, it is required that for everyreal number there exists such that for every with we have that Thus, any uniformly continuous function is continuous. The converse does not generally hold but holds when the domain spaceX iscompact. Uniformly continuous maps can be defined in the more general situation ofuniform spaces.[14]
A function isHölder continuous with exponent α (a real number) if there is a constantK such that for all the inequalityholds. Any Hölder continuous function is uniformly continuous. The particular case is referred to asLipschitz continuity. That is, a function is Lipschitz continuous if there is a constantK such that the inequalityholds for any[15] The Lipschitz condition occurs, for example, in thePicard–Lindelöf theorem concerning the solutions ofordinary differential equations.
Another, more abstract, notion of continuity is the continuity of functions betweentopological spaces in which there generally is no formal notion of distance, as there is in the case ofmetric spaces. A topological space is a setX together with a topology onX, which is a set ofsubsets ofX satisfying a few requirements with respect to their unions and intersections that generalize the properties of theopen balls in metric spaces while still allowing one to talk about the neighborhoods of a given point. The elements of a topology are calledopen subsets ofX (with respect to the topology).
A functionbetween two topological spacesX andY is continuous if for every open set theinverse imageis an open subset ofX. That is,f is a function between the setsX andY (not on the elements of the topology), but the continuity off depends on the topologies used onX andY.
This is equivalent to the condition that thepreimages of theclosed sets (which are the complements of the open subsets) inY are closed inX.
An extreme example: if a setX is given thediscrete topology (in which every subset is open), all functionsto any topological spaceT are continuous. On the other hand, ifX is equipped with theindiscrete topology (in which the only open subsets are the empty set andX) and the spaceT set is at leastT0, then the only continuous functions are the constant functions. Conversely, any function whose codomain is indiscrete is continuous.
Continuity at a point: For every neighborhoodV of, there is a neighborhoodU ofx such that
The translation in the language of neighborhoods of the-definition of continuity leads to the following definition of the continuity at a point:
A function is continuous at a point if and only if for any neighborhoodV of inY, there is a neighborhoodU of such that
This definition is equivalent to the same statement with neighborhoods restricted to open neighborhoods and can be restated in several ways by usingpreimages rather than images.
Also, as every set that contains a neighborhood is also a neighborhood, and is the largest subsetU ofX such that this definition may be simplified into:
A function is continuous at a point if and only if is a neighborhood of for every neighborhoodV of inY.
As an open set is a set that is a neighborhood of all its points, a function is continuous at every point ofX if and only if it is a continuous function.
IfX andY are metric spaces, it is equivalent to consider theneighborhood system ofopen balls centered atx andf(x) instead of all neighborhoods. This gives back the above definition of continuity in the context of metric spaces. In general topological spaces, there is no notion of nearness or distance. If, however, the target space is aHausdorff space, it is still true thatf is continuous ata if and only if the limit off asx approachesa isf(a). At an isolated point, every function is continuous.
Given a map is continuous at if and only if whenever is a filter on thatconverges to in which is expressed by writing then necessarily in If denotes theneighborhood filter at then is continuous at if and only if in[16] Moreover, this happens if and only if theprefilter is afilter base for the neighborhood filter of in[16]
In several contexts, the topology of a space is conveniently specified in terms oflimit points. This is often accomplished by specifying when a point is thelimit 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 pointsindexed by adirected set, known asnets. 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 issequentially continuous if whenever a sequence in converges to a limit the sequence converges to Thus, sequentially continuous functions "preserve sequential limits." Every continuous function is sequentially continuous. If is afirst-countable space andcountable choice holds, then the converse also holds: any function preserving sequential limits is continuous. In particular, if is a metric space, sequential continuity and continuity are equivalent. For non-first-countable spaces, sequential continuity might be strictly weaker than continuity. (The spaces for which the two properties are equivalent are calledsequential spaces.) This motivates the consideration of nets instead of sequences in general topological spaces. Continuous functions preserve the limits of nets, and this property characterizes continuous functions.
For instance, consider the case of real-valued functions of one real variable:[17]
Theorem—A function is continuous at if and only if it issequentially continuous at that point.
Proof
Proof. Assume that is continuous at (in the sense of continuity). Let be a sequence converging at (such a sequence always exists, for example,); since is continuous atFor any such we can find a natural number such that for allsince converges at; combining this with we obtainAssume on the contrary that is sequentially continuous and proceed by contradiction: suppose is not continuous atthen we can take and call the corresponding point: in this way we have defined a sequence such thatby construction but, which contradicts the hypothesis of sequential continuity.
Closure operator and interior operator definitions
In terms of theinterior andclosure operators, we have the following equivalences,
Theorem—Let be a mapping between topological spaces. Then the following are equivalent.
is continuous;
for every subset
for every subset
Proof
Proof.i ⇒ ii.Fix a subset of Since is open.and is continuous, is open inAs we haveBy the definition of the interior, is the largest open set contained in Hence
ii ⇒ iii.Fix and let Suppose to the contrary thatthen we may find some open neighbourhood of that is disjoint from. Byii, hence is open. Then we have found an open neighbourhood of that does not intersect, contradicting the fact thatHence
iii ⇒ i.Let be closed. Let be the preimage ofByiii, we haveSincewe have further thatThusHence is closed and we are done.
If we declare that a point isclose to a subset if then this terminology allows for aplain English description of continuity: is continuous if and only if for every subset maps points that are close to to points that are close to Similarly, is continuous at a fixed given point if and only if whenever is close to a subset then is close to
Instead of specifying topological spaces by theiropen subsets, any topology on canalternatively be determined by aclosure operator or by aninterior operator. Specifically, the map that sends a subset of a topological space to itstopological closure satisfies theKuratowski closure axioms. Conversely, for anyclosure operator there exists a unique topology on (specifically,) such that for every subset is equal to the topological closure of in If the sets and are each associated with closure operators (both denoted by) then a map is continuous if and only if for every subset
Similarly, the map that sends a subset of to itstopological interior defines aninterior operator. Conversely, any interior operator induces a unique topology on (specifically,) such that for every is equal to the topological interior of in If the sets and are each associated with interior operators (both denoted by) then a map is continuous if and only if for every subset[18]
Continuity can also be characterized in terms offilters. A function is continuous if and only if whenever a filter onconverges in to a point then theprefilter converges in to This characterization remains true if the word "filter" is replaced by "prefilter."[16]
The possible topologies on a fixed setX arepartially ordered: a topology is said to becoarser than another topology (notation:) if every open subset with respect to is also open with respect to Then, theidentity mapis continuous if and only if (see alsocomparison of topologies). More generally, a continuous functionstays continuous if the topology is replaced by acoarser topology and/or is replaced by afiner topology.
Symmetric to the concept of a continuous map is anopen map, for whichimages of open sets are open. If an open mapf has aninverse function, that inverse is continuous, and if a continuous mapg has an inverse, that inverse is open. Given abijective functionf between two topological spaces, the inverse function need not be continuous. A bijective continuous function with a continuous inverse function is called ahomeomorphism.
If a continuous bijection has as itsdomain acompact space and its codomain isHausdorff, then it is a homeomorphism.
Given a functionwhereX is a topological space andS is a set (without a specified topology), thefinal topology onS is defined by letting the open sets ofS be those subsetsA ofS for which is open inX. IfS has an existing topology,f is continuous with respect to this topology if and only if the existing topology iscoarser than the final topology onS. Thus, the final topology is the finest topology onS that makesf continuous. Iff issurjective, this topology is canonically identified with thequotient topology under theequivalence relation defined byf.
Dually, for a functionf from a setS to a topological spaceX, theinitial topology onS is defined by designating as an open set every subsetA ofS such that for some open subsetU ofX. IfS has an existing topology,f is continuous with respect to this topology if and only if the existing topology is finer than the initial topology onS. Thus, the initial topology is the coarsest topology onS that makesf continuous. Iff is injective, this topology is canonically identified with thesubspace topology ofS, viewed as a subset ofX.
A topology on a setS is uniquely determined by the class of all continuous functions into all topological spacesX.Dually, a similar idea can be applied to maps
If is a continuous function from some subset of a topological space then acontinuous extension of to is any continuous function such that for every which is a condition that often written as In words, it is any continuous function thatrestricts to on This notion is used, for example, in theTietze extension theorem and theHahn–Banach theorem. If is not continuous, then it could not possibly have a continuous extension. If is aHausdorff space and is adense subset of then a continuous extension of to if one exists, will be unique. TheBlumberg theorem states that if is an arbitrary function then there exists a dense subset of such that the restriction is continuous; in other words, every function can be restricted to some dense subset on which it is continuous.
Various other mathematical domains use the concept of continuity in different but related meanings. For example, inorder theory, an order-preserving function between particular types ofpartially ordered sets and is continuous if for eachdirected subset of we have Here is thesupremum with respect to the orderings in and respectively. This notion of continuity is the same as topological continuity when the partially ordered sets are given theScott topology.[19][20]
Acontinuity space is a generalization of metric spaces and posets,[21][22] which uses the concept ofquantales, and that can be used to unify the notions of metric spaces anddomains.[23]
^Dugac, Pierre (1973), "Eléments d'Analyse de Karl Weierstrass",Archive for History of Exact Sciences,10 (1–2):41–176,doi:10.1007/bf00343406,S2CID122843140
^Goursat, E. (1904),A course in mathematical analysis, Boston: Ginn, p. 2
^Harper, J.F. (2016), "Defining continuity of real functions of real variables",BSHM Bulletin: Journal of the British Society for the History of Mathematics,31 (3):1–16,doi:10.1080/17498430.2015.1116053,S2CID123997123
^Rusnock, P.; Kerr-Lawson, A. (2005), "Bolzano and uniform continuity",Historia Mathematica,32 (3):303–311,doi:10.1016/j.hm.2004.11.003
^Speck, Jared (2014)."Continuity and Discontinuity"(PDF).MIT Math. p. 3. Archived fromthe original(PDF) on 2016-10-06. Retrieved2016-09-02.Example 5. The function is continuous on and on, i.e., for and for in other words, at every point in its domain. However, it is not a continuous function since its domain is not an interval. It has a single point of discontinuity, namely, and an infinite discontinuity there.
^Introduction to Real Analysis, updated April 2010, William F. Trench, 3.5 "A More Advanced Look at the Existence of the Proper Riemann Integral", pp. 171–177
^Gierz, G.; Hofmann, K. H.; Keimel, K.; Lawson, J. D.; Mislove, M. W.; Scott, D. S. (2003).Continuous Lattices and Domains. Encyclopedia of Mathematics and its Applications. Vol. 93. Cambridge University Press.ISBN0521803381.