← SciSim / Mathematics

Limits — ε-δ Definition & Computation

The rigorous definition of a limit, visualized: shrink ε and discover δ.
🎓 Tier: Late UG / Graduate (rigorous), HSC-friendly intuition included

📊 Section 1 — Interactive Simulation

Choose a function, choose a limit point a, set ε, and find the largest δ such that the ε-δ condition holds. Drag to pan, pinch / wheel to zoom.

f(x) plot
f(a)
Limit L
ε (epsilon)
δ found
|f(x)−L| max
ε-δ holds?
δ/ε ratio

Animation

Function Preset

Parameters

For Sequence Mode

Display Options

Tips

• Drag canvas to pan, pinch or wheel to zoom.
• Toggle Auto-δ to compute the largest δ for the current ε numerically.
• The simulation visually demonstrates: can you fit all of f over (a−δ, a+δ) inside the horizontal ε-band?

🌱 Section 2 — The Idea, Step by Step

From a plain-language picture up to the full $\forall\eps\,\exists\delta$ statement — one gentle climb, then three things to try in the simulation above.

Start — the pouring-a-glass picture

Imagine filling a glass up to a line drawn on its side. If a friend says "get it within a centimetre of the line," you can pour fairly carelessly. If they say "within a millimetre," you slow right down and nudge the tap a tiny bit at a time. A tighter target on the output — the water level — forces a tighter grip on the input — how far you open the tap. That trade is the whole idea of a limit: however close you want the output to a target value, there is a way to control the input that gets you there.

Build — naming the two tolerances

As the input $x$ slides toward a point $a$, the output $f(x)$ heads toward a value $L$. Two numbers measure "closeness." The output tolerance $\eps$ (epsilon) is how near $L$ you insist the answer land; the input window $\delta$ (delta) is how near $a$ the input is allowed to wander. Saying $\lim_{x\to a}f(x)=L$ is a promise: name any $\eps$ you like, and I can hand you back a $\delta$ that keeps $f$ within $\eps$ of $L$.

One concrete number: take $f(x)=3x-1$ near $a=2$, where $L=5$. To force the output within $\eps=0.3$ of $5$, notice $\abs{(3x-1)-5}=3\abs{x-2}$, so you need $3\abs{x-2}<0.3$, i.e. $\abs{x-2}<0.1$. Hand back $\delta=0.1$. Ask for twice the precision, $\eps=0.15$, and $\delta$ simply halves to $0.05$. The recipe is $\delta=\eps/3$ — the steeper the line, the smaller the window.

Deepen — the precise statement and the sliders

Written in full: $\displaystyle\lim_{x\to a}f(x)=L$ means $\forall\,\eps>0\ \exists\,\delta>0$ such that $0<\abs{x-a}<\delta \Rightarrow \abs{f(x)-L}<\eps$. The "$0<$" quietly discards the single point $x=a$, so a limit watches the neighbourhood and never the centre — which is why it survives a hole in the graph. The order of the quantifiers is the soul of it: $\delta$ is allowed to depend on $\eps$ (smaller $\eps$, smaller $\delta$), never the reverse. In the simulation the $\eps$ slider sets the orange band's half-width, the $\delta$ slider sets the green strip's half-width, and the $a$ slider slides the strip sideways. The ε-δ holds? readout turns YES exactly when the blue curve, over the green strip, never leaves the orange band.

Try this in the sim above

① Choose f(x) = x² at $a=2$ and switch on Auto-δ. Drag $\eps$ smaller and watch the reported $\delta$ shrink with it — roughly $\delta\approx\eps/4$, because the curve's steepness at $a=2$ is $f'(2)=4$.

② Choose f(x) = sign(x) at $a=0$ with $\eps=0.5$. No matter how tiny you make $\delta$, the window still straddles the jump from $-1$ to $+1$, so the readout stays NO — that is a limit failing to exist, made visible.

