Skip to content

Limits of Functions

In this lesson you’ll learn the epsilon-delta definition of a function limit, the standard proof template, why the point aa itself is excluded, and the sequential criterion that makes disproving limits easy. This is the definition the whole subject is built on.

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

∀ε>0  ∃δ>0  such that  0<∣x−a∣<δ  ⟹  ∣f(x)−L∣<ε\forall \varepsilon>0 \; \exists \delta>0 \; \text{such that} \; 0 < |x - a| < \delta \implies |f(x) - L| < \varepsilon

The same game as epsilon-N. Your opponent picks a tolerance ε\varepsilon on the output; you must produce a tolerance δ\delta on the input that guarantees it.

Geometrically: draw a horizontal band of half-width ε\varepsilon around LL. You must find a vertical strip of half-width δ\delta around aa such that the graph over that strip stays inside the band. Thinner band, thinner strip.

That strict inequality excludes x=ax = a, and it is deliberate.

The limit does not care about f(a)f(a). The function need not even be defined at aa. This is essential, because the derivative is defined as

lim⁡h→0f(a+h)−f(a)h\lim_{h\to 0} \frac{f(a+h) - f(a)}{h}

and that quotient is undefined at h=0h = 0. If limits required the value at the point, calculus could not start.

So three situations are all consistent with lim⁡x→af(x)=L\lim_{x\to a} f(x) = L: f(a)=Lf(a) = L, f(a)≠Lf(a) \ne L, and f(a)f(a) undefined. Continuity is the extra condition that f(a)f(a) exists and equals LL - the next lesson.

Same shape as before.

  1. Scratch. Start from ∣f(x)−L∣<ε|f(x)-L| < \varepsilon. Factor out ∣x−a∣|x-a| and bound whatever is left over.
  2. Choose δ\delta. Usually a min of two things.
  3. Verify. Assume 0<∣x−a∣<δ0<|x-a|<\delta, derive the conclusion forwards.

For a linear function it’s clean. To show lim⁡x→3(2x+1)=7\lim_{x\to 3}(2x+1) = 7:

Scratch. ∣(2x+1)−7∣=∣2x−6∣=2∣x−3∣|(2x+1) - 7| = |2x - 6| = 2|x-3|, and 2∣x−3∣<ε  ⟺  ∣x−3∣<ε22|x-3| < \varepsilon \iff |x-3| < \frac{\varepsilon}{2}.

Proof. Given ε>0\varepsilon>0, take δ=ε2\delta = \frac{\varepsilon}{2}. If 0<∣x−3∣<δ0<|x-3|<\delta then ∣(2x+1)−7∣=2∣x−3∣<2δ=ε|(2x+1)-7| = 2|x-3| < 2\delta = \varepsilon. ∎

Non-linear functions need one extra step. For lim⁡x→2x2=4\lim_{x\to 2} x^2 = 4:

∣x2−4∣=∣x−2∣∣x+2∣|x^2 - 4| = |x-2||x+2|

We control ∣x−2∣|x-2|, but ∣x+2∣|x+2| is a nuisance factor. Bound it first by restricting δ\delta.

If δ≤1\delta \le 1 then ∣x−2∣<1|x-2|<1 gives 1<x<31 < x < 3, so ∣x+2∣<5|x+2| < 5. Then

∣x2−4∣<5∣x−2∣|x^2-4| < 5|x-2|

which is below ε\varepsilon once ∣x−2∣<ε5|x-2| < \frac{\varepsilon}{5}. So take

δ=min⁡(1,ε5)\delta = \min\left(1, \frac{\varepsilon}{5}\right)

The min does two jobs at once: the 1 tames the nuisance factor, and the ε5\frac{\varepsilon}{5} delivers the tolerance. This pattern appears in nearly every non-linear epsilon-delta proof.

lim⁡x→af(x)=L\displaystyle\lim_{x\to a} f(x) = L   ⟺  \iff for every sequence xn→ax_n \to a with xn≠ax_n \ne a, we have f(xn)→Lf(x_n) \to L.

This connects function limits to sequence limits, and it hands you two useful things.

All the sequence limit theorems transfer. Sums, products, quotients and the squeeze theorem for function limits follow immediately, with no new epsilon-delta work.

