graph LR
A["Is f(a)
defined?"] -->|Yes| B
A -->|No| D{Discontinuous}
B["Does lim_x->a f(x)
exist?"] -->|Yes| C
B -->|No| D
C["Is lim_x->a f(x)
== f(a)?"] -->|Yes| E{Continuous
at 'a'}
C -->|No| D
Continuity and the Intermediate Value Theorem
Imagine drawing a function’s graph without lifting your pencil.
Continuous Function
Discontinuous Function
Tip
Think of it like a smooth road: A continuous function is a road you can drive on without hitting any unexpected cliffs, bridges, or missing sections!
A function \(f(x)\) is continuous at \(a\) if all three conditions below are met:
In other words, the left-hand limit, the function value, and the right-hand limit must all be equal: \[ \lim_{x \to a^-} f(x)\qquad=\qquad f(a)\qquad=\qquad\lim_{x \to a^+} f(x) \]
Important
If any of these conditions fail, \(f(x)\) is discontinuous at \(x=a\).
graph LR
A["Is f(a)
defined?"] -->|Yes| B
A -->|No| D{Discontinuous}
B["Does lim_x->a f(x)
exist?"] -->|Yes| C
B -->|No| D
C["Is lim_x->a f(x)
== f(a)?"] -->|Yes| E{Continuous
at 'a'}
C -->|No| D
Graphically: Imagine tracing \(f(x)\) with a pencil. To be continuous, you shouldn’t lift your pencil as you pass through \(x=a\).
Your Turn: Sketch \(f(x)=\sqrt x\) and let \(a=4\).
Exercise:
Think:
Consider the function \(f(x) = \frac{x^2-1}{x-1}\).
Question: Where might this function be discontinuous?
Let’s analyze it:
This function has a hole at \(x=1\).


Removable Discontinuity
A function \(f\) is continuous on an interval \(I\) if it is continuous at:
Note
One-sided continuity is essential for discussing continuity at the endpoints of closed or half-open intervals.
If a function’s definition changes at \(x=a\), we must carefully compare the three continuity conditions at that specific point.
Example: Consider \(f(x) = \begin{cases} 1-x, & x < 0 \\ x^2, & x \ge 0 \end{cases}\)
Let’s check continuity at \(x=0\):
Since \(\displaystyle\lim_{x \to 0^-} f(x) \ne \lim_{x \to 0^+} f(x)\), the limit \(\displaystyle\lim_{x \to 0} f(x)\) does not exist. Therefore, \(f(x)\) is discontinuous at \(x=0\) (a jump discontinuity).
The Intermediate Value Theorem (IVT) states:
Suppose \(f(x)\) is a continuous function on the closed interval \([a,b]\) with \(f(a) \ne f(b)\). If \(N\) is any number between \(f(a)\) and \(f(b)\), then there exists at least one point \(c\) in the open interval \((a,b)\) such that \(f(c)=N\).
In simpler terms:
If you draw a continuous curve from point A to point B, you must pass through every y-value between the y-value of A and the y-value of B.
We can use the IVT to show that certain equations have solutions or that polynomials have roots.
Example:
Show that \(f(x)=x^4+x-3\) has a root between \(x=-2\) and \(x=0\).
This means \(f(x)\) has a root in the interval \((-2,0)\).
Tip
We don’t need to find the exact root, just prove its existence!
Imagine a sensor measuring ground temperature at 1 meter depth at 9 AM on two consecutive days.
Scenario:
Assume temperature changes continuously over time.
Question: Is it guaranteed that there was a moment between Day 1 and Day 2 when the ground temperature at 1 meter depth was exactly \(12^\circ C\)?
Important
Yes, due to IVT!
While IVT doesn’t give the exact root, it can help narrow down its location. The bisection method is a numerical technique that iteratively uses the IVT.
Let’s use Pyodide to check an interval for a potential root of \(f(x) = x^3 - 2x - 5\).
If \(f\) and \(g\) are both continuous on an interval \(I\), then the following are also continuous on \(I\):
Tip
These properties allow us to determine the continuity of complex functions by examining their simpler, continuous components.
The following types of functions are continuous on their respective domains:
Note
Crucial Implication for Limits: If \(f(x)\) is continuous at \(x=a\), then \(\displaystyle \lim_{x\to a} f(x) = f(a)\). This means for continuous functions, you can find the limit by direct substitution!