Find Two Discontinuous Functions Whose Product Is Continuous
At a glance
- 1. Choose the domain
Work on the real numbers, where rational and irrational numbers are both dense.
- 2. Define the functions
Give the functions complementary values on rational and irrational inputs.
- 3. Check discontinuity
Near any real number, sequences of both types of inputs make each function's values vary.
- 4. Multiply pointwise
The product is constant, so it is continuous everywhere.
Yes. In fact, you can find two functions that are each discontinuous at every real number but whose product is continuous everywhere. The simplest example has product zero. A second example shows that the continuous product need not be zero.
A simple example with product zero
Let denote the rational numbers, and define functions on by
The first function is the indicator of the rationals; the second is the indicator of the irrationals. For every real number , exactly one of the two functions is 1 and the other is 0. Thus
The product is the constant-zero function, which is continuous everywhere.
Why both functions are discontinuous everywhere
Every open interval contains both rational and irrational numbers. Fix any real number . You can choose a sequence of rational numbers converging to and a sequence of irrational numbers also converging to .
Along the rational sequence, is always 1; along the irrational sequence, it is always 0. Since these two sequences approach the same point but the function values approach different limits, has no limit at . In particular, it cannot be continuous there. The same argument applies to , with the values reversed.
Because was arbitrary, both functions are discontinuous at every real number. The key fact is that the product is evaluated pointwise: at each input, one factor vanishes.
An example whose product is 1
If you want a continuous product that is nonzero, change the values so that the functions are reciprocals of one another. Define
Both and are discontinuous at every real number: rational and irrational sequences approaching any point give different function values. But their products agree on both cases:
So is the constant-one function and is continuous everywhere. This demonstrates that discontinuities in two factors can cancel in their product; it does not mean that either factor is continuous.
Common mistakes
- Assuming a product can be continuous only if its factors are continuous. That implication is false. The examples above have discontinuous factors and continuous products.
- Checking only one kind of sequence. To establish discontinuity at a point, it is useful to compare rational and irrational sequences approaching that same point. Looking only at rational inputs would not reveal the failure of a limit.
- Confusing the product with the behavior of each factor. In the zero-product example, the factors fluctuate between 0 and 1, but at every input at least one factor is zero. The product therefore does not fluctuate at all.
The general strategy is to coordinate the factors’ values so their pointwise products stay fixed, even while each factor changes arbitrarily close to every point.
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.