📊 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.
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.
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
| Symbol | Meaning | Type / 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 excluded | Strict inequality |
Worked Proof — $\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$
❓ Section 4 — Frequently Asked Questions
Real questions Bangladeshi HSC and university math students ask about ε-δ. Tap to expand.
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.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.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.
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.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)}$.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.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.⚠️ Section 5 — Misconceptions & Common Errors
Three conceptual misconceptions about what limits mean, plus three procedural errors students actually write.