Week 4, Lecture 9: Continuity of Functions

Week 3: Functions - UNE Campus Discovery Trail

Welcome to Lecture 9: The Anatomy of Unbroken Curves

If the transition into this week's material feels a little daunting, take a deep breath—you are exactly where you need to be, and you have already done the hardest work.

Over the first two weeks, you mastered the rigorous $\epsilon\text{-}N$ definition of limits. You learned how to mathematically trap isolated, discrete stepping stones (sequences) as they marched out to infinity. Then, in Week 3, we stepped back to look at the fluid, connected mappings of the natural world: exponential growth, logarithms, and trigonometric waves.

Today, we merge those two worlds together . We are taking the airtight logical traps you built in Week 2 and aiming them directly at the smooth curves you explored in Week 3.

🗺️ How This Fits Into The Grand Arc

We all intuitively know what it means for a line to be "continuous"—you can draw it with a pencil without lifting the tip off the paper. But intuition is a dangerous foundation for differential calculus. To measure instantaneous rates of change (derivatives) safely, we need an absolute, mathematical guarantee that a curve has no microscopic holes, no sudden jumps, and no invisible breaks.

  • The Shift in Focus: Instead of chasing an index $n \to \infty$ like we did with sequences, we are now zooming in with a microscope on a single, specific target point ($x \to c$) on a continuous graph.
  • Why It Matters for the Future: Defining continuity rigorously using the new $\epsilon\text{-}\delta$ (epsilon-delta) framework unlocks massive mathematical superpowers. It leads directly to the Intermediate Value Theorem , which gives us the ability to guarantee that solutions to impossible equations actually exist in the real world, setting the definitive stage for calculus.

If the upcoming $\epsilon\text{-}\delta$ notation looks intimidating, remember: it is just a translation of the exact same two-player target game you already won in Week 2. You are simply learning how to control an output error ($\epsilon$) by placing a strict physical fence around your input ($\delta$). Let's break it down step-by-step.

🎧 Deep Dive Podcast

The Epsilon-Delta Game: Factory Dials, Jailbreaks, and the Teleportation Ban

Explore the transition from discrete sequence limits to unbroken continuous curves. We translate the intimidating $\epsilon$-$\delta$ definition into a competitive two-player factory game, unpack jump discontinuities, and reveal the superpower of the Intermediate Value Theorem.

⬇ Download / Open

1. The Physical Intuition: Controlling the Error

If you are feeling nervous about the sudden appearance of the Greek letters $\epsilon$ (epsilon) and $\delta$ (delta), let me share a secret with you: this entire concept is not about abstract, floating symbols. It is a highly practical idea about operating a machine safely .

Imagine you are operating a sensitive factory machine. You have a dial (your input , $x$) that controls the temperature of a chemical oven (your output , $f(x)$). You want the oven to sit at a perfect, specific target temperature $f(x_0)$. To achieve this, you need to set the dial to exactly $x_0$.

But in the real world, human hands shake, and instruments have micro-wobbles. You can almost never set the dial to exactly $x_0$. A microscopic error on your input dial inevitably creates an error in the oven's output temperature.

The Central Question of Continuity

If your boss demands that the oven temperature must stay within a strict, tiny safety margin to prevent a fire, can you calculate exactly how steady your hand needs to be on the dial to guarantee success?

Translating the Factory to Mathematics

In mathematics, we measure "error" as a physical distance using absolute value. Let's translate our factory machine into formal notation:

💡 The Big Realization

To prove a function is continuous, you just have to prove that you can always find a safe $\delta$ for any $\epsilon$ the boss demands. If the boss says $\epsilon = 0.1$, you might find $\delta = 0.05$. If they demand tighter precision like $\epsilon = 0.002$, you might have to tighten your grip to $\delta = 0.001$. As long as a safe $\delta$ exists , the curve is mathematically unbroken!

🎯 Concrete Example: Controlling a Linear Machine

Let's put this to work on a concrete function. Suppose our machine is governed by the equation $f(x) = 3x + 5$.

Our target input is $x_0 = 2$. Therefore, our perfect target output is $f(2) = 3(2) + 5 = 11$. The boss demands that our output stays strictly within an $\epsilon$-corridor around $11$.

