Limits: Intuition and the Formal Definition

Published on 2026-11-04·v1.0

Learning Objectives

  • Explain what lim⁡x→af(x)=L\lim_{x\to a}f(x)=L says in words, including why the value f(a)f(a) plays no role.
  • Estimate a limit from a table or a graph, and recognize when a table is misleading.
  • Compute one-sided limits and use them to decide whether a two-sided limit exists.
  • Classify the three standard ways a limit fails to exist: a jump, unbounded growth, and oscillation.
  • State the ε\varepsilon-δ\delta definition and carry out a complete proof with explicit numbers for both a linear and a nonlinear function.

Context & Motivation

The derivative, the integral, and the sum of an infinite series are all defined as limits, so this is the lesson on which the rest of the discipline rests. The reason limits exist at all is a practical one. The average speed of a car over an interval is distance divided by time, but the speed at one instant would be 0/00/0. A limit is the tool that gives that expression a meaning: not by dividing zero by zero, but by asking what the quotient does as the interval shrinks toward zero.

Programmers meet the same obstacle without the vocabulary. You cannot evaluate a function at the point where it is undefined, so you evaluate it at points close by and trust the trend. This lesson shows when that trust is justified and when it is not (a floating-point table below gets the answer wrong). The cure is a precise definition: one that says exactly what "close" means and can be checked without a computer. That definition is also the shape of every numerical guarantee in computing: to get an output within ε\varepsilon of the true value, how accurately must the input be known? The functions used here come from functions-and-the-elementary-families.

Core Theory

Approaching a value

Consider f(x)=x2−1x−1f(x)=\dfrac{x^2-1}{x-1}. It is undefined at x=1x=1, since the formula gives 0/00/0. Still, for x≠1x\ne1 we can factor and cancel, so f(x)=x+1f(x)=x+1. Evaluating near 11:

text
x 0.9 0.99 0.999 1.001 1.01 1.1 f(x) 1.9 1.99 1.999 2.001 2.01 2.1

The values close in on 2 from both sides. We write lim⁡x→1f(x)=2\lim_{x\to1}f(x)=2 and read it as: "f(x)f(x) can be made as close to 2 as we like by taking xx close enough to 1, but not equal to 1." The restriction x≠ax\ne a is part of the idea. A limit describes the behavior of ff near aa, not at aa. The function may be undefined at aa, or defined with a different value, and the limit is the same.

Tables can lie

A table is evidence, not a proof. The limit lim⁡x→01−cos⁡xx2\lim_{x\to0}\dfrac{1-\cos x}{x^2} equals 12\tfrac12. Computing it in double precision with the formula as written:

text
x (1-cos x)/x^2 2 sin^2(x/2)/x^2 1e-01 0.4995834722 0.4995834722 1e-04 0.4999999970 0.4999999996 1e-06 0.5000444503 0.5000000000 1e-07 0.4996003611 0.5000000000 1e-08 0.0000000000 0.5000000000

The left column drifts away from 0.50.5 and then collapses to 00, because cos⁡x\cos x is so close to 1 that the subtraction 1−cos⁡x1-\cos x cancels every significant digit. The right column uses the identity 1−cos⁡x=2sin⁡2(x/2)1-\cos x=2\sin^2(x/2), which is the same function written without a subtraction of nearly equal numbers. A student who stopped reading the left column at x=10−8x=10^{-8} would conclude that the limit is 00. The limit is a fact about the function, and the definition below is what lets you reason about the function rather than about its floating-point shadow.

One-sided limits and the ways a limit fails

The left-hand limit lim⁡x→a−f(x)\lim_{x\to a^-}f(x) only uses x<ax<a, and the **right-hand limit** lim⁡x→a+f(x)\lim_{x\to a^+}f(x) only uses x>ax>a.

Theorem. lim⁡x→af(x)=L\lim_{x\to a}f(x)=L if and only if both one-sided limits exist and both equal LL.

The "both equal" hypothesis can fail. For f(x)=∣x∣/xf(x)=\lvert x\rvert/x, the right-hand limit at 00 is 11 and the left-hand limit is −1-1. Both exist, they disagree, and so the two-sided limit does not exist. Three patterns cover most failures:

  • Jump. The one-sided limits exist but differ (the case above).
  • Unbounded growth. For 1/x21/x^2 at 00 the values are 100100, 10,00010{,}000, 10610^6 at x=0.1,0.01,0.001x=0.1,0.01,0.001. We write lim⁡x→01/x2=∞\lim_{x\to0}1/x^2=\infty as a description of how the limit fails to be a real number, not as a number.
  • Oscillation. sin⁡(1/x)\sin(1/x) at 00 takes the value 11 at xn=1/(π/2+2πn)x_n=1/(\pi/2+2\pi n) and −1-1 at xn′=1/(3π/2+2πn)x_n'=1/(3\pi/2+2\pi n). For n=1,2,3n=1,2,3 the first sequence is 0.1273, 0.0707, 0.04900.1273,\ 0.0707,\ 0.0490 and the second is 0.0909, 0.0579, 0.04240.0909,\ 0.0579,\ 0.0424. Both shrink toward 00, but the function value alternates between 11 and −1-1 along them, so no single LL works.

