Tutorials › Real Analysis › Continuity Proof Mastery I

Continuity · Tutorial 360 of 1000

Continuity Proof Mastery I

Learn to plan continuity proofs by choosing useful estimates, separating boundary cases, and combining continuous functions with maximum and minimum operations.

Intermediate 9 min read

What You'll Learn

  • Organize an epsilon-delta proof around the estimate needed for the output error
  • Prove continuity of the square-root function, including at the endpoint zero
  • Choose a delta explicitly for a square-root function at a positive input
  • Express maximum and minimum operations using absolute value
  • Apply continuity results to piecewise formulas and truncated functions

Planning a Continuity Proof

The Open-Set Criterion for Continuity gives a useful way to recognize continuous functions, but many proofs still come down to controlling the change in a function’s value near a chosen input. The difficult part is often not writing the epsilon-delta definition; it is finding an estimate that turns a desired output bound into a manageable condition on the input. This tutorial develops a proof strategy for that task and applies it to two operations that arise frequently in formulas: taking a square root and taking a maximum or minimum.

A reliable proof begins by fixing a point \(a\) in the domain and an output tolerance \(\varepsilon>0\). Next, compare the quantity \(|f(x)-f(a)|\) with an expression involving \(|x-a|\). The estimate should make the final choice of \(\delta\) visible. Sometimes a proof also needs separate cases: for example, a formula involving a square root behaves differently at the endpoint zero than it does at a positive point. Accounting for that distinction is part of the proof, not an optional refinement.

1
Fix the target error.
Let \(\varepsilon>0\) be given, and identify the precise inequality that would guarantee \(|f(x)-f(a)|<\varepsilon\).
2
Find an input-based estimate.
Use algebra, the triangle inequality, or a previously established continuity result to bound the output difference in terms of \(|x-a|\).
3
Choose the neighborhood size.
Choose \(\delta>0\) so that the input condition \(|x-a|<\delta\) forces the estimate to be smaller than \(\varepsilon\).
4
Check the domain and conclude.
Verify that the estimate applies to every domain point under consideration, including any endpoint or exceptional case.

The estimate is the central part of the argument. A choice of \(\delta\) written down without showing why it works is not a complete proof. Conversely, once a valid estimate has been found, the choice often becomes straightforward. We will see both patterns below.

Continuity of the Square-Root Function

The square root is defined only for nonnegative inputs, and the point zero requires care. At a positive input, a difference of square roots can be rewritten by multiplying by the sum of the roots. At zero, that denominator argument is unavailable: the sum of the roots has no fixed positive lower bound as the input approaches zero. We therefore prove continuity at positive points and at zero separately.

Theorem (Continuity of the Square-Root Function): The function \(s:[0,\infty)\to\mathbb{R}\), defined by \(s(x)=\sqrt{x}\), is continuous at every point of its domain.

Proof. Fix \(a\in[0,\infty)\) and \(\varepsilon>0\). First suppose \(a>0\). For any \(x\geq0\),

$$ |\sqrt{x}-\sqrt{a}| =\frac{|x-a|}{\sqrt{x}+\sqrt{a}} \leq \frac{|x-a|}{\sqrt{a}}, $$

because \(\sqrt{x}+\sqrt{a}\geq\sqrt{a}>0\). Choose \(\delta=\varepsilon\sqrt{a}\), which is positive. If \(x\in[0,\infty)\) and \(|x-a|<\delta\), the estimate gives

$$ |\sqrt{x}-\sqrt{a}| \leq\frac{|x-a|}{\sqrt{a}} <\frac{\varepsilon\sqrt{a}}{\sqrt{a}} =\varepsilon. $$

Thus \(s\) is continuous at every positive \(a\).

Now suppose \(a=0\). Choose \(\delta=\varepsilon^2>0\). If \(x\in[0,\infty)\) and \(|x-0|<\delta\), then \(x\geq0\) and \(x<\varepsilon^2\). Since both sides are nonnegative, taking square roots gives \(\sqrt{x}<\varepsilon\). Hence