③ Choose f(x) = sin(x)/x at $a=0$. The point $x=0$ is a hole, yet set $\eps=0.1$ and a perfectly good $\delta$ still appears — proof that a limit ($L=1$) can live exactly where the function itself is undefined.

📐 Section 3 — Definition & Derivation

The formal ε-δ definition, the symbol table, a 7-step worked proof, the simulation→symbol mapping, and a worked example.

Cauchy / Weierstrass ε-δ Definition of a Limit

Let $f : D \subseteq \R \to \R$ and let $a$ be an accumulation point of $D$. We say $$\lim_{x \to a} f(x) = L \quad \text{iff} \quad \forall\,\eps > 0 \ \exists\,\delta > 0 : \ \forall x \in D,\ 0 < \abs{x-a} < \delta \ \Longrightarrow\ \abs{f(x)-L} < \eps.$$

In words: however small a tolerance $\eps$ you demand around $L$, I can find a window of radius $\delta$ around $a$ (excluding $a$ itself) on which $f$ stays inside that tolerance.

Symbol Table

SymbolMeaningType / Domain
$f$ The function under study Function $D \to \R$
$D$ Domain of $f$ Subset of $\R$
$a$ Limit point (accumulation point of $D$) Real number; need not lie in $D$
$L$ Proposed limit value Real number
$\eps$ Output tolerance — half-width of band around $L$$\eps > 0$, real
$\delta$Input tolerance — radius around $a$ $\delta > 0$, real, depends on $\eps$
$\abs{\cdot}$Absolute value (distance on $\R$) $\R \to [0,\infty)$
$0 < \abs{x-a}$Punctured: $x \neq a$ allowed but excludedStrict inequality

Worked Proof — $\displaystyle\lim_{x\to 2} (3x-1) = 5$

Step 1 · Setup
Goal: show that for every $\eps>0$ we can produce $\delta>0$ with $\,0 < \abs{x-2} < \delta \implies \abs{(3x-1)-5} < \eps.$
Step 2 · Simplify the conclusion
$$\abs{(3x-1)-5} = \abs{3x - 6} = 3\abs{x-2}.$$
Step 3 · Reverse-engineer δ
We want $3\abs{x-2} < \eps$, i.e. $\abs{x-2} < \eps/3$. So choose $\delta = \eps/3$.
Step 4 · Forward verification
Suppose $0 < \abs{x-2} < \delta = \eps/3$. Then $\abs{(3x-1)-5} = 3\abs{x-2} < 3 \cdot \eps/3 = \eps. \ \checkmark$
Step 5 · Quantifier order
Note $\delta = \eps/3$ depends on $\eps$ — this is essential. The order is $\forall \eps \ \exists \delta$, never the reverse.
Step 6 · Punctured neighbourhood
The condition $0 < \abs{x-a}$ means $x \neq a$. The value $f(a)$ is irrelevant — limits are about behaviour near $a$, not at $a$.
Step 7 · Conclusion
Since $\eps>0$ was arbitrary, the definition is satisfied. $\boxed{\displaystyle\lim_{x\to 2}(3x-1)=5.}$

Simulation ↔ Symbol Mapping

slider a limit point $a$ in the definition
slider ε output tolerance $\eps$ around $L$ (horizontal band)
slider δ input radius $\delta$ around $a$ (vertical strip)
readout L proposed limit $L$ (computed numerically as $\lim_{h\to 0}f(a+h)$)
readout |f(x)-L| max $\sup_{0<\abs{x-a}<\delta}\abs{f(x)-L}$ — the largest output deviation in the δ-window
readout ε-δ holds? true iff that supremum $< \eps$
toggle Auto-δ numerical bisection on $\delta$ to find the largest valid δ for the given ε
slider n sequence index $n$ in $a_n \to L$ mode (Heine criterion)

Worked Numerical Example

Find a $\delta$ that proves $\lim_{x\to 3} x^2 = 9$ for $\eps = 0.1$.

