Layer cake representation.
In mathematics , the layer cake representation of a non-negative , real -valued measurable function
f
{\displaystyle f}
defined on a measure space
(
Ω
,
A
,
μ
)
{\displaystyle (\Omega ,{\mathcal {A}},\mu )}
is the formula
f
(
x
)
=
∫
0
∞
1
L
(
f
,
t
)
(
x
)
d
t
,
{\displaystyle f(x)=\int _{0}^{\infty }1_{L(f,t)}(x)\,\mathrm {d} t,}
for all
x
∈
Ω
{\displaystyle x\in \Omega }
, where
1
E
{\displaystyle 1_{E}}
denotes the indicator function of a subset
E
⊆
Ω
{\displaystyle E\subseteq \Omega }
and
L
(
f
,
t
)
{\displaystyle L(f,t)}
denotes the (strict) super-level set :
L
(
f
,
t
)
=
{
y
∈
Ω
∣
f
(
y
)
≥
t
}
or
L
(
f
,
t
)
=
{
y
∈
Ω
∣
f
(
y
)
>
t
}
.
{\displaystyle L(f,t)=\{y\in \Omega \mid f(y)\geq t\}\;\;\;{{\text{or}}\;L(f,t)=\{y\in \Omega \mid f(y)>t\}}.}
The layer cake representation follows easily from observing that
1
L
(
f
,
t
)
(
x
)
=
1
[
0
,
f
(
x
)
]
(
t
)
or
1
L
(
f
,
t
)
(
x
)
=
1
[
0
,
f
(
x
)
)
(
t
)
{\displaystyle 1_{L(f,t)}(x)=1_{[0,f(x)]}(t)\;\;\;{{\text{or}}\;1_{L(f,t)}(x)=1_{[0,f(x))}(t)}}
where either integrand gives the same integral:
f
(
x
)
=
∫
0
f
(
x
)
d
t
.
{\displaystyle f(x)=\int _{0}^{f(x)}\,\mathrm {d} t.}
The layer cake representation takes its name from the representation of the value
f
(
x
)
{\displaystyle f(x)}
as the sum of contributions from the "layers"
L
(
f
,
t
)
{\displaystyle L(f,t)}
: "layers"/values
t
{\displaystyle t}
below
f
(
x
)
{\displaystyle f(x)}
contribute to the integral, while values
t
{\displaystyle t}
above
f
(
x
)
{\displaystyle f(x)}
do not.
It is a generalization of Cavalieri's principle and is also known under this name.