← MATH 161 MathScape 0 MATH161

Properties of Continuous Functions

7 min read

Jump to a section
Reference: Stewart §1.8

Textbook Reference

Primary source OpenStax Calculus Volume 1, Section 2.4: “Continuity”
Book URL https://openstax.org/details/books/calculus-volume-1

Freely available and openly licensed.


Key idea

If you know that two functions are continuous at a point, you can immediately conclude that their sum, difference, product, and (when the denominator is nonzero) quotient are also continuous there. This is not obvious from the definition; it follows directly from the limit laws.

The composite rule is especially important: if $g$ is continuous at $a$ and $f$ is continuous at $g(a)$, then $f \circ g$ is continuous at $a$. This means evaluating a limit of a composite is as simple as plugging in -- you do not need to decompose it. Almost every function you encounter in calculus is built from simple continuous pieces by sum, product, quotient, and composition, so these rules explain why direct substitution works so broadly.


Prerequisite Check

Before this lesson, make sure you can do all of the following:


Quick Reference

Continuity laws. If $f$ and $g$ are both continuous at $a$, then so are:

  1. $f + g$ and $f - g$
  2. $c \cdot f$ for any constant $c$
  3. $f \cdot g$
  4. $f / g$, provided $g(a) \neq 0$

Composite rule. If $g$ is continuous at $a$ and $f$ is continuous at $g(a)$, then $f \circ g$ is continuous at $a$: \[ \lim_{x \to a} f(g(x)) = f\!\left(\lim_{x \to a} g(x)\right) = f(g(a)). \]

The key consequence. You can evaluate the limit of a continuous composite by “pushing the limit inside”: $\lim_{x \to a} f(g(x)) = f(g(a))$ whenever both $f$ and $g$ meet the continuity hypotheses.


Key Concepts

1. The Arithmetic Laws for Continuity

These laws follow directly from the corresponding limit laws. At a point $a$ where both $f$ and $g$ are continuous:

\[ \lim_{x \to a} [f(x) + g(x)] = \lim_{x \to a} f(x) + \lim_{x \to a} g(x) = f(a) + g(a). \]

So $f + g$ is continuous at $a$ (its limit equals its value at $a$). The same argument works for $f - g$, $f \cdot g$, and $f/g$.

Important note on division. The quotient $f/g$ is continuous at $a$ only if $g(a) \neq 0$. If $g(a) = 0$, the quotient may have a vertical asymptote or a removable discontinuity at $a$.

Example 1. If $f(x) = x^2 + 1$ and $g(x) = \cos x$, then $h(x) = (x^2 + 1)\cos x$ is continuous everywhere (product of two everywhere-continuous functions).

Example 2. $r(x) = \dfrac{x^2 + 3x}{x - 2}$ is continuous at every $x \neq 2$ (quotient of polynomials; denominator vanishes at $x = 2$).


2. Continuity of Composites

The composite rule. If $\lim_{x \to a} g(x) = L$ and $f$ is continuous at $L$, then \[ \lim_{x \to a} f(g(x)) = f(L). \]

When $g$ itself is continuous at $a$, $L = g(a)$, and the formula becomes $\lim_{x \to a} f(g(x)) = f(g(a))$.

This means the limit “passes through” the outer function $f$, because $f$ is continuous at the limiting value.

Example 3. Evaluate $\displaystyle\lim_{x \to 0} \sin(x^2 + 1)$.

The inner function $g(x) = x^2 + 1$ is continuous at $x = 0$ (polynomial). The outer function $f(t) = \sin t$ is continuous at $g(0) = 1$. So: \[ \lim_{x \to 0} \sin(x^2 + 1) = \sin(0 + 1) = \sin(1). \]

Example 4. Evaluate $\displaystyle\lim_{x \to 4} \sqrt{x^2 - 7}$.

$g(x) = x^2 - 7$ is continuous at $x = 4$; $g(4) = 9 > 0$. The square root function $f(t) = \sqrt{t}$ is continuous at $t = 9$ (positive). So: \[ \lim_{x \to 4} \sqrt{x^2 - 7} = \sqrt{4^2 - 7} = \sqrt{9} = 3. \]


3. Why the Hypothesis on the Outer Function Matters

The composite rule requires $f$ to be continuous at the limit of $g$. If $f$ has a discontinuity exactly at $g(a)$, the rule breaks down.

Example 5. Let $f(x) = \begin{cases} 1 & x > 0 \\ 0 & x \leq 0 \end{cases}$ and $g(x) = x\sin(1/x)$ for $x \neq 0$, $g(0) = 0$.

We know $\lim_{x \to 0} g(x) = 0 = g(0)$, so $g$ is continuous at 0.

But $f$ is discontinuous at 0 (jump: left limit is 0, right limit is 1).

Now consider $\lim_{x \to 0} f(g(x))$. Because $g(x)$ oscillates and passes through both positive and non-positive values near $x = 0$, $f(g(x))$ oscillates between 0 and 1 and does not settle. The composite rule fails because $f$ is not continuous at $g(0) = 0$.


4. Building Complex Continuous Functions

Every function built by finitely many arithmetic operations and compositions from continuous pieces is continuous wherever the result is defined.

Example 6. Show that $h(x) = \dfrac{\sin(x^2)}{\sqrt{x + 4}}$ is continuous on $(-4, \infty)$.

So $h$ is continuous on $(-4, \infty)$.


Common Errors

