Tutorials › Real Analysis › Continuity of Sums

Continuity · Tutorial 341 of 1000

Continuity of Sums

Extend the sum rule to finite sums and see how uniform continuity and quantitative distance bounds behave when functions are added.

Intermediate 9 min read

What You'll Learn

  • Define the sum of functions on a common domain
  • Apply continuity of sums to a finite family of functions
  • Prove that a finite sum of uniformly continuous functions is uniformly continuous
  • Combine Lipschitz bounds for sums
  • Use estimates to verify continuity of a particular sum
  • Recognize why a continuous sum does not imply that each summand is continuous

Adding Continuous Functions

The previous tutorial showed that taking absolute values preserves continuity. Addition is another basic operation: if two functions are continuous at the same point, their sum is continuous there as well. That two-function result was established in “Continuity of Polynomial Functions.” Here we use it as a starting point and extend the discussion to finite sums, uniform continuity, and useful distance estimates.

The functions being added must have a common domain. At each input in that domain, their values are real numbers, so ordinary addition defines a new function.

Definition: Let \(E\subseteq\mathbb{R}\), and let \(f_1,\ldots,f_n:E\to\mathbb{R}\). Their sum is the function \(S:E\to\mathbb{R}\) defined by \(S(x)=\sum_{j=1}^{n} f_j(x)\). For \(n=1\), this is just \(f_1\).

For two functions, “Continuity of Polynomial Functions” established that if \(f\) and \(g\) are continuous at \(a\in E\), then \(f+g\) is continuous at \(a\). The same result applies repeatedly when more terms are added. The next theorem makes that finite extension precise.

Continuity of a Finite Sum

Theorem: Let \(E\subseteq\mathbb{R}\), let \(a\in E\), and let \(f_1,\ldots,f_n:E\to\mathbb{R}\), where \(n\geq 1\). If every \(f_j\) is continuous at \(a\), then \(\sum_{j=1}^{n}f_j\) is continuous at \(a\).

Proof. We use induction on \(n\). For \(n=1\), the sum is \(f_1\), which is continuous at \(a\) by hypothesis. Suppose the result holds for sums of \(n\) functions, and consider \(n+1\) functions, each continuous at \(a\). By the induction hypothesis, \(S_n=\sum_{j=1}^{n}f_j\) is continuous at \(a\). The two-function sum result from “Continuity of Polynomial Functions,” applied to \(S_n\) and \(f_{n+1}\), then shows that \(S_n+f_{n+1}\) is continuous at \(a\). Since \(S_n(x)+f_{n+1}(x)=\sum_{j=1}^{n+1}f_j(x)\) for every \(x\in E\), this is the desired sum. The induction proves the claim for every finite \(n\). \(\square\)

The common domain and common point matter in this statement: every summand must be defined at \(a\), and every summand must be continuous there. The result is local. It says that if the component functions are continuous at each point of \(E\), then their finite sum is continuous at each point of \(E\).

Worked Example: A Sum With an Absolute-Value Term

Consider \(F(x)=|x-1|+(x^2+1)-4\) on \(\mathbb{R}\). We check continuity at \(a=1\). The identity function is continuous, and so is the constant function; the polynomial continuity theorem therefore gives continuity of \(x\mapsto x-1\) and \(x\mapsto x^2+1\) at \(1\). By the theorem from “Continuity of Absolute Value,” \(x\mapsto |x-1|\) is continuous there as well. The constant function with value \(-4\) is continuous. The finite-sum theorem now shows that \(F\) is continuous at \(1\).

Its value at that point is \(F(1)=|1-1|+(1^2+1)-4=0+2-4=-2\). Thus, by continuity, for every \(\varepsilon>0\) there is a \(\delta>0\) such that \(x\in\mathbb{R}\) and \(|x-1|<\delta\) imply \(|F(x)-(-2)|<\varepsilon\). This conclusion does not require splitting into the cases \(x\geq1\) and \(x<1\); continuity of the absolute-value term handles both.

Uniform Continuity of Finite Sums

