Mathwords logoMathwords

Riemann–Stieltjes Integral — Definition, Formula & Example

The Riemann–Stieltjes integral is a generalization of the Riemann integral. Each piece of the sum is weighted by the change in a second function α, called the integrator, so the weights come from α rather than from the length of the subinterval.

Let ff and α\alpha be bounded real functions on [a,b][a,b]. For a partition P:a=x0<x1<⋯<xn=bP: a = x_0 < x_1 < \dots < x_n = b with tags ti∈[xi−1,xi]t_i \in [x_{i-1}, x_i], form the sum S(P,f,α)=∑i=1nf(ti) [α(xi)−α(xi−1)]S(P, f, \alpha) = \sum_{i=1}^{n} f(t_i)\,[\alpha(x_i) - \alpha(x_{i-1})]. The integral ∫abf dα\int_a^b f\,d\alpha exists and equals II if, for every ε>0\varepsilon > 0, there is a δ>0\delta > 0 such that ∣S(P,f,α)−I∣<ε|S(P,f,\alpha) - I| < \varepsilon for every tagged partition with mesh less than δ\delta. Some textbooks use a refinement-based definition instead. If ff is continuous and α\alpha has bounded variation, the integral is guaranteed to exist.

Key Formula

∫abf dα=lim⁡∥P∥→0∑i=1nf(ti) [α(xi)−α(xi−1)]\int_a^b f\,d\alpha = \lim_{\|P\| \to 0} \sum_{i=1}^{n} f(t_i)\,\bigl[\alpha(x_i) - \alpha(x_{i-1})\bigr]
Where:
  • ff = The integrand, the function being integrated
  • α\alpha = The integrator, the function whose changes act as the weights
  • PP = A partition of the interval [a, b] into n subintervals with endpoints x0x_0 through xnx_n
  • ∥P∥\|P\| = The mesh of the partition, meaning the length of its longest subinterval
  • tit_i = A tag point chosen in the i-th subinterval

Worked Example

Problem: Evaluate ∫03x dα(x)\int_0^3 x\,d\alpha(x), where α(x)=x2+⌊x⌋\alpha(x) = x^2 + \lfloor x \rfloor. Here ⌊x⌋\lfloor x \rfloor is the floor function, the greatest integer less than or equal to xx.
Step 1: Split the integrator into a smooth part and a jump part. The integral is linear in α\alpha, so you can handle each part separately. The floor function jumps up by 1 at x=1,2,3x = 1, 2, 3. All three jumps lie in [0,3][0, 3], and this includes the jump at the right endpoint.
∫03x dα=∫03x d(x2)+∫03x d⌊x⌋\int_0^3 x\,d\alpha = \int_0^3 x\,d(x^2) + \int_0^3 x\,d\lfloor x \rfloor
Step 2: The function x2x^2 is differentiable, so d(x2)=2x dxd(x^2) = 2x\,dx. This turns the smooth part into an ordinary integral.
∫03x⋅2x dx=[2x33]03=18\int_0^3 x \cdot 2x\,dx = \left[\tfrac{2x^3}{3}\right]_0^3 = 18
Step 3: Each jump of size 1 at a point cc contributes f(c)⋅1f(c) \cdot 1. Since f(x)=xf(x) = x is continuous, add up its values at the jump points.
∫03x d⌊x⌋=1+2+3=6\int_0^3 x\,d\lfloor x \rfloor = 1 + 2 + 3 = 6
Answer: ∫03x dα(x)=18+6=24\int_0^3 x\,d\alpha(x) = 18 + 6 = 24. The smooth part acts like an ordinary integral, and each jump adds a point mass.

Why It Matters

In probability, the expected value E[X]=∫x dF(x)E[X] = \int x\,dF(x) uses a cumulative distribution function FF as the integrator. That single formula covers discrete, continuous, and mixed random variables. In functional analysis, the Riesz representation theorem writes every continuous linear functional on C[a,b]C[a,b] as a Riemann–Stieltjes integral.

Common Mistakes

Mistake: Always replacing dαd\alpha with α′(x) dx\alpha'(x)\,dx, even when α\alpha has jumps.
Correction: The substitution dα=α′(x) dxd\alpha = \alpha'(x)\,dx is valid only when α\alpha is smooth enough, for example continuously differentiable. A jump in α\alpha adds a separate term equal to ff at the jump times the jump size. The derivative α′\alpha' cannot see this term.

Related Terms

  • Riemann Integral — Special case where the integrator is alpha(x) = x
  • Definite Integral — Evaluates the smooth part after substituting alpha prime
  • Integral — Broader family of accumulation operations this generalizes
  • Real Analysis — Course where existence theorems for this integral are proved
  • Numerical Analysis — Quadrature rules are integrals against step-function integrators