Skip to main content

Section 4.1 Definition of Continuity and Examples

Subsection 4.1.1 Continuity at a Point

Let \(S \subseteq \R\) and let \(f \colon S \to \R\) be a function. We say that \(f\) is continuous at \(c \in S\) if for every \(\varepsilon \gt 0\) there exists \(\delta \gt 0\) such that whenever \(x \in S\) and \(|x-c| \lt \delta\text{,}\) we have
\begin{equation*} |f(x)-f(c)| \lt \varepsilon. \end{equation*}
In other words, \(f\) is continuous at \(c\) if the output \(f(x)\) can be made arbitrarily close to \(f(c)\) provided that the input \(x\) is sufficiently close to \(c\text{.}\)
If \(A \subseteq S\text{,}\) then \(f\) is continuous on \(A\) if it is continuous at every point of \(A\text{.}\) We say simply that \(f\) is continuous if it is continuous on its entire domain.
The definition refers only to points \(x\) that lie in the domain \(S\text{.}\) Thus, continuity at \(c\) concerns the behavior of \(f\) at domain points near \(c\text{;}\) we do not need \(f\) to be defined on an entire open interval around \(c\text{.}\)

Subsection 4.1.2 Cluster Points and Isolated Points

A neighborhood of a point \(c \in \R\) is a subset of \(\R\) that contains an open interval around \(c\text{.}\) In particular, every open interval containing \(c\) is a neighborhood of \(c\text{.}\)
Let \(S \subseteq \R\text{.}\) A real number \(c\) is called a cluster point of \(S\) if for every \(\delta \gt 0\) there exists \(x \in S\) such that \(x \neq c\) and \(|x-c| \lt \delta\text{.}\) In other words, \(c\) is a cluster point of \(S\) if every neighborhood of \(c\) contains a point in \(S\) other than \(c\text{.}\) A point \(c \in S\) is an isolated point of \(S\) if it is not a cluster point of \(S\text{.}\) That is, there exists \(\delta \gt 0\) such that
\begin{equation*} S \cap (c-\delta, c+\delta)=\{c\}. \end{equation*}
Equivalently, some neighborhood of \(c\) contains no points of \(S\) other than \(c\text{.}\) A cluster point of \(S\) need not belong to \(S\text{,}\) but an isolated point of \(S\text{,}\) by definition, must belong to \(S\text{.}\)

Example 4.1.1.

  • The set of cluster points of an open interval \((a,b)\) is the closed interval \([a,b]\text{.}\)
  • The set of isolated points of \(\Z\) is \(\Z\) itself. In other words, every integer is isolated.
  • In the set \(\{0\} \cup \{1/n : n \in \N\}\text{,}\) the point \(0\) is a cluster point, while each point \(1/n\) is an isolated point.

Proof.

Let \(c\) be an isolated point of the domain \(S\) of a function \(f\text{.}\) Then there exists \(\delta_0 \gt 0\) such that \(S \cap (c-\delta_0,c+\delta_0)=\{c\}\text{.}\) Thus, whenever \(x \in S\) and \(|x-c| \lt \delta_0\text{,}\) necessarily \(x=c\text{.}\) Hence
\begin{equation*} |f(x)-f(c)|=|f(c)-f(c)|=0 \end{equation*}
which is less than any positive \(\varepsilon\text{.}\) This shows that \(f\) is continuous at \(c\text{.}\)
A cluster point is also called a limit point. The following proposition explains this terminology.

Proof.

First suppose that \(c\) is a cluster point of \(S\text{.}\) We construct an injective sequence \((x_n)\) in \(S\) such that \(x_n \to c\text{.}\) Since \(c\) is a cluster point, there exists \(x_1 \in S\) such that \(0 \lt |x_1-c| \lt 1\text{.}\) Now suppose that \(x_1,\dots,x_{n-1}\) have been chosen in \(S\text{,}\) all distinct, with \(0 \lt |x_k-c| \lt 1/k\) for \(k=1,\dots,n-1\text{.}\) Let
\begin{equation*} \eta=\min\{|x_1-c|,\dots,|x_{n-1}-c|\} \gt 0. \end{equation*}
Because \(c\) is a cluster point of \(S\text{,}\) there exists \(x_n \in S\) such that
\begin{equation*} 0 \lt |x_n-c| \lt \min\{1/n,\eta\}. \end{equation*}
Then \(x_n \neq x_k\) for \(k=1,\dots,n-1\text{,}\) because \(|x_n-c| \lt |x_k-c|\text{.}\) Thus, by induction, we obtain an injective sequence \((x_n)\) in \(S\) with \(|x_n-c| \lt 1/n\) for every \(n\text{.}\) Since \(1/n \to 0\text{,}\) it follows that \(|x_n-c| \to 0\text{,}\) and hence \(x_n \to c\text{.}\)
Conversely, suppose there is an injective sequence \((x_n)\) in \(S\) such that \(x_n \to c\text{.}\) Let \(\delta \gt 0\text{.}\) Since \(x_n \to c\text{,}\) \(|x_n-c| \lt \delta\) for all \(n\) sufficiently large. In particular, the inequality is satisfied by infinitely many terms of the sequence. At most one of them can equal \(c\text{,}\) by injectivity. Therefore, \(x_N \neq c\) for some sufficiently large \(N\text{,}\) and \(|x_N-c| \lt \delta\) as well. This shows that every neighborhood of \(c\) contains a point of \(S\) other than \(c\text{.}\) Therefore, \(c\) is a cluster point of \(S\text{.}\)

