The First- and Second-Derivative Tests #
We prove the first-derivative test from calculus, in the strong form given on Wikipedia.
The test is proved over the real numbers ℝ
using monotoneOn_of_deriv_nonneg from Mathlib/Analysis/Calculus/Deriv/MeanValue.lean.
We prove the second-derivative test using the first-derivative test. Source: Wikipedia.
Main results #
isLocalMax_of_deriv_Ioo: Supposefis a real-valued function of a real variable defined on some interval containing the pointa. Further suppose thatfis continuous ataand differentiable on some open interval containinga, except possibly ataitself.If there exists a positive number
r > 0such that for everyxin(a − r, a)we havef′(x) ≥ 0, and for everyxin(a, a + r)we havef′(x) ≤ 0, thenfhas a local maximum ata.isLocalMin_of_deriv_Ioo: The dual offirst_derivative_max, for minima.isLocalMax_of_deriv: 1st derivative test for maxima using filters.isLocalMin_of_deriv: 1st derivative test for minima using filters.isLocalMin_of_deriv_deriv_pos: The second-derivative test, minimum version.
Tags #
derivative test, first-derivative test, second-derivative test, calculus
The First-Derivative Test from calculus, maxima version.
Suppose a < b < c, f : ℝ → ℝ is continuous at b,
the derivative f' is nonnegative on (a,b), and
the derivative f' is nonpositive on (b,c). Then f has a local maximum at a.
The First-Derivative Test from calculus, minima version.
The First-Derivative Test from calculus, maxima version, expressed in terms of left and right filters.
The First-Derivative Test from calculus, minima version, expressed in terms of left and right filters.
The First Derivative test, maximum version.
The First Derivative test, minimum version.
If the derivative of f is positive at a root x₀ of f, then locally the sign of f x
matches x - x₀.
If the derivative of f is negative at a root x₀ of f, then locally the sign of f x
matches x₀ - x.
The First Derivative test with a hypothesis on the sign of the derivative, maximum version.
The First Derivative test with a hypothesis on the sign of the derivative, minimum version.
The Second-Derivative Test from calculus, minimum version.
Applies to functions like x^2 + 1[x ≥ 0] as well as twice differentiable
functions.
The Second-Derivative Test from calculus, maximum version.