Canonical: https://knowlpedia.com/real-analysis/riemann-stieltjes-linearity/

# Linearity of the Riemann–Stieltjes integral

The Riemann–Stieltjes integral is linear in both the integrand and the integrator when the relevant integrals exist.

**Riemann–Stieltjes linearity:** Let \(a<b\) and let \(f,h,g_1,g_2:[a,b]\to\mathbb{R}\). Suppose the indicated [Riemann–Stieltjes integrals](https://knowlpedia.com/real-analysis/riemann-stieltjes-integral/) exist. For scalars \(\alpha,\beta\in\mathbb{R}\):
- If \(\int_a^b f\,dg\) and \(\int_a^b h\,dg\) exist, then \(\int_a^b (\alpha f+\beta h)\,dg\) exists and
  \[
  \int_a^b (\alpha f+\beta h)\,dg = \alpha\int_a^b f\,dg+\beta\int_a^b h\,dg.
  \]

- If \(\int_a^b f\,dg_1\) and \(\int_a^b f\,dg_2\) exist, then \(\int_a^b f\,d(\alpha g_1+\beta g_2)\) exists and
  \[
  \int_a^b f\,d(\alpha g_1+\beta g_2) = \alpha\int_a^b f\,dg_1+\beta\int_a^b f\,dg_2.
  \]

## Remarks

These identities are the Riemann–Stieltjes analog of [linearity of the Riemann integral](https://knowlpedia.com/real-analysis/riemann-linearity/) and are used routinely together with [integration by parts](https://knowlpedia.com/real-analysis/integration-by-parts-riemann-stieltjes/).
