A limit describes nearby values; continuity also asks those values to agree with the value at the point itself. This small addition is what permits approximation: when a measured input is slightly wrong, a continuous model produces only a small output error. In several variables, the error must be controlled across every available direction, and at a boundary it must be interpreted through the actual domain.
Continuity is a local property, while compactness is a property of an entire set. Their combination gives global conclusions that are not apparent from a formula at one point. A continuous scalar function on a nonempty compact set has a largest and a smallest value, and one input tolerance can control its output error everywhere on the set. The purpose of this section is to explain the logic connecting those conclusions, rather than to treat them as unrelated rules.
Continuity on a specified domain
Definition
Continuity at a point
Let and . The function is continuous at relative to if, for every , there is such that
It is continuous on if this holds at every point of .
If is an accumulation point of , the definition is equivalent to . If is isolated, continuity holds automatically: choose a ball whose only domain point is . The definition with all domain points covers both cases without requiring a punctured limit at an isolated point.
The sequential criterion gives another useful test: is continuous at exactly when and imply . Terms equal to are now allowed. The proof follows the limit criterion; a failure of continuity produces a sequence of inputs within of whose output errors remain above a fixed positive number.
Theorem
Algebra and composition preserve continuity
Sums, scalar multiples and products of continuous scalar functions are continuous. A quotient is continuous where its denominator is nonzero. If is continuous at and is continuous at , then is continuous at .
Proof
Passing the tolerance through a composition
Given an output tolerance for , continuity of provides an intermediate tolerance : inputs in within of give outputs within of . Continuity of then provides so that domain inputs within of give intermediate values within of . These two implications compose.
The algebraic claims follow from the limit laws at accumulation points and directly from the definition at isolated points. For a quotient, a nonzero denominator value ensures that nearby denominator values stay away from zero, which permits the needed reciprocal bound.
Coordinate functions are continuous because a coordinate difference is no larger than the Euclidean input distance. It follows that polynomials are continuous everywhere. Rational functions are continuous on their natural domains, and familiar one-variable continuous functions can be composed with multivariable expressions. These facts justify direct substitution only at points where the operations involved are defined.
Continuous extensions and boundaries
Worked example
Filling one removable point
For , define
The denominator is positive there, so is continuous away from the origin. Moreover,
Thus the limit at the origin is zero. Defining produces a continuous function on the entire plane.
The assigned value is forced: if the extension were continuous, its value at the origin would have to equal the already determined limit. Assigning any other real number would give a defined but discontinuous function. The extension changes the domain by adding the origin; it does not retroactively make the original quotient defined there.
Worked example
A missing point that cannot be filled continuously
Consider
Along the horizontal axis, ; along the vertical axis, . Hence there is no limit at the origin, and no single value assigned at that point can make continuous there.
The quotient is nevertheless continuous at every point of its present domain. “Continuous on the domain” and “extendable continuously to a larger domain” are separate claims. The former follows from a nonzero denominator at each domain point; the latter requires a new limit at each added point.
Worked example
Continuity at the edge of a domain
Let
The polynomial inside the root is continuous, and its values on lie in . The square-root function is continuous on that interval, including at zero. Composition therefore proves that is continuous throughout , including the circle bounding it.
At , write . For inputs in ,
The last inequality is the reverse triangle inequality. Thus works at this boundary point. No condition is imposed on inputs outside , where the real formula is not defined.
Why closed and bounded sets matter
Definition
Bounded and compact sets in Euclidean space
A set is bounded if it is contained in a ball of finite radius. A set is compact if every cover of it by open sets has a finite subcover. The Heine–Borel theorem states that, in , compactness is equivalent to being closed and bounded.
Both conditions do distinct work. Boundedness prevents a sequence from escaping to infinity, while closedness keeps the limits of convergent sequences inside the set. A bounded open disc lacks the second property; an entire straight line has the second property but lacks the first. Neither is compact in the ambient Euclidean space.
Theorem
Subsequences in compact sets
Every bounded sequence in has a convergent subsequence. Consequently, every sequence in a compact set has a subsequence converging to a point of . Conversely, this subsequence property characterises compact sets in .
Proof
Separating the roles of boundedness and closedness
For the first statement, the first coordinates form a bounded real sequence, so the one-dimensional Bolzano–Weierstrass theorem supplies a subsequence on which that coordinate converges. From this subsequence, extract another on which the second coordinate converges. Continue through the finitely many coordinates. Every coordinate of the final subsequence converges, so the vector subsequence converges.
If all original terms belong to a closed set , its convergent subsequence has its limit in . Combining this with boundedness proves the compact-set conclusion.
Conversely, if a set with the subsequence property were unbounded, choose its th term with norm greater than ; no subsequence could converge. If it were not closed, choose a sequence inside it converging to a missing closure point. Every subsequence has the same missing limit, contradicting the requirement that some subsequence converge to a point of the set. Thus the set is closed and bounded, hence compact by Heine–Borel.
This argument also clarifies why a sequence in an open ball still has a convergent subsequence: it is bounded. What may fail is that the subsequence limit belongs to the open ball. For terms moving towards the circumference, the limit lies on a missing boundary point.
Continuous images and attained extrema
Theorem
Compact images and extreme values
If is compact and is continuous, then is compact. In particular, if is nonempty and is continuous, then is bounded and attains both its maximum and minimum on .
Proof
Following a subsequence from inputs to outputs
Take any sequence and choose with . Compactness supplies a subsequence . Continuity gives . The subsequence characterisation therefore makes compact.
For the scalar conclusion, the image is a nonempty closed bounded subset of . It has a finite supremum . Choose image values greater than ; these converge to , and closedness places in the image. Hence some input attains the maximum. The infimum is handled in the same way.
The theorem proves existence, not the locations of the optimisers. It does not assert that every continuous function has an extremum on any chosen domain. Each hypothesis has to be checked for the actual set and function.
Worked example
Finding extrema once existence is established
On the ellipse-filled region
find the extreme values of . The set is closed and bounded, and is continuous, so both extremes are attained. Put and . Then and
The upper bound is attained when , giving . The lower bound occurs at their negatives. Thus the maximum is and the minimum is .
Cauchy–Schwarz supplies the values and equality conditions. Compactness supplies the underlying existence statement; checking the equality points confirms that the bounds are attained in the stated domain.
Removing hypotheses changes the conclusion. On the open unit disc, the continuous function has supremum one but never reaches it. On the closed unbounded plane, the continuous function is unbounded. On a compact disc, a function defined as away from the origin and assigned any finite value at the origin is unbounded because continuity there fails. These examples isolate three different reasons the extreme-value argument can break.
Uniform continuity
Definition
One radius for every centre
A function is uniformly continuous if, for every , there exists such that, for every ,
Ordinary continuity chooses a radius after fixing a centre. Uniform continuity chooses a radius before either input point is specified. The tolerance is still arbitrary, but the resulting radius must work throughout the domain. A bound with one constant is an immediate sufficient condition: use when , while a constant function permits any positive radius.
Theorem
Continuity on a compact set is uniform
Every continuous map from a compact subset of into is uniformly continuous.
Proof
Two inputs become close to the same limit point
If uniform continuity failed, there would be and pairs satisfying
Choose a subsequence using compactness. The triangle inequality forces as well. Continuity sends both output subsequences to , so their difference tends to zero, contradicting its fixed positive lower bound.
Compactness is sufficient, rather than necessary, for this conclusion. The identity map on all of is uniformly continuous because it preserves distances. On the other hand, is continuous on but not uniformly continuous: take and for . Their input difference tends to zero, but their output difference equals one.
The distinction is useful whenever one error budget must work over a whole collection of possible inputs. On a compact set, a continuous model gives such a budget even if an explicit best radius is hard to calculate. At a single point, continuity gives a local budget; the uniform statement explains when these local controls can be made global.
Recognising continuity through inverse images
There is a useful set-based version of continuity. A map on a domain is continuous exactly when the inverse image of every open set in the output space is open relative to that domain. “Open relative to the domain” means the intersection of the domain with an open subset of the ambient input space. This wording is needed when the domain itself contains boundary points.
To see the forward direction, take an input whose output belongs to an open output set. An output ball around that value stays in the open set. Continuity supplies an input ball whose domain points are mapped into that output ball. Thus every point of the inverse image has a relative interior neighbourhood. Conversely, apply the inverse-image condition to any prescribed output ball around the value at a fixed input. A relative input neighbourhood inside its inverse image is precisely the radius required by continuity.
This description explains why equations and inequalities built from continuous functions produce familiar domains. The set where a continuous real function is positive is open; the set where it equals a specified constant is closed. These statements concern inverse images. A continuous map does not generally send every open set to an open set: a constant map sends the entire input space to a singleton. Keeping the direction of the image operation clear prevents a useful criterion from being applied backwards.
Exercises and solutions
Checkpoint
Exercise 1: Find the unique continuous extension.
For , let . What value at the origin makes the extension continuous?
Solution · Exercise 1 solution
Since ,
The unique required value is zero. The quotient is already continuous at every other point.
Checkpoint
Exercise 2: Separate existence from calculation.
Does attain extrema on ? Find their values and points of attainment.
Solution · Exercise 2 solution
The closed disc is compact and nonempty, so existence follows. Cauchy–Schwarz gives . Equality occurs at . The positive sign gives the maximum and the negative sign the minimum.
Checkpoint
Exercise 3: Establish a uniform radius without compactness.
Show that is uniformly continuous on all of .
Solution · Exercise 3 solution
The reverse triangle inequality gives . Thus works for every pair of inputs, even though the domain is not compact.
Continuity connects nearby values to a point value. Compactness supplies convergent subsequences whose limits stay in the domain. Together they explain continuous images, attained extrema and uniform continuity. When applying any of these statements, identify the actual domain first; the role of each hypothesis then becomes visible in the proof.