In mathematics, the layer cake representation of a non-negative, real-valued measurable function f defined on a measure space (Ω,𝒜,μ) is the formula
f(x)=∫0∞1L(f,t)(x)dt, for all x∈Ω, where 1E denotes the indicator function of a subset E⊆Ω and L(f,t) denotes the (strict) super-level set:
L(f,t)={y∈Ω∣f(y)≥t}orL(f,t)={y∈Ω∣f(y)>t}. The layer cake representation follows easily from observing that
1L(f,t)(x)=1[0,f(x)](t)or1L(f,t)(x)=1[0,f(x))(t) where either integrand gives the same integral:
f(x)=∫0f(x)dt. The layer cake representation takes its name from the representation of the value f(x) as the sum of contributions from the "layers" L(f,t): "layers"/values t below f(x) contribute to the integral, while values t above f(x) do not. It is a generalization of Cavalieri's principle and is also known under this name.
Applications The layer cake representation can be used to rewrite the Lebesgue integral as an improper Riemann integral. For the measure space, (Ω,𝒜,μ), let S⊆Ω, be a measureable subset (S∈𝒜) and f a non-negative measureable function. By starting with the Lebesgue integral, then expanding f(x), then exchanging integration order (see Fubini-Tonelli theorem) and simplifying in terms of the Lebesgue integral of an indicator function, we get the Riemann integral:
∫Sf(x)dμ(x)=∫S∫0∞1{x∈Ω∣f(x)>t}(x)dtdμ(x)=∫0∞∫S1{x∈Ω∣f(x)>t}(x)dμ(x)dt=∫0∞∫Ω1{x∈S∣f(x)>t}(x)dμ(x)dt=∫0∞μ({x∈S∣f(x)>t})dt. This can be used in turn, to rewrite the integral for the Lp-space p-norm, for 1≤p<+∞:
∫Ω|f(x)|pdμ(x)=p∫0∞sp−1μ({x∈Ω:|f(x)|>s})ds, which follows immediately from the change of variables t=sp in the layer cake representation of |f(x)|p. This representation can be used to prove Markov's inequality and Chebyshev's inequality.
See also Symmetric decreasing rearrangement
References
Gardner, Richard J. (2002). "The Brunn–Minkowski inequality". Bull. Amer. Math. Soc. (N.S.). 39 (3): 355–405 (electronic). doi:10.1090/S0273-0979-02-00941-2. Lieb, Elliott; Loss, Michael (2001). Analysis. Graduate Studies in Mathematics. Vol. 14 (2nd ed.). American Mathematical Society. ISBN 978-0821827833.

