Continuity & Connectedness
Continuity gets a definition with no $\varepsilon$ in it: preimages of open sets are open. From there the two great theorems of first-year calculus — extreme value and intermediate value — fall out as one-line consequences of compactness and connectedness.
- Prove the $\varepsilon$-$\delta$, sequential and preimage definitions agree.
- Show continuous images of compact sets are compact, and cash it in.
- Prove continuity on a compact set upgrades to uniform continuity.
- Use connectedness to get the intermediate value theorem in $\mathbb{R}^n$.
The preimage definition is the one that generalises. It mentions no distance, so it survives into spaces where there is none, and it makes the interaction between continuity and compactness almost trivial to prove.
Uniform continuity is what makes numerical quadrature converge at a rate you can state in advance. The intermediate value theorem is the root-finding guarantee behind bisection. Connectedness is why a continuous deformation cannot tear a domain apart, which underwrites homotopy arguments everywhere.
Cauchy conflated continuity and uniform continuity in 1821, and the distinction was only isolated by Heine in 1872 — one of the errors that drove the whole rigorisation programme. Weierstrass then produced a function continuous everywhere and differentiable nowhere, ending the assumption that continuity implies smoothness anywhere.
Three definitions of continuity
For $f:A\to\mathbb{R}^m$ with $A\subseteq\mathbb{R}^n$ and $a\in A$, the following are equivalent:
Continuity meets compactness
If $K$ is compact and $f:K\to\mathbb{R}^m$ is continuous, then $f(K)$ is compact.
Three lines, because the preimage definition was chosen to make this easy.
A continuous $f:K\to\mathbb{R}$ on a nonempty compact $K$ attains a maximum and a minimum.
$f(K)$ is compact in $\mathbb{R}$, hence closed and bounded. So $\sup f(K)$ is finite and, being a limit point or member of a closed set, belongs to $f(K)$. Any preimage is a maximiser; likewise for the infimum.
A continuous $f$ on a compact $K$ is uniformly continuous: one $\delta$ works for every point at once.
$f(x)=1/x$ on $(0,1]$ is continuous but not uniformly continuous: as $x$ approaches $0$ the required $\delta$ shrinks to nothing. And $f(x)=x^2$ on $\mathbb{R}$ is continuous but not uniformly so. Drop compactness and the theorem dies.
Connectedness
$A$ is disconnected if $A=(U\cap A)\cup(V\cap A)$ for open $U,V$ with the two pieces nonempty and disjoint. Otherwise $A$ is connected. $A$ is path connected if any two points are joined by a continuous path inside $A$.
If $A$ is connected and $f$ is continuous, $f(A)$ is connected.
A disconnection of $f(A)$ by $U,V$ pulls back to a disconnection of $A$ by $f^{-1}(U),f^{-1}(V)$, which are open by the preimage definition.
If $A\subseteq\mathbb{R}^n$ is connected, $f:A\to\mathbb{R}$ is continuous, and $f$ takes values $c<d$, then it takes every value between.
$f(A)$ is a connected subset of $\mathbb{R}$, and the connected subsets of $\mathbb{R}$ are exactly the intervals. An interval containing $c$ and $d$ contains everything between.
The converse fails. The topologist's sine curve $\{(x,\sin(1/x)):0<x\le1\}$ together with the segment $\{0\}\times[-1,1]$ is connected but not path connected: no path can reach the segment from the curve, because the oscillation never settles.
For open subsets of $\mathbb{R}^n$ the two notions do coincide, which is why the distinction rarely bites in this course.
• Claiming $f$ open maps open sets to open sets. Continuity is about
preimages; $f(x)=x^2$ maps the open $(-1,1)$ to $[0,1)$.
• Using uniform continuity without a compact domain. On an open or
unbounded set it can fail.
• Assuming connected implies path connected. True for open sets in
$\mathbb{R}^n$, false in general.
• Proving continuity coordinate by coordinate and stopping. That does
work for the target — $f$ is continuous iff each $f_i$ is — but separate
continuity in each input variable is much weaker than joint
continuity.
Practice
Original problems written for this guide in the style of Spivak and Munkres exercises. Write a full solution before opening the answer.
Show $f(x,y)=\dfrac{xy}{x^2+y^2}$ (with $f(0,0)=0$) is continuous in each variable separately at the origin but not jointly.
Solution
Prove $\{(x,y):x^2+y^2<1\}$ is open using continuity.
Answer
Does $f(x)=x$ on $(0,1)$ attain a maximum? Which hypothesis fails?
Answer
Show $f(x)=\sin(1/x)$ is not uniformly continuous on $(0,1]$.
Solution
Prove a continuous $f:[0,1]\to[0,1]$ has a fixed point.
Solution
Prove a connected subset of $\mathbb{R}$ is an interval.
Solution
For nonempty $S$, show $x\mapsto\operatorname{dist}(x,S)$ is uniformly continuous on all of $\mathbb{R}^n$.
Solution
What are the possible images of a connected compact $K\subseteq\mathbb{R}^n$ under a continuous real function?
Solution
Expanded topic checklist
Course coverage. This unit is part of the complete MAT257Y1 topic map. It should cover the following items before you move on:
- Equivalent definitions. Prove $\varepsilon$-$\delta$, sequential and preimage continuity agree.
- Compactness consequences. Continuous image, extreme value theorem, uniform continuity.
- Connectedness. Continuous image, intermediate value theorem, the sine-curve counterexample.
- Failure modes. Separate versus joint continuity, and where each hypothesis is needed.
Use the current UofT MAT257Y1 calendar topics as the coverage spine, and pair lecture notes with Spivak's Calculus on Manifolds or Munkres' Analysis on Manifolds. The exact assigned textbook should still be checked against the instructor syllabus.
Preimage continuity plus compactness gives compact images, hence extreme values and uniform continuity. Preimage continuity plus connectedness gives the intermediate value theorem. Both patterns are the same two-line argument.
Deep practice extensions
Use these after the main practice set. They are designed to force definition-level reasoning, theorem selection, and mixed application rather than routine calculation only.
State continuity without $\varepsilon$ or $\delta$.
Guide
Name two theorems that need a compact domain.
Guide
Do continuous maps preserve compactness forwards or backwards?
Guide
Give the standard example.