The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V15. Real analysis in one variable

Mathlib.Analysis.Calculus.Deriv.Inv

40 declarations. Mathlib docs · Source

Derivatives of x ↦ x⁻¹ and f x / g x

In this file we prove (x⁻¹)' = -1 / x ^ 2, ((f x)⁻¹)' = -f' x / (f x) ^ 2, and (f x / g x)' = (f' x * g x - f x * g' x) / (g x) ^ 2 for different notions of derivative.

For a more detailed overview of one-dimensional derivatives in mathlib, see the module docstring of Analysis/Calculus/Deriv/Basic.

Tags

derivative

Derivative of x ↦ x⁻¹

Derivative of x ↦ c x / d x

theorem hasStrictDerivAt_inv E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜}, x ≠ 0 → HasStrictDerivAt Inv.inv (-(x ^ 2)⁻¹) x

theorem hasDerivAt_inv E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜}, x ≠ 0 → HasDerivAt (fun y ↦ y⁻¹) (-(x ^ 2)⁻¹) x

theorem hasDerivWithinAt_inv E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜},
  x ≠ 0 → ∀ (s : Set 𝕜), HasDerivWithinAt (fun x ↦ x⁻¹) (-(x ^ 2)⁻¹) s x

theorem differentiableAt_inv_iff E0 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜}, DifferentiableAt 𝕜 (fun x ↦ x⁻¹) x ↔ x ≠ 0

theorem deriv_inv E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜}, deriv (fun x ↦ x⁻¹) x = -(x ^ 2)⁻¹

theorem deriv_inv' E0 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜], (deriv fun x ↦ x⁻¹) = fun x ↦ -(x ^ 2)⁻¹

theorem derivWithin_inv E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {s : Set 𝕜},
  x ≠ 0 → UniqueDiffWithinAt 𝕜 s x → derivWithin (fun x ↦ x⁻¹) s x = -(x ^ 2)⁻¹

theorem hasFDerivAt_inv E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜},
  x ≠ 0 → HasFDerivAt (fun x ↦ x⁻¹) (ContinuousLinearMap.toSpanSingleton 𝕜 (-(x ^ 2)⁻¹)) x

theorem hasStrictFDerivAt_inv E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜},
  x ≠ 0 → HasStrictFDerivAt (fun x ↦ x⁻¹) (ContinuousLinearMap.toSpanSingleton 𝕜 (-(x ^ 2)⁻¹)) x

theorem hasFDerivWithinAt_inv E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {s : Set 𝕜},
  x ≠ 0 → HasFDerivWithinAt (fun x ↦ x⁻¹) (ContinuousLinearMap.toSpanSingleton 𝕜 (-(x ^ 2)⁻¹)) s x

theorem fderiv_inv E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜},
  fderiv 𝕜 (fun x ↦ x⁻¹) x = ContinuousLinearMap.toSpanSingleton 𝕜 (-(x ^ 2)⁻¹)

theorem fderivWithin_inv E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {s : Set 𝕜},
  x ≠ 0 →
    UniqueDiffWithinAt 𝕜 s x → fderivWithin 𝕜 (fun x ↦ x⁻¹) s x = ContinuousLinearMap.toSpanSingleton 𝕜 (-(x ^ 2)⁻¹)

