The areas / V16. Normed spaces and functional analysis
Mathlib.Analysis.Convex.SpecificFunctions.Deriv
13 declarations. Mathlib docs · Source
Collection of convex functions
In this file we prove that certain specific functions are strictly convex, including the following:
Even.strictConvexOn_pow: For an evenn : ℕwith2 ≤ n,fun x => x ^ nis strictly convex.strictConvexOn_pow: Forn : ℕ, with2 ≤ n,fun x => x ^ nis strictly convex on $[0,+∞)$.strictConvexOn_zpow: Form : ℤwithm ≠ 0, 1,fun x => x ^ mis strictly convex on $[0, +∞)$.strictConcaveOn_sin_Icc:sinis strictly concave on $[0, π]$strictConcaveOn_cos_Icc:cosis strictly concave on $[-π/2, π/2]$
TODO
These convexity lemmas are proved by checking the sign of the second derivative. If desired, most
of these could also be switched to elementary proofs, like in
Analysis.Convex.SpecificFunctions.Basic.
theorem strictConvexOn_pow E1 #
∀ {n : ℕ}, 2 ≤ n → StrictConvexOn ℝ (Set.Ici 0) fun x ↦ x ^ n
x^n, n : ℕ is strictly convex on [0, +∞) for all n greater than 2.
theorem Even.strictConvexOn_pow E1 #
∀ {n : ℕ}, Even n → n ≠ 0 → StrictConvexOn ℝ Set.univ fun x ↦ x ^ n
x^n, n : ℕ is strictly convex on the whole real line whenever n ≠ 0 is even.
theorem Finset.prod_nonneg_of_card_nonpos_even E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : CommRing β] [inst_1 : LinearOrder β] [IsStrictOrderedRing β] {f : α → β}
[inst_3 : DecidablePred fun x ↦ f x ≤ 0] {s : Finset α}, Even {x ∈ s | f x ≤ 0}.card → 0 ≤ ∏ x ∈ s, f x
theorem int_prod_range_nonneg E1 #
∀ (m : ℤ) (n : ℕ), Even n → 0 ≤ ∏ k ∈ Finset.range n, (m - ↑k)
theorem int_prod_range_pos E1 #
∀ {m : ℤ} {n : ℕ}, Even n → m ∉ Set.Ico 0 ↑n → 0 < ∏ k ∈ Finset.range n, (m - ↑k)
theorem strictConvexOn_zpow E1 #
∀ {m : ℤ}, m ≠ 0 → m ≠ 1 → StrictConvexOn ℝ (Set.Ioi 0) fun x ↦ x ^ m
x^m, m : ℤ is convex on (0, +∞) for all m except 0 and 1.
theorem hasDerivAt_sqrt_mul_log E1 #
∀ {x : ℝ}, x ≠ 0 → HasDerivAt (fun x ↦ √x * Real.log x) ((2 + Real.log x) / (2 * √x)) x
theorem deriv_sqrt_mul_log E1 #
∀ (x : ℝ), deriv (fun x ↦ √x * Real.log x) x = (2 + Real.log x) / (2 * √x)
theorem deriv_sqrt_mul_log' E1 #
(deriv fun x ↦ √x * Real.log x) = fun x ↦ (2 + Real.log x) / (2 * √x)
theorem deriv2_sqrt_mul_log E1 #
∀ (x : ℝ), deriv^[2] (fun x ↦ √x * Real.log x) x = -Real.log x / (4 * √x ^ 3)
theorem strictConcaveOn_sqrt_mul_log_Ioi E1 #
StrictConcaveOn ℝ (Set.Ioi 1) fun x ↦ √x * Real.log x
theorem strictConcaveOn_sin_Icc E1 #
StrictConcaveOn ℝ (Set.Icc 0 Real.pi) Real.sin
theorem strictConcaveOn_cos_Icc E1 #
StrictConcaveOn ℝ (Set.Icc (-(Real.pi / 2)) (Real.pi / 2)) Real.cos