Is the Function Definition with 9^n Well-Defined?
At a glance
- 1. Check what n means
The rule does not define a unique function unless n is specified or made a function of x.
- 2. Use the fixed-n case
If n is a fixed integer, the function is zero on rationals and 9^n on irrationals.
- 3. Integrate by measure
Rationals have Lebesgue measure zero, while the irrationals in [0,1] have measure one.
- 4. Specify variable exponents
If n depends on x, provide its rule and check the measurability of its level sets.
The displayed rule assigns a value to rational inputs, but its irrational case contains an undefined symbol, . Unless is a fixed number or a specified function of , the formula does not define one particular function. A simple interpretation is that is a fixed integer; under that interpretation, the function is measurable and its Lebesgue integral can be calculated directly.
If is fixed
Let be a fixed integer and define
This is a two-valued function. The rationals in form a countable set, so they have Lebesgue measure zero. The irrationals make up the rest of the interval and have measure one. Thus equals the constant almost everywhere, meaning everywhere except on a set of measure zero.
The function is Lebesgue measurable: the sets on which it takes its two possible values are the rationals and the irrationals, both measurable. Its Lebesgue integral is
where denotes Lebesgue measure. This holds for any fixed integer ; for example, if , then is on the irrationals and its integral is .
Worked example when the exponent varies
If the intended meaning is that depends on , its rule must be given. For one possible rule, set on irrational numbers in and on irrational numbers in , while keeping for rational . The resulting function is measurable, and its integral is
The rationals at the endpoints or dividing point do not change the integral, because a finite set has measure zero. A different assignment of exponents to irrational inputs can give a different integral, or even make the function nonmeasurable.
More generally, if takes integer values, define
When all these level sets are measurable, the function is measurable and its nonnegative Lebesgue integral is
with the sum allowed to be infinite. Without the rule for , neither the level sets nor the integral can be determined.
Lebesgue versus Riemann integrability
For fixed , the function is bounded and Lebesgue integrable. It is not Riemann integrable, because and both the rationals and irrationals are dense in . At every point, values arbitrarily close to that point include both and , so the function is discontinuous everywhere. A bounded function on a closed interval is Riemann integrable only if its set of discontinuities has measure zero; here that set is the entire interval.
Common mistakes
- Treating an unspecified as if it were fixed. A fixed exponent and an exponent that depends on describe different functions.
- Confusing measure with cardinality. The rationals are infinite, but countable; their Lebesgue measure is zero.
- Concluding nonmeasurability from discontinuity. A function can be discontinuous everywhere and still be Lebesgue measurable, as in the fixed- case.
- Assuming every variable-exponent rule works. If varies, its level sets must be specified; arbitrary assignments need not be measurable.
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.