graph TD
A[Function defined at a point?] -->|No| B(Discontinuous!)
B --> C{"Example:
$$f(x) = (x^2 - 4) / (x - 2)$$
at x=2"};
C --> D["$$f(2)$$ is undefined (0/0)"];
D --> E[Graph has a hole at x=2];
2.4 Continuity: Understanding the Flow of Functions
A Smooth Journey Through Functions
Connecting the Dots
Functions are everywhere in science and engineering. But how do we know if a function’s behavior is predictable and “well-behaved”? This is where continuity comes in.
Note
A function is continuous if its graph can be drawn without lifting your pencil from the paper. It means there are no breaks, jumps, or holes.
For a function \(f(x)\) to be continuous at a specific point \(x=a\), three crucial conditions must be met:
Here, \(f(a)\) is undefined. The limit might exist, but the function value itself is missing.
graph TD
A[Function defined at a point?] -->|No| B(Discontinuous!)
B --> C{"Example:
$$f(x) = (x^2 - 4) / (x - 2)$$
at x=2"};
C --> D["$$f(2)$$ is undefined (0/0)"];
D --> E[Graph has a hole at x=2];
Let’s examine \(f(x) = \frac{x^2 - 4}{x - 2}\) at \(x=2\).
Is \(f(2)\) defined?
This function is discontinuous at \(x=2\) because the first condition is not met.
Important
Even if the limit exists, the function value must also exist for continuity.
We can use Python to verify this.
Here, \(f(a)\) might be defined, but the limit \(\lim_{x \to a} f(x)\) does not exist. This often happens with piecewise functions.
graph TD
A[Function defined at a point?] -->|Yes| B[Does the limit exist?]
B -->|No| C(Discontinuous!)
C --> D{Example: Piecewise function
at junction point};
D --> E[LHS limit ≠ RHS limit];
E --> F[Graph has a jump at x=a];
Consider the piecewise function:
\(f(x) = \begin{cases} -x^2+4 & \text{if } x \le 3 \\ 4x-8 & \text{if } x > 3 \end{cases}\)
at \(x=3\).
This function is discontinuous at \(x=3\) due to a jump.
Test the piecewise function’s limits.
In this case, \(f(a)\) is defined, \(\lim_{x \to a} f(x)\) exists, but they are not equal.
graph TD
A[Function defined at a point?] -->|Yes| B[Does the limit exist?]
B -->|Yes| C["Is limit = f(a)?"]
C -->|No| D(Discontinuous!)
D --> E{Example: Point defined
separately from curve};
Consider the function:
\(f(x) = \begin{cases} \frac{\sin x}{x} & \text{if } x \neq 0 \\ 2 & \text{if } x = 0 \end{cases}\)
at \(x=0\).
Is \(f(0)\) defined?
Does \(\lim_{x \to 0} f(x)\) exist?
Is \(\lim_{x \to 0} f(x) = f(0)\)?
This function is discontinuous at \(x=0\) because the third condition is violated.
Confirm the limit and function value using math.sin.
Conditions for Continuity at \(x=a\):
Tip
All three must hold true for \(f(x)\) to be continuous at \(a\).
When \(f(x)\) is NOT continuous at \(x=a\):
Discontinuities can be further classified into common categories:
Removable Discontinuity:
Jump Discontinuity:
Infinite Discontinuity:
graph TD
A[Discontinuity at x=a] --> B{"Does $$lim(x->a) f(x)$$ exist?"};
B -->|"Yes| C{Is f(a) defined and equal to limit?"};
C -->|No| D(Removable Discontinuity);
B -->|No| E{Do one-sided limits exist but are unequal?};
E -->|Yes| F(Jump Discontinuity);
E -->|No| G("Infinite Discontinuity - at
least one one-sided
limit is +/- infinity");
Let’s classify the discontinuity of \(f(x) = \frac{x+2}{x+1}\) at \(x=-1\).
Is \(f(-1)\) defined?
What about the limit?
Since both one-sided limits approach \(\pm \infty\), this is an Infinite Discontinuity.
Expanding our concept from a point to an interval.
Continuous on an Open Interval \((a,b)\):
Continuous from the Right at \(a\):
Continuous from the Left at \(b\):
Continuous on a Closed Interval \([a,b]\):
State the interval(s) over which \(f(x)=\sqrt{4-x^2}\) is continuous.
Domain: For \(\sqrt{4-x^2}\) to be real, we need \(4-x^2 \ge 0\).
Continuity within the Open Interval \((-2,2)\):
Continuity at Endpoints:
Therefore, \(f(x)\) is continuous over the closed interval \([-2, 2]\).
Knowing a function is continuous allows us to use powerful theorems that simplify calculations and predict behavior.
Continuity of Polynomials and Rational Functions:
Composite Function Theorem:
Continuity of Trigonometric Functions:
Evaluate \(\lim_{x \to \pi/2} \cos(x - \pi/2)\).
Using the Composite Function Theorem: Let \(g(x) = x - \pi/2\) and \(f(u) = \cos(u)\).
Is \(g(x)\) continuous at \(x=\pi/2\)?
Is \(f(u)\) continuous at \(u=g(\pi/2)=0\)?
Therefore, we can apply the theorem: \(\lim_{x \to \pi/2} \cos(x - \pi/2) = \cos(\lim_{x \to \pi/2} (x - \pi/2)) = \cos(0) = 1\).
The IVT applies to continuous functions over a closed interval and guarantees the existence of certain function values.
Theorem Statement: Let \(f\) be continuous over a closed, bounded interval \([a,b]\). If \(z\) is any real number between \(f(a)\) and \(f(b)\), then there exists at least one number \(c\) in \([a,b]\) such that \(f(c) = z\).
graph TD
A[Function f is continuous] --> B{"Over closed interval [a,b]"};
B --> C{"Choose any z between f(a) and f(b)"};
C --> D["IVT guarantees a 'c' in [a,b]"];
D --> E["Such that f(c) = z"];
A common application of IVT is to show that an equation has a solution (or a function has a zero) within a given interval.
Problem: Show that \(f(x) = x - \cos x\) has at least one zero.
Is \(f(x)\) continuous?
Find an interval \([a,b]\) where \(f(a)\) and \(f(b)\) have opposite signs.
Since \(f(0) < 0\) and \(f(\pi/2) > 0\), and \(f(x)\) is continuous on \([0, \pi/2]\), the IVT guarantees there exists a \(c \in [0, \pi/2]\) such that \(f(c) = 0\).
Pitfall 1: Discontinuity
Caution
Continuity over the entire closed interval is a non-negotiable condition for IVT.
Pitfall 2: Only Guarantees Existence
Warning
The IVT only guarantees existence, not non-existence or uniqueness.
Continuity is not just abstract math; it’s fundamental to modeling the real world.
Note
Continuity is more than just smooth graphs; it underpins the predictability and tractability of functions in calculus and beyond.