Calculus 1 · Module 03 / 10 · Continuity
03 Core Concept Module

Continuity

A function is continuous where its graph has no breaks — and that one property is what makes the big theorems of calculus work.

x = a left limit f(a) and right limit
jump discontinuity — the one-sided limits disagree, so the pen has to lift
Tutorial · ~1000 words

01The three-part definition

A function $f$ is continuous at $x = a$ when three things hold, and each can fail independently:

  1. $f(a)$ is defined — the point exists.
  2. $\lim\limits_{x \to a} f(x)$ exists — both one-sided limits agree.
  3. $\lim\limits_{x \to a} f(x) = f(a)$ — the limit equals the actual value.

The intuition is exactly what you'd guess: you can draw the graph through $x = a$ without lifting your pen. Condition 3 is the one students forget to check — a function can be defined at $a$ and have a limit at $a$, yet be discontinuous because the two don't match. Checking continuity is literally checking these three boxes in order, and exam problems are graded that way.

02The three ways continuity fails

Each failed condition produces its own species of discontinuity:

The names matter: "removable" means you could repair the function by redefining a single point. Jumps and asymptotes can't be patched — no single value fixes them.

03Where the familiar functions are continuous

Good news: almost everything you work with is continuous on its domain. Polynomials are continuous everywhere. Rational functions are continuous except where the denominator is zero. Root, exponential, logarithmic, and trig functions are continuous at every point of their domains. Better still, continuity survives arithmetic: sums, differences, products, quotients (where defined), and compositions of continuous functions are continuous.

The practical consequence: to find the discontinuities of a typical function, just find where its domain breaks — denominators hitting zero, even roots of negatives, logs of non-positives. That is why the domain drills in Module 01 keep paying rent.

04Repairing a removable discontinuity

If $\lim\limits_{x\to a} f(x) = L$ exists but $f(a)$ is missing or wrong, define (or redefine) $f(a) = L$ and the function becomes continuous there. Example: $f(x) = \dfrac{x^2 - 4}{x - 2}$ is undefined at $2$, but the limit there is $4$, so the repaired function

$$g(x) = \begin{cases} \dfrac{x^2-4}{x-2} & x \ne 2 \\[4pt] 4 & x = 2 \end{cases}$$

is continuous everywhere. This "fill in the hole with the limit" move is a standard exam question and a preview of how mathematicians extend functions.

05Making piecewise functions continuous