$$ |s(x)-s(0)|=|\sqrt{x}-0|=\sqrt{x}<\varepsilon. $$

Therefore \(s\) is continuous at zero as well, completing the proof. \(\square\)

The endpoint case illustrates a useful proof habit: do not use an algebraic estimate outside the range where its denominator is safely controlled. At \(a>0\), the denominator \(\sqrt{x}+\sqrt{a}\) is at least \(\sqrt{a}\). At \(a=0\), that lower bound would be zero, so it cannot yield a useful estimate. The separate choice \(\delta=\varepsilon^2\) handles the endpoint directly.

Worked Example: Choosing Delta for a Square Root at a Positive Point

Consider \(f(x)=\sqrt{x+5}\), with domain \([-5,\infty)\), and prove continuity at \(a=4\) directly. Here \(f(4)=3\). Let \(\varepsilon>0\). For \(x\geq-5\), the radicand \(x+5\) is nonnegative, and

$$ |f(x)-f(4)| =|\sqrt{x+5}-3| =\frac{|(x+5)-9|}{\sqrt{x+5}+3} =\frac{|x-4|}{\sqrt{x+5}+3} \leq\frac{|x-4|}{3}. $$

The denominator is at least \(3\), so the last inequality is valid throughout the domain. Choose \(\delta=3\varepsilon\). Whenever \(x\in[-5,\infty)\) and \(|x-4|<\delta\), it follows that

$$ |f(x)-f(4)| \leq\frac{|x-4|}{3} <\frac{3\varepsilon}{3} =\varepsilon. $$

This verifies the epsilon-delta condition. The proof succeeds because rationalizing the difference produces an input difference in the numerator and a denominator with a fixed positive lower bound.

Maximum and Minimum of Continuous Functions

A formula involving a maximum or minimum may look piecewise: one expression is selected in one region, and another expression is selected elsewhere. It can be awkward to prove continuity by dividing the domain into regions and then checking every point where the selected expression changes. A better approach is to express maximum and minimum using absolute value. Since the absolute-value function is continuous and the algebra of continuous functions is already established, this gives a short proof that works even at the switching points.

Theorem (Continuity of Maximum and Minimum): Let \(E\subseteq\mathbb{R}\), and let \(f,g:E\to\mathbb{R}\) be continuous on \(E\). Then the functions \(h,k:E\to\mathbb{R}\) defined by $$ h(x)=\max\{f(x),g(x)\} \quad\text{and}\quad k(x)=\min\{f(x),g(x)\} $$ are continuous on \(E\).

Proof. For any real numbers \(u\) and \(v\),

$$ \max\{u,v\}=\frac{u+v+|u-v|}{2}, \qquad \min\{u,v\}=\frac{u+v-|u-v|}{2}. $$

To verify the first identity, if \(u\geq v\), then \(|u-v|=u-v\), so \((u+v+|u-v|)/2=(u+v+u-v)/2=u\). If \(u<v\), then \(|u-v|=v-u\), so \((u+v+|u-v|)/2=(u+v+v-u)/2=v\). In each case the expression equals the larger number. For the second identity, if \(u\geq v\), then \((u+v-|u-v|)/2=(u+v-u+v)/2=v\); if \(u<v\), then \((u+v-|u-v|)/2=(u+v-v+u)/2=u\). It equals the smaller number in either case.

Applying these identities with \(u=f(x)\) and \(v=g(x)\) gives

$$ h=\frac{f+g+|f-g|}{2}, \qquad k=\frac{f+g-|f-g|}{2}. $$

Because \(f\) and \(g\) are continuous, their difference \(f-g\) is continuous. The absolute value of a continuous function is continuous, and sums and constant multiples of continuous functions are continuous. Therefore both displayed expressions define continuous functions on \(E\). These are exactly \(h\) and \(k\), so the maximum and minimum functions are continuous. \(\square\)

Worked Example: A Maximum with a Switching Point

Define \(H:\mathbb{R}\to\mathbb{R}\) by \(H(x)=\max\{2x+1,5-x\}\). Both expressions inside the maximum are polynomials and hence continuous. The theorem therefore shows that \(H\) is continuous on \(\mathbb{R}\), including where the two expressions agree. To describe the formula explicitly, solve \(2x+1=5-x\), which gives \(3x=4\), or \(x=4/3\). If \(x\leq4/3\), then \(2x+1\leq5-x\); if \(x\geq4/3\), then \(2x+1\geq5-x\). Thus

$$ H(x)= \begin{cases} 5-x,&x\leq4/3,\\ 2x+1,&x\geq4/3. \end{cases} $$

At \(x=4/3\), the two formulas both give \(11/3\): \(5-4/3=11/3\) and \(2(4/3)+1=11/3\). The maximum theorem establishes continuity there without requiring a separate epsilon-delta argument at the switching point.

Worked Example: A Truncated Square-Root Function

Let \(G:[-1,\infty)\to\mathbb{R}\) be defined by \(G(x)=\min\{\sqrt{x+1},2\}\). The function \(x\mapsto x+1\) is continuous, and its values on this domain lie in \([0,\infty)\). By continuity of the square-root function and the composition theorem, \(x\mapsto\sqrt{x+1}\) is continuous on \([-1,\infty)\). The constant function with value \(2\) is continuous, so the minimum theorem shows that \(G\) is continuous on its entire domain.

Its piecewise form is also easy to identify. The two entries in the minimum agree when \(\sqrt{x+1}=2\), which, since both sides are nonnegative, is equivalent to \(x+1=4\), or \(x=3\). For \(-1\leq x\leq3\), we have \(0\leq x+1\leq4\), so \(\sqrt{x+1}\leq2\). For \(x\geq3\), we have \(x+1\geq4\), so \(\sqrt{x+1}\geq2\). Consequently,

$$ G(x)= \begin{cases} \sqrt{x+1},&-1\leq x\leq3,\\ 2,&x\geq3. \end{cases} $$

At the joining point, both expressions equal \(2\). The minimum representation proves continuity at that point as part of the general theorem, and also handles the endpoint \(x=-1\) within the domain.

What Makes These Proofs Reliable?

These examples use two complementary methods. For the square root, an explicit estimate reveals a valid \(\delta\). The estimate differs at positive inputs and at zero, so the proof treats those cases separately. For maxima and minima, an identity replaces a piecewise-looking operation with sums, differences, and absolute values. Previously established continuity results then do the remaining work.

A common pitfall is to assume that a piecewise description automatically proves continuity because each formula is continuous on its own region. That only checks behavior away from the points where the selected formula changes. A proof must also account for each joining point. The maximum-and-minimum theorem avoids this gap: it applies at every point, including ties. Alternatively, a direct piecewise proof must show that the expressions agree at each join and verify continuity there.

Another pitfall is choosing \(\delta\) before deriving an estimate. In the square-root example, the denominator after rationalization is at least \(3\), which suggests that \(|x-4|<3\varepsilon\) will suffice. The resulting inequality then verifies the choice. In other problems the estimate may require first restricting \(x\) to a neighborhood of \(a\); if so, the final \(\delta\) can be chosen as the smaller of the radii that enforce the needed conditions. What matters is that every restriction is stated and that the final choice guarantees all of them.

Check Your Understanding

Use the proof strategies and results in this tutorial to answer the following questions.

  1. Why is the proof of continuity of the square root at zero different from the proof at a positive input?
  2. For a positive \(a\), what lower bound on \(\sqrt{x}+\sqrt{a}\) makes the rationalized estimate useful?
  3. How can the maximum of two real numbers be expressed using addition and absolute value?
  4. Why does continuity of \(f\) and \(g\) imply continuity of \(x\mapsto\min\{f(x),g(x)\}\)?
  5. In a direct epsilon-delta proof, why should the estimate be derived before choosing \(\delta\)?