Error Example Correction
Applying the quotient law when denominator is zero Claiming $f/g$ is continuous at $a$ when $g(a) = 0$ Check $g(a) \neq 0$ before applying the quotient rule
Forgetting the composite rule requires $f$ continuous at $L$ Applying composite rule when $f$ is discontinuous at $g(a)$ Verify continuity of the outer function at the relevant point
Thinking “defined at $a$” implies continuous at $a$ Claiming a piecewise function is continuous just because it has a value Continuity requires the limit to equal the function value

Leveled Practice

Level 1 -- Applying the Laws

Problem 1. Explain why $h(x) = x^3 \cos x + 7$ is continuous everywhere, citing the relevant laws.

Show answer

$x^3$ and $\cos x$ are both continuous everywhere. Their product $x^3\cos x$ is continuous everywhere (product law). Adding the constant 7 preserves continuity (sum law). So $h$ is continuous everywhere.


Problem 2. Where is $r(x) = \dfrac{x^2 - 1}{x^2 + x - 6}$ continuous?

Show answer

The denominator factors as $(x+3)(x-2)$, which is zero at $x = -3$ and $x = 2$. $r$ is continuous at all other real numbers ($x \neq -3$ and $x \neq 2$).

(At $x = -3$ and $x = 2$: check the numerator. At $x = 2$: $4 - 1 = 3 \neq 0$, so $x = 2$ is a genuine vertical asymptote. At $x = -3$: $9 - 1 = 8 \neq 0$, so $x = -3$ is a genuine vertical asymptote as well.)


Level 2 -- Composite Rule

Problem 3. Evaluate $\displaystyle\lim_{x \to \pi} \cos(x/2 + \pi)$.

Show answer

The inner function $g(x) = x/2 + \pi$ is continuous at $x = \pi$; $g(\pi) = \pi/2 + \pi = 3\pi/2$. The cosine is continuous everywhere. So: \[ \lim_{x \to \pi} \cos\!\left(\frac{x}{2} + \pi\right) = \cos\!\left(\frac{3\pi}{2}\right) = 0. \]


Problem 4. Evaluate $\displaystyle\lim_{x \to 2} \sqrt{\frac{x^2 + 5}{x - 1}}$.

Show answer

Inner: $g(x) = \dfrac{x^2+5}{x-1}$. At $x = 2$: denominator $= 1 \neq 0$, so $g$ is continuous at 2. $g(2) = 9/1 = 9 > 0$.

Outer: $\sqrt{\cdot}$ is continuous at $9$. By composite rule: \[ \lim_{x \to 2} \sqrt{\frac{x^2+5}{x-1}} = \sqrt{9} = 3. \]


Level 3 -- Analysis

Problem 5. Let $f(x) = \dfrac{\sin x}{x}$ for $x \neq 0$ and $f(0) = 1$. Show that $f$ is continuous at $x = 0$ by verifying all three parts of the definition. Use the known limit $\lim_{x \to 0} \frac{\sin x}{x} = 1$.

Show answer
  1. $f(0)$ is defined: $f(0) = 1$.

  2. $\lim_{x \to 0} f(x) = \lim_{x \to 0} \frac{\sin x}{x} = 1$ (given).

  3. $\lim_{x \to 0} f(x) = 1 = f(0)$.

All three parts are satisfied. $f$ is continuous at $x = 0$.


Problem 6. Suppose $f$ is continuous at 3 and $g$ is defined by $g(x) = f(x^2 - 5)$. At which value of $x$ does the composite rule guarantee $g$ is continuous? Explain.

Show answer

The composite rule applies at $x = a$ when the inner function $h(x) = x^2 - 5$ satisfies $h(a) = 3$ (since $f$ is continuous at 3). Solve $x^2 - 5 = 3$: $x^2 = 8$, $x = \pm 2\sqrt{2}$.

At $x = 2\sqrt{2}$ and $x = -2\sqrt{2}$: $h$ is continuous (polynomial), $h(a) = 3$, and $f$ is continuous at 3. So $g$ is continuous at $x = \pm 2\sqrt{2}$ by the composite rule.


Common Misconceptions

Common misconception

the quotient of two continuous functions is continuous wherever both are defined. The quotient $f/g$ requires $g(x) \neq 0$, not just that both functions are individually defined. Even if $g(a) = 0$ and $f(a)$ is defined, the quotient is not defined at $a$ and certainly not continuous there. Continuity of $f/g$ at $a$ requires $g(a) \neq 0$ as an explicit additional condition beyond continuity of $f$ and $g$ separately.

Common misconception

the composite limit rule $\lim_{x \to a} f(g(x)) = f(\lim_{x \to a} g(x))$ applies in all cases. This rule requires $f$ to be continuous at $\lim_{x \to a} g(x)$. If $g(x) \to L$ but $f$ has a discontinuity at $L$, then $f(g(x))$ may not approach $f(L)$. Checking continuity of the outer function at the inner limit value is an essential step, not an optional one.


Mastery Checklist

You have mastered this skill when you can do all of the following without referring to notes:


Mental Model

The continuity laws say: nice operations preserve the “no surprises” property.

If two functions have no surprises at $a$ (they equal their limits there), then combining them by addition, multiplication, or division (when safe) produces a combined function that also has no surprises at $a$. The limit laws guarantee this.

The composite rule adds: passing a limit through an outer function is safe if the outer function has no surprises at the limiting value. The limit of the inner function becomes the input of the outer function, and continuity at that input is exactly what’s needed to push the limit all the way through.

This is why you can evaluate $\lim_{x \to 0} e^{\sin x}$ as $e^{\sin 0} = e^0 = 1$ without any further work: every function in the chain is continuous at every relevant point.


Connections

Within Calculus I (MATH161)


Back to Calculus I Skills | Previous: Continuity at a Point | Next: Continuity on an Interval