Tutorials › Calculus I › Why Sums and Products of Continuous Functions Stay Continuous

Continuity and the Intermediate Value Theorem · Tutorial 274 of 1495

Why Sums and Products of Continuous Functions Stay Continuous

Use the pointwise definition of continuity and limit laws to justify continuity of sums, differences, and products.

Beginner 9 min read

What You'll Learn

  • State continuity at a point using the function’s limit and value.
  • Identify the finite-limit conditions needed for the sum, difference, and product laws.
  • Prove that sums and differences preserve continuity at a point.
  • Explain why the product of two functions continuous at a point is also continuous there.
  • Apply the results to evaluate combined function values and limits.
  • Recognize the error of using a sum law in place of a product law.

Why Combine Continuous Functions?

Many functions are built by combining simpler ones. If two functions behave without a break near a point, it is natural to ask whether adding, subtracting, or multiplying them can create a discontinuity there. The answer is no: each of these operations preserves continuity at that point.

This fact is useful because it lets us establish continuity of complicated expressions from the continuity of their parts. The key is to connect the pointwise definition of continuity with the limit laws for sums, differences, and products.

Continuity at a Point

Let \(D\) be a subset of \(\mathbb{R}\), let \(a\) be a point of \(D\) that is approached by other points of \(D\), and let \(f:D\to\mathbb{R}\). The function \(f\) is continuous at \(a\) when the limit of \(f(x)\), as \(x\) approaches \(a\) through \(D\), exists and equals the value \(f(a)\).

$$ \lim_{x\to a} f(x)=f(a). $$

Thus continuity at \(a\) has two essential features: the nearby values of the function approach a limit, and that limit agrees with the value assigned at \(a\). In this tutorial, assume the functions being combined are defined on a common domain containing \(a\), and that the limits in question are taken within that domain.

Suppose \(f\) and \(g\) are continuous at \(a\). Then both limits exist, and continuity gives:

$$ \lim_{x\to a} f(x)=f(a) \qquad\text{and}\qquad \lim_{x\to a} g(x)=g(a). $$

The limit laws say that when these limits are finite, the limit of a sum is the sum of the limits, the limit of a difference is the difference of the limits, and the limit of a product is the product of the limits. These conditions apply here because continuity at \(a\) provides finite real values \(f(a)\) and \(g(a)\) as the respective limits.

The Closure Theorem

Theorem: If \(f\) and \(g\) are continuous at \(a\), then \(f+g\), \(f-g\), and \(fg\) are continuous at \(a\). Here the combined functions are defined pointwise by \((f+g)(x)=f(x)+g(x)\), \((f-g)(x)=f(x)-g(x)\), and \((fg)(x)=f(x)g(x)\).

The theorem follows by checking that the limit of each combined function agrees with its value at \(a\). For the sum, the sum law gives:

$$ \lim_{x\to a}\bigl(f(x)+g(x)\bigr) = \lim_{x\to a}f(x)+\lim_{x\to a}g(x) = f(a)+g(a) = (f+g)(a). $$

For the difference, the difference law gives:

$$ \lim_{x\to a}\bigl(f(x)-g(x)\bigr) = \lim_{x\to a}f(x)-\lim_{x\to a}g(x) = f(a)-g(a) = (f-g)(a). $$

For the product, the product law gives:

$$ \lim_{x\to a}\bigl(f(x)g(x)\bigr) = \left(\lim_{x\to a}f(x)\right) \left(\lim_{x\to a}g(x)\right) = f(a)g(a) = (fg)(a). $$

In each case, the limit exists and equals the combined function’s value at \(a\). That is exactly the definition of continuity at \(a\). Notice that the conclusion is local: the theorem establishes continuity at this point, based on continuity of the two functions at this point.

Why the Product Law Works

The product law can be understood by examining how far \(f(x)g(x)\) is from the proposed limit \(LM\), where \(\lim_{x\to a}f(x)=L\) and \(\lim_{x\to a}g(x)=M\). Add and subtract \(f(x)M\) to split that difference into two manageable parts:

$$ f(x)g(x)-LM = f(x)\bigl(g(x)-M\bigr)+M\bigl(f(x)-L\bigr). $$

Taking absolute values and using the triangle inequality gives:

$$ |f(x)g(x)-LM| \leq |f(x)|\,|g(x)-M|+|M|\,|f(x)-L|. $$

Since \(f(x)\to L\), we can restrict \(x\) to be close enough to \(a\) that \(|f(x)-L|<1\). Then \(|f(x)|\leq |L|+1\), so the factor \(|f(x)|\) is bounded near \(a\). Given any \(\varepsilon>0\), choose \(x\) sufficiently close to \(a\) that both

$$ |g(x)-M|<\frac{\varepsilon}{2(|L|+1)} \qquad\text{and}\qquad |f(x)-L|<\frac{\varepsilon}{2(|M|+1)}. $$

These bounds can be required together because each limit condition holds whenever \(x\) is sufficiently close to \(a\); we take the closer of the two required neighborhoods, also requiring \(|f(x)-L|<1\). It follows that:

$$ |f(x)g(x)-LM| < (|L|+1)\frac{\varepsilon}{2(|L|+1)} + |M|\frac{\varepsilon}{2(|M|+1)} < \frac{\varepsilon}{2}+\frac{\varepsilon}{2} = \varepsilon. $$

This proves that \(f(x)g(x)\to LM\). The argument shows why the product law requires finite limits: the values of \(f\) near \(a\) must be bounded, and convergence to a finite \(L\) supplies that bound.

Worked Examples

