NOTE: You may view the original PDFs of the notes written in class by clicking on the link for the 1:30 Section or 2:30 Section, respectively.
GOAL: Be able to determine where and how a function misbehaves.
Lecture 4: Continuity
SIDENOTE: In the handwritten notes, "fcn" or "fn" is shorthand for "function."
Intuitively, a function is continuous if there are no abrupt changes in the graph.
Figure 1
Figure 2
More precisely,
Definition: A function \( f \) is continuous at a point \( c \) if
\[ \lim_{x \to c} f(x) = f(c) \]Otherwise, \( f \) is said to be discontinuous at \( c \) and \( c \) is called a discontinuity.
Classifying Discontinuities
There are 3 ways a function can be discontinuous:
- \( \lim_{x \to c} f(x) \) DNE
- \( f(c) \) is undefined
- \( \lim_{x \to c} f(x) \ne f(c) \)
Example 1
Discuss the continuity of the Heaviside function \( H(x) = \begin{cases} 1 & x \ge 0 \\ 0 & x < 0 \end{cases} \) at \( x = 0 \)
Figure 3
Recall \( \lim\limits_{x \to 0} H(x) \) DNE since \( \lim\limits_{x \to 0^-} H(x) = 0 \), but \( \lim_{x \to 0^+} H(x) = 1 \). So by (1), \( H(x) \) is discontinuous at \( x = 0 \).
This is an example of a jump discontinuity; in a jump discontinuity, the left and right limits exist, but they are not equal. This causes a "jump" in the graph.
Example 2
Repeat for \( f(x) = \frac{x^2 - x - 2}{x - 2} \) at \( x = 2 \)
Plugging 2 into \(f\) gets us the indeterminate form \(\frac{0}{0}\), so \(f(2)\) is undefined. \( f \) is discontinuous at \( x = 2 \) by (2).
This is an example of a hole (or removable discontinuity) at \( x = 2\). This is when the limit exists, but something goes wrong with the function value. In this example, the limit:
\[ \lim_{x \to 2} \frac{x^2 - x - 2}{x - 2} = \lim_{x \to 2} \frac{(x+1)(x-2)}{x-2} = \lim_{x \to 2} (x+1) = 3 \]But, \(f(2)\) is undefined causing the discontinuity
Figure 4
Question: Why is it called removable?
Answer: Define a new function:
\[ g(x) = \begin{cases} \frac{x^2 - x - 2}{x - 2} & x \ne 2 \\ 3 & x = 2 \end{cases} \]where \(g(x) = f(x) = \frac{x^2 - x - 2}{x-2}\) everywhere except \(0\), while at \(0\), \(g(0) = 3 = \lim_{x \to 2} \frac{x^2 - x - 2}{x - 2}\). Assigning \(g(0)\) this way "plugs the hole" that \(f(x)\) has making \(g(x)\) continuous everywhere, as shown in Figure 5.
Figure 5
Example 3
Repeat for \( f(x) = \begin{cases} 1 - x^2 & x \ne 0 \\ 2 & x = 0 \end{cases} \) at \( x = 0 \)
Figure 6
\begin{align*} \lim_{x \to 0} f(x) =&~ \lim_{x \to 0} (1 - x^2) = 1 \\ f(0) =&~ 2 \end{align*}
Here we have \(\lim_{x \to 0} \neq f(0)\), so \(f\) is discontinuous at \(x=0\) by (3). Since the limit exists, \( f \) has a hole at \( x = 0 \).
Example 4 (Multiple Discontinuities)
Repeat for \( f(x) = \frac{x(x-5)}{x(x-1)} \)
Discontinuities could occur when the denominator is 0. I.e., when
\[ x(x-1) = 0 \]Solving, we get that the possible locations of discontinuities are \(x=0\) and \(x=1\).
At \( x = 0 \):
\[ \lim_{x \to 0} \frac{x(x-5)}{x(x-1)} = \lim_{x \to 0} \frac{x-5}{x-1} = 5 \]\( \Rightarrow f \) has a hole at \( x = 0 \)
At \( x = 1 \):
\( f(1) = \frac{-4}{0} \Rightarrow f(1) \) is undefined and neither the left nor right limit exists. This indicates it is NOT a jump discontinuity and instead shows \(f\) has a vertical asymptote at \(x=1\)
This is an example of an infinite discontinuity (another word for vertical asymptote). Here, at least one of the one-sided limits do not return a number (i.e., there are either \(\infty\) or \(-\infty\)).
Figure 7
Properties of Continuous Functions
- We can define "left/right continuity" like what we did with limits. To be precise, we say a function \(f\) is left-continuous at a point \(c\) if: \[ \lim_{x \to c^-} f(x) = f(c) \] Similarly, a function is right-continuous at \(c\) if: \[ \lim_{x \to c^+} f(x) = f(c) \] A function is then continuous if it is both left and right continuous.
- It is common to say "\( f \) is continuous on an interval" to mean it is continuous at every point on that interval. To be precise, we say \(f(x)\) is continuous on an interval \(I\) if \(f(x)\) is continous at \(c\) for every point \(c\) in \(I\). For example, \(\ln x\) is continuous on \((0,\infty)\).
Figure 8
Example 5
Discuss the continuity of \( f(x) = \begin{cases} e^{-x} & x < 0 \\ \sqrt{x} & x \ge 0 \end{cases} \)
Figure 9
\[f(0) = 0 \]
\[ \lim_{x \to 0^+} f(x) = \lim_{x \to 0^+} \sqrt{x} = 0 = f(0) \]\( \Rightarrow f \) is right-continuous at \(x=0\)
\[ \lim_{x \to 0^-} f(x) = \lim_{x \to 0^-} \left( e^{-x} \right) = 1 \ne 0 = f(0) \]\( \Rightarrow f \) is not left continuous at \(x=0\)
Therefore, \( f \) is continuous everywhere except \(0\). I.e., it is continuous on \( (-\infty, 0) \cup (0, \infty) \). As a reminder, \(\cup\) is the union symbol; think of it as the word "or." So, if \(x\) is in \((-\infty, 0)\) or \((0,\infty)\), then \(f(x)\) is continuous there.
Since the left and right limits exist, just unequal, there is a jump at \( x = 0 \).
Theorem
On their domain, polynomials, rational functions, root functions, trig functions, inverse trig functions, exponential functions, and logarithmic functions are continuous.
The "on their domain" part is important. For example, \(\frac{1}{x}\) is discontinuous at \(0\), but it is not in the domain. So, \(\frac{1}{x}\) is continuous everywhere else.
Figure 10
Example 6 (Similar to HW4, #11)
\[ f(x) = \begin{cases} -6x - \frac{\pi}{2} & x \le -\frac{\pi}{2} \\ \cos x & -\frac{\pi}{2} < x \le \frac{\pi}{2} \\ 5\sin x + 9 & x > \frac{\pi}{2} \end{cases} \]All functions are continuous on their parts; the candidates for discontinuities are where the formula changes. I.e., at \( x = -\frac{\pi}{2}, \frac{\pi}{2} \).
At \( x = -\frac{\pi}{2} \):
\[ \begin{gathered} \lim_{x \to -\frac{\pi}{2}^-} f(x) = \lim_{x \to -\frac{\pi}{2}^-} \left[ -6x - \frac{\pi}{2} \right] = 3\pi - \frac{\pi}{2} \\[0.5em] \lim_{x \to -\frac{\pi}{2}^+} f(x) = \lim_{x \to -\frac{\pi}{2}^+} \left[ \cos x \right] = \cos\left( \frac{-\pi}{2} \right) = 0 \end{gathered} \]\( \Rightarrow f \) has a jump discontinuity at \( x = -\frac{\pi}{2} \)
Figure 11
Figure 12
At \( x = \frac{\pi}{2} \):
\[ \begin{gathered} \lim_{x \to \frac{\pi}{2}^-} f(x) = \lim_{x \to \frac{\pi}{2}^-} \left[ \cos x \right] = 0 \\[0.5em] \lim_{x \to \frac{\pi}{2}^+} f(x) = \lim_{x \to \frac{\pi}{2}^+} \left[ 5\sin x + 9 \right] = 5\sin\frac{\pi}{2} + 9 = 5 + 9 = 14 \end{gathered} \]\( \Rightarrow f \) has a jump discontinuity at \( x = \frac{\pi}{2} \)
Compositions
Theorem Let \( f \) be continuous at \( x = G \), where \( G = \lim_{x \to c} g(x) \). Then,
\[ \lim_{x \to c} f(g(x)) = f\left( \lim_{x \to c} g(x) \right) = f(G) \]In particular, if \( g \) is continuous at \( c \) and \( f \) is continuous at \( g(c) \), then the composition \( f(g(x)) \) is continous at \( c \).
Example 7(a)
\[ \lim_{x \to 1} \frac{x^2 (x-1)}{(x^2+3)(x-1)} = \lim_{x \to 1} \frac{x^2}{x^2+3} = \frac{1}{1+3} = \frac{1}{4} \]Example 7(b)
\[ \lim_{x \to 1} \sqrt{\frac{x^2(x-1)}{(x^2+3)(x-1)}} \;\underset{\substack{\uparrow \\ \sqrt{\;}\ \text{is} \\ \text{cont. at } \frac{1}{4}}}{=}\; \sqrt{\lim_{x \to 1} \frac{x^2(x-1)}{(x^2+3)(x-1)}} = \sqrt{\frac{1}{4}} = \frac{1}{2} \]The moral here is we can shove limits inside continuous functions, which can be helpful to solve some limits.
Example 8
\[ \lim_{x \to c} e^{f(x)} = e^{\lim_{x \to c} f(x)} \](Non-Examinable) Roots of Continuous Functions
This will not show up on homeworks/exams; you need not worry about this. This is just highlighting an application that's not in the standard curriculum.
One of the important properties of continuous functions for applications is we are able to find decimal approximations for their roots. In particular,
Theorem: There is a finite process that has a continuous function \(f\), and an interval containing at least one root, as input and returns a decimal approximation of the root up to a specified error \(\varepsilon\).
The discussion on how to do this is a bit long, but a typical Calculus I student should be able to understand it with a bit of gusto. The details can be found here.