Riemann Integrals Containing Differentials within the Integrand

Abstract

A certain class of infinite sums leading to Riemann integrals that involve additional differentials inside their integrands is investigated. It is shown that these integrals can easily be evaluated by applying a simple algorithm.

Share and Cite:

Mohazzabi, P. and Jones, N. (2026) Riemann Integrals Containing Differentials within the Integrand. Journal of Applied Mathematics and Physics, 14, 1608-1611. doi: 10.4236/jamp.2026.144075.

1. Introduction

There are situations where additional differential expressions appear inside the integrand of a definite integral, namely

a b f( x,dx )dx (1)

where f( x,dx ) is a function of both the variable x and its differential dx . Although these situations are extremely rare, they do happen in certain areas of mathematics, probability, information theory, and science [1].

Consider an interval [ a,b ] of real numbers x . The interval is divided into n small subintervals, each of width Δ x i ( i=1,2,3,,n ), as shown in Figure 1. Let the value of x at the midpoint of slice i be x i .

Suppose we have a function of the independent variables x and its increment Δx , denoted by f( x,Δx ) . Then for the interval i , the value of this function is approximately f( x i ,Δ x i ) . We construct the sum,

S n = i=1 n f( x i ,Δ x i )Δ x i (2)

We now take the limit n such that each Δ x i 0 ,

S= lim n S n = lim n i=1 n f( x i ,Δ x i )Δ x i (3)

Figure 1. An interval [ a,b ] is divided into n subintervals, each of width Δ x i . The coordinate x i is the midpoint of subinterval i .

Sums and limits like these, although rare, appear in some areas such as information theory. For example, Shannon entropy S for discrete probabilities is defined by [2]-[5]

S= i=1 n p i ln p i (4)

where p i is the probability of the outcome E i in a random event with outcomes E 1 , E 2 ,, E n . Extension of this definition to a continuous random variable with a probability density function g( x ) results in the equation

S n = i=1 n g( x i )Δ x i ln[ g( x i )Δ x i ]= i=1 n g( x i )ln[ g( x i )Δ x i ]Δ x i (5)

where here the function g( x i )ln[ g( x i )Δ x i ] plays the role of f( x i ,Δ x i ) 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],

lim n i=1 n f( x i )Δ x i = a b f( x )dx (6)

except that for evaluation of the resulting integral, the dx in the integrand should be set equal to zero, namely,

lim n i=1 n f( x i ,Δ x i )Δ x i = a b f ( x,dx ) dx=0 dx (7)

where [ a,b ] is the support set of the random variable x . But, if the integrand becomes undefined at dx=0 , its limit should be considered for dx0 . Note that this is not a new integration rule, it is simply Riemann integral, in which dx is set equal to zero in its integrand.

2. Proof of Equation 7

Let us expand each function f( x i ,Δ x i ) of the sum in Equation (3) with respect to Δ x i in a Taylor series about Δ x i =0 ,

S= lim n i=1 n [ f( x i ,0 )+ ( f Δ x i ) 0 Δ x i + 1 2 ( 2 f Δ x i 2 ) 0 Δ x i 2 + ]Δ x i = lim n i=1 n [ f( x i ,0 )Δ x i + ( f Δ x i ) 0 Δ x i 2 + 1 2 ( 2 f Δ x i 2 ) 0 Δ x i 3 + ] (8)

However, as each Δ x i 0 , the second and higher powers of Δ x i become negligible compared to its first power, and we obtain

S= lim n i=1 n f( x i ,0 )Δ x i (9)

But this, by definition, is the Riemann integral,

S= a b f( x,0 )dx (10)

which, for more clarity, can be written as

S= a b f ( x,dx ) dx=0 dx (11)

which proves Equation (7).

3. Additional Examples

A simple example is the following sum over the interval a=0 and b=1 ,

lim n i=1 n e x i cos( Δ x i ) Δ x i = 0 1 e x cos( dx ) dx = 0 1 e x cos( 0 ) dx = 0 1 e x/2 dx =1.2974

Numerical evaluation of the left hand side of this equation verifies the result.

Evaluation of integrals involving dx in the integrand should adhere to the rule explained above. Otherwise, incorrect answers may result. More specifically, the differential dx 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

1 2 ln( dx )dx (12)

may seem to be equal to zero because lim dx0 dxln( dx )=0 . However, this result is incorrect. The correct answer is

1 2 ln( dx )dx = 1 2 ln( 0 )dx =ln( 0 ) 1 2 dx = (13)

which can be verified by numerically evaluating the following sum over the indicated interval,

lim n i=1 n ln( Δ x i )Δ x i (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 Δx 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

S= a b g( x )ln [ g( x )dx ] dx=0 dx =ln( 0 ) a b g( x )dx = (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]

S= a b g( x )lng( x )dx (16)

where the limits a and b define the support set, or the interval of the random variable x , and g( x ) is the probability density function for x . Despite its shortcomings, this entropy is applied in areas such as thermodynamics, statistical mechanics, and information theory [7].

Conflicts of Interest

The authors declare no conflicts of interest regarding the publication of this paper.

References

[1] Dubois, D.M. (2019) Generalization of the Discrete and Continuous Shannon Entropy by Positive Definite Functions Related to the Constant of Motion of the Non-Linear Lotka-Volterra System. Journal of Physics: Conference Series, 1251, Article ID: 012012.[CrossRef]
[2] Shannon, C.E. (1948) A Mathematical Theory of Communication. Bell System Technical Journal, 27, 623-656.[CrossRef]
[3] Cover, T.M. and Thomas, J.A. (2006) Elements of Information Theory. 2nd Edition, Wiley Interscience, 14.
[4] Rozanov, Y.A. (1969) Probability Theory: A Concise Course. Revised English Edition, Translated and Edited by R.A. Silverman, Dover, 117.
[5] Viznyuk, S. (2015) Shannon’s Entropy Revisited.
https://arxiv.org/pdf/1504.01407v1
[6] Thomas, G.B. and Calculus, Jr. (2014) Early Transcendentals. 13th edition, Pearson, 316-317.
[7] Mohazzabi, P. and Jones, N.H. (2026) A Reexamination of Continuous Shannon Entropy. Journal of Applied Mathematics and Physics, 14, 1102-1105.[CrossRef]
[8] Ihara, S. (1993) Information Theory for Continuous Systems. World Scientific, 13.[CrossRef]
[9] Marsh, C. (2013) Introduction to Continuous Entropy.
https://www.crmarsh.com/pdf/Charles_Marsh_Continuous_Entropy.pdf
[10] Cover, T.M. and Thomas, J.A. (1991) Elements of Information Theory. Wiley, 224.

Copyright © 2026 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.