The epsilon-delta definition

Definition. Let ff be defined on an interval around aa, except possibly at aa itself. Then lim⁡x→af(x)=L\lim_{x\to a}f(x)=L means: for every ε>0\varepsilon>0 there is a δ>0\delta>0 such that

0<∣x−a∣<δ⟹∣f(x)−L∣<ε.0<\lvert x-a\rvert<\delta \quad\Longrightarrow\quad \lvert f(x)-L\rvert<\varepsilon.

It is a challenge-and-response game. An adversary picks a tolerance ε\varepsilon around LL on the output side. You must answer with a δ\delta that places every xx within δ\delta of aa (other than aa) inside that tolerance. If you can always answer, the limit is LL. Several details are load-bearing:

  • The inequality 0<∣x−a∣0<\lvert x-a\rvert is what excludes x=ax=a.
  • δ\delta may depend on ε\varepsilon (smaller tolerances usually need smaller δ\delta) and on aa.
  • Any smaller δ\delta also works, so the proof only needs one valid choice.
  • The hypothesis that ff is defined near aa matters: the definition needs points x≠ax\ne a arbitrarily close to aa to test.

Uniqueness. If a limit exists, it is unique. Two different values L1≠L2L_1\ne L_2 would need f(x)f(x) to be within ∣L1−L2∣/2\lvert L_1-L_2\rvert/2 of both at once, which is impossible. This is why writing "the" limit is justified.

In engineering terms, ε\varepsilon is the error you can tolerate in the answer and δ\delta is the precision you must demand of the input.

Worked Examples

Example 1: a linear function, lim⁡x→3(2x+1)=7\lim_{x\to3}(2x+1)=7

Scratch work (backward). We need ∣(2x+1)−7∣=2∣x−3∣<ε\lvert(2x+1)-7\rvert=2\lvert x-3\rvert<\varepsilon, which holds when ∣x−3∣<ε/2\lvert x-3\rvert<\varepsilon/2. So choose δ=ε/2\delta=\varepsilon/2.

Proof (forward). Let ε>0\varepsilon>0 and set δ=ε/2\delta=\varepsilon/2. If 0<∣x−3∣<δ0<\lvert x-3\rvert<\delta, then ∣(2x+1)−7∣=2∣x−3∣<2δ=ε\lvert(2x+1)-7\rvert=2\lvert x-3\rvert<2\delta=\varepsilon. ■\blacksquare

With real numbers. For ε=0.1\varepsilon=0.1 the recipe gives δ=0.05\delta=0.05. Sampling 100,000 points of (2.95,3.05)(2.95,3.05) other than 33, the largest value of ∣f(x)−7∣\lvert f(x)-7\rvert is just below 0.10.1, as expected from a strict inequality. For ε=0.001\varepsilon=0.001, δ=0.0005\delta=0.0005. The slope 22 is the exchange rate between input precision and output precision.

Example 2: a nonlinear function, lim⁡x→2x2=4\lim_{x\to2}x^2=4

Scratch work. Factor: ∣x2−4∣=∣x−2∣ ∣x+2∣\lvert x^2-4\rvert=\lvert x-2\rvert\,\lvert x+2\rvert. The factor ∣x+2∣\lvert x+2\rvert is not constant, so we bound it by first requiring δ≤1\delta\le1. Then ∣x−2∣<1\lvert x-2\rvert<1 gives 1<x<31<x<3, so ∣x+2∣<5\lvert x+2\rvert<5. Hence ∣x2−4∣<5∣x−2∣\lvert x^2-4\rvert<5\lvert x-2\rvert, and this is at most ε\varepsilon if ∣x−2∣<ε/5\lvert x-2\rvert<\varepsilon/5. Both requirements together: δ=min⁡(1,ε/5)\delta=\min(1,\varepsilon/5).

Proof. Given ε>0\varepsilon>0, let δ=min⁡(1,ε/5)\delta=\min(1,\varepsilon/5). If 0<∣x−2∣<δ0<\lvert x-2\rvert<\delta, then ∣x+2∣<5\lvert x+2\rvert<5 and ∣x2−4∣=∣x−2∣∣x+2∣<5δ≤ε\lvert x^2-4\rvert=\lvert x-2\rvert\lvert x+2\rvert<5\delta\le\varepsilon. ■\blacksquare

With real numbers. A scan of the interval around 22 (excluding 22) gives the worst-case error for each tolerance:

text
epsilon delta = min(1, epsilon/5) largest |x^2 - 4| on the interval 1 0.2 0.84 0.1 0.02 0.0804 0.01 0.002 0.008004 100 1 5

