Tutorials › Calculus I › Choosing Delta From Epsilon

Limit Concepts and Estimates · Tutorial 176 of 1495

Choosing Delta From Epsilon

Derive useful choices of delta from epsilon for linear and quadratic limits by solving and bounding the output-error inequality.

Beginner 9 min read

What You'll Learn

  • Translate a desired output tolerance into an inequality for the input distance.
  • Choose delta for a nonconstant affine function.
  • Derive a delta for the square function at zero.
  • Use a local bound to choose delta for a quadratic limit at an arbitrary input.
  • Check that a proposed formula for delta is positive and makes the error smaller than epsilon.
  • Identify errors caused by ignoring a local restriction or mishandling equality at the limit point.

From an Output Tolerance to an Input Tolerance

A limit statement asks us to control the output of a function by restricting how close the input is to a specified point. The desired output accuracy is represented by \(\varepsilon>0\). We seek a positive input tolerance \(\delta\) such that whenever \(x\) is within \(\delta\) of \(a\), but \(x\ne a\), the function value is within \(\varepsilon\) of the proposed limit \(L\).

$$ 0<|x-a|<\delta \quad\Longrightarrow\quad |f(x)-L|<\varepsilon. $$

The key task in this tutorial is to derive a suitable \(\delta\) from the inequality we need to satisfy. The value of \(\delta\) may depend on \(\varepsilon\), on the function, and on the point \(a\). It must be positive, and the resulting implication must hold for every input meeting its condition. There is usually more than one valid choice: making \(\delta\) smaller preserves the implication.

Definition: For a proposed limit \(\lim_{x\to a}f(x)=L\) and a given \(\varepsilon>0\), a suitable \(\delta\) is any positive number for which \(0<|x-a|<\delta\) implies \(|f(x)-L|<\varepsilon\).

The Basic Strategy

Start with the output error, \(|f(x)-L|\), and rewrite or bound it in terms of \(|x-a|\). Then solve the resulting inequality for the input distance. If the bound only holds near \(a\), include that local restriction when choosing \(\delta\). Finally, check that the chosen formula is positive and that it implies the required strict output inequality.

1
Write the target error.
Begin with \(|f(x)-L|<\varepsilon\), where \(\varepsilon>0\) is given.
2
Relate output error to input distance.
Factor or simplify the expression, and use a local bound if needed.
3
Choose a positive \(\delta\).
Solve the resulting inequality and combine it with any restriction needed for the bound.
4
Check the implication.
Use \(0<|x-a|<\delta\) to show the output error is strictly less than \(\varepsilon\).

Linear and Affine Functions

For an affine function \(f(x)=mx+b\), the value at \(a\) is \(ma+b\). Subtracting that value cancels the constant term. If \(m\ne0\), the error is exactly a constant multiple of the input distance. This makes the choice of \(\delta\) direct.

$$ |f(x)-(ma+b)| =|mx+b-(ma+b)| =|m|\,|x-a|. $$

To make this less than \(\varepsilon\), it is enough to require \(|x-a|<\varepsilon/|m|\). Because \(\varepsilon>0\) and \(|m|>0\), this choice is positive. If \(m=0\), the function is constant and its error is zero for every input; any positive \(\delta\) works.

Takeaway: If \(f(x)=mx+b\) with \(m\ne0\), then for the limit at \(a\) with value \(ma+b\), the choice \(\delta=\varepsilon/|m|\) works. If \(m=0\), any positive \(\delta\) works.

Worked Example: Choosing Delta for an Affine Function

Consider \(f(x)=-2x+5\) as \(x\) approaches \(1\). The proposed limit is \(f(1)=-2+5=3\). Let the desired output tolerance be \(\varepsilon=1/3\).

First compute the error:

$$ |f(x)-3| =|-2x+5-3| =|-2x+2| =2|x-1|. $$

We want \(2|x-1|<1/3\), so it is enough to require \(|x-1|<1/6\). Thus choose \(\delta=1/6\), which is positive.

To check the choice, suppose \(0<|x-1|<1/6\). Then

$$ |f(x)-3|=2|x-1|<2\left(\frac16\right)=\frac13=\varepsilon. $$

Therefore this \(\delta\) gives the required output accuracy.

The Square Function at Zero

For the limit of \(x^2\) at zero, the output error is \(|x^2-0|=|x|^2\). Since both \(|x|\) and \(\varepsilon\) are nonnegative, requiring \(|x|<\sqrt{\varepsilon}\) makes its square less than \(\varepsilon\). The square root is positive when \(\varepsilon>0\), so this gives a positive choice of \(\delta\).

Takeaway: For \(\lim_{x\to0}x^2=0\), a suitable choice for any \(\varepsilon>0\) is \(\delta=\sqrt{\varepsilon}\).

Worked Example: Choosing Delta for the Square at Zero

Suppose we want \(|x^2|<1/16\) whenever \(x\) is sufficiently close to zero. Here \(\varepsilon=1/16\), so choose

$$ \delta=\sqrt{\frac1{16}}=\frac14. $$

This is positive. If \(0<|x-0|<1/4\), then

$$ |x^2-0|=|x|^2<\left(\frac14\right)^2=\frac1{16}. $$

Substituting the chosen \(\delta\) into the error bound gives the required strict inequality, so the choice works.

Quadratic Limits at an Arbitrary Input

For a limit of \(x^2\) at an arbitrary real number \(a\), the difference factors as \((x-a)(x+a)\). The second factor is not a fixed constant, so we first restrict \(x\) to a fixed neighborhood of \(a\). If \(|x-a|<1\), the triangle inequality gives

