In mathematics, a continuous function is a function that does not have any abrupt changes in value, known as discontinuities. More precisely, a function is continuous if arbitrarily small changes in its output can be assured by restricting to sufficiently small changes in its input. If not continuous, a function is said to be discontinuous. Up until the 19th century, mathematicians largely relied on intuitive notions of continuity, during which attempts such as the epsilon–delta definition were made to formalize it.

Continuity of functions is one of the core concepts of topology, which is treated in full generality below. The introductory portion of this article focuses on the special case where the inputs and outputs of functions are real numbers. A stronger form of continuity is uniform continuity. In addition, this article discusses the definition for the more general case of functions between two metric spaces. In order theory, especially in domain theory, one considers a notion of continuity known as Scott continuity. Other forms of continuity do exist but they are not discussed in this article.

As an example, the function H(t) denoting the height of a growing flower at time t would be considered continuous. In contrast, the function M(t) denoting the amount of money in a bank account at time t would be considered discontinuous, since it “jumps” at each point in time when money is deposited or withdrawn.

History

A form of the epsilon–delta definition of continuity was first given by Bernard Bolzano in 1817. Augustin-Louis Cauchy defined continuity of as follows: an infinitely small increment of the independent variable x always produces an infinitely small change of the dependent variable y (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 (see microcontinuity). The formal definition and the distinction between pointwise continuity and uniform 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 point c unless it was defined at and on both sides of c, but Édouard Goursat[3] allowed the function to be defined only at and on one side of c, and Camille Jordan[4] allowed it even if the function was defined only at c. 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 by Peter Gustav Lejeune Dirichlet in 1854.[6]

Real functions

Definition

The function is continuous on the domain , but is not continuous over the domain because it is undefined at

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.[7]

A rigorous definition of continuity of real functions is usually given in a first course in calculus in terms of the idea of a limit. First, a function f with variable x is said to be continuous at the point c on the real line, if the limit of as x approaches that point c, is equal to the value ; and second, the function (as a whole) is said to be continuous, if it is continuous at every point. A function is said to be discontinuous (or to have a discontinuity) at some point when it is not continuous there. These points themselves are also addressed as discontinuities.

There are several different definitions of continuity of a function. Sometimes a function is said to be continuous if it is continuous at every point in its domain. In this case, the function with the domain of all real any integer, is continuous. Sometimes an exception is made for boundaries of the domain. For example, the graph of the function with the domain of all non-negative reals, has a left-hand endpoint. In this case only the limit from the right is required to equal the value of the function. Under this definition f is continuous at the boundary and so for all non-negative arguments. The most common and restrictive definition is that a function is continuous if it is continuous at all real numbers. In this case, the previous two examples are not continuous, but every polynomial function is continuous, as are the sine, cosine, and exponential functions. Care should be exercised in using the word continuous, so that it is clear from the context which meaning of the word is intended.

Using mathematical notation, there are several ways to define continuous functions in each of the three senses mentioned above.

Let

be a function defined on a subset of the set of real numbers.

This subset is the domain of f. Some possible choices include

( is the whole set of real numbers), or, for a and b real numbers,
( is a closed interval), or
( is an open interval).

In case of the domain being defined as an open interval, and do not belong to , and the values of and do not matter for continuity on .

Definition in terms of limits of functions

The function f is continuous at some point c of its domain if the limit of as x approaches c through the domain of f, exists and is equal to [8] In mathematical notation, this is written as

In detail this means three conditions: first, f has to be defined at c (guaranteed by the requirement that c is in the domain of f). Second, the limit on the left hand side of that equation has to exist. Third, the value of this limit must equal

(Here, we have assumed that the domain of f does not have any isolated points.)

Definition in terms of neighborhoods

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 as the width of the neighborhood around c shrinks to zero. More precisely, a function f is continuous at a point c of its domain if, for any neighborhood there is a neighborhood in its domain such that whenever

This definition only requires that the domain and the codomain are topological spaces and is thus the most general definition. It follows from this definition that a function f is automatically continuous at every isolated point of its domain. As a specific example, every real valued function on the set of integers is continuous.

Definition in terms of limits of sequences

The sequence converges to exp(0)

One can instead require that for any sequence of points in the domain which converges to c, the corresponding sequence converges to In mathematical notation,

Weierstrass and Jordan definitions (epsilon–delta) of continuous functions

Illustration of the -definition: for the value satisfies the condition of the definition.

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 D, f is said to be continuous at the point when the following holds: For any number the value of satisfies

Alternatively written, continuity of at means that for every :

More intuitively, we can say that if we want to get all the values to stay in some small neighborhood around we simply need to choose a small enough neighborhood for the x values around If we can do that no matter how small the neighborhood is, then f is continuous at

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 be entirely within the domain D, but Jordan removed that restriction.

Definition in terms of control of the remainder

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 formalise this to a definition of continuity. A function is called a control function if