Skip to main content

Section 6 Continuity: definition

Definition 6.1. Interior points and endpoints.

Let \(f\) be a function with domain \(D\text{.}\)
  • Interior point.
    An element \(a\in D\) is an interior point of \(D\) if \(D\) contains an open interval that contains \(a\text{:}\) i.e., \(a\in (c,d)\) and \((c,d)\subseteq D\text{.}\)
  • Endpoints.
    An element \(a\in D\) is a left endpoint of \(D\) if it is not an interior point of \(D\) and \(D\) contains an interval of the form \([a,d)\text{.}\)
    An element \(a\in D\) is a right endpoint of \(D\) if it is not an interior point of \(D\) and \(D\) contains an interval of the form \((c,a]\text{.}\) with \(a\in (c,d)\text{.}\)
    An element \(a\in D\) is an endpoint of \(D\) if it is either left or right endpoint.

Definition 6.2. Continuity.

Let \(f\) be a function with domain \(D\text{,}\) and suppose \(a\in D\) is either an interior point or an endpoint of \(D\text{.}\) The function \(f\) is continuous at \(a\) if the limit of \(f\) at \(a\) exists and is equal to the value of \(f\) at \(a\text{:}\) i.e., if
  1. \(\lim\limits_{x\to a}f(x)\) exists, and
  2. \(\lim\limits_{x\to a}f(x)=f(a)\text{.}\)
The function \(f\) is discontinuous at \(a\) if it is not continuous there.
For a subset \(I\subseteq D\text{,}\) we say \(f\) is continuous on \(I\) if \(f\) is continuous at all interior or endpoint points of \(D\) lying in \(I\text{.}\) We say \(f\) is continuous if it is continuous on its entire domain.

Remark 6.3. Continuity at \(a\).

Let \(f\) be a function with domain \(D\text{.}\) Observe that our definition of continuity (and discontinuity) only applies to elements of the domain. (In fact, it only applies to elements of the domain that are either interior points or endpoints.)
For example, consider the function \(f(x)=1/x\) with domain
\begin{equation*} D=\R-\{0\}=(-\infty, 0)\cup (0,\infty)\text{.} \end{equation*}
Since \(0\) is not an element of the domain of \(f\text{,}\) we do not say that \(f\) is continuous or discontinuous at \(0\text{.}\)

Remark 6.4. Endpoints.

Let \(f\) be a function with domain \(D\text{,}\) and let \(a\in D\) be a right endpoint of \(D\text{.}\) Since by definition \(D\) contains an interval of the form \((c,a]\) but not a full open interval containing \(a\text{,}\) we are in a situation where only the left limit of \(f\) is defined at \(a\text{.}\) Recall (Definition 5.5) that we define
\begin{equation*} \lim_{x\to a}f(x)=\lim_{x\to a^-}f(x) \end{equation*}
in this case. A similar remark applies to left endpoints of \(D\text{.}\)

Example 6.5. Continuity at endpoint.

Let \(f(x)=\sqrt{x}\text{,}\) with domain \(D=[0,\infty)\text{.}\) Decide whether \(f\) is continuous at \(0\text{.}\)
Solution.
First observe that since \(0\) is a left endpoint of \(D\text{,}\) we define
\begin{equation*} \lim_{x\to 0}f(x)=\lim_{x\to 0^+}f(x)\text{.} \end{equation*}
We compute
\begin{align*} \lim_{x\to 0^+}f(x) \amp \lim_{x\to 0^+}\sqrt{x} \\ \amp \sqrt{\lim_{x\to 0^+}x} \amp \text{(root rule)}\\ \amp = \sqrt{0} \amp \text{(poly. eval.)}\\ \amp = 0 \end{align*}
Thus \(\lim\limits_{x\to 0}f(x)\) exists and is equal to 0. Since \(f(0)=\sqrt{0}=0\text{,}\) we see further that
\begin{equation*} \lim_{x\to 0^+}f(x)=\lim_{x\to 0^+}f(x)=f(0)=0 \end{equation*}
and thus that \(f\) is continuous at \(0\text{.}\)

