theoremgraph_radial_angular_density_interval (f : ℝ→ℂ) (z a b : ℝ) :
(2/(1+z^2)) • (∫ t in a..b, f t) =
(Real.sqrt (1+z^2))⁻¹ •
∫ ρ in (2*a/Real.sqrt (1+z^2))..(2*b/Real.sqrt (1+z^2)),
f (ρ*Real.sqrt (1+z^2)/2) :=by
proof · 13
lines
havehs : 0 < Real.sqrt (1+z^2) :=Real.sqrt_pos.2 (by positivity)
havehe : (fun ρ => f (ρ*Real.sqrt (1+z^2)/2)) =
fun ρ => f (ρ*(Real.sqrt (1+z^2)/2)) :=by
funext ρ
congr 1
ring
haveha : (2*a/Real.sqrt (1+z^2))*(Real.sqrt (1+z^2)/2) = a :=by field_simp
havehb : (2*b/Real.sqrt (1+z^2))*(Real.sqrt (1+z^2)/2) = b :=by field_simp
rw [he, intervalIntegral.integral_comp_mul_right f (half_pos hs).ne', ha, hb, smul_smul]
congr 1have hsq :=Real.sq_sqrt (bypositivity : 0≤1+z^2)
field_simp
nlinarith