Incalculus, a function defined on asubset of thereal numbers with real values is calledmonotonic if it is either entirely non-decreasing, or entirely non-increasing.[2] That is, as per Fig. 1, a function that increases monotonically does not exclusively have to increase, it simply must not decrease.
A function is termedmonotonically increasing (alsoincreasing ornon-decreasing)[3] if for all and such that one has, so preserves the order (see Figure 1). Likewise, a function is calledmonotonically decreasing (alsodecreasing ornon-increasing)[3] if, whenever, then, so itreverses the order (see Figure 2).
If the order in the definition of monotonicity is replaced by the strict order, one obtains a stronger requirement. A function with this property is calledstrictly increasing (alsoincreasing).[3][4] Again, by inverting the order symbol, one finds a corresponding concept calledstrictly decreasing (alsodecreasing).[3][4] A function with either property is calledstrictly monotone. Functions that are strictly monotone areone-to-one (because for not equal to, either or and so, by monotonicity, either or, thus.
To avoid ambiguity, the termsweakly monotone,weakly increasing andweakly decreasing are often used to refer to non-strict monotonicity.
The terms "non-decreasing" and "non-increasing" should not be confused with the (much weaker) negative qualifications "not decreasing" and "not increasing". For example, the non-monotonic function shown in figure 3 first falls, then rises, then falls again. It is therefore not decreasing and not increasing, but it is neither non-decreasing nor non-increasing.
A function is said to beabsolutely monotonic over an interval if thederivatives of all orders of arenonnegative or allnonpositive at all points on the interval.
All strictly monotonic functions areinvertible because they are guaranteed to have a one-to-one mapping from their range to their domain.
However, functions that are only weakly monotone need not be invertible; they may be constant on some interval (and therefore not one-to-one).
A function may be strictly monotonic over a limited a range of values and thus have an inverse on that range even though it is not strictly monotonic everywhere. For example, if is strictly increasing on the range, then it has an inverse on the range.
The termmonotonic is sometimes used in place ofstrictly monotonic, so a source may state that all monotonic functions are invertible when they really mean that all strictly monotonic functions are invertible.[citation needed]
The termmonotonic transformation (ormonotone transformation) may also cause confusion because it refers to a transformation by a strictly increasing function. This is the case in economics with respect to the ordinal properties of autility function being preserved across a monotonic transform (see alsomonotone preferences).[5] In this context, the term "monotonic transformation" refers to a positive monotonic transformation and is intended to distinguish it from a "negative monotonic transformation," which reverses the order of the numbers.[6]
can only havecountably manydiscontinuities in its domain. The discontinuities, however, do not necessarily consist of isolated points and may even bedense in an interval (a,b). For example, for anysummable sequence of positive numbers and any enumeration of therational numbers, the monotonically increasing function is continuous exactly at every irrational number (cf. picture). It is thecumulative distribution function of thediscrete measure on the rational numbers, where is the weight of.
If isdifferentiable at and, then there is a non-degenerate intervalI such that and is increasing onI. As a partial converse, iff is differentiable and increasing on an interval,I, then its derivative is positive at every point inI.
These properties are the reason why monotonic functions are useful in technical work inanalysis. Other important properties of these functions include:
A function isunimodal if it is monotonically increasing up to some point (themode) and then monotonically decreasing.
When is astrictly monotonic function, then isinjective on its domain, and if is therange of, then there is aninverse function on for. In contrast, each constant function is monotonic, but not injective,[7] and hence cannot have an inverse.
The graphic shows six monotonic functions. Their simplest forms are shown in the plot area and the expressions used to create them are shown on they-axis.
A subset of is said to be amonotone set if for every pair and in,
is said to bemaximal monotone if it is maximal among all monotone sets in the sense of set inclusion. The graph of a monotone operator is a monotone set. A monotone operator is said to bemaximal monotone if its graph is amaximal monotone set.
Order theory deals with arbitrarypartially ordered sets andpreordered sets as a generalization of real numbers. The above definition of monotonicity is relevant in these cases as well. However, the terms "increasing" and "decreasing" are avoided, since their conventional pictorial representation does not apply to orders that are nottotal. Furthermore, thestrict relations and are of little use in many non-total orders and hence no additional terminology is introduced for them.
Letting denote the partial order relation of any partially ordered set, amonotone function, also calledisotone, ororder-preserving, satisfies the property
for allx andy in its domain. The composite of two monotone mappings is also monotone.
Thedual notion is often calledantitone,anti-monotone, ororder-reversing. Hence, an antitone functionf satisfies the property
for allx andy in its domain.
Aconstant function is both monotone and antitone; conversely, iff is both monotone and antitone, and if the domain off is alattice, thenf must be constant.
Monotone functions are central in order theory. They appear in most articles on the subject and examples from special applications are found in these places. Some notable special monotone functions areorder embeddings (functions for whichif and only if andorder isomorphisms (surjective order embeddings).
In the context ofsearch algorithms monotonicity (also called consistency) is a condition applied toheuristic functions. A heuristic is monotonic if, for every noden and every successorn' ofn generated by any actiona, the estimated cost of reaching the goal fromn is no greater than the step cost of getting ton' plus the estimated cost of reaching the goal fromn',
This is a form oftriangle inequality, withn,n', and the goalGn closest ton. Because every monotonic heuristic is alsoadmissible, monotonicity is a stricter requirement than admissibility. Someheuristic algorithms such asA* can be provenoptimal provided that the heuristic they use is monotonic.[8]
With the nonmonotonic function "ifa then bothb andc",false nodes appear abovetrue nodes.
Hasse diagram of the monotonic function "at least two ofa,b,c hold". Colors indicate function output values.
InBoolean algebra, a monotonic function is one such that for allai andbi in{0,1}, ifa1 ≤b1,a2 ≤b2, ...,an ≤bn (i.e. the Cartesian product{0, 1}n is orderedcoordinatewise), thenf(a1, ...,an) ≤ f(b1, ...,bn). In other words, a Boolean function is monotonic if, for every combination of inputs, switching one of the inputs from false to true can only cause the output to switch from false to true and not from true to false. Graphically, this means that ann-ary Boolean function is monotonic when its representation as ann-cube labelled with truth values has no upward edge fromtrue tofalse. (This labelledHasse diagram is thedual of the function's labelledVenn diagram, which is the more common representation forn ≤ 3.)
The monotonic Boolean functions are precisely those that can be defined by an expression combining the inputs (which may appear more than once) using only the operatorsand andor (in particularnot is forbidden). For instance "at least two ofa,b,c hold" (the ternarymajority function) is a monotonic function ofa,b,c, since it can be written for instance as ((a andb) or (a andc) or (b andc)).
The number of such functions onn variables is known as theDedekind number ofn.
SAT solving, generally anNP-hard task, can be achieved efficiently when all involved functions and predicates are monotonic and Boolean.[9]
Bartle, Robert G. (1976).The elements of real analysis (second ed.).
Grätzer, George (1971).Lattice theory: first concepts and distributive lattices. W. H. Freeman.ISBN0-7167-0442-0.
Pemberton, Malcolm; Rau, Nicholas (2001).Mathematics for economists: an introductory textbook. Manchester University Press.ISBN0-7190-3341-1.
Renardy, Michael & Rogers, Robert C. (2004).An introduction to partial differential equations. Texts in Applied Mathematics 13 (Second ed.). New York: Springer-Verlag. p. 356.ISBN0-387-00444-0.
Riesz, Frigyes & Béla Szőkefalvi-Nagy (1990).Functional Analysis. Courier Dover Publications.ISBN978-0-486-66289-3.
Russell, Stuart J.; Norvig, Peter (2010).Artificial Intelligence: A Modern Approach (3rd ed.). Upper Saddle River, New Jersey: Prentice Hall.ISBN978-0-13-604259-4.
Simon, Carl P.; Blume, Lawrence (April 1994).Mathematics for Economists (first ed.). Norton.ISBN978-0-393-95733-4. (Definition 9.31)