Pointwise continuity is a statement about a chosen point. Uniform continuity is stronger: for a given \(\varepsilon\), one \(\delta\) must work for every pair of inputs in the domain. When several functions are added, their individual choices of \(\delta\) may differ. A finite minimum lets us choose one that works for all the summands.

Theorem: Let \(E\subseteq\mathbb{R}\), and let \(f_1,\ldots,f_n:E\to\mathbb{R}\), where \(n\geq1\). If every \(f_j\) is uniformly continuous on \(E\), then \(\sum_{j=1}^{n}f_j\) is uniformly continuous on \(E\).

Proof. Fix \(\varepsilon>0\). For each \(j\in\{1,\ldots,n\}\), uniform continuity of \(f_j\) gives a number \(\delta_j>0\) such that, for all \(x,y\in E\), \(|x-y|<\delta_j\) implies \(|f_j(x)-f_j(y)|<\varepsilon/n\). Because there are only finitely many \(\delta_j\), their minimum \(\delta=\min\{\delta_1,\ldots,\delta_n\}\) is positive. Take any \(x,y\in E\) with \(|x-y|<\delta\). Then \(|x-y|<\delta_j\) for every \(j\), so each difference satisfies \(|f_j(x)-f_j(y)|<\varepsilon/n\). The triangle inequality gives \[ \left|\sum_{j=1}^{n}f_j(x)-\sum_{j=1}^{n}f_j(y)\right| \leq \sum_{j=1}^{n}|f_j(x)-f_j(y)| <\sum_{j=1}^{n}\frac{\varepsilon}{n} =\varepsilon. \] The same \(\delta\) works for every \(x,y\in E\), which is precisely uniform continuity of the sum. \(\square\)

Worked Example: A Uniformly Continuous Sum on the Real Line

Let \(G(x)=|x|+x\) for \(x\in\mathbb{R}\). The absolute-value function is uniformly continuous on \(\mathbb{R}\), as established in “Continuity of Absolute Value,” and the identity function is uniformly continuous by “Continuity of the Identity Function.” The theorem therefore implies that \(G\) is uniformly continuous.

A direct estimate also shows exactly how the changes combine. For \(x,y\in\mathbb{R}\), the reverse triangle inequality gives \[ |G(x)-G(y)| =\bigl||x|-|y|+(x-y)\bigr| \leq \bigl||x|-|y|\bigr|+|x-y| \leq 2|x-y|. \] Given \(\varepsilon>0\), choose \(\delta=\varepsilon/2\). If \(|x-y|<\delta\), then \[ |G(x)-G(y)|\leq 2|x-y|<2\delta=\varepsilon. \] Thus the same choice works for all real \(x\) and \(y\). The estimate also reveals why uniform continuity follows: neither summand can change rapidly enough to prevent this common control.

Adding Lipschitz Bounds

Uniform continuity is qualitative: sufficiently close inputs produce close outputs, with a suitable threshold. Sometimes a more precise estimate is available. A function \(f:E\to\mathbb{R}\) is Lipschitz with constant \(L\geq0\) if \(|f(x)-f(y)|\leq L|x-y|\) for every \(x,y\in E\). Such a bound immediately implies uniform continuity when \(L>0\); when \(L=0\), the function is constant and is uniformly continuous as well.

Theorem: Suppose \(f_1,\ldots,f_n:E\to\mathbb{R}\) are Lipschitz with respective constants \(L_1,\ldots,L_n\geq0\). Then their sum is Lipschitz with constant \(\sum_{j=1}^{n}L_j\).

Proof. For any \(x,y\in E\), the triangle inequality and the Lipschitz hypotheses give \[ \left|\sum_{j=1}^{n}f_j(x)-\sum_{j=1}^{n}f_j(y)\right| \leq\sum_{j=1}^{n}|f_j(x)-f_j(y)| \leq\sum_{j=1}^{n}L_j|x-y| =\left(\sum_{j=1}^{n}L_j\right)|x-y|. \] This is the defining Lipschitz inequality for the sum, with constant \(\sum_{j=1}^{n}L_j\). \(\square\)

This result is useful when the goal is not only to know that a sum is continuous, but also to control the size of its changes. If all the summands have a common Lipschitz constant \(L\), this theorem gives the bound \(nL\) for a sum of \(n\) terms. The bound may not be the smallest possible one, but it is always valid.

