Integration by parts for Riemann–Stieltjes integrals

A boundary-term identity relating two Riemann–Stieltjes integrals.
Integration by parts for Riemann–Stieltjes integrals

Integration by parts (Riemann–Stieltjes): Let a<ba<b. Assume f,g:[a,b]Rf,g:[a,b]\to\mathbb{R} are and that at least one of ff or gg is continuous. Then both Riemann–Stieltjes integrals abfdg\int_a^b f\,dg and abgdf\int_a^b g\,df exist, and

abfdg  +  abgdf  =  f(b)g(b)f(a)g(a). \int_a^b f\,dg \;+\; \int_a^b g\,df \;=\; f(b)g(b)-f(a)g(a).

This generalizes the usual (obtained by taking g(x)=xg(x)=x and interpreting df=f(x)dxdf=f'(x)\,dx), and existence is ensured by the .