$\abs{x^2-9} = \abs{(x-3)(x+3)} = \abs{x-3}\,\abs{x+3}.$

Restrict $\abs{x-3} < 1$ first: then $2 < x < 4$, hence $\abs{x+3} < 7$.

So $\abs{x^2-9} < 7\abs{x-3}$. We need $7\abs{x-3} < 0.1$, i.e. $\abs{x-3} < 1/70 \approx 0.01429$.

Choose $\boxed{\delta = \min\{1,\, 1/70\} = 1/70 \approx 0.01429}$. Verify: $\abs{x-3}<1/70 \Rightarrow \abs{x^2-9} < 7 \cdot 1/70 = 0.1 = \eps.\ \checkmark$

Reference: Rudin, W. — Principles of Mathematical Analysis, 3rd ed., Chapter 4 §4.1 "Limits of Functions"; Spivak, M. — Calculus, 4th ed., Chapter 5 "Limits"; Abbott, S. — Understanding Analysis, 2nd ed., §4.2 "Functional Limits".

❓ Section 4 — Frequently Asked Questions

Real questions Bangladeshi HSC and university math students ask about ε-δ. Tap to expand.

🧮Conceptual Why do we need ε-δ at all? Isn't the intuition "x gets close to a" enough?

Intuitive "closeness" works for textbook examples but breaks on sneakier functions like $\sin(1/x)$, the Dirichlet function, or limits of sequences of functions. The ε-δ definition gives a single, machine-checkable criterion that resolves every ambiguity. It also turns "the limit exists" from a vague feeling into a logical statement with a quantifier order ($\forall\eps\,\exists\delta$). Once you have this, every later theorem (continuity, differentiability, integrability, uniform convergence) becomes provable instead of hand-wavy.

Key takeaway: ε-δ is what turns calculus from a calculation game into a rigorous theory.
🔬Simulation What exactly is the simulation showing me?

The horizontal orange band is the ε-tube: $\{y : \abs{y-L}<\eps\}$. The vertical green strip is the δ-window: $\{x : 0<\abs{x-a}<\delta\}$. The ε-δ condition holds iff the part of the curve $y=f(x)$ above the green strip lies entirely inside the orange band. If even one point of the curve pokes above or below the band while $x$ is in the strip, the condition fails — the readout flips to FAIL. Toggling Auto-δ runs a bisection that returns the largest δ for which the condition holds.

Key takeaway: the curve must stay in the orange box over the green strip.
🌍Applied Where does ε-δ actually matter outside math classes?

Everywhere we need guaranteed precision. In numerical computing, ε is your tolerance and δ is the input precision needed to achieve it — this is the language of error analysis (e.g. when you specify atol=1e-9 in an ODE solver). Control engineers use it for stability margins (a controller is "robust" iff a δ-perturbation in the plant gives only an ε-perturbation in output). In machine learning, generalization bounds are ε-δ statements about test error. Even in physics, "the wave function is continuous" means an ε-δ statement about the field.

Key takeaway: ε is the answer's tolerance, δ is the input's tolerance — every engineering tolerance specification is ε-δ.
💡Non-Obvious Why is the condition $0 < \abs{x-a}$ — why strictly greater than zero?

Because the limit must not depend on what happens at $a$ — only what happens around it. The function may not even be defined at $a$ (think $f(x)=\sin(x)/x$ at $x=0$), or it may be defined with a "wrong" value (a removable discontinuity). The punctured condition $0<\abs{x-a}$ excludes $x=a$ from the test, so $f(a)$ is irrelevant to the limit. This is also why a limit can exist even where $f$ is undefined, and why continuity at $a$ ($\lim_{x\to a}f(x)=f(a)$) is a separate, stronger property.

Key takeaway: a limit cares about $f$ near $a$, never at $a$ — the punctured ball is what makes that precise.
📐Computational If I have $\lim_{x\to a}f(x)=L$ and want to check it numerically with tolerance $\eps$, how small does $\delta$ need to be?