Step 1: Set up the Output Error

$$|f(x) - 11| < \epsilon$$

Step 2: Plug in the function and simplify

Substitute $3x + 5$ in for $f(x)$:

$$|(3x + 5) - 11| < \epsilon$$

Combine the numbers:

$$|3x - 6| < \epsilon$$

Step 3: Factor it to expose the Input Error

Notice that $3$ is a common factor. Let's pull it out of the absolute value:

$$3 \cdot |x - 2| < \epsilon$$

Step 4: Isolate the Input Error ($|x - x_0|$)

Divide both sides by $3$:

$$|x - 2| < \frac{\epsilon}{3}$$

The Verdict: Look at the left side of that final equation—$|x - 2|$ is exactly our input error (the distance between our dial $x$ and the target $2$).

We successfully found our tolerance! If we restrict our dial such that its error is strictly less than $\delta = \frac{\epsilon}{3}$ , we mathematically guarantee that the oven's temperature error will be safely less than $\epsilon$. Because the function scales the input by $3$ (the slope), we simply had to make our input control $3$ times stricter.

(Note: For any generic linear function $f(x) = mx + b$, this same logical process proves that setting your input tolerance to $\delta = \frac{\epsilon}{|m|}$ will always securely trap the output.)

Global Continuity

The $\epsilon$-Envelope (The Continuous Tube)

If we apply a strict output error margin ($\pm\epsilon$) to every single point along the curve, the individual $\epsilon$-$\delta$ bounding boxes merge together. They form a continuous, flexible tube that perfectly hugs the contour of the function. As long as the curve never tears or jumps, it will stay safely insulated inside this envelope.

x y x₀ f(x₀) ε δ

Local Control (The Box)

At any specific snapshot in time ($x_0$), you enforce continuity by creating a rigid bounding box of width $2\delta$ and height $2\epsilon$ around the target $f(x_0)$. As long as the curve exits strictly through the side walls, that single point is unbroken.

Global Envelope (The Tube)

When you sweep that exact same rule across the entire domain, the individual boxes paint a continuous "tube" of radius $\epsilon$ around the function. A continuous function never punctures its own envelope.

2. The Formal $\epsilon$-$\delta$ Definition

The example above demonstrates that for a continuous function, no matter how tiny the output tolerance $\epsilon$ becomes, we can always find a corresponding input tolerance $\delta$ to trap the function. This is the formal definition of continuity at a point.

Definition: Continuity at a Point $x_0$

A function $f: X \to \mathbb{R}$ is continuous at a point $x_0 \in X$ if for every positive number $\epsilon > 0$, there exists a positive number $\delta > 0$ such that for all $x \in X$, the condition $|x - x_0| < \delta$ strictly implies $|f(x) - f(x_0)| < \epsilon$.

$$\forall \epsilon > 0, \ \exists \delta > 0 \text{ such that } \forall x \in X, \ |x - x_0| < \delta \implies |f(x) - f(x_0)| < \epsilon$$

🎮 The Two-Player Game: Adversary vs. Defender

Just like with sequence limits in Week 2, proving continuity is best understood as a strict mathematical game played between two opponents. You are not just calculating static numbers—you are actively defending your function against a relentless opponent.

Player 1: The Adversary

The adversary' sole goal is to break your proof. They hand you an impossibly tight output error margin ($\epsilon$). They might demand $\epsilon = 0.0001$, forcing your output corridor to become microscopic.

Player 2: The Defender (You)

Your job is to survive their attack. You must calculate a specific input window ($\delta$) that acts as an unbreakable secure fence. No matter how viciously tiny the adversary makes $\epsilon$, you must always have a formula ready to produce a valid $\delta$.

If you can always find a winning strategy for any $\epsilon$ the adversary throws at you, the function is rigorously proven to be unbroken. The game never ends; it is an airtight guarantee for every possible level of precision.

Rigorous Analysis

Breaking Down Every Piece of the Formula

The formal definition of continuity looks like an intimidating wall of logic symbols. But when you break it down, it is simply a strict, four-part contract. Here is what every single symbol and clause means in plain English:

