The Algebra of Continuous Functions

Suppose you already know that f(x)=xf(x) = x and g(x)=sin⁡xg(x) = \sin x are continuous everywhere. Can you immediately conclude that h(x)=x3+5sin⁡xh(x) = x^3 + 5\sin x is continuous? You can do this without re-deriving continuity from scratch using epsilons and deltas. The answer is yes. The reason is not luck but a theorem. Continuity is preserved under the basic algebraic operations of addition, subtraction, multiplication, and (away from zeros of the denominator) division. This fact is the engine that makes continuity a usable, everyday tool. It is not just a one-off epsilon-delta exercise for each new function. Without it, proving that a polynomial like 3x7−2x2+13x^7 - 2x^2 + 1 is continuous would require work. We would need to construct a fresh δ\delta for every ε\varepsilon, term by term, at every point. With it, continuity follows almost for free. This applies to polynomials, rational functions, and vast families of elementary functions. We only need to know that constants and the identity function are continuous. The big picture is this: continuity, like differentiability and limits themselves, is a local property. It behaves well under algebraic combination because it is built directly on top of The Algebra of Limits. Continuity at a point aa is nothing more than the statement lim⁡x→af(x)=f(a)\lim_{x\to a} f(x) = f(a). So any theorem about limits of sums, products, and quotients translates automatically. It becomes a theorem about continuity of sums, products, and quotients. This article makes that translation precise and airtight. We will state the precise definitions. We will prove the full algebra-of-continuity theorem with all four operations. We will work through two nontrivial examples. We will also exhibit a counterexample. It shows why the "denominator nonzero" hypothesis in the quotient rule cannot be dropped. This groundwork is exactly what is needed before discussing Composition of Continuous Functions and the Continuity of Polynomials Rational and Elementary Functions.

Key takeaways
  • Continuity at a point means lim⁡x→af(x)=f(a)\lim_{x\to a} f(x) = f(a); it is a local, pointwise notion.
  • If f,gf, g are continuous at aa, then so are f+gf+g, f−gf-g, cfcf (constant cc), and fgfg.
  • If additionally g(a)≠0g(a) \neq 0, then f/gf/g is continuous at aa (defined on a neighborhood of aa where g≠0g \neq 0).
  • The proofs reduce entirely to the corresponding theorems for limits — no new epsilon-delta argument is needed.
  • The quotient rule genuinely requires g(a)≠0g(a) \neq 0; dropping it produces functions undefined or badly discontinuous at aa.
  • This theorem is the reason polynomials and rational functions are continuous wherever defined, feeding directly into later results.
  • Key idea: continuity is inherited by algebraic combinations because limits are, and continuity is just a limit equaling a function value.

Where this lives today

This theorem is the quiet workhorse behind an enormous share of elementary and advanced mathematics. In calculus itself, it is exactly what licenses the claim that every polynomial and every rational function is continuous on its natural domain, which in turn underlies the Intermediate Value Theorem applications used to locate roots and the justification that limits of rational expressions can be computed by direct substitution. In real analysis, it is the base case for inductive constructions: continuity of sin⁡,cos⁡,ex\sin, \cos, e^x, and their combinations (via power series or other definitions) reduces, after the hard work of defining those functions, to exactly this kind of algebraic bookkeeping. In numerical analysis and scientific computing, algorithms like Newton's method or bisection implicitly rely on continuity of the algebraic combinations of functions being solved, guaranteeing that small perturbations in input produce small, controlled perturbations in output. In control theory and engineering, transfer functions are rational functions of a complex variable, and the same quotient-continuity reasoning (adapted to C\mathbb{C}) governs where poles — points of discontinuity — can occur, which is central to stability analysis. In statistics and probability, continuity of algebraic combinations of cumulative distribution functions and density functions is what allows sums and products of continuous random variables' functionals to remain well-behaved. In cryptography and computer science, continuity arguments appear more indirectly, but the same "build complex continuous objects from simple continuous pieces via algebra" philosophy recurs whenever one shows that an error function or loss function (as in optimization and machine learning, e.g., a sum of squared differences) is continuous, which is a prerequisite for many convergence guarantees of gradient-based methods.

Ask the tutor: Why does the quotient rule for continuity need g(a)≠0g(a) \neq 0 specifically, and what exactly can go wrong at points where g(a)=0g(a) = 0?

