All posts

October 22, 2026 · 6 min read

Proving Limits With ε and δ, in Color

A color-coded, visual walkthrough of epsilon-delta limit proofs. I wrote this to finally understand the process of proving a limit, not just memorize the template.

By Owen Kruse

The epsilon-delta definition of a limit was the first thing in calculus I could recite without understanding. I could copy the template: "Let ε>0\eps > 0. Choose δ=…\del = \ldots Then …\ldots" But if you asked me why δ=ε3\del = \frac{\eps}{3}, or where that 33 came from, I'd point at some scratch work and shrug.

So I wrote this post to work through the process properly. I wanted to understand proving limits like this well enough that the template felt obvious instead of magic. Color-coding every symbol and building graphs I could drag around is what finally got me there, so that's what this post is. If you're stuck in the same spot, I hope it helps you too.

The color key

Every symbol keeps the same color for the whole post, in the equations and in the graphs:

  • ε\eps (epsilon) is orange. It's how close f(x)f(x) has to get to the limit. Think of it as the challenge.
  • δ\del (delta) is blue. It's how close xx has to be to a\ca{a}. Think of it as your response.
  • L\cL{L} is green. It's the limit you're claiming.
  • a\ca{a} is purple. It's the point xx is approaching.

Anything with a dotted underline, like when to stop the scratch work, answers a question I had while learning this. Hover over it, or tap it on your phone.

The definition

Writing

lim⁡x→af(x)=L\lim_{x \to \ca{a}} f(x) = \cL{L}

means

∀ ε>0,  ∃ δ>0  such that  0<∣x−a∣<δ  ⟹  ∣f(x)−L∣<ε.\tip{quantifier-order}{\forall\, \eps > 0,\ \ \exists\, \del > 0} \ \text{ such that } \ \tip{punctured}{0 < |x - \ca{a}|} < \del \implies |f(x) - \cL{L}| < \eps.

That line used to look like noise to me. Broken into pieces, it's one sentence:

Piece In plain English
∀ ε>0\forall\, \eps > 0 No matter how small a tolerance someone picks around L\cL{L},
∃ δ>0\exists\, \del > 0 you can find a window around a\ca{a}
0<∣x−a∣<δ0 < \lvert x - \ca{a} \rvert < \del so that whenever xx is inside that window (but not at a\ca{a} itself),
∣f(x)−L∣<ε\lvert f(x) - \cL{L} \rvert < \eps f(x)f(x) lands within ε\eps of L\cL{L}.

What made it click for me was reading it as a game. A skeptic picks an ε\eps, a horizontal band around L\cL{L}. You answer with a δ\del, a vertical window around a\ca{a}. You win the round if the graph inside your window stays inside their band. Proving the limit means showing you can win every round, no matter how thin they make the band.

Here's one round, for x\sqrt{x} near 4\ca{4}. Drag the orange ε\eps handle on the right to set the challenge and the blue δ\del handle on top to answer it. The part of the curve inside your window turns pink anywhere it escapes the band.

f(x)=xf(x) = \sqrt{x}lim⁡x→4f(x)=?2\displaystyle\lim_{x \to \ca{4}} f(x) \overset{?}{=} \cL{2}
012345678900.511.522.533.5L = 2a = 4εδ

This δ fails. At x=1.503x = 1.503, ∣f(x)−2∣=0.774|f(x) - \cL{2}| = \cbad{0.774}, which isn't less than ε=0.50\eps = 0.50.

Largest δ that works here: ≈1.75\approx \cdel{1.75}. Drag the orange ε handle to set the challenge, then drag the blue δ handle until everything inside the blue window stays inside the orange band. The curve flattens out to the right, so the left side always escapes first.

A few things I didn't really get until I played with this:

  • Smaller δ\del never hurts. If a window works, any narrower window works too. So you never need the best δ\del, just one that's small enough. That took a lot of pressure off.
  • The hollow dot is on purpose. The 0<∣x−a∣0 < |x - \ca{a}| part of the definition means x=ax = \ca{a} itself doesn't count. Limits are about what ff does as it approaches a\ca{a}, not what happens when it gets there.
  • The worse side decides. The curve is steeper on the left of 4\ca{4}, so the left edge of the window escapes first. Your δ\del has to work for both sides at once.