Worked Example: Add, Subtract, and Multiply at a Point

Let \(f(x)=2x+1\) and \(g(x)=x^2\). Find the values of their sum, difference, and product at \(a=2\), and verify that the corresponding limits agree with those values.

First evaluate each function at \(2\):

$$ f(2)=2(2)+1=5, \qquad g(2)=2^2=4. $$

The sum at \(2\) is \(5+4=9\). Using the sum law:

$$ \lim_{x\to 2}\bigl((2x+1)+x^2\bigr) = (2(2)+1)+2^2 = 5+4 = 9 = (f+g)(2). $$

The difference at \(2\) is \(5-4=1\). Using the difference law:

$$ \lim_{x\to 2}\bigl((2x+1)-x^2\bigr) = (2(2)+1)-2^2 = 5-4 = 1 = (f-g)(2). $$

The product at \(2\) is \(5\cdot4=20\). Using the product law:

$$ \lim_{x\to 2}\bigl((2x+1)x^2\bigr) = \bigl(2(2)+1\bigr)2^2 = 5\cdot4 = 20 = (fg)(2). $$

Each combined function’s limit at \(2\) equals its value there, verifying continuity for all three combinations.

Worked Example: A Function Defined by a Simplified Formula Near the Point

Define \(f(x)=\frac{x^2-4}{x-2}\) for \(x\neq 2\), with \(f(2)=4\), and let \(g(x)=x+1\). Check the continuity of \(f+g\) and \(fg\) at \(2\).

For \(x\neq 2\), factor the numerator and cancel the nonzero factor \(x-2\):

$$ f(x)=\frac{(x-2)(x+2)}{x-2}=x+2. $$

Therefore \(\lim_{x\to 2}f(x)=4=f(2)\), so \(f\) is continuous at \(2\). Also \(g(2)=2+1=3\), and \(\lim_{x\to 2}g(x)=2+1=3\), so \(g\) is continuous at \(2\).

The sum has value \(f(2)+g(2)=4+3=7\). Its limit is:

$$ \lim_{x\to 2}\bigl(f(x)+g(x)\bigr) = 4+3 = 7 = (f+g)(2). $$

The product has value \(f(2)g(2)=4\cdot3=12\). Its limit is:

$$ \lim_{x\to 2}f(x)g(x) = 4\cdot3 = 12 = (fg)(2). $$

Both combined functions are continuous at \(2\). The cancellation was used only for \(x\neq2\) to find the limit; the value at \(2\) was checked separately against that limit.

Worked Example: Combining Three Functions

Let \(u(x)=x+1\), \(v(x)=x-2\), and \(w(x)=x^2\). Find the value at \(x=1\) of \(u+v+w\) and \(uvw\), and check the corresponding limits.

Evaluate each function at \(1\):

$$ u(1)=1+1=2,\qquad v(1)=1-2=-1,\qquad w(1)=1^2=1. $$

The sum has value \(2+(-1)+1=2\). Applying the sum law twice gives:

$$ \lim_{x\to1}\bigl(u(x)+v(x)+w(x)\bigr) = 2+(-1)+1 = 2 = (u+v+w)(1). $$

The product has value \(2\cdot(-1)\cdot1=-2\). Applying the product law twice gives:

$$ \lim_{x\to1}u(x)v(x)w(x) = 2\cdot(-1)\cdot1 = -2 = (uvw)(1). $$

Each of \(u,v,w\) is continuous at \(1\), so repeated applications of the theorem establish continuity of the sum and product there. The limit calculations confirm that their limits equal their values.

A Common Mistake

A frequent error is to use the sum law when finding the limit of a product. For example, take \(f(x)=x\), \(g(x)=x+1\), and \(a=0\). A mistaken calculation might say:

$$ \lim_{x\to0}f(x)g(x) \overset{\text{wrong}}{=} \lim_{x\to0}f(x)+\lim_{x\to0}g(x) = 0+1 = 1. $$

The equality on the first line is wrong: a product must be handled by the product law, not the sum law. The correct calculation is:

$$ \lim_{x\to0}f(x)g(x) = \left(\lim_{x\to0}f(x)\right) \left(\lim_{x\to0}g(x)\right) = 0\cdot1 = 0. $$

Checking the function value confirms the result: \(f(0)g(0)=0\cdot1=0\). The product is continuous at \(0\), as the theorem predicts.

Why This Result Matters

The closure theorem turns a pointwise fact about simple functions into a way to handle larger expressions. If several functions are continuous at the same point, sums and differences built from them are continuous there; repeated applications of the product result show the same for finite products. Each application depends on its inputs being continuous at the point in question.

The pointwise condition matters. Knowing that \(f\) is continuous at \(a\) does not by itself establish that it is continuous everywhere, nor does it establish continuity of a combination at other points. To make a claim on an interval, the component functions must be continuous at every point of that interval. The central check remains the same: the limit of the combined expression must equal its value at the point.

Check Your Understanding

Use the pointwise definition and the limit laws to answer these questions.

  1. If \(f\) and \(g\) are continuous at \(a\), what must \(\lim_{x\to a}(f(x)-g(x))\) equal?
  2. Which finite-limit condition allows the product law to apply when \(f\) and \(g\) are continuous at \(a\)?
  3. If \(f(a)=3\) and \(g(a)=-2\), what are \((f+g)(a)\) and \((fg)(a)\)?
  4. Why does knowing that \(f\) and \(g\) are continuous at \(a\) establish continuity of their product there?
  5. In the common mistake, why is it invalid to add the limits when evaluating the limit of a product?

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