DefinitionContinuity at a point, and the operations f±gf\pm g, fgfg, f/gf/g

Let D⊆RD \subseteq \mathbb{R}, let f:D→Rf : D \to \mathbb{R}, and let a∈Da \in D. We say ff is continuous at aa if for every ε>0\varepsilon > 0 there exists δ>0\delta > 0 such that for all x∈Dx \in D,

∣x−a∣<δ  ⟹  ∣f(x)−f(a)∣<ε.|x - a| < \delta \implies |f(x) - f(a)| < \varepsilon.

Equivalently, ff is continuous at aa if lim⁡x→af(x)=f(a)\lim_{x \to a} f(x) = f(a) (in the sense that this limit exists as a real number and equals f(a)f(a)). We say ff is continuous on DD if it is continuous at every point of DD. Given f,g:D→Rf, g : D \to \mathbb{R}, define, for x∈Dx \in D:

(f+g)(x)=f(x)+g(x),(fg)(x)=f(x)g(x),(cf)(x)=c f(x) for c∈R,(f+g)(x) = f(x) + g(x), \qquad (fg)(x) = f(x)g(x), \qquad (cf)(x) = c\, f(x) \text{ for } c \in \mathbb{R},

and, on the set D′={x∈D:g(x)≠0}D' = \{x \in D : g(x) \neq 0\},

(fg)(x)=f(x)g(x).\left(\frac{f}{g}\right)(x) = \frac{f(x)}{g(x)}.

Intuition

Continuity at aa says: values of ff near aa cluster tightly around f(a)f(a), and you can force the clustering as tight as you like (ε\varepsilon) by looking close enough (δ\delta). Now picture two continuous functions ff and gg near a point aa, each trapped in its own thin horizontal band around f(a)f(a) and g(a)g(a) once xx is close enough to aa. If both are trapped, their sum is trapped in a band around f(a)+g(a)f(a) + g(a) — you just add the widths. Their product is a little subtler (multiplying two small errors can interact with the sizes of f(a)f(a) and g(a)g(a) themselves), but it is still controllable by elementary bounding, exactly the way you tame products of limits. Division is the delicate one: dividing by something that could be zero or nearly zero is dangerous, so we need a firm buffer — the hypothesis g(a)≠0g(a) \neq 0 — that keeps g(x)g(x) bounded away from 00 for xx near aa. The picture below shows two continuous graphs ff and gg near x=ax = a, each confined to a shrinking band as x→ax \to a, and their sum landing in the correspondingly shrinking band around f(a)+g(a)f(a)+g(a).

Figure
Continuity of ff and gg near aa forces f+gf+g into a shrinking band around f(a)+g(a)f(a)+g(a)
a f(a)-band f g(a)-band g (f+g)(a)-band f+g y x

Central theorem

TheoremAlgebra of Continuous Functions

