Tutorials › Real Analysis › The Epsilon-Delta Definition

Continuity · Tutorial 333 of 1000

The Epsilon-Delta Definition

Learn how to read the epsilon-delta quantifiers and construct a valid delta from an explicit estimate of function-value error.

Intermediate 9 min read

What You'll Learn

  • State the epsilon-delta definition of continuity at a point
  • Track how the choice of delta depends on epsilon
  • Use a local error bound to prove continuity
  • Verify continuity for polynomial, reciprocal, and square-root examples
  • Recognize common errors involving strict inequalities and domain restrictions

From Nearby Behavior to a Precise Test

Continuity at a point is about controlling changes in function values by restricting how far the input moves. The previous tutorial used this idea to establish local consequences of continuity. Here we make the definition itself the focus: for each desired tolerance in the output, we must find an input tolerance that works for every relevant domain point.

Let \(E\subseteq\mathbb{R}\), let \(f:E\to\mathbb{R}\), and let \(a\in E\). The statement “\(f\) is continuous at \(a\)” has two nested choices. First, an arbitrary positive output tolerance \(\varepsilon\) is given. Then we must find a positive input tolerance \(\delta\) that guarantees the required bound for all \(x\in E\) sufficiently close to \(a\).

Definition: The function \(f:E\to\mathbb{R}\) is continuous at \(a\in E\) if, for every \(\varepsilon>0\), there is a \(\delta>0\) such that for every \(x\in E\), \[ |x-a|<\delta\quad\Longrightarrow\quad |f(x)-f(a)|<\varepsilon. \] The number \(\delta\) may depend on \(\varepsilon\), the function, and the point \(a\).

The phrase “for every \(x\in E\)” is part of the definition. We check inputs in the domain, not points outside it. The conclusion also includes \(x=a\), but that case always satisfies the output inequality because \(|f(a)-f(a)|=0<\varepsilon\). There is no need to remove \(a\) from the definition.

The order of the quantifiers matters. We choose \(\delta\) after \(\varepsilon\) is specified, and then that one \(\delta\) must work for all domain points within distance \(\delta\) of \(a\). We cannot choose a different \(\delta\) for each \(x\). Nor does the definition require one \(\delta\) to work for every possible \(\varepsilon\).

$$ \text{For every }\varepsilon>0,\quad \text{there exists }\delta>0\quad \text{such that for every }x\in E,\quad |x-a|<\delta\Longrightarrow |f(x)-f(a)|<\varepsilon. $$

How to Choose a Delta

A proof usually begins by rewriting the output difference, \(|f(x)-f(a)|\), in terms of the input difference, \(|x-a|\). If we can bound the output difference by an expression that becomes small when \(|x-a|\) becomes small, we can use that bound to choose \(\delta\). The choice is allowed to be smaller than necessary.

Theorem: Suppose \(f:E\to\mathbb{R}\), \(a\in E\), and there are constants \(C>0\) and \(r>0\) such that \[ |f(x)-f(a)|\leq C|x-a| \] whenever \(x\in E\) and \(|x-a|<r\). Then \(f\) is continuous at \(a\).

Proof. Let \(\varepsilon>0\) be given. Choose \[ \delta=\min\left\{r,\frac{\varepsilon}{C}\right\}, \] which is positive because \(r\), \(\varepsilon\), and \(C\) are positive. Suppose \(x\in E\) and \(|x-a|<\delta\). Since \(\delta\leq r\), we have \(|x-a|<r\), so the assumed estimate applies. Also, since \(\delta\leq\varepsilon/C\), \[ |f(x)-f(a)|\leq C|x-a|<C\delta\leq\varepsilon. \] Thus every \(x\in E\) with \(|x-a|<\delta\) satisfies \(|f(x)-f(a)|<\varepsilon\). This is the epsilon-delta definition of continuity at \(a\). \(\square\)

This theorem is a practical sufficient test: find a local bound proportional to the input distance, then divide the desired output tolerance by the proportionality constant. It does not assert that every continuous function has such a bound with a fixed \(C\). It says that when the bound is available, it directly supplies a valid choice of \(\delta\).

Worked Example: A Linear Function at a Specified Point

Let \(f(x)=3x+1\) on \(\mathbb{R}\), and consider \(a=2\). Since \(f(2)=7\), \[ |f(x)-f(2)|=|(3x+1)-7|=|3x-6|=3|x-2|. \] Given any \(\varepsilon>0\), choose \(\delta=\varepsilon/3\). If \(|x-2|<\delta\), then \[ |f(x)-f(2)|=3|x-2|<3\delta=\varepsilon. \] Thus \(f\) is continuous at \(2\). Here the delta can be read directly from the exact error formula.

Controlling a Polynomial Error

For a polynomial, factoring the difference often exposes the input distance as one factor. The other factor may still depend on \(x\), so we first restrict \(x\) to a fixed neighborhood where that factor is bounded. This two-part strategy—bound the extra factor locally, then control \(|x-a|\)—is common in epsilon-delta proofs.

Worked Example: The Square Function at Two

Let \(f(x)=x^2\) and \(a=2\), so \(f(2)=4\). Factor the difference: \[ |x^2-4|=|x-2||x+2|. \] If \(|x-2|<1\), then \(1<x<3\), and hence \(|x+2|<5\). Therefore \[ |x^2-4|\leq 5|x-2| \] whenever \(|x-2|<1\). The non-strict inequality is valid also at \(x=2\), where both sides are zero.