Worked Example: Bounding Changes of a Sum

On \(\mathbb{R}\), let \(H(x)=|x|+|x-4|\). The reverse triangle inequality gives, for all \(x,y\in\mathbb{R}\), \[ \bigl||x|-|y|\bigr|\leq|x-y|. \] Applying it again to \(x-4\) and \(y-4\) gives \[ \bigl||x-4|-|y-4|\bigr| \leq|(x-4)-(y-4)| =|x-y|. \] Thus each summand is Lipschitz with constant \(1\), and the sum theorem gives \[ |H(x)-H(y)|\leq2|x-y|. \] For example, if \(|x-y|<0.01\), then \(|H(x)-H(y)|<0.02\). This works for every pair of real inputs, including pairs that lie on opposite sides of \(0\) or \(4\). No analysis of the separate sign cases is needed.

Domains and a Common Pitfall

For a sum \(f+g\), both functions must be defined on the inputs under discussion. If their original domains differ, the natural domain of their sum is the intersection of those domains. Continuity of each summand on that common domain then gives continuity of the sum there. For example, a reciprocal term restricts the domain to points where its denominator is nonzero; adding another function does not fill in a point where the reciprocal is undefined.

Worked Example: A Sum on a Restricted Domain

Let \(Q(x)=1/x+|x-3|\), with domain \(E=\mathbb{R}\setminus\{0\}\), and examine \(a=2\). The reciprocal function is continuous at \(2\), and \(x\mapsto |x-3|\) is continuous there by the absolute-value continuity result. The two-function sum theorem therefore implies that \(Q\) is continuous at \(2\). Its value is \(Q(2)=1/2+|2-3|=1/2+1=3/2\).

For a direct verification, suppose \(|x-2|<1\). Then \(1<x<3\), so \(|x|>1\). We have \[ \left|\frac1x-\frac12\right| =\frac{|x-2|}{2|x|} <\frac{|x-2|}{2}. \] Also, the reverse triangle inequality gives \[ \bigl||x-3|-|2-3|\bigr|\leq |x-2|. \] Consequently, \[ |Q(x)-Q(2)| \leq\left|\frac1x-\frac12\right|+\bigl||x-3|-1\bigr| <\frac32|x-2|. \] Given \(\varepsilon>0\), take \(\delta=\min\{1,2\varepsilon/3\}\). If \(x\in E\) and \(|x-2|<\delta\), then the displayed estimate yields \[ |Q(x)-Q(2)|<\frac32\delta\leq\varepsilon. \] The restriction \(\delta\leq1\) ensures the bound \(|x|>1\), while the other part of the minimum controls the output error.

A different pitfall is to reverse the sum theorem. Continuity of \(f\) and \(g\) guarantees continuity of \(f+g\), but continuity of the sum alone does not guarantee continuity of either summand. For instance, on \(\mathbb{R}\), define \(f(0)=1\), \(f(x)=0\) for \(x\ne0\), and \(g(x)=-f(x)\). The function \(f\) is not continuous at \(0\): values at nonzero points are \(0\), while \(f(0)=1\). Yet \(f(x)+g(x)=0\) for every \(x\), so the sum is continuous. Addition can cancel discontinuities; it does not generally allow them to be recovered from the sum.

The main practical choices are therefore clear. Use the finite-sum theorem when only continuity at a point is needed, the uniform-continuity theorem when one \(\delta\) must work across the whole domain, and a Lipschitz estimate when a numerical bound on output changes is useful. In each case, the triangle inequality is what allows the separate controls to combine.

Check Your Understanding

Use the results on finite sums, uniform continuity, and Lipschitz bounds to answer the following questions.

  1. What common hypothesis about the domain is needed to define a sum of functions pointwise?
  2. How does the induction proof extend the two-function continuity result to a finite sum?
  3. Why does taking the minimum of finitely many delta choices establish uniform continuity of a finite sum?
  4. If two functions are Lipschitz with constants \(3\) and \(5\), what Lipschitz constant does the theorem give for their sum?
  5. Can a continuous sum have a discontinuous summand? Give an example or explain why not.