$$ |x+a| =|2a+(x-a)| \le 2|a|+|x-a| <2|a|+1. $$

Consequently, throughout this neighborhood we have the non-strict bound

$$ |x^2-a^2| =|x-a|\,|x+a| \le (2|a|+1)|x-a|. $$

The non-strict inequality is valid even at \(x=a\), where both sides are zero. To ensure that the right-hand side is less than \(\varepsilon\), it is enough to require \(|x-a|<\varepsilon/(2|a|+1)\). We also need \(|x-a|<1\) for the local bound. Both restrictions can be met by taking their minimum.

Takeaway: For \(\lim_{x\to a}x^2=a^2\), where \(a\in\mathbb R\) and \(\varepsilon>0\), the choice $$ \delta=\min\left(1,\frac{\varepsilon}{2|a|+1}\right) $$ is positive and works.

Why the Quadratic Choice Works

The formula follows from the factorization and the local bound. This argument also checks the positivity and the strict output inequality required by the definition.

1
Check positivity.
Since \(\varepsilon>0\) and \(2|a|+1\ge1\), both \(1\) and \(\varepsilon/(2|a|+1)\) are positive. Their minimum \(\delta\) is therefore positive.
2
Apply both restrictions.
If \(0<|x-a|<\delta\), then \(|x-a|<1\) and \(|x-a|<\varepsilon/(2|a|+1)\), because \(\delta\) is no larger than either bound.
3
Bound the output error.
The factorization and local estimate give \(|x^2-a^2|\le(2|a|+1)|x-a|<(2|a|+1)\varepsilon/(2|a|+1)=\varepsilon\).

The strict inequality at the end comes from \(|x-a|<\varepsilon/(2|a|+1)\). The factor estimate itself need not be strict after multiplication; keeping track of these two different inequalities avoids a common logical error.

Worked Example: Choosing Delta for a Quadratic Limit at a Negative Input

Consider \(\lim_{x\to-1}x^2=1\), and let \(\varepsilon=1/2\). Here \(a=-1\), so \(2|a|+1=3\). The general choice gives

$$ \delta =\min\left(1,\frac{1/2}{3}\right) =\min\left(1,\frac16\right) =\frac16. $$

This value is positive. Now suppose \(0<|x-(-1)|=|x+1|<1/6\). In particular, \(|x+1|<1\), so

$$ |x-1| =|-2+(x+1)| \le2+|x+1| <3. $$

Therefore the error satisfies

$$ |x^2-1| =|x+1|\,|x-1| \le3|x+1| <3\left(\frac16\right) =\frac12. $$

Thus every input within the chosen distance, except the limit point itself as specified by the definition, has output error less than \(\varepsilon\).

A Common Mistake: Losing the Local Restriction

The quadratic estimate depends on keeping \(x\) within distance \(1\) of \(a\). Without that restriction, the factor \(|x+a|\) cannot be bounded by the same fixed number. For example, at \(a=2\), the claim \(|x+2|\le4\) whenever \(|x-2|<1\) is false: \(x=5/2\) satisfies \(|x-2|=1/2<1\), but \(|x+2|=9/2>4\).

The correct estimate uses the triangle inequality:

$$ |x+2| =|4+(x-2)| \le4+|x-2| <5 \qquad\text{when }|x-2|<1. $$

It follows that \(|x^2-4|\le5|x-2|\) under this restriction. Writing a strict inequality \(|x^2-4|<5|x-2|\) for every \(x\) with \(|x-2|<1\) would be incorrect at \(x=2\), because both sides are then zero. The non-strict bound is valid there and is sufficient: the separate condition \(|x-2|<\delta\) supplies the strict inequality needed at the final step.

Another tempting shortcut is to choose a value from the error inequality but forget a restriction needed to justify the bound used to obtain it. For a quadratic, a complete choice must satisfy both the local-distance requirement and the output-tolerance requirement. Taking their minimum handles both at once.

Choosing Does Not Mean There Is Only One Answer

A formula for \(\delta\) is a useful sufficient choice, not necessarily the only choice. If a positive \(\delta\) works, then any smaller positive value also works: the condition \(0<|x-a|<\delta_{\text{small}}\) restricts \(x\) to a subset of the inputs covered by the original choice. In particular, a derivation may give a convenient bound rather than the largest possible input tolerance.

The central habit is to work from the error toward the input distance while retaining every condition used along the way. For affine functions the error is an exact multiple of \(|x-a|\). For the square function at zero it is \(|x|^2\). For a general quadratic point, factorization creates a second factor that must first be bounded locally. In each case, the proposed \(\delta\) must be positive and the final estimate must be strictly less than \(\varepsilon\).

Check Your Understanding

For each question, identify the inequality that connects the output error to the input distance and state any restriction needed for it.

  1. For \(f(x)=4x-3\) at \(a=2\), what choice of \(\delta\) follows from \(\varepsilon=1/5\)?
  2. For \(x^2\) at zero, what choice of \(\delta\) follows from \(\varepsilon=1/49\)?
  3. For \(x^2\) at \(a=3\), write the local bound for \(|x^2-a^2|\) when \(|x-a|<1\).
  4. Why is \(\min(1,\varepsilon/(2|a|+1))\) positive whenever \(\varepsilon>0\)?
  5. Why is it safer to use a non-strict inequality for the quadratic error bound that includes \(x=a\)?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon