Skip to content

Mathematics · Ch 5 — Continuity and Differentiability

Algebra of Continuous Functions

5.2.1

Algebra of Continuous Functions

5.2.1 Algebra of Continuous Functions

Since continuity at a point is defined entirely by the limit at that point, continuous functions inherit the algebra of limits. This gives powerful tools to build new continuous functions from known ones.

Theorem 1: Algebraic Operations Preserve Continuity

Suppose ff and gg are two real functions that are both continuous at a real number cc. Then the following functions are also continuous at x=cx = c:

  1. f+gf + g (the sum)
  2. f−gf - g (the difference)
  3. f⋅gf \cdot g (the product)
  4. fg\frac{f}{g} (the quotient), provided g(c)≠0g(c) \neq 0
Important

These four results mirror the algebra of limits exactly. The reason: continuity at cc means lim⁡x→cf(x)=f(c)\lim_{x \to c} f(x) = f(c) and lim⁡x→cg(x)=g(c)\lim_{x \to c} g(x) = g(c), so the limit laws apply directly.

Proof of (1): Continuity of f+gf + g

The function f+gf + g is defined at x=cx = c by (f+g)(c)=f(c)+g(c)(f + g)(c) = f(c) + g(c), a real number since both f(c)f(c) and g(c)g(c) exist. Now compute the limit:

lim⁡x→c(f+g)(x)=lim⁡x→c[f(x)+g(x)](definition of f+g)=lim⁡x→cf(x)+lim⁡x→cg(x)(limit of a sum)=f(c)+g(c)(continuity of f and g)=(f+g)(c)\begin{aligned} \lim_{x \to c} (f + g)(x) &= \lim_{x \to c} [f(x) + g(x)] \quad \text{(definition of } f + g) \\ &= \lim_{x \to c} f(x) + \lim_{x \to c} g(x) \quad \text{(limit of a sum)} \\ &= f(c) + g(c) \quad \text{(continuity of } f \text{ and } g) \\ &= (f + g)(c) \end{aligned}

Since lim⁡x→c(f+g)(x)=(f+g)(c)\lim_{x \to c} (f + g)(x) = (f + g)(c), the function f+gf + g is continuous at x=cx = c.

›Proof

Proof of (2): Continuity of f−gf - g

lim⁡x→c(f−g)(x)=lim⁡x→c[f(x)−g(x)]=lim⁡x→cf(x)−lim⁡x→cg(x)(limit of a difference)=f(c)−g(c)(continuity of f and g)=(f−g)(c)\begin{aligned} \lim_{x \to c} (f - g)(x) &= \lim_{x \to c} [f(x) - g(x)] \\ &= \lim_{x \to c} f(x) - \lim_{x \to c} g(x) \quad \text{(limit of a difference)} \\ &= f(c) - g(c) \quad \text{(continuity of } f \text{ and } g) \\ &= (f - g)(c) \end{aligned}

Hence f−gf - g is continuous at x=cx = c.

›Proof

Proof of (3): Continuity of f⋅gf \cdot g

lim⁡x→c(f⋅g)(x)=lim⁡x→c[f(x)⋅g(x)]=(lim⁡x→cf(x))⋅(lim⁡x→cg(x))(limit of a product)=f(c)⋅g(c)(continuity of f and g)=(f⋅g)(c)\begin{aligned} \lim_{x \to c} (f \cdot g)(x) &= \lim_{x \to c} [f(x) \cdot g(x)] \\ &= \left( \lim_{x \to c} f(x) \right) \cdot \left( \lim_{x \to c} g(x) \right) \quad \text{(limit of a product)} \\ &= f(c) \cdot g(c) \quad \text{(continuity of } f \text{ and } g) \\ &= (f \cdot g)(c) \end{aligned}

Therefore f⋅gf \cdot g is continuous at x=cx = c.

›Proof

Proof of (4): Continuity of fg\frac{f}{g} (provided g(c)≠0g(c) \neq 0)

Since g(c)≠0g(c) \neq 0, the quotient is defined at x=cx = c by (fg)(c)=f(c)g(c)\left(\frac{f}{g}\right)(c) = \frac{f(c)}{g(c)}.

lim⁡x→c(fg)(x)=lim⁡x→cf(x)g(x)=lim⁡x→cf(x)lim⁡x→cg(x)(limit of a quotient, denominator non-zero)=f(c)g(c)(continuity of f and g)=(fg)(c)\begin{aligned} \lim_{x \to c} \left(\frac{f}{g}\right)(x) &= \lim_{x \to c} \frac{f(x)}{g(x)} \\ &= \frac{\displaystyle \lim_{x \to c} f(x)}{\displaystyle \lim_{x \to c} g(x)} \quad \text{(limit of a quotient, denominator non-zero)} \\ &= \frac{f(c)}{g(c)} \quad \text{(continuity of } f \text{ and } g) \\ &= \left(\frac{f}{g}\right)(c) \end{aligned}

Hence fg\frac{f}{g} is continuous at x=cx = c.

Watch out

The condition g(c)≠0g(c) \neq 0 is essential. If g(c)=0g(c) = 0, the quotient may still be continuous at cc in special cases (e.g., after cancellation), but Theorem 1 does not guarantee it. Always check the denominator at the point of interest.

Important Special Cases

Special Case of (3): Multiplying by a Constant

If ff is a constant function f(x)=λf(x) = \lambda, then property (3) gives that (λ⋅g)(x)=λ⋅g(x)(\lambda \cdot g)(x) = \lambda \cdot g(x) is continuous wherever gg is continuous. In particular, taking λ=−1\lambda = -1, the continuity of gg implies the continuity of −g-g.

Special Case of (4): Constant Numerator

If f(x)=λf(x) = \lambda, then property (4) gives that (λg)(x)=λg(x)\left(\frac{\lambda}{g}\right)(x) = \frac{\lambda}{g(x)} is continuous wherever g(x)≠0g(x) \neq 0. In particular, taking λ=1\lambda = 1, the continuity of gg implies the continuity of 1g\frac{1}{g} at all points where g(x)≠0g(x) \neq 0.

Tip

These special cases are practical: instead of reproving continuity for every scaled or reciprocal function, note that they are built from continuous functions using the algebra rules.

Composition of Continuous Functions

Theorem 2: Continuity of Composite Functions

Suppose ff and gg are real-valued functions such that (f∘g)(f \circ g) is defined at cc. If gg is continuous at cc and ff is continuous at g(c)g(c), then (f∘g)(f \circ g) is continuous at cc. …

Theorem 1

Theorem 2: Continuity of Composite Functions

Suppose ff and gg are real-valued functions such that the composite function (f∘g)(f \circ g) is defined at cc. If gg is continuous at cc and ff is continuous at g(c)g(c), then the composite function f∘gf \circ g is continuous at cc.

In symbols:

If lim⁡x→cg(x)=g(c)\lim_{x \to c} g(x) = g(c) and lim⁡t→g(c)f(t)=f(g(c))\lim_{t \to g(c)} f(t) = f(g(c)), then lim⁡x→cf(g(x))=f(g(c))\lim_{x \to c} f(g(x)) = f(g(c)).

Important

The theorem requires two continuity checks: the inner function at cc, and the outer function at the value g(c)g(c). Both must hold for the composite to be continuous at cc.


Complete Proof

›Proof

Step 1: Set up the limit we need to evaluate.

We want to show lim⁡x→c(f∘g)(x)=(f∘g)(c)\lim_{x \to c} (f \circ g)(x) = (f \circ g)(c).

By definition, (f∘g)(x)=f(g(x))(f \circ g)(x) = f(g(x)) and (f∘g)(c)=f(g(c))(f \circ g)(c) = f(g(c)).

So we need lim⁡x→cf(g(x))=f(g(c))\lim_{x \to c} f(g(x)) = f(g(c)).

Step 2: Use the continuity of gg at cc.

Since gg is continuous at cc, we have lim⁡x→cg(x)=g(c)\lim_{x \to c} g(x) = g(c).

This means: as xx approaches cc, the values g(x)g(x) approach g(c)g(c).

Step 3: Use the continuity of ff at g(c)g(c).

Since ff is continuous at g(c)g(c), we have lim⁡t→g(c)f(t)=f(g(c))\lim_{t \to g(c)} f(t) = f(g(c)).

This means: whenever tt approaches g(c)g(c), the values f(t)f(t) approach f(g(c))f(g(c)).

Step 4: Combine the two limits.

Let t=g(x)t = g(x). As x→cx \to c, we know t→g(c)t \to g(c) (from Step 2).