theorem HasDerivWithinAt.inv E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {s : Set 𝕜} {𝕜' : Type u_1}
  [inst_1 : NontriviallyNormedField 𝕜'] [inst_2 : NormedAlgebra 𝕜 𝕜'] {c : 𝕜 → 𝕜'} {c' : 𝕜'},
  HasDerivWithinAt c c' s x → c x ≠ 0 → HasDerivWithinAt c⁻¹ (-c' / c x ^ 2) s x

theorem HasDerivWithinAt.fun_inv E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {s : Set 𝕜} {𝕜' : Type u_1}
  [inst_1 : NontriviallyNormedField 𝕜'] [inst_2 : NormedAlgebra 𝕜 𝕜'] {c : 𝕜 → 𝕜'} {c' : 𝕜'},
  HasDerivWithinAt c c' s x → c x ≠ 0 → HasDerivWithinAt (fun i ↦ (c i)⁻¹) (-c' / c x ^ 2) s x

Eta-expanded form of HasDerivWithinAt.inv

theorem HasDerivAt.fun_inv E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {𝕜' : Type u_1} [inst_1 : NontriviallyNormedField 𝕜']
  [inst_2 : NormedAlgebra 𝕜 𝕜'] {c : 𝕜 → 𝕜'} {c' : 𝕜'},
  HasDerivAt c c' x → c x ≠ 0 → HasDerivAt (fun i ↦ (c i)⁻¹) (-c' / c x ^ 2) x

Eta-expanded form of HasDerivAt.inv

theorem HasDerivAt.inv E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {𝕜' : Type u_1} [inst_1 : NontriviallyNormedField 𝕜']
  [inst_2 : NormedAlgebra 𝕜 𝕜'] {c : 𝕜 → 𝕜'} {c' : 𝕜'}, HasDerivAt c c' x → c x ≠ 0 → HasDerivAt c⁻¹ (-c' / c x ^ 2) x