Subsection 4.1.3 Examples of Continuous Functions

The simplest examples of continuous functions are the constant functions and the identity function \(\mathrm{id}(x)=x\text{.}\) We leave the justification of these statements as an exercise.

Example 4.1.4.

For any \(m \in \R\text{,}\) the function \(x \mapsto mx\) is continuous.
Fix \(x_0 \in \R\text{.}\) Given \(\ve \gt 0\text{,}\) choose \(\delta = \ve/(1+|m|)\text{.}\) Then \(\delta \gt 0\text{,}\) and whenever \(|x-x_0| \lt \delta\text{,}\)
\begin{equation*} |mx-mx_0| = |m||x-x_0| \lt (1+|m|)\delta = \ve. \end{equation*}

Checkpoint 4.1.5.

The absolute value function is continuous on \(\R\text{.}\)
Hint.
The preceding example implies that the absolute value function is continuous at every nonzero real number. It remains to show that it is also continuous at \(x=0\text{.}\)

Example 4.1.6.

The reciprocal function \(f(x)=1/x\) is continuous on \(\R \setminus \{0\}\text{.}\)
Fix \(x_0 \neq 0\text{.}\) Since \(x_0^2 \gt 0\text{,}\) the continuity of the function \(x \mapsto x_0x\) (ExampleΒ 4.1.4) gives \(\delta \gt 0\) such that
\begin{equation*} -\frac{x_0^2}{2} \lt x_0x - x_0^2 \lt \frac{x_0^2}{2} \end{equation*}
In particular, \(xx_0 \gt x_0^2/2\text{.}\) Thus,
\begin{equation*} \left|\frac{1}{x} - \frac{1}{x_0}\right| = \frac{|x-x_0|}{|xx_0|} \lt \frac{2}{x_0^2}|x-x_0| \end{equation*}
whenever \(|x-x_0| \lt \delta\text{.}\) From this we conclude that \(1/x\) is continuous at \(x_0\text{,}\) since \(|x-x_0| \to 0\) as \(x\to x_0\text{.}\) Finally, since \(x_0 \neq 0\) is arbitrary, we conclude that \(x \mapsto 1/x\) is continuous.

Example 4.1.7.

The function \(f(x)=\sqrt{x}\) is continuous on its domain \([0,\infty)\text{.}\) For \(x,c \ge 0\text{,}\)
\begin{equation*} |x-c|=|\sqrt{x}-\sqrt{c}|(\sqrt{x}+\sqrt{c}) \ge |\sqrt{x}-\sqrt{c}|^2. \end{equation*}
Given \(\varepsilon \gt 0\text{,}\) choose \(\delta=\varepsilon^2\text{.}\) Then for any \(x \ge 0\) with \(|x-c| \lt \delta\text{,}\)
\begin{equation*} |\sqrt{x}-\sqrt{c}|^2 \le |x-c| \lt \varepsilon^2, \end{equation*}
so \(|\sqrt{x}-\sqrt{c}| \lt \varepsilon\text{.}\) This holds for every \(c \in [0,\infty)\text{,}\) including the endpoint \(0\text{.}\)

Example 4.1.8.

The sine function is continuous at \(0\text{.}\) Measure angles in radians. For \(0 \lt h \lt \pi/2\text{,}\) let \(O\) be the center of the unit circle, \(A=(1,0)\text{,}\) and \(P=(\cos h,\sin h)\text{.}\) Let \(Q=(\cos h,0)\text{,}\) and let the ray \(OP\) meet the tangent line at \(A\) at \(T\text{.}\)
The unit circular sector OAP lies between triangles OQP and OAT. Q lies below P on OA; T lies above A on the tangent line and on the ray OP. The angle AOP is h.
Figure 4.1.9. A unit-circle sector and its inscribed and circumscribed right triangles.
The length \(PQ=\sin h\) is at most the chord length \(PA\text{,}\) which is at most the arc length \(h\text{.}\) Thus \(0 \le \sin h \le h\text{.}\) Since sine is odd, it follows that \(|\sin h| \le |h|\) whenever \(|h| \lt \pi/2\text{.}\) Given \(\varepsilon \gt 0\text{,}\) take \(\delta=\min\{\varepsilon,\pi/2\}\text{.}\) If \(|h| \lt \delta\text{,}\) then
\begin{equation*} |\sin h-\sin 0|=|\sin h|\le |h|\lt\varepsilon. \end{equation*}
Hence sine is continuous at \(0\text{.}\)

Example 4.1.10.

If the domain consists entirely of isolated points, then every function on that domain is continuous. For example, every function \(f \colon \Z \to \R\) is continuous, because each integer is an isolated point of \(\Z\text{.}\)
Later we will prove that sums, products, quotients (where the denominator is nonzero), and compositions of continuous functions are again continuous. From those general results it will follow that every polynomial is continuous on \(\R\text{,}\) every rational function is continuous on its domain, and standard functions such as \(\sin x\text{,}\) \(\cos x\text{,}\) \(e^x\text{,}\) and \(\ln x\) are continuous on their natural domains.