The recipe is safe but not tight: the real error stays below ε\varepsilon with room to spare. The min⁡\min with 11 is needed for this recipe. For ε=100\varepsilon=100, using only ε/5=20\varepsilon/5=20 would allow x=21x=21, which is within 2020 of 22, yet ∣212−4∣=437>100\lvert 21^2-4\rvert=437>100. The recipe δ=ε/5\delta=\varepsilon/5 fails exactly when ε>5\varepsilon>5, because the bound ∣x+2∣<5\lvert x+2\rvert<5 needs δ≤1\delta\le1. The cap is one repair; δ=ε/(5+ε)\delta=\varepsilon/(5+\varepsilon) is another.

Example 3: showing a limit does not exist

Claim: lim⁡x→0∣x∣/x\lim_{x\to0}\lvert x\rvert/x does not exist. Suppose it equals some LL, and take ε=12\varepsilon=\tfrac12. For any δ>0\delta>0, the points x=±δ/2x=\pm\delta/2 satisfy 0<∣x∣<δ0<\lvert x\rvert<\delta and give values 11 and −1-1. If both were within 12\tfrac12 of LL, then 2=∣1−(−1)∣≤∣1−L∣+∣L+1∣<12=\lvert1-(-1)\rvert\le\lvert1-L\rvert+\lvert L+1\rvert<1, a contradiction. No δ\delta answers ε=12\varepsilon=\tfrac12, so no LL works. A failed challenge for one ε\varepsilon is enough.

Example 4: the limit ignores the point

For f(x)=x2−1x−1f(x)=\dfrac{x^2-1}{x-1} at a=1a=1: for x≠1x\ne1, ∣f(x)−2∣=∣x+1−2∣=∣x−1∣\lvert f(x)-2\rvert=\lvert x+1-2\rvert=\lvert x-1\rvert. So δ=ε\delta=\varepsilon works, and lim⁡x→1f(x)=2\lim_{x\to1}f(x)=2 even though f(1)f(1) does not exist. If we redefined f(1)=10f(1)=10, the limit would still be 22. When the limit and the value do agree, that is a property with its own name, continuity, treated in continuity-and-the-intermediate-value-theorem.

Common Misconceptions & Pitfalls

  • "The limit is the value of the function at the point." Only for well-behaved functions, and that agreement is a separate property. Example 4 shows a limit without a value. The function sgn⁡x\operatorname{sgn}x, defined with sgn⁡0=0\operatorname{sgn}0=0, has a value at 00 and no limit there (the one-sided limits are −1-1 and 11).
  • "The function never reaches the limit." Nothing requires that. The constant function f(x)=3f(x)=3 has limit 33 and equals it everywhere. The condition x≠ax\ne a only says the point aa itself is excluded.
  • "A table that settles down proves the limit." The floating-point table above collapsed to 00 in its last row and was wrong. Tables suggest a conjecture, and the definition (or a limit law from the next lesson, limit-laws-and-indeterminate-forms) proves it.
  • "lim⁡=∞\lim=\infty means the limit exists." The limit does not exist as a real number. The symbol records the way it fails.
  • "Choose δ=ε\delta=\varepsilon and you are done." That works when the slope is 11, as in Example 4. For 2x+12x+1 it needs ε/2\varepsilon/2, and for x2x^2 near 22 it needs both the factor 1/51/5 and the cap: δ=min⁡(1,ε)\delta=\min(1,\varepsilon) fails at ε=0.1\varepsilon=0.1, since x=2.09x=2.09 is within 0.10.1 of 22 and gives ∣x2−4∣=0.3681\lvert x^2-4\rvert=0.3681.
  • "A formula for δ\delta only has to work for small ε\varepsilon." It must work for every ε>0\varepsilon>0. The choice δ=ε/5\delta=\varepsilon/5 looks fine at ε=0.1\varepsilon=0.1 and fails at ε=100\varepsilon=100 (Example 2).
  • "If both one-sided limits exist, the limit exists." They must also be equal.

Summary

The statement lim⁡x→af(x)=L\lim_{x\to a}f(x)=L says that f(x)f(x) can be forced within any tolerance ε\varepsilon of LL by keeping x≠ax\ne a within a small enough distance δ\delta of aa. It depends only on what ff does near aa, never on f(a)f(a). A two-sided limit exists exactly when both one-sided limits exist and agree, and it fails by a jump, by unbounded growth, or by oscillation. Tables and floating-point evaluation are useful for guessing and unreliable for deciding. The ε\varepsilon-δ\delta proof is a recipe: bound the error by a multiple of ∣x−a∣\lvert x-a\rvert (capping δ\delta when the multiple varies), solve for δ\delta, then verify the implication. The next lesson, limit-laws-and-indeterminate-forms, turns the definition into algebra so that each limit does not need its own ε\varepsilon-δ\delta proof.

Documentation Links