Disproving a limit becomes easy. Exhibit two sequences approaching aa whose images have different limits, and the limit cannot exist. Negating the epsilon-delta definition directly is much more painful.

lim⁡x→a+f(x)=L\lim_{x\to a^+} f(x) = L uses a<x<a+δa < x < a+\delta; the left limit uses a−δ<x<aa - \delta < x < a. Then

lim⁡x→af(x)=L  ⟺  lim⁡x→a−f(x)=lim⁡x→a+f(x)=L\lim_{x\to a} f(x) = L \iff \lim_{x\to a^-} f(x) = \lim_{x\to a^+} f(x) = L

For f(x)=∣x∣xf(x) = \frac{|x|}{x} the right limit at 0 is 1 and the left is −1-1, so the two-sided limit does not exist.

Example 1: Prove lim⁡x→4(3x−5)=7\lim_{x\to 4}(3x - 5) = 7.

Solution. Scratch. ∣(3x−5)−7∣=∣3x−12∣=3∣x−4∣<ε  ⟺  ∣x−4∣<ε3|(3x-5)-7| = |3x-12| = 3|x-4| < \varepsilon \iff |x-4| < \frac{\varepsilon}{3}.

Proof. Let ε>0\varepsilon>0 and take δ=ε3\delta = \frac{\varepsilon}{3}. If 0<∣x−4∣<δ0<|x-4|<\delta then

∣(3x−5)−7∣=3∣x−4∣<3δ=ε|(3x-5)-7| = 3|x-4| < 3\delta = \varepsilon

∎

For any linear f(x)=mx+cf(x) = mx+c with m≠0m \ne 0, δ=ε∣m∣\delta = \frac{\varepsilon}{|m|} always works.

Example 2: Prove lim⁡x→3x2=9\lim_{x\to 3} x^2 = 9.

Solution. Scratch. ∣x2−9∣=∣x−3∣∣x+3∣|x^2-9| = |x-3||x+3|. Restrict δ≤1\delta \le 1, so 2<x<42<x<4 and ∣x+3∣<7|x+3| < 7. Then ∣x2−9∣<7∣x−3∣|x^2-9| < 7|x-3|, below ε\varepsilon when ∣x−3∣<ε7|x-3| < \frac{\varepsilon}{7}.

Proof. Given ε>0\varepsilon>0, take δ=min⁡(1,ε7)\delta = \min\left(1, \frac{\varepsilon}{7}\right). If 0<∣x−3∣<δ0<|x-3|<\delta then ∣x−3∣<1|x-3|<1 so ∣x+3∣<7|x+3|<7, and

∣x2−9∣=∣x−3∣∣x+3∣<7∣x−3∣<7⋅ε7=ε|x^2-9| = |x-3||x+3| < 7|x-3| < 7 \cdot \frac{\varepsilon}{7} = \varepsilon

∎

Example 3: A limit where the function is undefined at the point.

Compute lim⁡x→2x2−4x−2\lim_{x\to 2}\frac{x^2-4}{x-2}.

Solution. At x=2x = 2 the expression is 00\frac00, undefined. But the definition only looks at x≠2x \ne 2, and there

x2−4x−2=(x−2)(x+2)x−2=x+2\frac{x^2-4}{x-2} = \frac{(x-2)(x+2)}{x-2} = x+2

The cancellation is legal precisely because x≠2x \ne 2. So the limit is lim⁡x→2(x+2)=4\lim_{x\to2}(x+2) = 4.

The limit is 4 even though f(2)f(2) does not exist. This is exactly the situation every derivative is in.

Example 4: Disprove a limit with sequences.

Show lim⁡x→0sin⁡(1x)\lim_{x\to 0}\sin\left(\frac1x\right) does not exist.

Solution. Take two sequences approaching 0.

xn=12πn  ⟹  sin⁡(1xn)=sin⁡(2πn)=0x_n = \frac{1}{2\pi n} \implies \sin\left(\frac{1}{x_n}\right) = \sin(2\pi n) = 0 yn=12πn+π2  ⟹  sin⁡(1yn)=sin⁡(2πn+π2)=1y_n = \frac{1}{2\pi n + \frac{\pi}{2}} \implies \sin\left(\frac{1}{y_n}\right) = \sin\left(2\pi n + \frac\pi2\right) = 1

Both xn→0x_n \to 0 and yn→0y_n \to 0, but the images converge to 0 and 1.

