Riemann Integrals Containing Differentials within the Integrand ()
1. Introduction
There are situations where additional differential expressions appear inside the integrand of a definite integral, namely
(1)
where
is a function of both the variable
and its differential
. Although these situations are extremely rare, they do happen in certain areas of mathematics, probability, information theory, and science [1].
Consider an interval
of real numbers
. The interval is divided into
small subintervals, each of width
(
), as shown in Figure 1. Let the value of
at the midpoint of slice
be
.
Suppose we have a function of the independent variables
and its increment
, denoted by
. Then for the interval
, the value of this function is approximately
. We construct the sum,
(2)
We now take the limit
such that each
,
(3)
Figure 1. An interval
is divided into
subintervals, each of width
. The coordinate
is the midpoint of subinterval
.
Sums and limits like these, although rare, appear in some areas such as information theory. For example, Shannon entropy
for discrete probabilities is defined by [2]-[5]
(4)
where
is the probability of the outcome
in a random event with outcomes
. Extension of this definition to a continuous random variable with a probability density function
results in the equation
(5)
where here the function
plays the role of
of Equation (3).
In what follows, we show that the limit of a sum like Equation (3) can be converted into a Riemann integral just as the limit of ordinary sums [6],
(6)
except that for evaluation of the resulting integral, the
in the integrand should be set equal to zero, namely,
(7)
where
is the support set of the random variable
. But, if the integrand becomes undefined at
, its limit should be considered for
. Note that this is not a new integration rule, it is simply Riemann integral, in which
is set equal to zero in its integrand.
2. Proof of Equation 7
Let us expand each function
of the sum in Equation (3) with respect to
in a Taylor series about
,
(8)
However, as each
, the second and higher powers of
become negligible compared to its first power, and we obtain
(9)
But this, by definition, is the Riemann integral,
(10)
which, for more clarity, can be written as
(11)
which proves Equation (7).
3. Additional Examples
A simple example is the following sum over the interval
and
,
Numerical evaluation of the left hand side of this equation verifies the result.
Evaluation of integrals involving
in the integrand should adhere to the rule explained above. Otherwise, incorrect answers may result. More specifically, the differential
within the integrand and that of the integral should be treated differently; the former should be set equal to zero while the latter should be considered as infinitesimal. For example, the integral
(12)
may seem to be equal to zero because
. However, this result is incorrect. The correct answer is
(13)
which can be verified by numerically evaluating the following sum over the indicated interval,
(14)
4. Discussion and Conclusion
There are situations where the differential of a Riemann integral also appears in the integrand. This happens when the infinite sum whose limit yields the Riemann integral contains the term
in its function. However, these situations are highly uncommon. To the best of our knowledge, they are not mentioned in any mathematics textbooks, and a literature survey did not produce any results. In conclusion, because these cases have shown up occasionally in science and mathematics [1], they warrant an examination and explanation, which has been the objective of this article.
Returning to the example of Shannon entropy for a continuous random variable, taking the limit of Equation (5), we obtain
(15)
Consequently, the continuous Shannon entropy, as a direct limit of the discrete entropy, diverges without renormalization. However, this renormalization alters the physical meaning of the resulting equation, and hence should no longer be called Shannon entropy [7]. Nevertheless, a different type of continuous entropy, or differential entropy, has been defined by [8]-[10]
(16)
where the limits
and
define the support set, or the interval of the random variable
, and
is the probability density function for
. Despite its shortcomings, this entropy is applied in areas such as thermodynamics, statistical mechanics, and information theory [7].