The process: two passes in opposite directions

This is the part nobody spelled out for me: you figure out an epsilon-delta proof in the opposite order from how you write it.

  1. Scratch work, backwards. Start with what you want, ∣f(x)−L∣<ε|f(x) - \cL{L}| < \eps, and do algebra on it until it looks like ∣x−a∣<something|x - \ca{a}| < \text{something}. That something is your δ\del.
  2. The proof, forwards. Start from ∣x−a∣<δ|x - \ca{a}| < \del and climb back up to ∣f(x)−L∣<ε|f(x) - \cL{L}| < \eps.

The scratch work never shows up in the final proof. That's exactly why finished proofs look like δ\del was pulled out of thin air: the part where you found it got erased.

Example 1: a line

Prove that

lim⁡x→2(3x−1)=5.\lim_{x \to \ca{2}} (3x - 1) = \cL{5}.

Scratch work

Start from the goal and simplify until ∣x−2∣|x - \ca{2}| is alone on the left:

∣(3x−1)−5∣<ε∣3x−6∣<ε3 ∣x−2∣<ε∣x−2∣<ε3\begin{aligned} |(3x - 1) - \cL{5}| &< \eps \\ |3x - 6| &< \eps \\ 3\,|x - \ca{2}| &< \eps \\ |x - \ca{2}| &< \cdel{\frac{\eps}{3}} \end{aligned}

The last line has exactly the shape the definition wants, so choose δ=ε3\del = \frac{\eps}{3}. Notice the color: ε3\cdel{\frac{\eps}{3}} is blue on the outside with orange inside. δ\del is built out of ε\eps. That's the whole idea. Your response depends on their challenge.

Here's the same chain as a ladder. Scratch work reads it top to bottom. The proof reads it bottom to top.

↓ Scratch work: start at the goal, dig for δ↑ Proof: start from δ, climb to the goal
  1. ∣(3x−1)−5∣<ε|(3x - 1) - \cL{5}| < \epsThe goal. This is what the definition demands.
  2. ∣3x−6∣<ε|3x - 6| < \eps
  3. 3 ∣x−2∣<ε3\,|x - \ca{2}| < \epsFactor out the 3 so |x − a| shows up.
  4. ∣x−2∣<ε3\tip{when-to-stop}{|x - \ca{2}| < \cdel{\dfrac{\eps}{3}}}This has the shape |x − a| < something. That something is δ.
  5. δ=ε3\del = \frac{\eps}{3}

The proof

Let ε>0\eps > 0. Choose δ=ε3\del = \frac{\eps}{3}. Suppose 0<∣x−2∣<δ0 < |x - \ca{2}| < \del. Then

∣(3x−1)−5∣=3 ∣x−2∣<3 δ=3⋅ε3=ε.|(3x - 1) - \cL{5}| = 3\,|x - \ca{2}| < 3\,\del = 3 \cdot \cdel{\frac{\eps}{3}} = \eps.

So ∣f(x)−5∣<ε|f(x) - \cL{5}| < \eps whenever 0<∣x−2∣<δ0 < |x - \ca{2}| < \del, which proves the limit is 5\cL{5}. ■\blacksquare

The proof is just the ladder climbed upward, with ε3\cdel{\frac{\eps}{3}} substituted in at the moment it's needed.

Now watch the rule work. Press play and ε\eps shrinks. With δ=ε3\del = \frac{\eps}{3} selected, the window shrinks with it and the curve never leaves the box. The box even keeps its shape: the line has slope 33, so the window always needs to be exactly three times narrower than the band. That's where the 33 came from.

f(x)=3x−1f(x) = 3x - 1lim⁡x→2f(x)=?5\displaystyle\lim_{x \to \ca{2}} f(x) \overset{?}{=} \cL{5}
00.511.522.533.540246810L = 5a = 2εδ

Choose δ

This δ works. Every xx with 0<∣x−2∣<δ0 < |x - \ca{2}| < \del lands inside the band.

Largest δ that works here: ≈0.50\approx \cdel{0.50}. Press play to shrink ε. With δ = ε/3 the window shrinks right along with it, so the curve never leaves the box. Switch to “Pick your own” and play again to watch a fixed δ get left behind.

