have hi := (integrableOn_Ioi_rpow_of_lt (a := (-2 : ℝ)) (by norm_num) hr).const_mul C
apply hi.congr
filter_upwards [ae_restrict_mem measurableSet_Ioi] with t ht
haveht0 : 0 < t := hr.trans ht
rw [Real.rpow_neg ht0.le, Real.rpow_two]
rfl
theoreminverseSquare_derivative_limit {Fd : ℝ→ℝ} {C : ℝ}
(_ : 0≤C) (hdc : ContinuousOn d (Ici1))
(hd : ∀ t, 1≤ t →HasDerivAtF (d t) t)
(hb : ∀ t, 1≤ t → |d t| ≤C / t ^ 2) :
∃L : ℝ, TendstoF atTop (𝓝 L) ∧∀ r, 1≤ r → |F r - L| ≤C / r :=by
proof · 22
lines
havehi : IntegrableOn d (Ioi1) :=by
apply (integrable_inverseSquare (bynorm_num : (0 : ℝ) < 1) C).mono'
((hdc.mono Ioi_subset_Ici_self).aestronglyMeasurable measurableSet_Ioi)
filter_upwards [ae_restrict_mem measurableSet_Ioi] with t ht
exact hb t ht.le
havehlim : TendstoF atTop (𝓝 (limUnder atTop F)) :=
tendsto_limUnder_of_hasDerivAt_of_integrableOn_Ioi (fun t ht => hd t ht.le) hi
refine ⟨limUnder atTop F, hlim, ?_⟩
intro r hr
havehir : IntegrableOn d (Ioi r) := hi.mono_set (Ioi_subset_Ioi hr)
have he := integral_Ioi_of_hasDerivAt_of_tendsto'
(fun t (ht : t ∈Ici r) => hd t (hr.trans ht)) hir hlim
calc
|F r - limUnder atTop F| = |∫ t inIoi r, d t| :=by rw [he, abs_sub_comm]
_ ≤∫ t inIoi r, |d t| :=by
simpa only [Real.norm_eq_abs] using
norm_integral_le_integral_norm (μ := volume.restrict (Ioi r)) d
_ ≤∫ t inIoi r, C / t ^ 2:=by
apply integral_mono_ae hir.abs (integrable_inverseSquare (by linarith) C)
filter_upwards [ae_restrict_mem measurableSet_Ioi] with t ht
exact hb t (hr.trans ht.le)
_ = C / r := integral_inverseSquare (by linarith) C