The classic problem: find the constant $k$ that glues two pieces together. The recipe is always the same — set the two one-sided limits at the seam equal to each other (and to the function's value there), then solve for $k$. For

$$f(x) = \begin{cases} kx + 1 & x < 2 \\ x^2 & x \ge 2 \end{cases}$$

continuity at $x = 2$ requires $\lim\limits_{x\to 2^-} f(x) = \lim\limits_{x\to 2^+} f(x)$, i.e. $2k + 1 = 4$, so $k = \tfrac{3}{2}$. Two unknown constants means two seams (or one seam plus another condition) and a small system of equations — same idea, more algebra.

06Continuity on intervals

A function is continuous on an open interval $(a,b)$ if it's continuous at every point inside. On a closed interval $[a,b]$ we only ask for one-sided continuity at the endpoints: right-continuity at $a$ ($\lim_{x\to a^+} f(x) = f(a)$) and left-continuity at $b$. That's why $\sqrt{x}$ counts as continuous on $[0, \infty)$ even though it has no left side at $0$. Closed-interval continuity is the precise hypothesis that the big theorems below demand — and the Extreme Value Theorem in Module 08 will demand it again.

07The Intermediate Value Theorem

Here's the payoff for all this care. IVT: if $f$ is continuous on $[a,b]$ and $N$ is any value between $f(a)$ and $f(b)$, then there is at least one $c$ in $(a,b)$ with $f(c) = N$. A continuous function can't skip values — to get from one height to another, it must pass through everything in between.

The killer application is proving roots exist. Take $f(x) = x^3 + x - 1$. Then $f(0) = -1 < 0$ and $f(1) = 1 > 0$. Since $f$ is continuous (it's a polynomial) and $0$ lies between $-1$ and $1$, IVT guarantees some $c$ in $(0,1)$ with $f(c) = 0$. You've proven a root exists without finding it — which is exactly what the theorem is for. Note what IVT does not say: it doesn't find $c$, and it doesn't say $c$ is unique.

08Why continuity matters for what's next

Continuity is the admission ticket for nearly every major theorem ahead. Differentiability (Module 04) is a stronger condition: every differentiable function is continuous, but not conversely — $|x|$ is continuous at $0$ yet has no derivative there. The Extreme Value Theorem needs continuity on a closed interval to promise a max and min. The Mean Value Theorem needs it. The definite integral (Module 10) is guaranteed to exist for continuous functions. When a theorem fails in a homework problem, the first thing to check is whether a continuity hypothesis was quietly violated.

Checking continuity at a point, in exam order. (1) Is $f(a)$ defined? (2) Do the one-sided limits both exist and agree? (3) Does the limit equal $f(a)$? First check that fails names the discontinuity: no value or mismatched value with a limit → removable; disagreeing one-sided limits → jump; unbounded → infinite.

Practice · 20 problems · tap to reveal each solution
1

Using the three-part definition, show that $f(x) = x^2 + 2x$ is continuous at $x = 1$.

Solution

$f(1) = 3$ (defined). $\lim\limits_{x\to 1}(x^2+2x) = 3$ by substitution (exists). They're equal → continuous.

2

Find and classify all discontinuities of $f(x) = \dfrac{x^2 - 1}{x - 1}$.

Solution

Factor: $\dfrac{(x-1)(x+1)}{x-1} = x+1$ for $x \ne 1$. Limit at $1$ is $2$ but $f(1)$ is undefined.

Removable discontinuity at $x = 1$.

3

Find and classify all discontinuities of $g(x) = \dfrac{x + 3}{x^2 - 4}$.

Solution

Denominator zero at $x = \pm 2$; numerator nonzero at both, so the function blows up.

Infinite discontinuities (vertical asymptotes) at $x = 2$ and $x = -2$.

4

Classify the discontinuity of $f(x) = \dfrac{|x - 5|}{x - 5}$ at $x = 5$.

Solution

Left limit: $-1$. Right limit: $+1$. Both exist but disagree.

Jump discontinuity at $x = 5$.

5

Find $k$ so that $f(x) = \begin{cases} kx + 1 & x < 2 \\ x^2 & x \ge 2 \end{cases}$ is continuous everywhere.

Solution

Match at the seam: $2k + 1 = 4 \Rightarrow k = \dfrac{3}{2}$.

6

Find $c$ so that $g(x) = \begin{cases} x^2 - c & x \le 3 \\ 2cx + 1 & x > 3 \end{cases}$ is continuous at $x = 3$.

Solution

$9 - c = 6c + 1 \Rightarrow 8 = 7c \Rightarrow c = \dfrac{8}{7}$.

7

Is $f(x) = \begin{cases} \dfrac{x^2 - 16}{x - 4} & x \ne 4 \\ 6 & x = 4 \end{cases}$ continuous at $x = 4$? If not, classify and repair.

Solution

Limit: $\lim\limits_{x\to 4}(x+4) = 8$, but $f(4) = 6$. Limit exists yet mismatches the value.

Removable — redefine $f(4) = 8$ to repair.

8

Where is $f(x) = \dfrac{\sqrt{x + 1}}{x - 3}$ continuous?

Solution

Need $x \ge -1$ for the root and $x \ne 3$ for the denominator.

Continuous on $[-1, 3) \cup (3, \infty)$.

9

Use the IVT to show $f(x) = x^3 + x - 1$ has a root in $(0, 1)$.

Solution

$f$ is a polynomial, hence continuous on $[0,1]$. $f(0) = -1 < 0$ and $f(1) = 1 > 0$.

Since $0$ lies between $f(0)$ and $f(1)$, IVT gives $c \in (0,1)$ with $f(c) = 0$. ∎

10

Use the IVT to show $\cos x = x$ has a solution in $(0, 1)$.

Solution

Let $h(x) = \cos x - x$, continuous everywhere. $h(0) = 1 > 0$; $h(1) = \cos 1 - 1 \approx -0.46 < 0$.

IVT gives $c \in (0,1)$ with $h(c) = 0$, i.e. $\cos c = c$. ∎

11

True or false: if $f(1) = -2$ and $f(5) = 7$, then $f$ must equal $0$ somewhere in $(1, 5)$.

Solution

False as stated — IVT requires continuity. If $f$ is continuous on $[1,5]$, then true; without continuity $f$ can jump over $0$.

12

Determine where $f(x) = \dfrac{x^2 + x - 6}{x^2 - 9}$ has a removable discontinuity and where it has an asymptote.

Solution

Factor: $\dfrac{(x+3)(x-2)}{(x+3)(x-3)}$. The factor $(x+3)$ cancels → removable at $x = -3$ (limit $= \tfrac{-5}{-6} = \tfrac{5}{6}$).

$(x - 3)$ does not cancel → infinite discontinuity at $x = 3$.

13

Is $f(x) = |x|$ continuous at $x = 0$?

Solution

Yes. Left and right limits are both $0$, and $f(0) = 0$. (It's differentiability that fails at $0$ — coming in Module 04.)

14

Find the values of $x$ where $f(x) = \tan x$ is discontinuous, and classify them.

Solution

$\tan x = \dfrac{\sin x}{\cos x}$ fails where $\cos x = 0$: $x = \dfrac{\pi}{2} + n\pi$ for integer $n$.

The function is unbounded there → infinite discontinuities.

15

Let $f(x) = \begin{cases} \dfrac{\sin x}{x} & x \ne 0 \\ k & x = 0 \end{cases}$. What value of $k$ makes $f$ continuous at $0$?

Solution

The special limit gives $\lim\limits_{x\to 0}\dfrac{\sin x}{x} = 1$, so $k = 1$.

16

Find $a$ and $b$ so that $f(x) = \begin{cases} 2x & x < 1 \\ ax + b & 1 \le x < 3 \\ x^2 - 1 & x \ge 3 \end{cases}$ is continuous everywhere.

Solution

Seam at $1$: $a + b = 2$. Seam at $3$: $3a + b = 8$.

Subtract: $2a = 6 \Rightarrow a = 3$, then $b = -1$.

17

A continuous function has $f(-2) = 4$ and $f(3) = 4$. Must there be a $c$ with $f(c) = 0$? Must there be one with $f(c) = 4.5$?

Solution

Neither is guaranteed. IVT only promises values between $f(-2) = 4$ and $f(3) = 4$ — that's just the single value $4$. The function could stay above $0$ the whole way, and nothing forces it to reach $4.5$.

18

Where is $f(x) = \ln(x - 2) + \sqrt{10 - x}$ continuous?

Solution

Log needs $x > 2$; root needs $x \le 10$. Both pieces are continuous on their domains, and a sum of continuous functions is continuous.

Continuous on $(2, 10]$.

19

Show that $x^5 - 3x^2 + 1 = 0$ has at least two solutions in $[-1, 1]$.

Solution

$f(-1) = -1 - 3 + 1 = -3 < 0$; $f(0) = 1 > 0$; $f(1) = 1 - 3 + 1 = -1 < 0$.

IVT on $[-1, 0]$ gives one root; IVT on $[0, 1]$ gives another. Two sign changes → two roots. ∎

20

Challenge: $f(x) = \begin{cases} x^2 & x \text{ rational} \\ 0 & x \text{ irrational} \end{cases}$. At which single point is $f$ continuous?

Solution

Only at $x = 0$. Near $0$, both branch values ($x^2$ and $0$) squeeze to $0 = f(0)$.

At any $a \ne 0$, rationals give values near $a^2 \ne 0$ while irrationals give $0$ — no limit exists.