Example 2: a curve, and the trick that confused me most

Prove that

lim⁡x→2x2=4.\lim_{x \to \ca{2}} x^2 = \cL{4}.

Scratch work

Same start. Factor so ∣x−2∣|x - \ca{2}| shows up:

∣x2−4∣=∣x−2∣⋅∣x+2∣.|x^2 - \cL{4}| = |x - \ca{2}| \cdot \tip{delta-no-x}{\cbad{|x + 2|}}.

The ∣x−2∣|x - \ca{2}| part is under control, since that's what δ\del limits. The pink ∣x+2∣\cbad{|x + 2|} is the problem. It changes with xx, and δ\del isn't allowed to depend on xx. It can only depend on ε\eps.

My first instinct was: near x=2x = 2, ∣x+2∣|x + 2| is about 44, so pick δ=ε4\del = \frac{\eps}{4}. Try that below. With δ=ε4\del = \frac{\eps}{4} selected, the right side of the parabola climbs out of the band, because just to the right of 22, ∣x+2∣|x + 2| is a bit more than 44.

f(x)=x2f(x) = x^2lim⁡x→2f(x)=?4\displaystyle\lim_{x \to \ca{2}} f(x) \overset{?}{=} \cL{4}
00.511.522.533.54024681012L = 4a = 2εδ

Choose δ

This δ fails. At x=3.248x = 3.248, ∣f(x)−4∣=6.552|f(x) - \cL{4}| = \cbad{6.552}, which isn't less than ε=5.00\eps = 5.00.

Largest δ that works here: ≈1.00\approx \cdel{1.00}. The naive guess δ = ε/4 lets the right side of the parabola climb out of the band. Switch to min(1, ε/5) and it stays in for every ε. Above ε = 5 the 1 takes over and δ stops growing.

The fix is to put xx on a leash first. Promise that δ\del will be at most 1\cdel{1}. Then

∣x−2∣<1  ⟹  1<x<3  ⟹  3<x+2<5  ⟹  ∣x+2∣<5.|x - \ca{2}| < \cdel{1} \implies 1 < x < 3 \implies 3 < x + 2 < 5 \implies \cbad{|x + 2|} < 5.

Now the troublesome factor is stuck below 55, so

∣x2−4∣=∣x−2∣⋅∣x+2∣<5 ∣x−2∣,|x^2 - \cL{4}| = |x - \ca{2}| \cdot \cbad{|x + 2|} < 5\,|x - \ca{2}|,

and that's less than ε\eps as long as ∣x−2∣<ε5|x - \ca{2}| < \frac{\eps}{5}.

So δ\del has made two promises: it's at most 1\cdel{1} (so the bound ∣x+2∣<5|x + 2| < 5 is true), and it's at most ε5\frac{\eps}{5} (so the inequality finishes). The smaller of the two keeps both promises:

δ=min⁡ ⁣(1,ε5).\del = \tip{why-min}{\min\!\left(\cdel{1}, \frac{\eps}{5}\right)}.

That min⁡\min was the single most confusing part of these proofs for me. It turns out it's not a trick at all. It's just two requirements, and you take whichever one is stricter. Go back to the graph above, switch to min⁡(1,ε5)\min(1, \frac{\eps}{5}) and press play. It holds for every ε\eps. Above ε=5\eps = 5, the 11 takes over and δ\del stops growing.

↓ Scratch work: start at the goal, dig for δ↑ Proof: start from δ, climb to the goal
  1. ∣x2−4∣<ε|x^2 - \cL{4}| < \epsThe goal.
  2. ∣x−2∣ ∣x+2∣<ε|x - \ca{2}|\,\tip{delta-no-x}{\cbad{|x + 2|}} < \eps|x − 2| is in our control. |x + 2| changes with x, so it needs a bound.
  3. ∣x−2∣⋅5<ε|x - \ca{2}| \cdot \cdel{5} < \epsIf we promise δ ≤ 1, then 1 < x < 3, so |x + 2| < 5.
  4. ∣x−2∣<ε5\tip{when-to-stop}{|x - \ca{2}| < \cdel{\dfrac{\eps}{5}}}Now δ also has to be at most ε/5.
  5. δ=min⁡ ⁣(1,ε5)\del = \min\!\left(\cdel{1}, \frac{\eps}{5}\right)

