Quadratic bounds for exp and log near zero #
Two second-order estimates used in the analysis of multiplicative weights [AHK12]:
Real.neg_sub_sq_le_log_one_sub:-y - y ^ 2 ≤ log (1 - y)fory ≤ 1 / 2. For0 ≤ y ≤ 1 / 2this is the bound-ln (1 - η) ≤ η + η ^ 2of [AroraHazanKale2012, §1.1, proof of Theorem 1.1]; for negativeyit is the boundln (1 + η) ≥ η - η ^ 2used in the proof of Theorem 2.1.Real.exp_neg_le_one_sub_add_sq:exp (-y) ≤ 1 - y + y ^ 2for-1 ≤ y, the estimate behind the Hedge bound [AroraHazanKale2012, §2.1, Theorem 2.3].
Main results #
Real.neg_sub_sq_le_log_one_sub:-y - y ^ 2 ≤ log (1 - y)fory ≤ 1 / 2.Real.exp_neg_le_one_sub_add_sq:exp (-y) ≤ 1 - y + y ^ 2for-1 ≤ y.