theorem derivWithin_fun_inv' E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {s : Set 𝕜} {𝕜' : Type u_1}
  [inst_1 : NontriviallyNormedField 𝕜'] [inst_2 : NormedAlgebra 𝕜 𝕜'] {c : 𝕜 → 𝕜'},
  DifferentiableWithinAt 𝕜 c s x → c x ≠ 0 → derivWithin (fun x ↦ (c x)⁻¹) s x = -derivWithin c s x / c x ^ 2

theorem derivWithin_inv' E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {s : Set 𝕜} {𝕜' : Type u_1}
  [inst_1 : NontriviallyNormedField 𝕜'] [inst_2 : NormedAlgebra 𝕜 𝕜'] {c : 𝕜 → 𝕜'},
  DifferentiableWithinAt 𝕜 c s x → c x ≠ 0 → derivWithin c⁻¹ s x = -derivWithin c s x / c x ^ 2

theorem deriv_fun_inv'' E0 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {𝕜' : Type u_1} [inst_1 : NontriviallyNormedField 𝕜']
  [inst_2 : NormedAlgebra 𝕜 𝕜'] {c : 𝕜 → 𝕜'},
  DifferentiableAt 𝕜 c x → c x ≠ 0 → deriv (fun x ↦ (c x)⁻¹) x = -deriv c x / c x ^ 2

theorem deriv_inv'' E0 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {𝕜' : Type u_1} [inst_1 : NontriviallyNormedField 𝕜']
  [inst_2 : NormedAlgebra 𝕜 𝕜'] {c : 𝕜 → 𝕜'}, DifferentiableAt 𝕜 c x → c x ≠ 0 → deriv c⁻¹ x = -deriv c x / c x ^ 2

theorem HasDerivWithinAt.fun_div E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {s : Set 𝕜} {𝕜' : Type u_1}
  [inst_1 : NontriviallyNormedField 𝕜'] [inst_2 : NormedAlgebra 𝕜 𝕜'] {c d : 𝕜 → 𝕜'} {c' d' : 𝕜'},
  HasDerivWithinAt c c' s x →
    HasDerivWithinAt d d' s x → d x ≠ 0 → HasDerivWithinAt (fun y ↦ c y / d y) ((c' * d x - c x * d') / d x ^ 2) s x

theorem HasDerivWithinAt.div E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {s : Set 𝕜} {𝕜' : Type u_1}
  [inst_1 : NontriviallyNormedField 𝕜'] [inst_2 : NormedAlgebra 𝕜 𝕜'] {c d : 𝕜 → 𝕜'} {c' d' : 𝕜'},
  HasDerivWithinAt c c' s x →
    HasDerivWithinAt d d' s x → d x ≠ 0 → HasDerivWithinAt (c / d) ((c' * d x - c x * d') / d x ^ 2) s x

theorem HasStrictDerivAt.fun_div E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {𝕜' : Type u_1} [inst_1 : NontriviallyNormedField 𝕜']
  [inst_2 : NormedAlgebra 𝕜 𝕜'] {c d : 𝕜 → 𝕜'} {c' d' : 𝕜'},
  HasStrictDerivAt c c' x →
    HasStrictDerivAt d d' x → d x ≠ 0 → HasStrictDerivAt (fun y ↦ c y / d y) ((c' * d x - c x * d') / d x ^ 2) x

theorem HasStrictDerivAt.div E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {𝕜' : Type u_1} [inst_1 : NontriviallyNormedField 𝕜']
  [inst_2 : NormedAlgebra 𝕜 𝕜'] {c d : 𝕜 → 𝕜'} {c' d' : 𝕜'},
  HasStrictDerivAt c c' x →
    HasStrictDerivAt d d' x → d x ≠ 0 → HasStrictDerivAt (c / d) ((c' * d x - c x * d') / d x ^ 2) x

theorem HasDerivAt.fun_div E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {𝕜' : Type u_1} [inst_1 : NontriviallyNormedField 𝕜']
  [inst_2 : NormedAlgebra 𝕜 𝕜'] {c d : 𝕜 → 𝕜'} {c' d' : 𝕜'},
  HasDerivAt c c' x → HasDerivAt d d' x → d x ≠ 0 → HasDerivAt (fun y ↦ c y / d y) ((c' * d x - c x * d') / d x ^ 2) x

theorem HasDerivAt.div E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {𝕜' : Type u_1} [inst_1 : NontriviallyNormedField 𝕜']
  [inst_2 : NormedAlgebra 𝕜 𝕜'] {c d : 𝕜 → 𝕜'} {c' d' : 𝕜'},
  HasDerivAt c c' x → HasDerivAt d d' x → d x ≠ 0 → HasDerivAt (c / d) ((c' * d x - c x * d') / d x ^ 2) x

theorem DifferentiableWithinAt.fun_div E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {s : Set 𝕜} {𝕜' : Type u_1}
  [inst_1 : NontriviallyNormedField 𝕜'] [inst_2 : NormedAlgebra 𝕜 𝕜'] {c d : 𝕜 → 𝕜'},
  DifferentiableWithinAt 𝕜 c s x →
    DifferentiableWithinAt 𝕜 d s x → d x ≠ 0 → DifferentiableWithinAt 𝕜 (fun x ↦ c x / d x) s x

theorem DifferentiableWithinAt.div E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {s : Set 𝕜} {𝕜' : Type u_1}
  [inst_1 : NontriviallyNormedField 𝕜'] [inst_2 : NormedAlgebra 𝕜 𝕜'] {c d : 𝕜 → 𝕜'},
  DifferentiableWithinAt 𝕜 c s x → DifferentiableWithinAt 𝕜 d s x → d x ≠ 0 → DifferentiableWithinAt 𝕜 (c / d) s x

theorem DifferentiableAt.div E0 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {𝕜' : Type u_1} [inst_1 : NontriviallyNormedField 𝕜']
  [inst_2 : NormedAlgebra 𝕜 𝕜'] {c d : 𝕜 → 𝕜'},
  DifferentiableAt 𝕜 c x → DifferentiableAt 𝕜 d x → d x ≠ 0 → DifferentiableAt 𝕜 (c / d) x

theorem DifferentiableAt.fun_div E0 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {𝕜' : Type u_1} [inst_1 : NontriviallyNormedField 𝕜']
  [inst_2 : NormedAlgebra 𝕜 𝕜'] {c d : 𝕜 → 𝕜'},
  DifferentiableAt 𝕜 c x → DifferentiableAt 𝕜 d x → d x ≠ 0 → DifferentiableAt 𝕜 (fun i ↦ c i / d i) x

Eta-expanded form of DifferentiableAt.div

theorem DifferentiableOn.div E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {s : Set 𝕜} {𝕜' : Type u_1} [inst_1 : NontriviallyNormedField 𝕜']
  [inst_2 : NormedAlgebra 𝕜 𝕜'] {c d : 𝕜 → 𝕜'},
  DifferentiableOn 𝕜 c s → DifferentiableOn 𝕜 d s → (∀ x ∈ s, d x ≠ 0) → DifferentiableOn 𝕜 (c / d) s

theorem DifferentiableOn.fun_div E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {s : Set 𝕜} {𝕜' : Type u_1} [inst_1 : NontriviallyNormedField 𝕜']
  [inst_2 : NormedAlgebra 𝕜 𝕜'] {c d : 𝕜 → 𝕜'},
  DifferentiableOn 𝕜 c s → DifferentiableOn 𝕜 d s → (∀ x ∈ s, d x ≠ 0) → DifferentiableOn 𝕜 (fun i ↦ c i / d i) s

Eta-expanded form of DifferentiableOn.div

theorem Differentiable.fun_div E0 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {𝕜' : Type u_1} [inst_1 : NontriviallyNormedField 𝕜']
  [inst_2 : NormedAlgebra 𝕜 𝕜'] {c d : 𝕜 → 𝕜'},
  Differentiable 𝕜 c → Differentiable 𝕜 d → (∀ (x : 𝕜), d x ≠ 0) → Differentiable 𝕜 fun i ↦ c i / d i

Eta-expanded form of Differentiable.div

theorem Differentiable.div E0 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {𝕜' : Type u_1} [inst_1 : NontriviallyNormedField 𝕜']
  [inst_2 : NormedAlgebra 𝕜 𝕜'] {c d : 𝕜 → 𝕜'},
  Differentiable 𝕜 c → Differentiable 𝕜 d → (∀ (x : 𝕜), d x ≠ 0) → Differentiable 𝕜 (c / d)

theorem derivWithin_fun_div E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {s : Set 𝕜} {𝕜' : Type u_1}
  [inst_1 : NontriviallyNormedField 𝕜'] [inst_2 : NormedAlgebra 𝕜 𝕜'] {c d : 𝕜 → 𝕜'},
  DifferentiableWithinAt 𝕜 c s x →
    DifferentiableWithinAt 𝕜 d s x →
      d x ≠ 0 → derivWithin (fun x ↦ c x / d x) s x = (derivWithin c s x * d x - c x * derivWithin d s x) / d x ^ 2

theorem derivWithin_div E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {s : Set 𝕜} {𝕜' : Type u_1}
  [inst_1 : NontriviallyNormedField 𝕜'] [inst_2 : NormedAlgebra 𝕜 𝕜'] {c d : 𝕜 → 𝕜'},
  DifferentiableWithinAt 𝕜 c s x →
    DifferentiableWithinAt 𝕜 d s x →
      d x ≠ 0 → derivWithin (c / d) s x = (derivWithin c s x * d x - c x * derivWithin d s x) / d x ^ 2

theorem deriv_fun_div E0 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {𝕜' : Type u_1} [inst_1 : NontriviallyNormedField 𝕜']
  [inst_2 : NormedAlgebra 𝕜 𝕜'] {c d : 𝕜 → 𝕜'},
  DifferentiableAt 𝕜 c x →
    DifferentiableAt 𝕜 d x → d x ≠ 0 → deriv (fun x ↦ c x / d x) x = (deriv c x * d x - c x * deriv d x) / d x ^ 2

theorem deriv_div E0 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {𝕜' : Type u_1} [inst_1 : NontriviallyNormedField 𝕜']
  [inst_2 : NormedAlgebra 𝕜 𝕜'] {c d : 𝕜 → 𝕜'},
  DifferentiableAt 𝕜 c x →
    DifferentiableAt 𝕜 d x → d x ≠ 0 → deriv (c / d) x = (deriv c x * d x - c x * deriv d x) / d x ^ 2

theorem deriv_const_div E1 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} {𝕜' : Type u_1} [inst_1 : NontriviallyNormedField 𝕜']
  [inst_2 : NormedAlgebra 𝕜 𝕜'] {d : 𝕜 → 𝕜'} (c : 𝕜'),
  DifferentiableAt 𝕜 d x → d x ≠ 0 → deriv (fun x ↦ c / d x) x = -c * deriv d x / d x ^ 2

theorem deriv_const_div_id E0 #

∀ {𝕜 : Type u} [inst : NontriviallyNormedField 𝕜] {x : 𝕜} (c : 𝕜), deriv (fun x ↦ c / x) x = -c / x ^ 2