The proof

Let ε>0\eps > 0. Choose δ=min⁡ ⁣(1,ε5)\del = \min\!\left(\cdel{1}, \frac{\eps}{5}\right), and suppose 0<∣x−2∣<δ0 < |x - \ca{2}| < \del.

Since δ≤1\del \le \cdel{1}, we have ∣x−2∣<1|x - \ca{2}| < 1, so 1<x<31 < x < 3 and ∣x+2∣<5|x + 2| < 5. Since δ≤ε5\del \le \frac{\eps}{5},

∣x2−4∣=∣x−2∣ ∣x+2∣<δ⋅5≤ε5⋅5=ε.|x^2 - \cL{4}| = |x - \ca{2}|\,|x + 2| \tip{mixed-inequalities}{< \del \cdot 5 \le \frac{\eps}{5} \cdot 5} = \eps.

So lim⁡x→2x2=4\lim_{x \to \ca{2}} x^2 = \cL{4}. ■\blacksquare

What failure looks like

Seeing proofs fail helped me as much as seeing them work. To show a limit is not L\cL{L}, you flip every quantifier in the definition:

∃ ε>0  ∀ δ>0  ∃ x:  0<∣x−a∣<δ  and  ∣f(x)−L∣≥ε.\exists\, \eps > 0 \ \ \forall\, \del > 0 \ \ \exists\, x: \ \ 0 < |x - \ca{a}| < \del \ \text{ and } \ \tip{why-geq}{|f(x) - \cL{L}| \ge \eps}.

In game terms, the skeptic only needs one band you can't answer. Below are two ways that happens. Pick an ε\eps small enough and the panel tells you no δ\del works at all.

f(x)=x2f(x) = x^2lim⁡x→2f(x)=?4.5\displaystyle\lim_{x \to \ca{2}} f(x) \overset{?}{=} \cL{4.5}
0.511.522.533.502468L = 4.5a = 2εδ

This δ fails. At x=1.601x = 1.601, ∣f(x)−4.5∣=1.938|f(x) - \cL{4.5}| = \cbad{1.938}, which isn't less than ε=0.30\eps = 0.30.

No δ works for this ε. Someone claims the limit is 4.5. With ε above 0.5 you can still find a δ. Below 0.5, the curve near x = 2 sits at about 4, outside the band, and no δ is thin enough to fix that.

  • Wrong L\cL{L}: if someone claims lim⁡x→2x2=4.5\lim_{x \to \ca{2}} x^2 = \cL{4.5}, any ε≤0.5\eps \le 0.5 wins for the skeptic. The curve near x=2x = 2 sits at about 44, which is outside the band.
  • A jump: ⌊x⌋\lfloor x \rfloor is 00 just left of 1\ca{1} and 11 just right of it. Whatever L\cL{L} you guess, an ε≤12\eps \le \frac{1}{2} catches one side or the other, so the limit doesn't exist.

The template I actually use now

After working through all of this, the process fits on an index card:

  1. Write the goal: ∣f(x)−L∣<ε|f(x) - \cL{L}| < \eps.
  2. Factor out ∣x−a∣|x - \ca{a}|. Whatever is left over either is a constant (great) or depends on xx.
  3. If it depends on xx, leash it. Assume δ≤1\del \le 1, figure out the range of xx that gives you, and bound the leftover factor by a constant K\cdel{K}.
  4. Read off δ\del: δ=min⁡ ⁣(1,εK)\del = \min\!\left(1, \frac{\eps}{\cdel{K}}\right), or just εK\frac{\eps}{\cdel{K}} if you didn't need the leash.
  5. Write the proof forwards: let ε>0\eps > 0, choose δ\del, assume 0<∣x−a∣<δ0 < |x - \ca{a}| < \del, and chain inequalities until you reach <ε< \eps.

The template was always right. I just didn't see that every line of it is one move in the game, and that the scratch work is where the real thinking happens. Writing this post, and dragging those bands around until the shapes made sense, is how I got from memorizing the process to understanding it.