∀ϵ > 0 Clause 1: The Adversarial Challenge

"For every possible positive output error epsilon..."

The game begins with an adversary (or a demanding boss) handing you an arbitrary error margin $\epsilon$ for the output. It could be a generous $\epsilon = 1.0$ or an impossibly tiny $\epsilon = 0.00001$. The upside-down 'A' ($\forall$) means universal quantification : your defense must work for every single positive number $\epsilon$ they can possibly throw at you, no matter how strict.

∃δ > 0 Clause 2: The Defender's Response

"...there exists a corresponding input tolerance delta..."

In response to their challenge, you must produce a safe input window $\delta$. The backward 'E' ($\exists$) means existential quantification : you don't need to guess a universal delta; you just need to prove that a valid, positive $\delta$ can always be calculated based on whatever $\epsilon$ was chosen. Usually, $\delta$ depends directly on $\epsilon$ (e.g., $\delta = \epsilon/3$).

∀x ∈ X, |x - x₀| < δ Clause 3: The Input Fence

"...such that for all inputs $x$ trapped inside your input fence..."

This clause sets up your domain restriction. Absolute value measures distance: $|x - x_0| < \delta$ means "the distance between our input $x$ and our target $x_0$ is strictly less than $\delta$." This draws the vertical side walls of our bounding box, ensuring we only care about inputs that fall within our secure operating zone.

|f(x) - f(x₀)| < ϵ Clause 4: The Guaranteed Output Safety

"...the resulting output distance is strictly guaranteed to stay within $\epsilon$."

This is the payoff. If you obey Clause 3 and keep your input inside the $\delta$-fence, the function output $f(x)$ is mathematically forced to land inside the adversary's $\epsilon$-corridor. The curve exits safely through the side walls of the box, proving that there are no sudden tears, jumps, or breaks at $x_0$.

Active Clause 1. The Challenge (∀ϵ > 0)
Quantifier Universal (∀)
Logical Role Given Output Tolerance
Scope & Dependency Arbitrary positive real
∀ϵ > 0
,
∃δ > 0
such that
∀x ∈ X, |x - x₀| < δ
$$\implies$$
|f(x) - f(x₀)| < ϵ
x y f(x₀) x₀ f(x₀) + ε f(x₀) - ε x₀ - δ x₀ + δ x f(x) Safely inside ε-band!

Mathematical Mechanics

Logical Rationale

3. When Continuity Fails (Discontinuity)

What happens when a function physically breaks? To prove a function is discontinuous, we must step into the role of the skeptic and defeat the $\epsilon$-$\delta$ trap. We must find just one lethal error margin $\epsilon$ where, no matter how tightly the defender shrinks their $\delta$ window, the function still manages to break out of the $\epsilon$-corridor.

Imagine you are playing the role of the skeptical challenger. Instead of trying to help the function pass its continuity test, your entire objective is to break it. You ignore generous, wide-open output margins and search for a specific, lethal value of $\epsilon$ that exposes the flaw.

Once you lock in that lethal $\epsilon$, you watch the defender desperately try to shrink their input fence ($\delta$). But because there is a physical tear, jump, or missing point in the graph, any input window they choose—no matter how microscopically small—will force the function's output to violently puncture the ceiling or floor of the $\epsilon$-corridor. Because the trap fails for that choice of $\epsilon$, the universal guarantee is shattered, and discontinuity is rigorously proven.

Discontinuity Breakdown

The Failed Contract: When the Trap Shatters

When a function features a jump, no amount of defense can save it. Watch what happens when the skeptic selects a lethal $\epsilon$ corridor: the lower branch refuses to stay inside the boundary, resulting in an undeniable jailbreak.

The Epsilon-Delta Trap: Jump Discontinuity A step function with a jump discontinuity at x0. A green delta window surrounds x0, while a red epsilon corridor surrounds f(x0). The lower branch lies outside the epsilon corridor, demonstrating failure of continuity. x y f(x₀) + ε f(x₀) − ε ε corridor δ window x₀ x₀ − δ x₀ + δ Left-hand branch Right-hand branch f(x₀) ε violation! Outside the floor Shrink δ? The violation remains f(x₀)

