E_Q[S_T²] = S_0²·exp(2rT + σ²T) under the BS lognormal hypothesis. Derived from the Gaussian MGF evaluated at 2σ√T.
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {S_0 K r σ T : ℝ} {Z : Ω → ℝ}, BSCallHyp Q S_0 K r σ T Z → ∫ (ω : Ω), bsTerminal S_0 r σ T (Z ω) ^ 2 ∂Q = S_0 ^ 2 * Real.exp (2 * r * T + σ ^ 2 * T)Second moment of the terminal asset price: under BSCallHyp, E_Q[S_T²] = S_0² · exp(2 r T + σ² T).
Instance of nthMoment_terminal at n = 2: the general formula gives S_0^2 · exp(2·r·T + 2·1/2·σ²T) = S_0^2 · exp(2rT + σ²T).