Remark 6.6. Continuity: graphical.

When scanning the graph of a function \(f\) for points of continuity or discontinuity, we look for “problem points”. These are locations on the graph where either (a) the limit of the function appears not to exist, or (b) where the limit does exist but does not agree with the value of the function.
A well-loved adage in this regard is the phrase “a continuous function is one whose graph can be traced without lifting the pencil”. This is cute, and helpful for guidance, but should not be taken too literally. Indeed, there are some pretty wacky continuous functions out there. For example, the function
\begin{equation*} f(x)=\begin{cases} x\sin(1/x)\amp \text{if } x> 0\\ 0 \amp \text{if } x=0 \end{cases} \end{equation*}
is continuous everywhere on its domain, and yet there are some peculiar properties of its graph that make it unclear it what sense it could be “traced by a pencil”.

Example 6.7. Continuity: graphical.

For the function \(f\) whose graph is given below, find all points of discontinuity and explain what conditions of Definition 6.2 fail to attain. Make use of some of the following descriptors of discontinuities: “jump”, “removeable”, “oscillating”, “infinite”.
Graph of complicated function
Figure 6.8. Graph of function \(f\)
Solution.
Note that we do not speak of \(f\) being continuous or discontinuous at \(a\text{,}\) as this is not an element of the domain of \(f\text{.}\)
The limit of \(f\) at \(b\) does not exist, since the left limit does not equal the right limit (5.6). Thus (i) of Definition 6.2 fails, and \(f\) is not continuous at \(b\text{.}\) Such a discontinuity is called a jump discontinuity, as the difference between the left- and right-hand limit values is manifested graphically as a discrete jump in the height of the graph of \(f\text{.}\)
The limit of \(f\) at \(c\) exists, and is equal to the value of \(f\) at \(c\text{:}\) that is, we have
\begin{equation*} \lim\limits_{x\to c}f(x)=f(c)=B\text{.} \end{equation*}
Thus (i) and (ii) of Definition 6.2 are satisfied, and \(f\) is continuous at \(c\text{.}\)
The limit of \(f\) at \(d\) does not exist, since the right-hand limit does not exist. Thus (i) of Definition 6.2 fails, and \(f\) is not continuous at \(d\text{.}\) Such a discontinuity is called an oscillating discontinuity, as the wild oscillation is the reason why the limit does not exist.
The limit of \(f\) exists at \(e\text{,}\) but is not equal to the value of \(f\) at \(e\text{.}\) In more detail, we have
\begin{equation*} \lim\limits_{x\to e}f(x)=D< f(e)\text{.} \end{equation*}
Thus \(f\) is not continuous at \(e\text{.}\) Such a discontinuity is called a removeable discontinuity as a simple redefining of \(f\) at \(e\) (i.e., setting \(f(e)=D\)) would make the discontinuity disappear.

Example 6.9. Continuous everywhere.

Let \(\displaystyle f(x)=\frac{x}{\sqrt{x^2-1}}\text{.}\) Prove, using Definition 6.2 that \(f\) is continuous.
Solution.
Let \(a\) be any interior element in the implied domain of \(f\text{.}\) By definition of this domain, this means \(a^2-1> 0\text{.}\) It follows that
\begin{align*} \lim_{x\to a}f(x) \amp =\lim_{x\to a}\frac{x}{\sqrt{x^2-1}}\\ \amp =\frac{\lim_{x\to a}x}{\lim_{x\to a}\sqrt{x^2-1}}\\ \amp =\frac{a}{\sqrt{\lim_{x\to a}x^2-1}}\\ \amp = \frac{a}{\sqrt{a^2-1}}\\ \amp = f(a)\text{.} \end{align*}
This computation shows both that (i) \(\lim\limits_{x\to a}f(x)\) exists, and (ii) \(\lim\limits_{x\to a}f(x)=f(a)\text{,}\) and thus by Definition 6.2, that \(f\) is continuous at \(a\text{.}\) Since \(a\) was an arbitrary element of the domain of \(f\text{,}\) we conclude that \(f\) is continuous at all points of its domain, and hence continuous.
Next we state some theorems that allow facilitate our (non-graphical) analysis of continuity for a given function. A first result provides us with a large zoo of continuous functions.

