In the lecture on the
    Expected value we
   have discussed a rigorous definition of expected value that involves the
   Riemann-Stieltjes integral. We present here some rules for computing the
   Riemann-Stieltjes integral. Since we are interested in the computation of the
   expected value, we focus here on rules that can be applied when the integrator
   function is the distribution function of a random variable
   ,
   that is, we limit our attention to integrals of the
   kind
![[eq1]](/images/Stieltjes-integral-rules__2.png) where
where
   
   is the  distribution
   function of a random variable
   
   and
   
![[eq3]](/images/Stieltjes-integral-rules__5.png) .
   Before stating the rules, note that the above integral does not necessarily
   exist or is not necessarily well-defined. Roughly speaking, for the integral
   to exist the integrand function
.
   Before stating the rules, note that the above integral does not necessarily
   exist or is not necessarily well-defined. Roughly speaking, for the integral
   to exist the integrand function
   
   must be well-behaved. For example, if
   
   is continuous on
   
,
   then the integral exists and is well-defined.
That said, we are ready to present the calculation rules:
          is
         continuously differentiable on
         
.
         If
         
         is continuously differentiable on
         
 and
         
         is its first derivative,
         then
![[eq7]](/images/Stieltjes-integral-rules__14.png) 
      
          is
         continuously differentiable on
         
 except
         at a finite number of points. Suppose
         
         is continuously differentiable on
         
 except
         at a finite number of points
         
,
         ...,
         
         such
         that
![[eq10]](/images/Stieltjes-integral-rules__21.png) Denote
         the derivative of
Denote
         the derivative of
         
         (where it exists) by
         
.
         Then,
![[eq13]](/images/Stieltjes-integral-rules__24.png) 
      
Table of contents
   Let
   
   be defined as
   follows:
![[eq15]](/images/Stieltjes-integral-rules__26.png) where
where
   .
   Compute the following
   integral:![[eq16]](/images/Stieltjes-integral-rules__28.png) 
   is continuously differentiable on the interval
   
.
   Its derivative
   
   is
![[eq19]](/images/Stieltjes-integral-rules__32.png) As
   a consequence, the integral
   becomes
As
   a consequence, the integral
   becomes![[eq20]](/images/Stieltjes-integral-rules__33.png) 
Please cite as:
Taboga, Marco (2021). "Computing the Riemann-Stieltjes integral: some rules", Lectures on probability theory and mathematical statistics. Kindle Direct Publishing. Online appendix. https://www.statlect.com/fundamentals-of-probability/Stieltjes-integral-rules.
Most of the learning materials found on this website are now available in a traditional textbook format.