In Lecture 9, you learned how to prove that a curve is unbroken at a point $x_0$ using the $\epsilon\text{-}\delta$ game. That worked beautifully whenever $x_0$ was a safe, well-behaved input where the function value $f(x_0)$ actually existed.
But what happens when the point we care about most is a mathematical crime scene ? What if plugging in $x = c$ causes a division-by-zero explosion ($\frac{0}{0}$), leaving a microscopic hole punched right through our graph?
Today, we upgrade our $\epsilon\text{-}\delta$ microscope into a tool that can inspect the exact edge of a hole without ever falling in: The Limit of a Function .
All of differential calculus is built on a single paradox: to find the instantaneous speed of an object at a single moment in time, we have to divide an infinitely small distance ($\Delta y \to 0$) by an infinitely small time interval ($\Delta x \to 0$). Algebra says $\frac{0}{0}$ is illegal. Limits make it legal.
Explore how calculus handles mathematical crime scenes like division by zero. We discuss the punctured neighborhood, bridge structural jumps with one-sided limits, and trap chaotic oscillations using the Squeeze Theorem.
Let's set the scene with a classic mathematical trap. Consider the rational function $f(x) = \frac{x^2 - 4}{x - 2}$. On the surface, it looks like a standard, well-behaved algebraic curve. But if you attempt to plug in exactly $x = 2$, disaster strikes. The numerator evaluates to $0$, and the denominator evaluates to $0$, producing the dreaded undefined expression $\frac{0}{0}$. The machine completely seizes up. At exactly $x = 2$, the function has no output, no coordinate, and no physical reality. It is a microscopic hole in the fabric of the graph.
However, if we step just a fraction of a hair away from that danger zone, the machine behaves beautifully. If you plug in $x = 1.999$ (approaching from the left), the machine smoothly outputs $3.999$. If you plug in $x = 2.001$ (approaching from the right), it outputs $4.001$. It is incredibly obvious that both sides of this fractured curve are aiming directly at a target height of $L = 4$. The trajectory is undeniable. But how do we prove this rigorously when the actual point $f(2)$ does not exist to anchor our $\epsilon\text{-}\delta$ box?
This is where we must upgrade the $\epsilon\text{-}\delta$ game. In Lecture 9, our input fence was defined by $|x - c| < \delta$, meaning the distance between our test input $x$ and the target $c$ had to be less than delta. That old rule legally allowed $x$ to equal $c$ (a distance of exactly zero). To investigate limits safely, we must actively forbid the machine from ever touching the broken point. We do this by declaring that the distance between $x$ and $c$ must be strictly greater than zero.
Let $f$ be defined on an open interval containing $c$, except possibly at $c$ itself. We say that the limit of $f(x)$ as $x$ approaches $c$ is $L$ , written $\lim_{x \to c} f(x) = L$, if for every positive number $\epsilon > 0$, there exists a positive number $\delta > 0$ such that for all $x$ in the domain:
If that wall of math symbols made your heart skip a beat, don't panic. You actually already know how to read this! It is the exact same Adversary vs. Defender game we played in Lecture 9, just with one critical modification to the rules. Let's translate it piece by piece:
When you see the compact notation $\lim_{x \to c} f(x) = L$, it is easy to read it simply as "when $x$ gets close to $c$, $f(x)$ gets close to $L$." But mathematically, that shorthand is actually a compressed trophy of victory from the $\epsilon\text{-}\delta$ game.
Writing $\lim_{x \to c} f(x) = L$ is a binding declaration that the defender has a universal winning strategy. The $L$ in the equation is the center of the adversary's $\epsilon$-corridor (the target height), and the $c$ is the center of your $\delta$-window (the target input). Saying the limit equals $L$ means that no matter how aggressively the adversary shrinks the output error $\epsilon$ around $L$, you can always find a tight enough input window $\delta$ around $c$ (without ever actually touching $c$) to force the function safely inside the adversary's boundaries.
To understand why limits are the ultimate tool for handling mathematical holes, let's compare exactly how this new limit definition upgrades the continuity rules you learned in Lecture 9. The secret lies entirely in the left side of the implication (the input constraint). By adding a single zero to the inequality—demanding that $0 < |x - c|$—we fundamentally change the rules of the game.
Allows $x = c$ (distance $0$). Requires the actual point $f(c)$ to exist and serve as the target center of the $\epsilon$-corridor.
The clause $0 < |x - c|$ creates a punctured neighborhood. It strictly forbids $x = c$, testing only the surrounding points $(c - \delta, c) \cup (c, c + \delta)$.
Notice that at $x = c$, the curve has an open hole at height $L$, and the actual defined point $f(c)$ has been displaced upward. Because the limit uses a punctured neighborhood ($x \neq c$), the displaced point is completely ignored—the limit evaluates strictly to $L$.
How do we actually find the target height $L$ when direct substitution gives $\frac{0}{0}$ or an infinite oscillation? Because the punctured neighborhood guarantees $x \neq c$, we can replace the broken function with an identical "twin" function that has the hole patched. Step through the three core resolution architectures below.
Why do we need one-sided limits? Because many physical systems and mathematical functions do not behave the same way from all directions. Think of a thermostat kicking on at exactly 20 degrees, or a tax bracket jumping to a new rate at exactly $80,000. These systems have a hard cutoff where the rules fundamentally change depending on which side of the boundary you are standing on.
On a one-dimensional number line, there are two distinct directions from which you can walk toward a target point $x = c$: you can approach from the negative side (through numbers smaller than $c$), or you can approach from the positive side (through numbers larger than $c$). By splitting the $\epsilon$-$\delta$ game in half, we can lock onto the trajectory of a function even if it suffers a massive structural jump at $c$.
The superscript minus sign ($c^-$) means we restrict our $\delta$-window strictly to inputs less than $c$:
We are forcing the adversary to only play the game on the left side of the number line.
The superscript plus sign ($c^+$) means we restrict our $\delta$-window strictly to inputs greater than $c$:
We are forcing the adversary to only play the game on the right side of the number line.
A two-sided limit $\lim_{x \to c} f(x) = L$ exists if and only if both one-sided limits exist and arrive at the exact same destination $L$:
Imagine two engineering crews building a bridge across a canyon toward $x = c$, one starting from the west bank ($x \to c^-$) and one from the east bank ($x \to c^+$). If both crews build toward the exact same altitude $L$, the bridge aligns—even if the final center bolt at $x = c$ hasn't been installed yet (a removable hole). But if the west crew builds at altitude $2$ and the east crew builds at altitude $5$ (a jump discontinuity), the bridge fails to meet, and the overall limit Does Not Exist (DNE).
Consider the function $f(x) = \frac{|x|}{x}$. What happens when we evaluate the limit as $x$ approaches $0$? Because the absolute value behaves differently for positive and negative numbers, we are forced to check both sides independently.
1. The Left-Hand Limit ($x \to 0^-$): When approaching from the left, $x$ is a negative number. The absolute value of a negative number flips its sign ($|x| = -x$).
2. The Right-Hand Limit ($x \to 0^+$): When approaching from the right, $x$ is a positive number, so the absolute value does nothing ($|x| = x$).
The Verdict: Because $-1 \neq 1$, the two directional crews are building toward completely different altitudes. The Rendezvous Criterion fails, meaning the overall two-sided limit $\lim_{x \to 0} \frac{|x|}{x}$ Does Not Exist (DNE).
Notice how the dashed approach vectors aim at entirely different open holes depending on which side of the $y$-axis they originate from.
Once we know that two individual limits $\lim_{x \to c} f(x) = L$ and $\lim_{x \to c} g(x) = M$ exist as finite real numbers, we do not need to play the $\epsilon\text{-}\delta$ game from scratch every time we combine them. The Algebraic Limit Laws guarantee that limits respect standard arithmetic:
If we had to play the rigorous $\epsilon\text{-}\delta$ game every single time we encountered a new function, calculus would grind to a halt. The Algebraic Limit Laws are our escape hatch. They guarantee that once you have proven the limits of basic, fundamental building blocks (like $f(x) = x$ or $g(x) = c$), you can snap them together like Lego bricks to build massive, complicated functions without ever having to touch an $\epsilon$ or $\delta$ again.
Let's unpack what these laws actually allow us to do on the factory floor:
So, what actually happens when $M = 0$ and the Quotient Law breaks? There are two distinct possibilities:
Evaluate the limit: $$\lim_{x \to 3} \frac{x^2 - 2x - 3}{x - 3}$$
Step 1 (Check Direct Substitution): Plugging in $x = 3$ gives $\frac{3^2 - 2(3) - 3}{3 - 3} = \frac{9 - 6 - 3}{0} = \frac{0}{0}$. Because we get $\frac{0}{0}$, we know $(x - 3)$ must be a factor of the numerator.
Step 2 (Factor and Cancel): Factor the quadratic numerator $x^2 - 2x - 3 = (x - 3)(x + 1)$:
Step 3 (Invoke the Punctured Neighborhood): Because $\lim_{x \to 3}$ examines only $0 < |x - 3| < \delta$, we are guaranteed that $x \neq 3$, so $x - 3 \neq 0$. We legally cancel $(x - 3)$ and evaluate the continuous twin function:
Evaluate the limit: $$\lim_{x \to 0} \frac{\sqrt{x + 9} - 3}{x}$$
Step 1 (Check Direct Substitution): Plugging in $x = 0$ yields $\frac{\sqrt{9} - 3}{0} = \frac{0}{0}$.
Step 2 (Multiply by the Conjugate): Multiply numerator and denominator by the conjugate $\sqrt{x + 9} + 3$:
Step 3 (Cancel $x$ and Evaluate): Since $x \neq 0$, cancel $x$ from top and bottom, then substitute $x = 0$:
In Section 4, we solved $\frac{0}{0}$ limits using algebraic surgery—factoring polynomials or multiplying by conjugates until the problem term canceled out. Those tools work wonderfully when a function is built from clean algebraic pieces.
But what happens when you encounter a function that is so chaotic near $x = c$ that algebra has nothing to factor, and the Limit Laws are illegal to use?
Consider the following limit as $x$ approaches $0$:
At first glance, your instinct might be to use the Product Law from Section 4 to split this into two separate limits: $\left(\lim_{x \to 0} x^2\right) \cdot \left(\lim_{x \to 0} \cos\left(\frac{20}{x}\right)\right)$, and say that "$0 \text{ times anything is } 0$." Stop! That is a mathematical trap.
Remember the strict legal fine print on the Product Law: you are only allowed to split a limit apart if both individual limits exist as finite numbers. Look at what happens to the two pieces of our function as $x$ gets microscopic ($x = 0.1, 0.001, 0.00001$):
How do we prove that the answer is $0$ without using the Product Law? Instead of trying to track the chaotic function directly, we build a cage around it.
Imagine two calm hikers—a Left Guard ($g(x)$) and a Right Guard ($h(x)$)—walking along a mountain trail. Between them is a hyperactive dog, $f(x)$, zig-zagging wildly back and forth across the path. The dog is darting around so erratically that you cannot predict its exact angle at any given second.
However, there is one rule: the dog is trapped strictly between the two hikers. Up ahead at mile marker $x = c$, the trail narrows into a tiny single-file turnstile at altitude $L$. If both the Left Guard and the Right Guard walk through that exact same turnstile at altitude $L$, where is the dog forced to go? Even though the dog is still wiggling, the space between the two hikers shrinks to zero, physically forcing the dog through the exact same point $L$!
Suppose that for all $x$ in a punctured neighborhood around $c$ (where $x \neq c$), a function $f(x)$ is trapped between a lower function $g(x)$ and an upper function $h(x)$:
If both the lower bound and the upper bound converge to the exact same limit $L$ as $x \to c$, then $f(x)$ is forced to converge to $L$ as well:
To use the Squeeze Theorem successfully on an exam or in a proof, you must verify that three specific conditions are met. Let's translate what the formula above is actually demanding:
When beginners first see the Squeeze Theorem, their biggest question is: "Where do the floor function $g(x)$ and ceiling function $h(x)$ come from? Do I just guess them?"
No! You never guess. You build the cage step-by-step starting from a known physical boundary of sine or cosine. Let's prove that $\lim_{x \to 0} x^2 \cos\left(\frac{20}{x}\right) = 0$.
Step 1: Start with the universal boundary of Sine or Cosine
No matter how crazy the angle $\frac{20}{x}$ gets (for any $x \neq 0$), the cosine of any real number can never rise above $+1$ or drop below $-1$. Write that fact down as a three-part inequality:
Step 2: Multiply all three parts to reconstruct $f(x)$ in the middle
Our original function is $x^2 \cos\left(\frac{20}{x}\right)$, so we need an $x^2$ in the middle. Multiply the left, middle, and right parts of the inequality by $x^2$. (Crucial check: Because $x^2 > 0$ for all $x \neq 0$, multiplying by $x^2$ is guaranteed to be positive, so the $\le$ signs do not flip!)
Step 3: Evaluate the limits of your new Floor and Ceiling
Look at the outer edges of our inequality: we just built our floor $g(x) = -x^2$ and our ceiling $h(x) = +x^2$! Let's take the limit of both outer guards as $x \to 0$:
Step 4: State the Squeeze Conclusion: Because $-x^2 \le x^2 \cos(20/x) \le x^2$ for all $x \neq 0$, and both the floor and ceiling converge to the exact same height of $0$, the Squeeze Theorem guarantees that: $$\lim_{x \to 0} x^2 \cos\left(\frac{20}{x}\right) = \mathbf{0}$$
Follow the purple wave from the outer edges inward toward $x = 0$. Even though the wave oscillates faster and faster as it nears the center, the red ceiling ($h(x) = +x^2$) and blue floor ($g(x) = -x^2$) clamp down like a vise, crushing the wave into the green pinch point at $(0, 0)$.
You might be wondering if the Squeeze Theorem is just a clever trick for taming weird oscillating waves. In reality, the Squeeze Theorem is the single mathematical key that unlocks all of trigonometric calculus.
Next week, when we learn how to calculate the derivative (the instantaneous rate of change) of $\sin(x)$ and $\cos(x)$ to model pendulums, soundwaves, and orbits, the entire proof comes down to evaluating one famous limit:
Think about what happens if you try to solve $\lim_{x \to 0} \frac{\sin(x)}{x}$ using the tools from Section 4. Plugging in $x = 0$ gives $\frac{\sin(0)}{0} = \frac{0}{0}$. It is an indeterminate hole! Worse yet, $\sin(x)$ is a transcendental wave, not a polynomial—you cannot factor an $x$ out of $\sin(x)$, and there are no square roots to rationalize. Algebra hits a dead end.
By comparing the areas of three shapes on the Unit Circle—an inner triangle, a circular pie sector, and an outer tangent triangle—mathematicians proved that for any small non-zero angle $x$ (measured in radians), the ratio $\frac{\sin(x)}{x}$ is always trapped between $\cos(x)$ and $1$:
Look at the two guards as $x \to 0$: the ceiling stays at $\lim_{x \to 0} 1 = \mathbf{1}$, and because cosine is continuous, the floor rises to $\lim_{x \to 0} \cos(x) = \cos(0) = \mathbf{1}$. Both guards pinch together at $1$, forcing $\lim_{x \to 0} \frac{\sin(x)}{x} = 1$. Geometrically, this means that if you zoom in with a microscope near $x = 0$, the curve $\sin(x)$ and the straight line $y = x$ look completely identical!
By introducing the punctured neighborhood ($0 < |x - c| < \delta$), we liberated our analysis from requiring $f(c)$ to exist. Whether a curve has a missing hole from a $\frac{0}{0}$ division or oscillates rapidly near a point, limits allow us to lock onto the exact destination of the trajectory.
In Lecture 11, we will push this concept to the ultimate horizon: investigating what happens when a function blows up to $+\infty$ at a vertical asymptote, or marches out to $x \to \pm\infty$ along a horizontal asymptote.
Test your mastery of punctured neighborhoods, one-sided limits, algebraic $\frac{0}{0}$ resolution, and the Squeeze Theorem.
Launch Practice Problems →