🚨 Anatomy of the $\epsilon$-$\delta$ Jailbreak

Look closely at what happens inside the green $\delta$ window. Even though the target point $f(x_0)$ sits safely inside the red $\epsilon$-corridor on the right branch, the left-hand branch drops completely below the red floor. Because the function values on the left side are trapped outside the corridor, no matter how much you shrink $\delta$, you can never force the lower branch into compliance. The universal guarantee is shattered.

⚠️ Example: The Step Function (A Sudden Jump)

Consider a function that models a sudden switch being flipped:

$$f(x) = \begin{cases} 1 & \text{for } x \ge 0 \\ 0 & \text{for } x < 0 \end{cases}$$
Visual Graph

The Unit Step Function: $H(x) = \begin{cases} 0 & \text{if } x < 0 \\ 1 & \text{if } x \ge 0 \end{cases}$

Notice the open circle at $(0, 0)$ and the solid dot at $(0, 1)$. This visual disconnect represents an unbridgeable gap where the limit as $x \to 0$ does not exist.

Graph of the Unit Step Function A graph showing a step function that is zero for negative x, has an open circle at (0,0), and jumps to a solid dot at (0,1) where it stays flat for positive x. x y -1 1 1 0 H(x) = 0 H(x) = 1

The jump discontinuity creates an unbridgeable vertical gap of height 1 at $x = 0$.

Let's test continuity at $x_0 = 0$. The target output is $f(0) = 1$.

As the skeptic, we set a tight tolerance of $\epsilon = 0.5$ . We demand that all outputs stay within $0.5$ units of the target $1$.

Can the defender find a $\delta$ window around $x_0 = 0$ to satisfy this? No. No matter how incredibly small they make $\delta$ (even $\delta = 0.00001$), their input window will always contain some negative numbers. For any negative input, the function outputs $0$, which is a full distance of $1.0$ away from the target, utterly violating the $\epsilon = 0.5$ rule. The trap fails, proving the function is discontinuous at $x_0 = 0$.

4. The Power of Continuity: The Intermediate Value Theorem (IVT)

The Intermediate Value Theorem (IVT) states that if a function is continuous on a closed interval, it is mathematically guaranteed to take on every single value between its endpoints without skipping any. At first glance, this might sound like an obvious property, but it is actually a profound secret weapon that allows us to prove solutions exist when finding them algebraically is completely impossible.

⛰️ The Hiking Analogy: Why Continuity Means No Teleportation

Imagine you are hiking up a mountain. At the bottom trailhead, your altitude is $-100$ meters (in a valley). At the peak, your altitude is $+500$ meters . Because your hiking path is a continuous curve (you cannot magically pick yourself up and teleport through the air), what must happen to your altitude along the way?

You are mathematically forced to pass through an altitude of exactly 0 meters at some point. You cannot go from $-100$ to $+500$ without hitting every single height in between. That is the essence of the IVT.

Formal Definition: The Intermediate Value Theorem

Expressed formally: If a function $f(x)$ is continuous on a closed interval $[a, b]$, and $y$ is any number strictly between $f(a)$ and $f(b)$, then there exists at least one input value $c$ in the open interval $(a, b)$ such that:

$$f(c) = y$$

In plain English: A continuous function never skips output values. If it produces $f(a)$ at one end and $f(b)$ at the other, it is guaranteed to hit every single output value between them at least once.

Why is this a Superpower? (Finding Roots)

In algebra, when you are given an equation like $x^5 - 3x - 1 = 0$, your first instinct is to try and solve for $x$. But for high-degree polynomials and complex functions, there is no algebraic formula to find exact roots .

This is where the IVT changes everything. It acts like an existence guarantee:

1. Guaranteed Solutions

If you plug in $x = 1$ and get a negative number ($f(1) = -2$), and plug in $x = 2$ and get a positive number ($f(2) = 5$), continuity guarantees a root lives between them. You don't need to know what $x$ is to know for a fact that an answer exists.

2. The Bisection Algorithm

Because the IVT traps a root between positive and negative bounds, computers can find roots instantly. You check the midpoint, see which sign it has, and cut the search interval in half. Repeat this loop, and you home in on the exact decimal root with lightning speed.

