Jump to content

Derivative test

From Wikipedia, the free encyclopedia
(Redirected fromSecond derivative test)

Incalculus,aderivative testuses thederivativesof afunctionto locate thecritical pointsof a function and determine whether each point is alocal maximum,alocal minimum,or asaddle point.Derivative tests can also give information about theconcavityof a function.

The usefulness of derivatives to findextremais proved mathematically byFermat's theorem of stationary points.

First-derivative test[edit]

The first-derivative test examines a function'smonotonicproperties (where the function isincreasing or decreasing), focusing on a particular point in itsdomain.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 aresufficient conditionsthat guarantee the monotonicity properties above, and these conditions apply to the vast majority of functions one would encounter.

Precise statement of monotonicity properties[edit]

Stated precisely, suppose thatfis areal-valued function defined on someopen intervalcontaining the pointxand suppose further thatfiscontinuousatx.

  • If there exists a positive numberr> 0 such thatfis weakly increasing on(xr,x]and weakly decreasing on[x,x+r),thenfhas a local maximum atx.
  • If there exists a positive numberr> 0 such thatfis strictly increasing on(xr,x]and strictly increasing on[x,x+r),thenfis strictly increasing on(xr,x+r)and does not have a local maximum or minimum atx.

Note that in the first case,fis not required to be strictly increasing or strictly decreasing to the left or right ofx,while in the last case,fis 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 aconstant functionis considered both a local maximum and a local minimum.

Precise statement of first-derivative test[edit]

The first-derivative test depends on the "increasing–decreasing test", which is itself ultimately a consequence of themean value theorem.It is a direct consequence of the way thederivativeis defined and its connection to decrease and increase of a function locally, combined with the previous section.

Supposefis a real-valued function of a real variable defined on someintervalcontaining the critical pointa.Further suppose thatfiscontinuousataanddifferentiableon some open interval containinga,except possibly ataitself.

  • If there exists a positive numberr> 0 such that for everyxin (ar,a) we havef(x) ≥ 0,and for everyxin (a,a+r) we havef(x) ≤ 0,thenfhas a local maximum ata.
  • If there exists a positive numberr> 0 such that for everyxin (ar,a) we havef(x) ≤ 0,and for everyxin (a,a+r) we havef(x) ≥ 0,thenfhas a local minimum ata.
  • If there exists a positive numberr> 0 such that for everyxin (ar,a) ∪ (a,a+r) we havef(x) > 0,thenfis strictly increasing ataand 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 notvacuous;there are functions that satisfy none of the first three conditions, e.g.f(x) =x2 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[edit]

The first-derivative test is helpful in solvingoptimization problemsin physics, economics, and engineering. In conjunction with theextreme value theorem,it can be used to find the absolute maximum and minimum of a real-valued function defined on aclosedandboundedinterval. In conjunction with other information such as concavity, inflection points, andasymptotes,it can be used to sketch thegraphof a function.

Second-derivative test (single variable)[edit]

After establishing thecritical pointsof a function, thesecond-derivative testuses the value of thesecond derivativeat those points to determine whether such points are a localmaximumor a localminimum.[1]If the functionfis twice-differentiableat a critical pointx(i.e. a point wheref(x) = 0), then:

  • If,thenhas a local maximum at.
  • If,thenhas a local minimum at.
  • If,the test is inconclusive.

In the last case,Taylor's Theoremmay sometimes be used to determine the behavior offnearxusinghigher derivatives.

Proof of the second-derivative test[edit]

Suppose we have(the proof foris analogous). By assumption,.Then

Thus, forhsufficiently small we get

which means thatif(intuitively,fis decreasing as it approachesfrom the left), and thatif(intuitively,fis increasing as we go right fromx). Now, by thefirst-derivative test,has a local minimum at.

Concavity test[edit]

A related but distinct use of second derivatives is to determine whether a function isconcave uporconcave downat a point. It does not, however, provide information aboutinflection points.Specifically, a twice-differentiable functionfis concave up ifand concave down if.Note that if,thenhas 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[edit]

Thehigher-order derivative testorgeneral derivative testis 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 ofn= 1 in the higher-order derivative test.

Letfbe a real-valued, sufficientlydifferentiable functionon an interval,let,and letbe anatural number.Also let all the derivatives offatcbe zero up to and including then-th derivative, but with the (n+ 1)th derivative being non-zero:

There are four possibilities, the first two cases wherecis an extremum, the second two wherecis a (local) saddle point:

  • Ifnisoddand,thencis a local maximum.
  • Ifnis odd and,thencis a local minimum.
  • Ifnisevenand,thencis a strictly decreasing point of inflection.
  • Ifnis even and,thencis a strictly increasing point of inflection.

Sincenmust be either odd or even, this analytical test classifies any stationary point off,so long as a nonzero derivative shows up eventually.

Example[edit]

Say we want to perform the general derivative test on the functionat the point.To do this, we calculate the derivatives of the function and then evaluate them at the point of interest until the result is nonzero.

,
,
,
,
,
,

As shown above, at the point,the functionhas all of its derivatives at 0 equal to 0, except for the 6th derivative, which is positive. Thusn= 5, and by the test, there is a local minimum at 0.

Multivariable case[edit]

For a function of more than one variable, the second-derivative test generalizes to a test based on theeigenvaluesof the function'sHessian matrixat the critical point. In particular, assuming that all second-order partial derivatives offare continuous on aneighbourhoodof a critical pointx,then if the eigenvalues of the Hessian atxare all positive, thenxis a local minimum. If the eigenvalues are all negative, thenxis a local maximum, and if some are positive and some negative, then the point is asaddle point.If the Hessian matrix issingular,then the second-derivative test is inconclusive.

See also[edit]

Further reading[edit]

  • Chiang, Alpha C.(1984).Fundamental Methods of Mathematical Economics(Third ed.). New York: McGraw-Hill. pp.231–267.ISBN0-07-010813-7.
  • Marsden, Jerrold;Weinstein, Alan(1985).Calculus I(2nd ed.). New York: Springer. pp. 139–199.ISBN0-387-90974-5.
  • Shockley, James E. (1976).The Brief Calculus: with Applications in the Social Sciences(2nd ed.). New York: Holt, Rinehart & Winston. pp. 77–109.ISBN0-03-089397-6.
  • Stewart, James(2008).Calculus: Early Transcendentals(6th ed.). Brooks Cole Cengage Learning.ISBN978-0-495-01166-8.
  • Willard, Stephen (1976).Calculus and its Applications.Boston: Prindle, Weber & Schmidt. pp. 103–145.ISBN0-87150-203-8.

References[edit]

External links[edit]