Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Derivative test
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Method for finding the extrema of a function}} In [[calculus]], a '''derivative test''' uses the [[derivative]]s of a [[function (mathematics)|function]] to locate the [[Critical point (mathematics)|critical point]]s of a function and determine whether each point is a [[local maximum]], a [[local minimum]], or a [[saddle point]]. Derivative tests can also give information about the [[Concave function|concavity]] of a function. The usefulness of derivatives to find [[maxima and minima|extrema]] is proved mathematically by [[Fermat's theorem (stationary points)|Fermat's theorem of stationary points]]. ==First-derivative test== The first-derivative test examines a function's [[monotonic function|monotonic]] properties (where the function is increasing or decreasing), focusing on a particular point in its [[domain of a function|domain]]. If the function "switches" from increasing to decreasing at the point, then the function will achieve a highest value at that point. Similarly, if the function "switches" from decreasing to increasing at the point, then it will achieve a least value at that point. If the function fails to "switch" and remains increasing or remains decreasing, then no highest or least value is achieved. One can examine a function's monotonicity without calculus. However, calculus is usually helpful because there are [[necessary and sufficient conditions|sufficient conditions]] that guarantee the monotonicity properties above, and these conditions apply to the vast majority of functions one would encounter. ===Precise statement of monotonicity properties=== Stated precisely, suppose that ''f'' is a [[real number|real]]-valued function defined on some [[open interval]] containing the point ''x'' and suppose further that ''f'' is [[Continuous function|continuous]] at ''x''. * If there exists a positive number ''r'' > 0 such that ''f'' is weakly increasing on {{open-closed|''x'' − ''r'', ''x''}} and weakly decreasing on {{closed-open|''x'', ''x'' + ''r''}}, then ''f'' has a local maximum at ''x''. * If there exists a positive number ''r'' > 0 such that ''f'' is strictly increasing on {{open-closed|''x'' − ''r'', ''x''}} and strictly increasing on {{closed-open|''x'', ''x'' + ''r''}}, then ''f'' is strictly increasing on {{open-open|''x'' − ''r'', ''x'' + ''r''}} and does not have a local maximum or minimum at ''x''. Note that in the first case, ''f'' is not required to be strictly increasing or strictly decreasing to the left or right of ''x'', while in the last case, ''f'' is required to be strictly increasing or strictly decreasing. The reason is that in the definition of local maximum and minimum, the inequality is not required to be strict: e.g. every value of a [[constant function]] is considered both a local maximum and a local minimum. ===Precise statement of first-derivative test=== The first-derivative test depends on the "increasing–decreasing test", which is itself ultimately a consequence of the [[mean value theorem]]. It is a direct consequence of the way the [[derivative]] is defined and its connection to decrease and increase of a function locally, combined with the previous section. Suppose ''f'' is a real-valued function of a real variable defined on some [[interval (mathematics)|interval]] containing the critical point ''a''. Further suppose that ''f'' is continuous at ''a'' and [[differentiable function|differentiable]] on some open interval containing ''a'', except possibly at ''a'' itself. * If there exists a positive number ''r'' > 0 such that for every ''x'' in (''a'' − ''r'', ''a'') we have {{nobr|''{{′|f}}''(''x'') ≥ 0,}} and for every ''x'' in (''a'', ''a'' + ''r'') we have {{nobr|''{{′|f}}''(''x'') ≤ 0,}} then ''f'' has a local maximum at ''a''. * If there exists a positive number ''r'' > 0 such that for every ''x'' in (''a'' − ''r'', ''a'') we have {{nobr|''{{′|f}}''(''x'') ≤ 0,}} and for every ''x'' in (''a'', ''a'' + ''r'') we have {{nobr|''{{′|f}}''(''x'') ≥ 0,}} then ''f'' has a local minimum at ''a''. * If there exists a positive number ''r'' > 0 such that for every ''x'' in (''a'' − ''r'', ''a'') ∪ (''a'', ''a'' + ''r'') we have {{nobr|''{{′|f}}''(''x'') > 0,}} then ''f'' is strictly increasing at ''a'' and has neither a local maximum nor a local minimum there. * If none of the above conditions hold, then the test fails. (Such a condition is not [[vacuous truth|vacuous]]; there are functions that satisfy none of the first three conditions, e.g. ''f''(''x'') = ''x''<sup>2</sup> sin(1/''x'')). Again, corresponding to the comments in the section on monotonicity properties, note that in the first two cases, the inequality is not required to be strict, while in the third, strict inequality is required. ===Applications=== The first-derivative test is helpful in solving [[optimization problem]]s in physics, economics, and engineering. In conjunction with the [[extreme value theorem]], it can be used to find the absolute maximum and minimum of a real-valued function defined on a [[closed interval|closed]] and [[bounded set|bounded]] interval. In conjunction with other information such as concavity, inflection points, and [[asymptote]]s, it can be used to sketch the [[graph of a function|graph]] of a function. ==Second-derivative test (single variable)== After establishing the [[critical point (mathematics)|critical points]] of a function, the ''second-derivative test'' uses the value of the [[second derivative]] at those points to determine whether such points are a local [[Maxima and minima|maximum]] or a local minimum.<ref>{{cite book |title=Fundamental Methods of Mathematical Economics|url=https://archive.org/details/fundamentalmetho00chia_782|last=Chiang|first=Alpha C.|author-link=Alpha Chiang|page=[https://archive.org/details/fundamentalmetho00chia_782/page/n233 231]–267|year=1984|editor=McGraw-Hill|isbn=0-07-010813-7}}</ref> If the function ''f'' is twice-differentiable at a critical point ''x'' (i.e. a point where ''{{prime|f}}''(''x'') = 0), then: * If <math>f''(x) < 0</math>, then <math>f</math> has a local maximum at <math>x</math>. * If <math>f''(x) > 0</math>, then <math>f</math> has a local minimum at <math>x</math>. * If <math>f''(x) = 0</math>, the test is inconclusive. In the last case, [[Taylor's theorem#Taylor's theorem in one real variable|Taylor's theorem]] may sometimes be used to determine the behavior of ''f'' near ''x'' using [[higher derivative]]s. ===Proof of the second-derivative test=== Suppose we have <math>f''(x) > 0</math> (the proof for <math>f''(x) < 0</math> is analogous). By assumption, <math>f'(x) = 0</math>. Then : <math>0 < f''(x) = \lim_{h \to 0} \frac{f'(x + h) - f'(x)}{h} = \lim_{h \to 0} \frac{f'(x + h)}{h}.</math> Thus, for ''h'' sufficiently small we get : <math>\frac{f'(x + h)}{h} > 0,</math> which means that <math>f'(x + h) < 0</math> if <math>h < 0</math> (intuitively, ''f'' is decreasing as it approaches <math>x</math> from the left), and that <math>f'(x + h) > 0</math> if <math>h > 0</math> (intuitively, ''f'' is increasing as we go right from ''x''). Now, by the [[first-derivative test]], <math>f</math> has a local minimum at <math>x</math>. ===Concavity test=== A related but distinct use of second derivatives is to determine whether a function is [[Concave function|concave up]] or concave down at a point. It does not, however, provide information about [[inflection points]]. Specifically, a twice-differentiable function ''f'' is concave up if <math>f''(x) > 0</math> and concave down if <math>f''(x) < 0</math>. Note that if <math>f(x) = x^4</math>, then <math>x = 0</math> has zero second derivative, yet is not an inflection point, so the second derivative alone does not give enough information to determine whether a given point is an inflection point. ===Higher-order derivative test=== The ''higher-order derivative test'' or ''general derivative test'' is able to determine whether a function's critical points are maxima, minima, or points of inflection for a wider variety of functions than the second-order derivative test. As shown below, the second-derivative test is mathematically identical to the special case of ''n'' = 1 in the higher-order derivative test. Let ''f'' be a real-valued, sufficiently differentiable function on an interval <math>I \subset \R</math>, let <math>c \in I</math>, and let <math>n \ge 1</math> be a [[natural number]]. Also let all the derivatives of ''f'' at ''c'' be zero up to and including the ''n''-th derivative, but with the (''n'' + 1)th derivative being non-zero: : <math>f'(c) = \cdots =f^{(n)}(c) = 0\quad \text{and}\quad f^{(n+1)}(c) \ne 0.</math> There are four possibilities, the first two cases where ''c'' is an extremum, the second two where ''c'' is a (local) saddle point: * If ''(n+1)'' is [[parity (mathematics)|even]] and <math>f^{(n+1)}(c) < 0</math>, then ''c'' is a local maximum. * If ''(n+1)'' is even and <math>f^{(n+1)}(c) > 0</math>, then ''c'' is a local minimum. * If ''(n+1)'' is [[parity (mathematics)|odd]] and <math>f^{(n+1)}(c) < 0</math>, then ''c'' is a strictly decreasing point of inflection. * If ''(n+1)'' is odd and <math>f^{(n+1)}(c) > 0</math>, then ''c'' is a strictly increasing point of inflection. Since ''(n+1)'' must be either odd or even, this analytical test classifies any stationary point of ''f'', so long as a nonzero derivative shows up eventually, where <math>f^{(n+1)}(c) \ne 0.</math> is the first non-zero derivative. ===Example=== Say we want to perform the general derivative test on the function <math>f(x) = x^6 + 5</math> at the point <math>x = 0</math>. To do this, we calculate the derivatives of the function and then evaluate them at the point of interest until the result is nonzero. : <math>f'(x) = 6x^5</math>, <math>f'(0) = 0;</math> : <math>f''(x) = 30x^4</math>, <math>f''(0) = 0;</math> : <math>f^{(3)}(x) = 120x^3</math>, <math>f^{(3)}(0) = 0;</math> : <math>f^{(4)}(x) = 360x^2</math>, <math>f^{(4)}(0) = 0;</math> : <math>f^{(5)}(x) = 720x</math>, <math>f^{(5)}(0) = 0;</math> : <math>f^{(6)}(x) = 720</math>, <math>f^{(6)}(0) = 720.</math> As shown above, at the point <math>x = 0</math>, the function <math>x^6 + 5</math> has all of its derivatives at 0 equal to 0, except for the 6th derivative, which is positive. Thus ''n'' = 5, and by the test, there is a local minimum at 0. ==Multivariable case== {{Main article|Second partial derivative test}} For a function of more than one variable, the second-derivative test generalizes to a test based on the [[eigenvalue]]s of the function's [[Hessian matrix]] at the critical point. In particular, assuming that all second-order partial derivatives of ''f'' are continuous on a [[neighbourhood (mathematics)|neighbourhood]] of a critical point ''x'', then if the eigenvalues of the Hessian at ''x'' are all positive, then ''x'' is a local minimum. If the eigenvalues are all negative, then ''x'' is a local maximum, and if some are positive and some negative, then the point is a [[saddle point]]. If the Hessian matrix is [[singular matrix|singular]], then the second-derivative test is inconclusive. ==See also== {{Div col|colwidth=25em}} * [[Hessian matrix#Bordered Hessian|Bordered Hessian]] * [[Convex function]] * [[Differentiability]] * [[Fermat's theorem (stationary points)]] * [[Inflection point]] * [[Karush–Kuhn–Tucker conditions]] * [[Maxima and minima]] * [[Optimization (mathematics)]] * [[Phase line (mathematics)|Phase line]] – virtually identical diagram, used in the study of ordinary differential equations * [[Saddle point]] * [[Second partial derivative test]] * [[Stationary point]] {{div col end}} ==Further reading== *{{cite book |first=Alpha C. |last=Chiang |author-link=Alpha Chiang |title=Fundamental Methods of Mathematical Economics |url=https://archive.org/details/fundamentalmetho0000chia_h4v2 |url-access=registration |location=New York |publisher=McGraw-Hill |edition=Third |year=1984 |isbn=0-07-010813-7 |pages=[https://archive.org/details/fundamentalmetho0000chia_h4v2/page/231 231–267] }} *{{cite book |first=Jerrold |last=Marsden |author-link=Jerrold E. Marsden |first2=Alan |last2=Weinstein |author-link2=Alan Weinstein |title=Calculus I |location=New York |publisher=Springer |edition=2nd |year=1985 |isbn=0-387-90974-5 |pages=139–199 }} *{{cite book |first=James E. |last=Shockley |title=The Brief Calculus : with Applications in the Social Sciences |location=New York |publisher=Holt, Rinehart & Winston |edition=2nd |year=1976 |isbn=0-03-089397-6 |pages=77–109 }} *{{cite book |author-link=James Stewart (mathematician) |last=Stewart |first=James |year=2008 |title=Calculus: Early Transcendentals |edition=6th |publisher=Brooks Cole Cengage Learning |isbn=978-0-495-01166-8 |url-access=registration |url=https://archive.org/details/calculusearlytra00stew_1 }} *{{cite book |first=Stephen |last=Willard |title=Calculus and its Applications |location=Boston |publisher=Prindle, Weber & Schmidt |year=1976 |isbn=0-87150-203-8 |pages=103–145 }} ==References== {{reflist}} ==External links== * [http://mathworld.wolfram.com/SecondDerivativeTest.html "Second Derivative Test" at Mathworld] * [https://web.archive.org/web/20190411111206/https://www.math.hmc.edu/calculus/tutorials/secondderiv/ Concavity and the Second Derivative Test] * [https://www.maa.org/press/periodicals/convergence/thomas-simpson-and-maxima-and-minima Thomas Simpson's use of Second Derivative Test to Find Maxima and Minima] at Convergence [[Category:Differential calculus]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Cite book
(
edit
)
Template:Closed-open
(
edit
)
Template:Div col
(
edit
)
Template:Div col end
(
edit
)
Template:Main article
(
edit
)
Template:Nobr
(
edit
)
Template:Open-closed
(
edit
)
Template:Open-open
(
edit
)
Template:Prime
(
edit
)
Template:Reflist
(
edit
)
Template:Short description
(
edit
)