For polynomial $f$ of degree $n$ near $a$, Taylor expansion gives $\abs{f(x)-L} \approx \abs{f'(a)}\,\abs{x-a} + O(\abs{x-a}^2)$, so $\delta \approx \eps / \abs{f'(a)}$ works to first order. For Lipschitz $f$ with constant $K$, $\delta = \eps/K$ always works. For $f$ with a removable discontinuity (like $\sin(x)/x$), use a Taylor estimate: near $0$, $\sin(x)/x \approx 1 - x^2/6$, so $\delta \approx \sqrt{6\eps}$ — note δ is $O(\sqrt{\eps})$, not $O(\eps)$. The complexity of the numerical bisection in the simulation is $O(\log_2(\delta_{\max}/\delta_{\min}))$ — about 25 steps to reach $\eps\approx 10^{-7}$.

Key takeaway: $\delta = \eps/L_f$ where $L_f$ is the local Lipschitz constant — for smooth $f$, that's $\abs{f'(a)}$.
🎓Deep / Advanced How does ε-δ connect to topology?

Re-read the definition: "$\abs{x-a}<\delta$" is "$x$ is in an open ball of radius $\delta$ around $a$"; "$\abs{f(x)-L}<\eps$" is "$f(x)$ is in an open ball of radius $\eps$ around $L$". The ε-δ statement is exactly: for every open ball around $L$, the preimage contains an open punctured ball around $a$. This generalizes verbatim to arbitrary topological spaces by replacing "open ball" with "open set" — yielding the topological definition: $f$ is continuous at $a$ iff the preimage of every open set containing $f(a)$ contains an open set containing $a$. So ε-δ is the metric-space version of an open-set statement.

Key takeaway: ε-δ is topology, written in the language of distances.
🧮Conceptual What does "$\lim$ does not exist" actually mean as a logical statement?

Negate the definition. "$\lim_{x\to a}f(x)=L$ holds" $=$ "$\forall\eps\,\exists\delta\,\forall x:\,0<\abs{x-a}<\delta\Rightarrow\abs{f(x)-L}<\eps$." The negation is "$\exists\eps\,\forall\delta\,\exists x:\,0<\abs{x-a}<\delta\,\wedge\,\abs{f(x)-L}\geq\eps$." Read it: "there is a tolerance $\eps$ that I can never achieve, no matter how small a window I pick." For $\sgn(x)$ at $x=0$ with proposed $L=0$, take $\eps = 1/2$ — for any $\delta$, the point $x=\delta/2$ satisfies $\abs{f(x)-0}=1\geq 1/2$. So no $L$ works, and the limit does not exist.

Key takeaway: "DNE" means the bad ε is the witness — find one ε that no δ can satisfy.
Best explanatory resource: 3Blue1Brown — "What is a limit? Formal definition, intuitively" (Essence of Calculus, Ch. 7); Paul's Online Math Notes — "The Definition of the Limit" (https://tutorial.math.lamar.edu/Classes/CalcI/DefnOfLimit.aspx); MIT OCW 18.100A — Real Analysis, Lecture 4 (Casey Rodriguez).

⚠️ Section 5 — Misconceptions & Common Errors

Three conceptual misconceptions about what limits mean, plus three procedural errors students actually write.