Given \(\varepsilon>0\), choose \(\delta=\min\{1,\varepsilon/5\}\). If \(|x-2|<\delta\), then \(|x-2|<1\), so the estimate applies, and \[ |x^2-4|\leq 5|x-2|<5\delta\leq\varepsilon. \] This proves continuity at \(2\). The first restriction in the minimum keeps the factor \(|x+2|\) bounded; the second makes the resulting output error smaller than \(\varepsilon\).

Notice the role of strict and non-strict inequalities in this argument. The factor estimate gives \(|x^2-4|\leq 5|x-2|\). The desired strict conclusion follows afterward from \(|x-2|<\delta\) and \(5\delta\leq\varepsilon\). Replacing the factor estimate with a strict inequality would make it false at \(x=2\), even though the continuity proof itself would still need to include that point.

Keeping a Denominator Away from Zero

For a reciprocal function, the output difference can be factored, but its denominator must be controlled. Choosing a neighborhood that keeps the input away from zero supplies that control. This illustrates why a delta may need to satisfy more than one restriction at once.

Worked Example: The Reciprocal Function at Three

Let \(E=\mathbb{R}\setminus\{0\}\), define \(f(x)=1/x\) on \(E\), and take \(a=3\). For \(x\in E\), \[ \left|\frac{1}{x}-\frac{1}{3}\right| =\frac{|x-3|}{3|x|}. \] If \(|x-3|<1\), then \(x>2\), so \(|x|>2\). It follows that \[ \left|\frac{1}{x}-\frac{1}{3}\right|\leq\frac{|x-3|}{6}. \] This non-strict estimate holds at \(x=3\), where both sides are zero; when \(x\ne3\), the denominator bound actually gives a strict inequality.

Now let \(\varepsilon>0\) and choose \(\delta=\min\{1,6\varepsilon\}\). For \(x\in E\) with \(|x-3|<\delta\), the preceding estimate applies, and \[ \left|\frac{1}{x}-\frac{1}{3}\right| \leq\frac{|x-3|}{6} <\frac{\delta}{6}\leq\varepsilon. \] Therefore \(f\) is continuous at \(3\). The restriction \(\delta\leq1\) keeps \(x\) away from zero, while \(\delta\leq6\varepsilon\) controls the size of the output difference.

A Further Example on a Restricted Domain

The definition works without change when the domain is not all of \(\mathbb{R}\). The implication is checked only for those \(x\) that belong to \(E\). In the next example, the formula and estimate are valid on the nonnegative domain, and the point under consideration is an interior point of that domain.

Worked Example: The Square-Root Function at Four

Let \(E=[0,\infty)\), let \(f(x)=\sqrt{x}\), and set \(a=4\). For \(x\in E\), rationalization gives \[ |\sqrt{x}-2| =\frac{|x-4|}{\sqrt{x}+2} \leq\frac{|x-4|}{2}, \] because \(\sqrt{x}+2\geq2\). Given \(\varepsilon>0\), choose \(\delta=2\varepsilon\). If \(x\in E\) and \(|x-4|<\delta\), then \[ |\sqrt{x}-\sqrt{4}| \leq\frac{|x-4|}{2} <\frac{\delta}{2}=\varepsilon. \] This verifies continuity at \(4\). The domain condition \(x\in E\) remains part of the statement, even though the estimate itself uses only that \(x\geq0\).

What the Definition Does and Does Not Require

Theorem: Fix \(\varepsilon>0\). If a number \(\delta_0>0\) satisfies the epsilon-delta implication for that \(\varepsilon\), then every \(\delta\) with \(0<\delta\leq\delta_0\) also satisfies it.

Proof. Suppose \(\delta_0\) works, and let \(0<\delta\leq\delta_0\). If \(x\in E\) and \(|x-a|<\delta\), then \(|x-a|<\delta_0\). The implication for \(\delta_0\) therefore gives \(|f(x)-f(a)|<\varepsilon\). Hence \(\delta\) works as well. \(\square\)

This simple fact explains why proofs often choose a minimum of several positive quantities. Each quantity enforces one needed restriction, and their minimum enforces all of them. It also shows that a valid delta need not be the largest possible one.

A common mistake is to treat \(\delta\) as fixed independently of \(\varepsilon\). In general, a tighter output tolerance requires a smaller input neighborhood. Another is to show the desired inequality only for a particular \(x\); the definition requires one choice of \(\delta\) to work simultaneously for every \(x\in E\) within that neighborhood. Finally, an estimate involving \(|x-a|\) should be checked at \(x=a\) if its stated hypotheses include that point. A non-strict estimate such as \(|f(x)-f(a)|\leq C|x-a|\) naturally handles the zero-distance case.

At an accumulation point of the domain, continuity at \(a\) is related to the limit of \(f(x)\) as \(x\) approaches \(a\), as established in “Continuity as a Limit.” The epsilon-delta definition here states continuity directly and includes the value at \(a\). If \(a\) is isolated in \(E\), there may be a neighborhood containing no other domain points; then the condition is satisfied because the only point to check can be \(a\) itself.

Check Your Understanding

Use the definition and the estimates in this tutorial to answer the following questions.

  1. In the epsilon-delta definition, which quantity is given first, and which quantity may be chosen in response?
  2. Why must a chosen \(\delta\) work for all \(x\in E\) with \(|x-a|<\delta\), rather than for just one such \(x\)?
  3. For the square function at \(2\), why is it useful to impose \(|x-2|<1\) before estimating \(|x+2|\)?
  4. In the reciprocal example, what does the restriction \(\delta\leq1\) guarantee about \(x\) near \(3\)?
  5. If \(\delta_0\) works for a fixed \(\varepsilon\), why does every positive \(\delta\leq\delta_0\) also work?