Proof.

  1. This is a direct consequence of Definition 6.2 and Theorem 3.11.
  2. This is a direct consequence of Definition 6.2 and Corollary 2.17.
  3. This result actually requires some work, since currently we only have an evaluation limit formula for sine at \(0\text{.}\) This gives us a chance to illustrate the affine substitution technique again. (See Remark 5.10.) Take any \(a\in \R\text{.}\) We have
    \begin{align*} \lim_{x\to a}\sin x\amp = \lim_{x\to a}\sin ((x-a)+a) \\ \amp = \lim_{x\to a}(\sin(x-a)\cos a+\cos(x-a)\sin a) \amp \text{(trig. ident.)}\\ \amp = \lim_{x\to a}\sin(x-a)\lim_{x\to a}\cos a+\lim_{x\to a}\cos(x-a)\lim_{x\to a}\sin a \amp \text{(sum, prod. rule.)}\\ \amp = \lim_{x\to a}\sin(x-a)\cos a+\lim_{x\to a}\cos(x-a)\sin a \amp \text{(const. rule)}\\ \amp = (\lim_{t\to 0}\sin(t))\cos a+(\lim_{t\to 0})\cos(t)\sin a \amp (\text{subst. } t=x-a)\\ \amp =0\cos a+1\sin a \amp (\knowl{./knowl/xref/th_lim_sine_cos.html}{\text{3.12}})\\ \amp = \sin a\text{.} \end{align*}
    The computation shows both that (i) the limit of \(\sin\) exists at \(a\text{,}\) and (ii) the limit agrees with the value of \(\sin\) at \(a\text{.}\) We conclude that \(\sin\) is continuous at \(a\text{.}\) Since \(a\) was arbitrary, we conclude that \(f\) is continuous everywhere, hence continuous.

Example 6.13. Continuity rules.

Prove, using our various continuity rules, that the function
\begin{equation*} f(x)=\abs{\sqrt[5]{\frac{\sin^3 x}{\sqrt{\cos x}}}} \end{equation*}
is continuous.
Solution.
Let \(a\) be an interior element of the domain of \(f\text{.}\) Recall that by definition \(a\) is in the domain of \(f\) if and only if we can evaluate the defining formula of \(f\) at \(a\text{.}\) Thus we have \(\cos a> 0\text{.}\)
Now, let \(g(x)=\sin^3 x=(\sin x)^3\text{,}\) and let \(h(x)=\sqrt{\cos x}\text{.}\) Since \(\sin\) is continuous everywhere, the power rule for continuity implies \(g(x)=\sin^3(x)\) is continuous at \(a\text{.}\) Since \(\cos\) is continuous at \(a\) and \(\cos a> 0\text{,}\) it follows from the root rule for continuity that \(h(x)=\sqrt{\cos(x)}\) is continuous at \(a\text{.}\) Since furthermore \(h(a)\ne 0\text{,}\) the quotient rule for continuity implies \(g(x)/h(x)\) is continuous at \(a\text{.}\)
Next, another application of the root rule for continuity implies \(\sqrt[5]{g(x)/h(x)}\) is continuous at \(a\text{.}\) Lastly, since the absolute value function \(p(x)=\abs{x}\) is continuous and \(q(x)=\sqrt[5]{g(x)/h(x)}\) is continuous at \(a\text{,}\) we conclude from Theorem 6.12 that
\begin{equation*} f(x)=p(q(x))=\abs{p(x)} \end{equation*}
is continuous at \(a\text{.}\) Since \(a\) was an arbitrary interior element of the domain of \(f\text{,}\) we conclude that \(f\) is continuous.