Let D⊆RD \subseteq \mathbb{R}, let a∈Da \in D, and let f,g:D→Rf, g : D \to \mathbb{R} be continuous at aa. Then: 1. f+gf + g is continuous at aa. 2. f−gf - g is continuous at aa. 3. cfcf is continuous at aa, for every constant c∈Rc \in \mathbb{R}. 4. fgfg is continuous at aa. 5. If in addition g(a)≠0g(a) \neq 0, then there is δ0>0\delta_0 > 0 such that g(x)≠0g(x) \neq 0 for all x∈Dx \in D with ∣x−a∣<δ0|x-a| < \delta_0, and the function f/gf/g (restricted to D′={x∈D:g(x)≠0}D' = \{x \in D : g(x)\neq 0\}) is continuous at aa. Consequently, if ff and gg are continuous on all of DD, then f+gf+g, f−gf-g, cfcf, and fgfg are continuous on DD, and f/gf/g is continuous on D′={x∈D:g(x)≠0}D' = \{x \in D : g(x) \neq 0\}.

Proof

The proof technique is direct reduction to <a class="wiki-link" href="/wiki/math-analysis-algebra-of-limits" data-track="wiki_article.body.wiki_link">The Algebra of Limits</a>, using the definition of continuity as a limit statement, together with one auxiliary lemma for the quotient case (a sign-preservation / boundedness-away-from-zero argument).

Setup. Since ff and gg are continuous at aa, by definition

lim⁡x→af(x)=f(a),lim⁡x→ag(x)=g(a).\lim_{x\to a} f(x) = f(a), \qquad \lim_{x \to a} g(x) = g(a).

By hypothesis these are the same value f(a)f(a) (resp. g(a)g(a)) that the functions actually take at aa; this is precisely what distinguishes continuity from mere existence of a limit.

(1) Sum. By the Algebra of Limits (sum rule for limits), since both limits above exist,

lim⁡x→a(f+g)(x)=lim⁡x→af(x)+lim⁡x→ag(x)=f(a)+g(a)=(f+g)(a).\lim_{x\to a} (f+g)(x) = \lim_{x\to a} f(x) + \lim_{x\to a} g(x) = f(a) + g(a) = (f+g)(a).

This is exactly the statement that f+gf+g is continuous at aa.

(2) Difference. Identical to (1), using the difference rule for limits:

lim⁡x→a(f−g)(x)=lim⁡x→af(x)−lim⁡x→ag(x)=f(a)−g(a)=(f−g)(a).\lim_{x\to a}(f-g)(x) = \lim_{x\to a} f(x) - \lim_{x\to a} g(x) = f(a) - g(a) = (f-g)(a).

(3) Scalar multiple. The constant function x↦cx \mapsto c is continuous at every point (trivially: for any ε>0\varepsilon>0, any δ\delta works, since ∣c−c∣=0<ε|c - c| = 0 < \varepsilon always). By part (4) below (product rule), applied to the constant function cc and ff,

lim⁡x→a(cf)(x)=(lim⁡x→ac)(lim⁡x→af(x))=c⋅f(a)=(cf)(a).\lim_{x \to a}(cf)(x) = \Big(\lim_{x\to a} c\Big)\Big(\lim_{x \to a} f(x)\Big) = c \cdot f(a) = (cf)(a).

Alternatively, and more directly without invoking (4): by the scalar-multiple rule for limits,

lim⁡x→acf(x)=clim⁡x→af(x)=cf(a)=(cf)(a),\lim_{x\to a} c f(x) = c \lim_{x \to a} f(x) = c f(a) = (cf)(a),

so cfcf is continuous at aa.

(4) Product. By the Algebra of Limits (product rule for limits), since lim⁡x→af(x)\lim_{x\to a} f(x) and lim⁡x→ag(x)\lim_{x\to a} g(x) both exist,

lim⁡x→a(fg)(x)=(lim⁡x→af(x))(lim⁡x→ag(x))=f(a) g(a)=(fg)(a).\lim_{x\to a} (fg)(x) = \Big(\lim_{x\to a} f(x)\Big)\Big(\lim_{x\to a} g(x)\Big) = f(a)\, g(a) = (fg)(a).

This is exactly continuity of fgfg at aa.

(5) Quotient. This is the substantive case, since we must first justify that f/gf/g is even defined near aa, before discussing its continuity there. Step 5a: gg is nonzero on a neighborhood of aa. Suppose g(a)≠0g(a) \neq 0; without loss of generality say g(a)>0g(a) > 0 (the case g(a)<0g(a) < 0 is symmetric, replacing gg by −g-g throughout). Apply the definition of continuity of gg at aa with ε=g(a)/2>0\varepsilon = g(a)/2 > 0: there exists δ0>0\delta_0 > 0 such that for all x∈Dx \in D,

∣x−a∣<δ0  ⟹  ∣g(x)−g(a)∣<g(a)2.|x - a| < \delta_0 \implies |g(x) - g(a)| < \frac{g(a)}{2}.

For such xx, the reverse triangle inequality gives

g(x)>g(a)−g(a)2=g(a)2>0.g(x) > g(a) - \frac{g(a)}{2} = \frac{g(a)}{2} > 0.

In particular g(x)≠0g(x) \neq 0 for all x∈Dx \in D with ∣x−a∣<δ0|x - a| < \delta_0. This proves the first claim of (5): on the set D∩(a−δ0,a+δ0)D \cap (a - \delta_0, a+\delta_0), the quotient f(x)/g(x)f(x)/g(x) is well-defined, so aa is an interior point (relative to DD) of the domain D′D' of f/gf/g, and continuity of f/gf/g at aa is a meaningful question. Step 5b: the limit of the quotient. By the Algebra of Limits (quotient rule for limits, valid because lim⁡x→ag(x)=g(a)≠0\lim_{x\to a} g(x) = g(a) \neq 0),

lim⁡x→af(x)g(x)=lim⁡x→af(x)lim⁡x→ag(x)=f(a)g(a)=(fg)(a).\lim_{x \to a} \frac{f(x)}{g(x)} = \frac{\lim_{x\to a} f(x)}{\lim_{x \to a} g(x)} = \frac{f(a)}{g(a)} = \left(\frac{f}{g}\right)(a).

Here the limit lim⁡x→af(x)/g(x)\lim_{x\to a} f(x)/g(x) is computed along D′D' (restricting to the domain where the quotient is defined), which by Step 5a includes a full punctured neighborhood of aa intersected with DD, so the limit statement is meaningful and legitimate. This establishes

lim⁡x→a(f/g)(x)=(f/g)(a),\lim_{x\to a} (f/g)(x) = (f/g)(a),

which is precisely continuity of f/gf/g at aa.

Continuity on all of DD. If f,gf,g are continuous at every point of DD, apply (1)–(5) at an arbitrary point a∈Da \in D; since aa was arbitrary, f+g,f−g,cf,fgf+g, f-g, cf, fg are continuous at every point of DD, i.e. continuous on DD, and for each a∈D′a \in D' (i.e. g(a)≠0g(a)\neq 0) part (5) shows f/gf/g is continuous at aa; since a∈D′a\in D' was arbitrary, f/gf/g is continuous on D′D'. ■\blacksquare

∎

Remark on non-circularity. Every step above used only: (i) the definition of continuity as a limit equality, and (ii) previously established limit laws (sum, difference, scalar multiple, product, quotient rules for limits), which are theorems about limits that do not themselves presuppose continuity or this theorem. No step assumed the conclusion or any special structure of f,gf, g beyond continuity at the single point aa.

Worked examples

Example 1 — an asymmetric rational combination. Let

h(x)=3x2−5x3+2+7x−12x−1,x∈R∖{c1,c2},h(x) = \frac{3x^2 - 5}{x^3 + 2} + 7x - \frac{1}{2x - 1}, \qquad x \in \mathbb{R} \setminus \{c_1, c_2\},

where c1c_1 is the real root of x3+2=0x^3 + 2 = 0 (namely c1=−23c_1 = -\sqrt[3]{2}) and c2=1/2c_2 = 1/2. We show hh is continuous at a=2a = 2, using only the theorem above plus the elementary facts that constants and the identity function x↦xx \mapsto x are continuous everywhere (each checked directly from the ε\varepsilon-δ\delta definition in one line). Building blocks. The identity function ι(x)=x\iota(x) = x is continuous at every point: given ε>0\varepsilon > 0, take δ=ε\delta = \varepsilon; then ∣x−a∣<δ|x - a| < \delta immediately gives ∣ι(x)−ι(a)∣=∣x−a∣<ε|\iota(x) - \iota(a)| = |x-a| < \varepsilon. Every constant function is continuous everywhere, as noted in the proof. By repeated use of parts (3) and (4) of the theorem (products and scalar multiples), x↦x2=ι(x)⋅ι(x)x \mapsto x^2 = \iota(x)\cdot \iota(x) is continuous everywhere, and x↦x3=ι(x)⋅ι(x)⋅ι(x)x \mapsto x^3 = \iota(x)\cdot \iota(x)\cdot \iota(x) is continuous everywhere (continuity of a product of two continuous functions is continuous, apply again with the third factor). By part (3), x↦3x2x \mapsto 3x^2 and x↦7xx \mapsto 7x and x↦2xx\mapsto 2x are continuous everywhere. By part (1)/(2), x↦3x2−5x \mapsto 3x^2 - 5, x↦x3+2x \mapsto x^3+2, and x↦2x−1x \mapsto 2x - 1 are continuous everywhere (subtracting/adding the constant functions 5,2,15, 2, 1). First fraction. At a=2a = 2: the denominator D1(x)=x3+2D_1(x) = x^3+2 satisfies D1(2)=8+2=10≠0D_1(2) = 8+2 = 10 \neq 0. Since numerator N1(x)=3x2−5N_1(x) = 3x^2-5 and denominator D1D_1 are both continuous at 22 and D1(2)≠0D_1(2)\neq 0, part (5) gives that N1/D1N_1/D_1 is continuous at 22, with value

N1(2)D1(2)=3⋅4−510=710.\frac{N_1(2)}{D_1(2)} = \frac{3\cdot 4 - 5}{10} = \frac{7}{10}.

Second fraction. The denominator D2(x)=2x−1D_2(x) = 2x - 1 satisfies D2(2)=3≠0D_2(2) = 3 \neq 0. Since the constant function 11 and D2D_2 are continuous at 22 with D2(2)≠0D_2(2) \neq 0, part (5) gives 1/D21/D_2 continuous at 22, with value 1/31/3. Assembling. h=N1/D1+7ι−1/D2h = N_1/D_1 + 7\iota - 1/D_2 is a sum and difference of three functions, each continuous at a=2a=2 (the first fraction, 7x7x, and the second fraction), so by parts (1) and (2), hh is continuous at 22, and

h(2)=710+14−13=2130+42030−1030=43130.h(2) = \frac{7}{10} + 14 - \frac{1}{3} = \frac{21}{30} + \frac{420}{30} - \frac{10}{30} = \frac{431}{30}.

Note that 2≠c1≈−1.262 \neq c_1 \approx -1.26 and 2≠c2=0.52 \neq c_2 = 0.5, so 22 is genuinely in the domain of hh, and the computation is valid. This whole argument required no epsilon-delta work at all beyond the one-line verification for the identity and constant functions — everything else was pure bookkeeping via the theorem.

Example 2 — a function built from a floor-type piece, testing the boundary of the machinery. Let

k(x)=x2−4x−2for x≠2,k(2):=4.k(x) = \frac{x^2 - 4}{x - 2} \quad \text{for } x \neq 2, \qquad k(2) := 4.

Is kk continuous at a=2a = 2? Notice kk is not simply "f/gf/g with f,gf,g continuous and g(2)≠0g(2)\neq 0" at a=2a=2, since the denominator g(x)=x−2g(x) = x-2 vanishes exactly at 22 — so part (5) of the theorem, as stated, does not directly apply at a=2a=2 (it applies only away from 22). This example is chosen to show precisely the boundary of the algebra-of-continuity theorem and how to handle it correctly, rather than misapplying the theorem. For x≠2x \neq 2,

k(x)=(x−2)(x+2)x−2=x+2,k(x) = \frac{(x-2)(x+2)}{x-2} = x+2,

valid for all x≠2x\ne 2 since we may cancel the nonzero factor x−2x - 2. So as a function, k(x)=x+2k(x) = x+2 for x≠2x \ne 2, and k(2)=4k(2) = 4 by definition — which happens to equal lim⁡x→2(x+2)=4\lim_{x\to 2}(x+2) = 4 as well. To check continuity at 22 rigorously: the function x↦x+2x \mapsto x+2 is continuous at 22 by parts (1) (sum of the continuous identity function and the constant function 22), with value 2+2=42+2=4. Since k(x)=x+2k(x) = x+2 for all xx in the punctured neighborhood x≠2x\neq 2 of a=2a=2 (in fact for all x≠2x \neq 2), and k(2)=4=lim⁡x→2(x+2)k(2) = 4 = \lim_{x\to 2}(x+2), we get lim⁡x→2k(x)=4=k(2)\lim_{x\to2} k(x) = 4 = k(2), so kk is continuous at 22 — but this required the algebraic simplification (cancelling the common factor) before applying continuity facts, not a direct application of the quotient rule at the problematic point. Away from 22, e.g. at a=3a=3, part (5) applies directly to f(x)=x2−4f(x)=x^2-4, g(x)=x−2g(x) = x-2 with g(3)=1≠0g(3) = 1 \neq 0, confirming continuity there too, consistent with k(x)=x+2k(x)=x+2 being continuous everywhere. This example illustrates an important scope point: the quotient rule proves continuity of f/gf/g at points where g(a)≠0g(a)\neq 0; at points where g(a)=0g(a) = 0, the quotient rule is silent, and continuity (if it holds at all, as a removable-singularity phenomenon) must be checked by other means, such as algebraic simplification as done here.

CounterexampleDropping g(a)≠0g(a) \neq 0 in the quotient rule

The hypothesis g(a)≠0g(a) \neq 0 in part (5) of the theorem cannot be removed, even when ff and gg are both continuous everywhere (in fact even entire polynomials). Let D=RD = \mathbb{R}, and let

f(x)=1,g(x)=x,a=0.f(x) = 1, \qquad g(x) = x, \qquad a = 0.

Both ff and gg are continuous at a=0a=0 (indeed everywhere): ff is a constant function, gg is the identity function. But g(a)=g(0)=0g(a) = g(0) = 0. The quotient (fg)(x)=1x\left(\dfrac{f}{g}\right)(x) = \dfrac{1}{x} is not even defined at x=0x=0: the domain of f/gf/g is D′=R∖{0}D' = \mathbb{R}\setminus\{0\}, which does not contain a=0a=0 at all. So the very question "is f/gf/g continuous at 00?" is meaningless — there is no function value (f/g)(0)(f/g)(0) to compare a limit to. One might hope to patch this by defining (f/g)(0)(f/g)(0) to be some convenient real number, say (f/g)(0):=0(f/g)(0) := 0, and asking whether the resulting extended function is continuous at 00. It is not: as x→0+x \to 0^+, 1/x→+∞1/x \to +\infty, and as x→0−x\to 0^-, 1/x→−∞1/x \to -\infty; neither one-sided limit is even a finite real number, so lim⁡x→0(1/x)\lim_{x\to 0} (1/x) does not exist as a real number, no matter how (f/g)(0)(f/g)(0) is defined. Hence no choice of value at 00 can make f/gf/g continuous there. This shows the failure is not a technicality: without g(a)≠0g(a) \neq 0, the conclusion of part (5) — continuity of the quotient at aa — genuinely fails, and in the sharpest possible way (an essential, infinite discontinuity rather than a removable one). Compare this with Worked Example 2 above, where g(a)=0g(a) = 0 did allow removable behavior only because the numerator also vanished at aa in just the right way (a common factor could be cancelled) — a delicate, case-by-case circumstance that the general theorem does not and cannot guarantee.

Scope, edge cases & common traps

SituationWhat the theorem givesWhat it does not give
f,gf,g continuous at aaf±g,fgf\pm g, fg continuous at aaNothing about f∘gf\circ g (needs Composition of Continuous Functions)
f,gf,g continuous at aa, g(a)≠0g(a)\neq 0f/gf/g continuous at aa; g≠0g\neq 0 on a neighborhood of aaContinuity of f/gf/g at points where gg vanishes
g(a)=0g(a) = 0Nothing directlySometimes removable via algebra (Example 2); sometimes genuinely discontinuous (Counterexample)
f,gf,g continuous only at aa, not nearbySum/product still continuous at aaContinuity of f±gf\pm g or fgfg near aa
Continuity on all of DD vs. at a pointTheorem applies pointwise, then quantifies over DDUniform continuity is a stronger, separate notion, not addressed here

The mathematician behind it

The rigorous ε\varepsilon-δ\delta framework that makes this theorem precise is due to Augustin-Louis Cauchy and, in its final polished form, Karl Weierstrass, who insisted on banishing vague language like "infinitely small quantities" in favor of quantified inequalities.

Origins · 1 minKarl Weierstrass and how this was discovered
KW
Karl Weierstrass
1815–1897 · Prussia/Germany, foundations of analysis

Weierstrass was a German mathematician often called "the father of modern analysis." Trained originally for a career in law and finance, he taught secondary school for over a decade before his mathematical talent was recognized, after which he became a professor at the University of Berlin. He is credited with formalizing the ε\varepsilon-δ\delta definitions of limit and continuity used throughout this article, replacing earlier informal reasoning about infinitesimals with fully quantified statements. His rigorous style became the template for how limits, continuity, and their algebraic properties — exactly the content of this theorem — are proved to this day.

History
- 1821 — Cauchy's Cours d'Analyse gives an early rigorous-in-spirit treatment of limits and continuity, including implicit algebraic combination rules.
- 1861 — Weierstrass, in his Berlin lectures, presents the modern ε\varepsilon-δ\delta definition of continuity that this article's definition follows verbatim.
- 1872 — Weierstrass constructs a function continuous everywhere but differentiable nowhere, sharpening the community's understanding of exactly what continuity does and does not imply.
- 1880s — Textbooks begin systematically stating "algebra of limits" and "algebra of continuous functions" as named, reusable theorems rather than ad hoc computations.
- Present day — Every standard real analysis course (Rudin's Principles of Mathematical Analysis, Abbott's Understanding Analysis) presents this theorem essentially as given here, as the immediate sequel to the algebra of limits.
Why does continuity of a sum follow just from continuity of each summand?

Because continuity at aa is defined exactly as lim⁡x→af(x)=f(a)\lim_{x\to a} f(x) = f(a), and the limit of a sum is the sum of the limits whenever both limits exist (a fact proved directly from the ε\varepsilon-δ\delta definition of limit, independent of continuity). Applying that limit law to ff and gg at aa gives lim⁡x→a(f+g)(x)=f(a)+g(a)=(f+g)(a)\lim_{x\to a}(f+g)(x) = f(a)+g(a) = (f+g)(a), which is precisely the definition of f+gf+g being continuous at aa. No new estimate is needed; the whole content was already proved once, for limits.

Does the theorem say f/gf/g is continuous everywhere gg is continuous?

No — this is a common overreading. The theorem requires g(a)≠0g(a) \neq 0 at the specific point aa in question, not merely continuity of gg. If g(a)=0g(a)=0, part (5) simply does not apply at aa; the quotient might be undefined there, might blow up to infinity, or might extend continuously via cancellation, and these cases must be distinguished by direct examination, as shown in the worked examples and counterexample above.

Can this theorem be used to prove continuity of x\sqrt{x} or ∣x∣|x|?

Not directly for x\sqrt{x}, since square root is not built from xx using only +,−,×,÷+,-,\times,\div; it typically requires a separate argument (often via the Intermediate Value Theorem or the inverse function theorem for monotone continuous functions) or is treated via composition once its continuity is established elsewhere. The function ∣x∣|x|, however, can be handled: it is continuous by a direct ε\varepsilon-δ\delta argument using ∣∣x∣−∣a∣∣≤∣x−a∣\big||x|-|a|\big| \le |x-a|, though it is not naturally expressed as a finite algebraic combination of the identity function under +,−,×,÷+,-,\times,\div alone, so this particular theorem is not the natural tool for it either.

Why must we verify g(a)≠0g(a)\neq 0 before asserting f/gf/g is defined near aa, rather than after?

Because the very statement "f/gf/g is continuous at aa" presupposes (f/g)(a)(f/g)(a) exists and that f/gf/g is defined on a set having aa as a limit point from within its domain, so that the limit lim⁡x→a(f/g)(x)\lim_{x\to a}(f/g)(x) is even a sensible question. The proof therefore establishes, as Step 5a, that gg stays bounded away from zero on a neighborhood of aa, before invoking the quotient rule for limits in Step 5b. Skipping this step risks applying a limit law to an expression that is not defined on any punctured neighborhood of aa.

Is this theorem still true if ff and gg are only continuous at aa, not on a whole neighborhood of aa?

Yes for sums, differences, scalar multiples, and products — the proof only ever uses continuity at the single point aa, since the algebra of limits only requires the two limits at aa to exist. For quotients, the theorem needs g(a)≠0g(a)\ne 0 (a pointwise condition at aa) to conclude both that gg is nonzero on some neighborhood of aa and that f/gf/g is continuous at aa; it does not require gg to be continuous anywhere else.

How does this theorem connect to proving polynomials are continuous?

Every polynomial p(x)=cnxn+⋯+c1x+c0p(x) = c_n x^n + \cdots + c_1 x + c_0 is built from the identity function x↦xx\mapsto x and constants using only addition, scalar multiplication, and (repeated) multiplication. Since the identity and constants are continuous everywhere by direct verification, repeated application of parts (1), (3), (4) of this theorem shows every polynomial is continuous at every real number, with no further epsilon-delta work — this is exactly the content of Continuity of Polynomials Rational and Elementary Functions.

Before this

Where this leads