Step 1: Y 2 Y^2 Y 2 is a nonnegative random variable. For real a < 0 a<0 a < 0 we have { Y 2 > a } = Ξ© \{Y^2>a\}=\Omega { Y 2 > a } = Ξ© . For a β₯ 0 a\ge0 a β₯ 0 , since Y β₯ 0 Y\ge0 Y β₯ 0 pointwise, Y ( Ο ) 2 > a Y(\omega)^2>a Y ( Ο ) 2 > a holds if and only if Y ( Ο ) > a Y(\omega)>\sqrt{a} Y ( Ο ) > a β , where a \sqrt{a} a β is the nonnegative square root of a a a : indeed, for y β₯ 0 y\ge0 y β₯ 0 , y > a y>\sqrt{a} y > a β implies y 2 > a β y β₯ a a = a y^2>\sqrt{a}\,y\ge\sqrt{a}\sqrt{a}=a y 2 > a β y β₯ a β a β = a when y > 0 y>0 y > 0 (and a < y 2 a<y^2 a < y 2 trivially if a = 0 < y \sqrt{a}=0<y a β = 0 < y ), while y β€ a y\le\sqrt{a} y β€ a β implies y 2 β€ a 2 = a y^2\le\sqrt{a}^2=a y 2 β€ a β 2 = a . Hence { Y 2 > a } = { Y > a } β F \{Y^2>a\}=\{Y>\sqrt{a}\}\in\mathcal{F} { Y 2 > a } = { Y > a β } β F , and Y 2 Y^2 Y 2 is measurable by the half-line criterion of Measurable Function and Real-Valued Measurable Function . Its integral β« Ξ© Y 2 β d P \int_\Omega Y^2\,dP β« Ξ© β Y 2 d P is defined in [ 0 , β ] [0,\infty] [ 0 , β ] by Lebesgue Integral of a Nonnegative Measurable Function .
Step 2: the product space. The measure P P P is finite and m m m is Ο \sigma Ο -finite: R = β n β N [ β n , n ] \mathbb{R}=\bigcup_{n\in\mathbb{N}}[-n,n] R = β n β N β [ β n , n ] and m ( [ β n , n ] ) = 2 n < β m([-n,n])=2n<\infty m ([ β n , n ]) = 2 n < β by the interval property of Existence of Lebesgue Measure on the Real Line . By Product Sigma-Algebra and Existence and Uniqueness of the Product Measure the product measure P β m P\otimes m P β m exists on the product Ο \sigma Ο -algebra F β B ( R ) \mathcal{F}\otimes\mathcal{B}(\mathbb{R}) F β B ( R ) of Ξ© Γ R \Omega\times\mathbb{R} Ξ© Γ R .
Step 3: a measurable region and integrand. Let
E = { ( Ο , u ) β Ξ© Γ R Β : Β 0 < u < Y ( Ο ) } . E=\{(\omega,u)\in\Omega\times\mathbb{R}\ :\ 0<u<Y(\omega)\}. E = {( Ο , u ) β Ξ© Γ R Β : Β 0 < u < Y ( Ο )} .
Then E = β q ( { Y > q } Γ ( 0 , q ) ) E=\bigcup_{q}\bigl(\{Y>q\}\times(0,q)\bigr) E = β q β ( { Y > q } Γ ( 0 , q ) ) , the union over all positive rational q q q : if 0 < u < Y ( Ο ) 0<u<Y(\omega) 0 < u < Y ( Ο ) , the density of the rationals provides a rational q q q with u < q < Y ( Ο ) u<q<Y(\omega) u < q < Y ( Ο ) , so ( Ο , u ) β { Y > q } Γ ( 0 , q ) (\omega,u)\in\{Y>q\}\times(0,q) ( Ο , u ) β { Y > q } Γ ( 0 , q ) ; conversely u < q < Y ( Ο ) u<q<Y(\omega) u < q < Y ( Ο ) implies 0 < u < Y ( Ο ) 0<u<Y(\omega) 0 < u < Y ( Ο ) . Each set { Y > q } Γ ( 0 , q ) \{Y>q\}\times(0,q) { Y > q } Γ ( 0 , q ) is a measurable rectangle in F β B ( R ) \mathcal{F}\otimes\mathcal{B}(\mathbb{R}) F β B ( R ) (Product Sigma-Algebra ), the rationals form a countable family, and a Ο \sigma Ο -algebra is closed under countable unions; hence E β F β B ( R ) E\in\mathcal{F}\otimes\mathcal{B}(\mathbb{R}) E β F β B ( R ) .
Define f : Ξ© Γ R β R f:\Omega\times\mathbb{R}\to\mathbb{R} f : Ξ© Γ R β R by f ( Ο , u ) = 2 u f(\omega,u)=2u f ( Ο , u ) = 2 u for ( Ο , u ) β E (\omega,u)\in E ( Ο , u ) β E and f ( Ο , u ) = 0 f(\omega,u)=0 f ( Ο , u ) = 0 otherwise; f β₯ 0 f\ge0 f β₯ 0 everywhere since u > 0 u>0 u > 0 on E E E . For a < 0 a<0 a < 0 , { f > a } = Ξ© Γ R \{f>a\}=\Omega\times\mathbb{R} { f > a } = Ξ© Γ R ; for a β₯ 0 a\ge0 a β₯ 0 ,
{ f > a } = E β© ( Ξ© Γ ( a / 2 , β ) ) , \{f>a\}=E\cap\bigl(\Omega\times(a/2,\infty)\bigr), { f > a } = E β© ( Ξ© Γ ( a /2 , β ) ) ,
an intersection of members of F β B ( R ) \mathcal{F}\otimes\mathcal{B}(\mathbb{R}) F β B ( R ) . By the half-line criterion of Measurable Function and Real-Valued Measurable Function , f f f is measurable.
Step 4: the two iterated integrals. By the Tonelli part of Tonelli and Fubini Theorems applied to the nonnegative measurable function f f f , both iterated integrals are defined, the slice-integral functions are measurable, and both iterated integrals equal β« f β d ( P β m ) \int f\,d(P\otimes m) β« f d ( P β m ) .
The Ο \omega Ο -slices. Fix Ο \omega Ο and put c = Y ( Ο ) β₯ 0 c=Y(\omega)\ge0 c = Y ( Ο ) β₯ 0 . The slice f ( Ο , β
) f(\omega,\cdot) f ( Ο , β
) is the function u β¦ 2 u u\mapsto2u u β¦ 2 u on ( 0 , c ) (0,c) ( 0 , c ) and 0 0 0 elsewhere. If c = 0 c=0 c = 0 the slice is identically 0 0 0 and its integral is 0 = c 2 0=c^2 0 = c 2 . If c > 0 c>0 c > 0 : the function h ( u ) = 2 u h(u)=2u h ( u ) = 2 u is continuous on [ 0 , c ] [0,c] [ 0 , c ] (for u 0 β [ 0 , c ] u_0\in[0,c] u 0 β β [ 0 , c ] and Ξ΅ > 0 \varepsilon>0 Ξ΅ > 0 take Ξ΄ = Ξ΅ / 2 \delta=\varepsilon/2 Ξ΄ = Ξ΅ /2 in Continuity at a Point ), and by Agreement of the Riemann and Lebesgue Integrals for Continuous Functions on a Closed Interval its zero extension h ~ = 2 u β 1 [ 0 , c ] \tilde{h}=2u\,\mathbf{1}_{[0,c]} h ~ = 2 u 1 [ 0 , c ] β is integrable with
β« R h ~ β d m = β« 0 c 2 u β d u , \int_{\mathbb{R}}\tilde{h}\,dm=\int_{0}^{c}2u\,du, β« R β h ~ d m = β« 0 c β 2 u d u ,
the Riemann integral. The function F ( u ) = u 2 F(u)=u^2 F ( u ) = u 2 on R \mathbb{R} R is an antiderivative of h h h extended to R \mathbb{R} R : every real point is an interior point of the interval R \mathbb{R} R , the identity function has difference quotients constantly 1 1 1 and hence derivative 1 1 1 , and the product rule (claim 3 of Sum and Product Rules for One-Dimensional Derivatives and Continuity ) gives F β² ( u ) = 1 β
u + u β
1 = 2 u F'(u)=1\cdot u+u\cdot1=2u F β² ( u ) = 1 β
u + u β
1 = 2 u . By Fundamental Theorem of Calculus, Part II in One Dimension , β« 0 c 2 u β d u = F ( c ) β F ( 0 ) = c 2 \int_0^c2u\,du=F(c)-F(0)=c^2 β« 0 c β 2 u d u = F ( c ) β F ( 0 ) = c 2 . Finally f ( Ο , β
) = h ~ β 2 c β 1 { c } f(\omega,\cdot)=\tilde{h}-2c\,\mathbf{1}_{\{c\}} f ( Ο , β
) = h ~ β 2 c 1 { c } β pointwise (the two sides agree off { 0 , c } \{0,c\} { 0 , c } , at 0 0 0 both vanish, and at c c c both equal 0 0 0 ), the simple function 2 c β 1 { c } 2c\,\mathbf{1}_{\{c\}} 2 c 1 { c } β has integral 2 c β m ( { c } ) = 0 2c\,m(\{c\})=0 2 c m ({ c }) = 0 since m ( { c } ) β€ m ( ( c β Ξ΅ , c ] ) = Ξ΅ m(\{c\})\le m((c-\varepsilon,c])=\varepsilon m ({ c }) β€ m (( c β Ξ΅ , c ]) = Ξ΅ for every Ξ΅ > 0 \varepsilon>0 Ξ΅ > 0 by monotonicity and the interval property of Existence of Lebesgue Measure on the Real Line , and by the linearity of the integral (Linearity and Monotonicity of the Lebesgue Integral )
β« R f ( Ο , β
) β d m = c 2 β 0 = Y ( Ο ) 2 . \int_{\mathbb{R}}f(\omega,\cdot)\,dm=c^2-0=Y(\omega)^2 . β« R β f ( Ο , β
) d m = c 2 β 0 = Y ( Ο ) 2 .
Hence the first iterated integral is β« Ξ© Y 2 β d P \int_{\Omega}Y^{2}\,dP β« Ξ© β Y 2 d P .
The u u u -slices. Fix u β R u\in\mathbb{R} u β R . If u β€ 0 u\le0 u β€ 0 the slice f ( β
, u ) f(\cdot,u) f ( β
, u ) is identically 0 0 0 with integral 0 = Ο ( u ) 0=\varphi(u) 0 = Ο ( u ) . If u > 0 u>0 u > 0 , the slice is the simple function 2 u β 1 { Y > u } 2u\,\mathbf{1}_{\{Y>u\}} 2 u 1 { Y > u } β with integral 2 u β P ( Y > u ) = Ο ( u ) 2u\,P(Y>u)=\varphi(u) 2 u P ( Y > u ) = Ο ( u ) . Hence the second iterated integral is β« R Ο β d m \int_{\mathbb{R}}\varphi\,dm β« R β Ο d m , and Tonelli asserts that Ο \varphi Ο , being the slice-integral function, is measurable β proving claim 1 β and that
β« Ξ© Y 2 β d P = β« f β d ( P β m ) = β« R Ο β d m , \int_{\Omega}Y^{2}\,dP=\int f\,d(P\otimes m)=\int_{\mathbb{R}}\varphi\,dm, β« Ξ© β Y 2 d P = β« f d ( P β m ) = β« R β Ο d m ,
proving claim 2.
Step 5: claim 3. By Square-Integrable Random Variables and the Mean-Square Inner Product , Y Y Y is square-integrable exactly when β« Ξ© Y 2 β d P < β \int_\Omega Y^2\,dP<\infty β« Ξ© β Y 2 d P < β , which by claim 2 is equivalent to β« R Ο β d m < β \int_{\mathbb{R}}\varphi\,dm<\infty β« R β Ο d m < β ; in that case the second moment E [ Y 2 ] \mathbb{E}[Y^2] E [ Y 2 ] of Expectation, Variance, and Moments is the integral β« Ξ© Y 2 β d P \int_\Omega Y^2\,dP β« Ξ© β Y 2 d P , and the identity of claim 2 gives claim 3. β \blacksquare β