Learning Objectives
By the end of this section you will be able to:
- Describe what it means for a limit to be infinite — and why that is not the same as "the limit exists".
- State the formal definition of and its one-sided cousins.
- Identify vertical asymptotes of common functions by hand.
- Classify the four canonical behaviors at a vertical asymptote.
- Compute vertical asymptotes for rational functions algebraically.
- Connect vertical asymptotes to exploding gradients in machine learning.
The Big Picture
In the previous section we watched approach a finite height as . We now flip the script. The input stays finite — it slides toward some ordinary number — but the output refuses to settle anywhere. It grows bigger, and bigger, and bigger, without bound. The graph shoots up (or down) a forbidden vertical line and never comes back.
Core idea
An infinite limit happens when the value of a function escapes every bounded window as approaches a specific point . The vertical line is called a vertical asymptote — a height the function hugs but never crosses.
This is the second fundamental way a limit can misbehave:
- Finite limit — , a nice real number. Example: .
- Infinite limit — . Example: as .
- No limit at all — the function oscillates or the two sides disagree. Example: near 0.
When we say "the limit is infinity" we are not claiming that the limit exists. Infinity is not a real number. We are recording the specific way the limit fails to exist — the function leaves every ceiling behind.
Intuition: Growing Without Bound
Picture sliding your finger along the x-axis toward a fixed point . At each x you peek at the height of the graph. Normally those heights cluster around some value. Sometimes though, the heights don't cluster — they run away.
A cartoon. Imagine standing on a trampoline next to a column that reaches the ceiling. The closer you walk toward the column, the more the trampoline floor slopes up. One step before the column the floor is at your knees. A centimetre before the column the floor is above your head. A millimetre before, the floor pokes through the ceiling. That column is a vertical asymptote.
Concretely, for near :
| x | f(x) = 1/x |
|---|---|
| 0.5 | 2 |
| 0.1 | 10 |
| 0.01 | 100 |
| 0.001 | 1,000 |
| 0.0001 | 10,000 |
| 0.00001 | 100,000 |
No single number is the limit. For any ceiling you pick — , , — the function eventually pokes through it. That unbounded escape is what we mean by .
Interactive Exploration
Pick a function. Move the asymptote with the first slider. Then shrink — the distance between the probe points and — and watch the two boxed values race off to infinity. The red dashed line marks the forbidden vertical:
Things to try
- Start with and shrink . Left and right boxes disagree in sign — the two-sided limit does not exist.
- Switch to . Both sides agree: the function hugs .
- Try . It dives to , but watch how much slower — at the magnitude is only about 7.
Formal Definition of Infinite Limits
The informal idea "output grows without bound" is turned into hard mathematics by reversing the roles of and from the ordinary limit definition. Instead of forcing the output into a band, we ask: for any target ceiling M, can we force the output above M by pushing x close enough to a?
Two-sided, tending to +∞
We write to mean: for every real number there exists such that
"Name any ceiling — I'll give you a horizontal tolerance so that once is within of (but not equal), sits above your ceiling."
Two-sided, tending to −∞
We write to mean: for every real number there exists such that
Same story, but the floor goes arbitrarily deep.
One-sided versions
Replace with either
- for the left-hand limit , or
- for the right-hand limit .
The one-sided limits can be , , a real number, or nothing at all. The two-sided limit agrees only when both sides match.
“The limit does not exist” vs “the limit is infinity”
These two statements mean different things. is a specific description of how a limit fails to be finite. DNE (does not exist) is the broader term: it includes infinite limits, oscillations, and one-sided mismatches.
Seeing It in Numbers
Formal statements are reassuring, but tables make the idea visceral. Pick a function and watch what happens as shrinks by a factor of 10 each row:
Worked Example 1 — A Simple Pole
Compute the one-sided limits of
as , and decide whether the two-sided limit exists.
Expand step-by-step walkthrough
Step 1 — Left-hand side. Let with . Then , so
As , we have , hence .
Step 2 — Right-hand side. Let . Then , so
Step 3 — Combine. Left says , right says . The two sides disagree, so the two-sided limit does not exist. The vertical line is a vertical asymptote.
Step 4 — Sanity check with numbers. Plug into the formulas: , . That matches the Python table below.
Four Flavors of Vertical Asymptote
Not every asymptote behaves the same way. By matching the left-hand and right-hand infinite limits, we get four canonical cases. Use the gallery below as a lookup table the next time you have to classify one:
| Case | Left-hand limit | Right-hand limit | Two-sided verdict |
|---|---|---|---|
| I | +∞ | +∞ | lim = +∞ |
| II | −∞ | −∞ | lim = −∞ |
| III | −∞ | +∞ (or swapped) | DNE |
| IV (log-type) | −∞ | −∞ | lim = −∞ (slow) |
Cases I and II are the two cases where mathematicians allow themselves to write . In Case III the two sides disagree, so the limit does not exist at all — we must either pick a side or accept no answer.
Vertical Asymptotes — Definition
A function has a vertical asymptote at if at least one of the one-sided limits there is infinite:
Notice the or: a single exploding one-sided limit is enough. The function has a vertical asymptote at even though only the right side makes sense — it dives to .
Asymptote ≠ unattainable
A vertical asymptote is a line the graph cannot cross, but the graph can equal it at isolated points elsewhere (think a horizontal asymptote being crossed by a decaying sine). For verticals, the rule is strict: the graph's height races off to infinity as .
How to Find Vertical Asymptotes
Three families of functions cover 95% of the cases you meet:
1. Rational functions
For , a vertical asymptote at happens when and . If both numerator and denominator vanish, the zero might be a removable hole instead — you must cancel common factors first.
2. Logarithms
has a vertical asymptote wherever . The logarithm's left side is undefined, so usually only a one-sided limit applies.
3. Trigonometric functions
have vertical asymptotes at every zero of their inner cosine or sine: blows up at .
Worked Example 2 — A Rational Function
Find all vertical asymptotes of
Expand step-by-step walkthrough
Step 1 — Factor the denominator.
Step 2 — Find candidate asymptotes. Denominator zeros: and .
Step 3 — Check the numerator.
- At : → genuine asymptote.
- At : → genuine asymptote.
Step 4 — Sign analysis at x = 2. Near , the numerator is close to 3 (positive), (positive), and the factor carries the asymptote behavior:
- : → .
- : → .
Same structure as Example 1 — Case III, two-sided DNE.
Step 5 — Sign analysis at x = −2. Numerator (negative), (negative), so
- : → .
- : → .
Conclusion. Two vertical asymptotes: and . Both are Case III — sign flips across each one.
Python Implementation
Before reaching for a library, let's do the experiment by hand. Click any line below to see the actual value of every variable on that line — across all five iterations of the loop.
PyTorch: Why Asymptotes Break Training
Vertical asymptotes are not just a calculus curiosity — they are a very real failure mode in machine learning. When a loss function or one of its components passes near a pole, the value of the loss explodes, and the gradient explodes even faster (by one extra power). The next snippet makes that concrete: compute and its gradient with PyTorch's autograd, then watch both race to infinity together.
Why this matters in ML
A in the forward pass becomes a in the backward pass. Where the value multiplies by 10 from one decade of proximity to the next, the gradient multiplies by 100. That is why a small numerical slip that lets drift too close to a pole produces NaNs in a neural network: the gradient becomes , the update step overshoots by several orders of magnitude, and the next forward pass is unrecoverable.
Real-World Applications
🌌 Physics — Coulomb potential
The electric potential between two point charges is . As , — the textbook reason we model point charges as limits.
🤖 Machine learning — log-likelihoods
Cross-entropy loss contains . If a predicted probability , the loss tends to . That is why implementations clip away from 0 or use log_softmax for stability.
💰 Finance — leverage ratios
Debt-to-equity, price-to-earnings, and similar ratios all look like . As (a firm with vanishing earnings), the ratio explodes — a vertical asymptote disguised as a headline.
🛰️ Signal processing — tan and sec
The tangent function appears in angle-of-arrival formulas. Near , has a vertical asymptote, and any algorithm that uses it must fall back to a different parametrization (for example atan2).
Common Pitfalls
“Cancelling” makes the asymptote disappear
For , the denominator is zero at , but so is the numerator. Factor first: . That is a removable discontinuity, not a vertical asymptote. Always cancel common factors before declaring victory.
Two-sided limit vs one-sided limit
Writing requires both one-sided limits to be . If left says and right says , the two-sided limit does not exist — you must use one-sided notation.
Infinity isn't a number
You cannot write . Limits of the form , , or are indeterminate and need a trick (factoring, conjugates, L'Hôpital) to resolve.
Summary
| Idea | Formula / Description |
|---|---|
| Infinite limit | f(x) escapes every bound as x → a |
| Two-sided +∞ | ∀ M > 0 ∃ δ > 0 : 0 < |x − a| < δ ⇒ f(x) > M |
| Two-sided −∞ | ∀ N < 0 ∃ δ > 0 : 0 < |x − a| < δ ⇒ f(x) < N |
| Vertical asymptote | A line x = a where at least one one-sided limit is ±∞ |
| Rational test | q(a) = 0 AND p(a) ≠ 0 ⇒ vertical asymptote at a |
| Gradient connection | Pole in f(x) of order k ⇒ pole in f'(x) of order k+1 |
Key Takeaways
- An infinite limit describes a specific way a limit fails to exist — the output grows past every ceiling.
- The formal definition reverses the roles of and : pick any ceiling, we'll give you a tolerance.
- Vertical asymptotes come in four flavors; the sign analysis determines which.
- Rational functions: factor, cancel, check numerator — then read off the asymptotes.
- In machine learning, a pole in the forward pass is a worse pole in the backward pass. Always clamp or reparametrize.
Coming next: §2.5 introduces the ε–δ definition — the same "name-a-ceiling" game we just played, but played for finite limits. You'll see that the infinite-limit definition was the easier sibling all along.