3. Real-World Proofs

The IVT lets mathematicians prove wild facts—like proving that at any exact second on Earth, there are two opposite points on the equator with the exact same temperature and barometric pressure—without measuring the whole globe!

Worked Example

Proving a Solution Exists for $f(x) = x^3 - x - 1$

Solving this cubic algebraically is possible, but unnecessary for proving that a real root exists. Using the Intermediate Value Theorem (IVT), we can establish that the equation has a solution inside the interval $[1, 2]$ without needing to calculate its exact value.

Step 1: Define the Function & Check Continuity

Step 1: Define the Function & Check Continuity

Let $f(x) = x^3 - x - 1$. Because polynomials are continuous everywhere, $f(x)$ is continuous on the closed interval $[1, 2]$. The continuity requirement of the IVT is therefore satisfied.

Step 3: Apply the Intermediate Value Theorem

Step 2: Evaluate the Endpoints (Find the Sign Change)

Evaluate the function at both boundaries of our interval:

  • $f(1) = (1)^3 - (1) - 1 = \mathbf{-1}$ (Negative)
  • $f(2) = (2)^3 - (2) - 1 = \mathbf{+5}$ (Positive)

Step 3: Apply the Intermediate Value Theorem

Since $f(x)$ is continuous on $[1,2]$, and $f(1)=-1$ while $f(2)=5$, the IVT guarantees that there is at least one number $c \in (1,2)$ for which:

$f(c)=0$

Therefore, the equation $x^3-x-1=0$ has at least one real root between 1 and 2.

Step 4: Establish Uniqueness (Optional)

The IVT establishes existence, but does not establish uniqueness. To show that there is exactly one root in this interval, examine the derivative:

$f'(x)=3x^2-1$

For every $x \in [1,2]$, we have $f'(x) \geq 2 > 0$. Therefore, the function is strictly increasing throughout the interval and can cross the x-axis only once.

The equation consequently has exactly one root in $[1,2]$, approximately:

$c \approx 1.324717957$

This number is known as the plastic constant.

Graph of f(x) = x cubed minus x minus 1 A mathematically accurate graph of the cubic function, showing its local maximum and minimum, its unique root between x equals 1 and x equals 2, and the endpoint values f(1) equals negative 1 and f(2) equals 5. x y 4 2 0 −2 0 1 2 f(x) = x³ − x − 1 Interval [1, 2] (1, −1) (2, 5) c ≈ 1.3247

The actual cubic function, including its local maximum and minimum. Notice how the curve crosses the x-axis exactly once within the highlighted interval [1, 2].

Summary: The Power of Continuity

We have officially bridged the gap between the discrete sequence limits of Week 2 and the fluid, unbroken curves of Week 3. By transforming our intuition about physical error control into the rigorous $\epsilon\text{-}\delta$ framework, we built an airtight mathematical guarantee for unbroken functions.

🎓 Key Takeaways from Lecture 9

  • The $\epsilon\text{-}\delta$ Game: Continuity at a point means that for any output tolerance $\epsilon$ chosen by an adversary, we can always secure a matching input tolerance $\delta$ to trap the function.
  • Discontinuity & Jailbreaks: When a function features a jump or a break, no shrinking of $\delta$ can prevent the output from violating a strict $\epsilon$-corridor, proving discontinuity.
  • The Intermediate Value Theorem (IVT): Continuous curves cannot teleport. If a function is continuous on $[a, b]$, it is guaranteed to hit every value between $f(a)$ and $f(b)$, making it a powerful secret weapon for proving roots exist.

Where does this fit into the overall course?

Right now, continuity has given us the absolute certainty that curves behave predictably under magnification and that solutions to complex equations exist in the real world.

As we move forward into Lecture 10, we will build upon this foundation to study the formal definition of derivatives and rates of change, turning our static microscopic inspection of curves into active dynamic measurement tools.

🧠 Interactive Knowledge Check

Test your reflexes on the $\epsilon\text{-}\delta$ definition, discontinuity jailbreaks, and the Intermediate Value Theorem with this interactive stepper.

Launch Interactive Stepper →