Then lim⁡x→cf(g(x))=lim⁡t→g(c)f(t)\lim_{x \to c} f(g(x)) = \lim_{t \to g(c)} f(t) (by substituting t=g(x)t = g(x)).

And lim⁡t→g(c)f(t)=f(g(c))\lim_{t \to g(c)} f(t) = f(g(c)) (from Step 3).

Step 5: Conclude.

Therefore lim⁡x→cf(g(x))=f(g(c))\lim_{x \to c} f(g(x)) = f(g(c)), which is exactly lim⁡x→c(f∘g)(x)=(f∘g)(c)\lim_{x \to c} (f \circ g)(x) = (f \circ g)(c).

Hence f∘gf \circ g is continuous at cc. □\square

Note

The substitution t=g(x)t = g(x) in Step 4 is valid because gg is continuous at cc — this guarantees that as xx gets arbitrarily close to cc, g(x)g(x) gets arbitrarily close to g(c)g(c), so the limit of ff as t→g(c)t \to g(c) captures exactly what happens to f(g(x))f(g(x)) as x→cx \to c.


When Is This Theorem Used? …

Theorem 2

Theorem 2: Continuity of Composite Functions

Suppose ff and gg are real-valued functions such that the composite function (f∘g)(f \circ g) is defined at cc. If gg is continuous at cc and ff is continuous at g(c)g(c), then the composite function f∘gf \circ g is continuous at cc.

In symbols:

If lim⁡x→cg(x)=g(c)\lim_{x \to c} g(x) = g(c) and lim⁡t→g(c)f(t)=f(g(c))\lim_{t \to g(c)} f(t) = f(g(c)), then lim⁡x→cf(g(x))=f(g(c))\lim_{x \to c} f(g(x)) = f(g(c)).

Important

The theorem requires two continuity checks: the inner function at cc, and the outer function at the value g(c)g(c). Both must hold for the composite to be continuous at cc.


Complete Proof

›Proof

Step 1: Set up the limit we need to evaluate.

We want to show lim⁡x→c(f∘g)(x)=(f∘g)(c)\lim_{x \to c} (f \circ g)(x) = (f \circ g)(c).

By definition, (f∘g)(x)=f(g(x))(f \circ g)(x) = f(g(x)) and (f∘g)(c)=f(g(c))(f \circ g)(c) = f(g(c)).

So we need lim⁡x→cf(g(x))=f(g(c))\lim_{x \to c} f(g(x)) = f(g(c)).

Step 2: Use the continuity of gg at cc.

Since gg is continuous at cc, we have lim⁡x→cg(x)=g(c)\lim_{x \to c} g(x) = g(c).

This means: as xx approaches cc, the values g(x)g(x) approach g(c)g(c).

Step 3: Use the continuity of ff at g(c)g(c).

Since ff is continuous at g(c)g(c), we have lim⁡t→g(c)f(t)=f(g(c))\lim_{t \to g(c)} f(t) = f(g(c)).

This means: whenever tt approaches g(c)g(c), the values f(t)f(t) approach f(g(c))f(g(c)).

Step 4: Combine the two limits.

Let t=g(x)t = g(x). As x→cx \to c, we know t→g(c)t \to g(c) (from Step 2).

Then lim⁡x→cf(g(x))=lim⁡t→g(c)f(t)\lim_{x \to c} f(g(x)) = \lim_{t \to g(c)} f(t) (by substituting t=g(x)t = g(x)).

And lim⁡t→g(c)f(t)=f(g(c))\lim_{t \to g(c)} f(t) = f(g(c)) (from Step 3).

Step 5: Conclude.

Therefore lim⁡x→cf(g(x))=f(g(c))\lim_{x \to c} f(g(x)) = f(g(c)), which is exactly lim⁡x→c(f∘g)(x)=(f∘g)(c)\lim_{x \to c} (f \circ g)(x) = (f \circ g)(c).

Hence f∘gf \circ g is continuous at cc. □\square

Note

The substitution t=g(x)t = g(x) in Step 4 is valid because gg is continuous at cc — this guarantees that as xx gets arbitrarily close to cc, g(x)g(x) gets arbitrarily close to g(c)g(c), so the limit of ff as t→g(c)t \to g(c) captures exactly what happens to f(g(x))f(g(x)) as x→cx \to c.


When Is This Theorem Used? …