# Uniform continuity As the center of the blue window, with real height 2 ε ∈ R > 0 {\displaystyle 2\varepsilon \in \mathbb {R} _{>0}} and real width 2 δ ∈ R > 0 {\displaystyle 2\delta \in \mathbb {R} _{>0}} , moves over the graph of f ( x ) = 1 x {\displaystyle f(x)={\tfrac {1}{x}}} in the direction of x = 0 {\displaystyle x=0} , there comes a point at which the graph of f {\displaystyle f} penetrates the (interior of the) top and/or bottom of that window. This means that f {\displaystyle f} ranges over an interval larger than or equal to ε {\displaystyle \varepsilon } over an x {\displaystyle x} -interval smaller than δ {\displaystyle \delta } . If there existed a window whereof top and/or bottom is never penetrated by the graph of f {\displaystyle f} as the window moves along it over its domain, then that window's width would need to be infinitesimally small (nonreal), meaning that f ( x ) {\displaystyle f(x)} is not uniformly continuous. The function g ( x ) = x {\displaystyle g(x)={\sqrt {x}}} , on the other hand, is uniformly continuous.

In mathematics, a real function $f$ of real numbers is said to be uniformly continuous if there is a positive real number $\delta$ such that function values over any function domain interval of the size $\delta$ are as close to each other as we want. In other words, for a uniformly continuous real function of real numbers, if we want function value differences to be less than any positive real number $\epsilon$ , then there is a positive real number $\delta$ such that $|f(x)-f(y)|<\epsilon$ at any $x$ and $y$ in any function interval of the size $\delta$ .

The difference between uniform continuity and (ordinary) continuity is that, in uniform continuity there is a globally applicable $\delta$ (the size of a function domain interval over which function value differences are less than $\epsilon$ ) that depends on only $\varepsilon$ , while in (ordinary) continuity there is a locally applicable $\delta$ that depends on the both $\varepsilon$ and $x$ . So uniform continuity is a stronger continuity condition than continuity; a function that is uniformly continuous is continuous but a function that is continuous is not necessarily uniformly continuous. The concepts of uniform continuity and continuity can be expanded to functions defined between metric spaces.

Continuous functions can fail to be uniformly continuous if they are unbounded on a bounded domain, such as $f(x)={\tfrac {1}{x}}$ on $(0,1)$ , or if their slopes become unbounded on an infinite domain, such as $f(x)=x^{2}$ on the real (number) line. However, any Lipschitz map between metric spaces is uniformly continuous, in particular any isometry (distance-preserving map).

Although continuity can be defined for functions between general topological spaces, defining uniform continuity requires more structure. The concept relies on comparing the sizes of neighbourhoods of distinct points, so it requires a metric space, or more generally a uniform space.