By the sequential criterion, the limit does not exist. ∎

Compare how much work negating the epsilon-delta definition would have been. Two sequences settled it.

Example 5: Delta depending on the point.

For f(x)=1xf(x) = \frac1x on (0,∞)(0,\infty), how does δ\delta depend on aa for a fixed ε\varepsilon?

Solution.

∣1x−1a∣=∣a−x∣∣ax∣\left|\frac1x - \frac1a\right| = \frac{|a-x|}{|ax|}

Restrict ∣x−a∣<a2|x - a| < \frac a2, so x>a2x > \frac a2 and ∣ax∣>a22|ax| > \frac{a^2}{2}. Then

∣1x−1a∣<2∣x−a∣a2\left|\frac1x-\frac1a\right| < \frac{2|x-a|}{a^2}

so δ=min⁡(a2,εa22)\delta = \min\left(\frac a2, \frac{\varepsilon a^2}{2}\right) works.

δ\delta shrinks like a2a^2 as a→0a \to 0. The function gets steeper near 0, so the same output tolerance demands a much tighter input tolerance. That dependence on the point, not just on ε\varepsilon, is what fails to be uniform - and uniform continuity, four lessons ahead, is exactly the condition that rules it out.

Example 6: A limit of 0 via squeezing.

Compute lim⁡x→0xsin⁡(1x)\lim_{x\to 0} x\sin\left(\frac1x\right).

Solution. The previous example shows sin⁡1x\sin\frac1x has no limit. But it is bounded, and

∣xsin⁡1x∣≤∣x∣\left|x\sin\frac1x\right| \le |x|

so −∣x∣≤xsin⁡1x≤∣x∣-|x| \le x\sin\frac1x \le |x|. Both bounds →0\to 0, so by squeezing the limit is 0.

A bounded factor times a vanishing one goes to zero, whether or not the bounded factor has a limit. Same result as for sequences, now for functions.

Example 7: One-sided limits differing.

Analyse f(x)=∣x∣xf(x) = \frac{|x|}{x} at x=0x = 0.

Solution. For x>0x>0, f(x)=1f(x) = 1. For x<0x<0, f(x)=−1f(x) = -1. Undefined at 0.

lim⁡x→0+f(x)=1,lim⁡x→0−f(x)=−1\lim_{x\to0^+}f(x) = 1, \qquad \lim_{x\to0^-}f(x) = -1

Different, so the two-sided limit does not exist. Sequentially: 1n→0\frac1n \to 0 gives images 1, and −1n→0-\frac1n \to 0 gives images −1-1.

This is a jump discontinuity, and it is what makes the sign function non-integrable-by-inspection arguments fail and why step functions need care.

Tolerance engineering. “The output must be within ε\varepsilon, so how tightly must the input be controlled?” is literally the epsilon-delta question. Manufacturing tolerance stack-up analysis computes δ\delta from a required ε\varepsilon, and the derivative is the local conversion factor between them.

Numerical differentiation. Approximating f′(a)f'(a) by a difference quotient with small hh relies on the limit existing. Too large an hh gives truncation error and too small an hh gives catastrophic floating-point cancellation, so there is an optimal hh - a very practical consequence of the limit being approached rather than reached.

Sensor calibration. A sensor’s sensitivity is a derivative, and the amplification of input noise into output noise is the εδ\frac{\varepsilon}{\delta} ratio. Example 5’s point matters here: near a steep part of the response curve, the same output precision demands far better input precision.

Control systems. Steady-state error is a limit as t→∞t \to \infty, and a controller specification like “settle within 2% of setpoint” is a choice of ε\varepsilon with a corresponding settling time.

Graphics and continuity of rendering. A shader with a discontinuity produces visible seams. Detecting where a piecewise definition fails to have matching one-sided limits is exactly how those artifacts get diagnosed.

Why does the definition use 0 < |x − a| < δ rather than |x − a| < δ?
In proving lim_{x→3} x² = 9, why is δ taken as min(1, ε/7)?
What is the quickest way to show lim_{x→0} sin(1/x) does not exist?
What is lim_{x→2} (x² − 4)/(x − 2)?
For f(x) = 1/x, how does the required δ behave as the point a approaches 0, for fixed ε?
What is lim_{x→0} x·sin(1/x)?