A · Conceptual Misconceptions
❌ Misconception: "$\lim_{x\to a} f(x)$ is just $f(a)$ — you plug in $a$." ✅ Correction: Plug-in works only when $f$ is continuous at $a$. The limit is about behaviour near $a$ via the punctured condition $0<\abs{x-a}<\delta$, while $f(a)$ may not even exist. For $f(x) = (x^2-4)/(x-2)$, $f(2)$ is undefined ($0/0$), yet the limit equals $4$. Continuity is the special case where limit equals plug-in. 📖 Reference: Spivak — Calculus, 4th ed., Ch. 5 §"Limits", Ch. 6 §"Continuous Functions".
❌ Misconception: "If I make ε small enough, eventually the function gets to $L$." ✅ Correction: The function never has to reach $L$. The ε-δ definition says: for any chosen $\eps$ (no matter how small), there is a $\delta$ such that $f$ stays within $\eps$ of $L$ throughout the δ-window. This is about nearness, not arrival. A sequence like $a_n = 1/n$ has limit 0 but is never equal to 0 for any finite $n$. 📖 Reference: Abbott — Understanding Analysis, 2nd ed., §2.2 "The Limit of a Sequence".
❌ Misconception: "If $\delta$ works for some $\eps$, then a larger $\delta$ also works." ✅ Correction: Backwards. Smaller δ always works (you're testing on a smaller window). Making δ larger may include points where $f$ wanders outside the ε-band. Try this in the simulation with $f(x)=x^2$, $a=2$, $\eps=0.1$: $\delta=0.02$ works, $\delta=0.5$ fails at $x=2.5$ where $f=6.25$ exceeds $4+0.1$. 📖 Reference: Rudin — Principles of Mathematical Analysis, 3rd ed., Definition 4.1.
B · Common Procedural Errors
❌ Error: "$\lim_{x\to 0}\dfrac{\sin x}{x} = \dfrac{\sin 0}{0} = \dfrac{0}{0} = 0$." ✅ Correct work: $0/0$ is an indeterminate form, not a value. Use the squeeze theorem ($\cos x \le \sin x / x \le 1$ for small $x$) or the Taylor expansion $\sin x = x - x^3/6 + \cdots$ to get $\sin x / x \to 1$. The justifying rule is the indeterminate-form theorem: $0/0$ requires further analysis (factoring, L'Hôpital, Taylor, squeeze). 🔍 Why students do this: they treat the symbol $0/0$ as if it were a number rather than a flag for "indeterminate".
❌ Error: "$\lim_{x\to a}[f(x)\cdot g(x)] = [\lim f(x)] \cdot [\lim g(x)]$ — always true." ✅ Correct work: The product rule $\lim(fg) = (\lim f)(\lim g)$ requires both limits to exist (and be finite). Counterexample: $f(x)=x$, $g(x)=\sin(1/x)$ as $x\to 0$. $\lim f = 0$ exists; $\lim g$ does not (oscillates). Yet $\lim(fg) = 0$ by squeeze. The product rule fails to apply, but the limit exists for a different reason. 🔍 Why students do this: they apply algebra-of-limits theorems without first checking each limit exists.
❌ Error: "Pick $\delta = \eps$ and you're done." ✅ Correct work: $\delta = \eps$ works only when $f$ has Lipschitz constant exactly 1 near $a$. For $f(x)=3x-1$ near $a=2$, you need $\delta = \eps/3$. For $f(x)=x^2$ near $a=3$, you need $\delta \le \eps/(\abs{2a}+1) = \eps/7$ (after restricting). The justifying rule: solve $\abs{f(x)-L} < \eps$ symbolically for $\abs{x-a}$ — never guess. 🔍 Why students do this: they remember the symbol "$\delta(\eps)$" but skip the algebraic step that determines the actual relationship.
Education research: Cornu, B. — "Limits" in Tall (ed.) Advanced Mathematical Thinking (1991), Springer, Ch. 10 — documents the "limit as approach" vs "limit as value" misconception; Tall, D. & Vinner, S. — "Concept image and concept definition in mathematics", Educational Studies in Mathematics, 1981, 12(2), 151–169; Carlson, M. et al. — "Applying covariational reasoning while modeling dynamic events", JRME, 2002, 33(5), 352–378; Matz, M. — "Towards a process model for high school algebra errors", in Sleeman & Brown (eds.) Intelligent Tutoring Systems, 1982 (procedural-error patterns).