In mathematics, a monotonic function (or monotone function) is a function between ordered sets that preserves or reverses the given order.[1][2][3] This concept first arose in calculus, and was later generalized to the more abstract setting of order theory.
Monotonicity in calculus and analysis
In calculus, a function
defined on a subset of the real numbers with real values is called monotonic if and only if it is either entirely non-increasing, or entirely non-decreasing.[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 called monotonically increasing (also increasing or non-decreasing[3]), if for all
and
such that
one has
, so
preserves the order (see Figure 1). Likewise, a function is called monotonically decreasing (also decreasing or non-increasing[3]) if, whenever
, then calculus, a function
defined on a subset of the real numbers with real values is called monotonic if and only if it is either entirely non-increasing, or entirely non-decreasing.[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 called monotonically increasing (also increasing or non-decreasing[3]), if for all
and
such that
one has
:
-
f
analysis. Some more facts about these functions are:
- if
f
{\displaystyle f}
is a monotonic function defined on an interval
I
{\displaystyle I}
, then
f
{\displaystyle f}
is differentiable almost everywhere on
I
{\displaystyle I}
, i.e. the set of numbers
x
{\displaystyle x}
in
I
{\displaystyle I}
such that
f
{\displaystyle f}
is not differentiable in
x
{\displaystyle x}
has Lebesgue measure zero. In addition, this result cannot be improved to coAn important application of monotonic functions is in probability theory. If
X
{\displaystyle X}
is a random variable, its cumulative distribution function
F
X
(
x
)
=
Prob
(
X
≤
x
)
{\displaystyle F_{X}\!\left(x\right)={\text{Prob}}\!\left(X\leq x\right)}
is a monotonically increasing function.
A function is unimodal if it is monotonically increasing up to some point (the mode) and then monotonically decreasing.
When
f
{\displaystyle f}
is a strictly monotonic function, then
f
{\displaystyle f}
is injective on its domain, and if
T
{\displaystyle T}
is the range of
f
{\displaystyle f}
, then there is an inverse function on
T
{\displaystyle T}
for
f
{\displaystyle f}
.
In contrast, each constant function is monotonic, but not injective,[6] and hence cannot have an inverse.
Monotonicity in topology
A map
f
:
X
→
Y
{\displaystyle f:X\rightarrow Y}
is said to be monotone if each of its fibers is connected i.e. for each element
y
{\displaystyle y}
in
Y
{\displaystyle Y}
the (possibly empty) set
f
−
1
(
y
)
{\displaystyle f^{-1}(y)}
is connected.
Monotonicity in functional analysis
In functional analysis on a topological vector space unimodal if it is monotonically increasing up to some point (the mode) and then monotonically decreasing.
When
f
{\displaystyle f}
is a strictly monotonic function, then
f
{\displaystyle f}
is injective on its domain, and if
T
{\displaystyle T}
is the range of
f
{\displaystyle f}
, then there is an inverse function on
T
{\displaystyle T}
for
f
{\displaystyle f}
.
In contrast, each constant function is monotonic, but not injective,[6] and hence cannot have an inverse.
A map
f
:
X
→
Y
{\displaystyle f:X\rightarrow Y}
is said to be monotone if each of its fibers is connected i.e. for each element
y
{\displaystyle y}
in
Y
{\displaystyle Y}
the (possibly empty) set
f
−
1
(
y
)
{\displaystyle f^{-1}(y)}
is connected.
Monotonicity in functional analysis
X
∗
{\displaystyle T:X\rightarrow X^{*}}
is said to be a monotone operator if
-
(
T
Kachurovskii's theorem shows that convex functions on Banach spaces have monotonic operators as their derivatives.
A subset
G
{\displaystyle G}
of
X
×
X
∗
{\displaystyle X\times X^{*}}
G
{\displaystyle G}
of
X
×
X
∗
{\displaystyle X\times X^{*}}
is said to be a monotone set if for every pair
[
u
1
,
w
1
]
{\displaystyle [u_{1},w_{1}]}
and
[
u
2
,
w
2
]
{\displaystyle [u_{2},w_{2}]}
in
G
{\displaystyle G}
,
G
{\displaystyle G}
is said to be maximal monotone if it is maximal among all monotone sets in the sense of set inclusion. The graph of a monotone operator
G
(
T
)
{\displaystyle G(T)}
is a monotone set. A monotone operator is said to be maximal monotone if its graph is a maximal monotone set.
Monotonicity in order theory
Order theory deals with arbitrary partially ordered sets and preordered 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 not total. Furthermore, the strict 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, a monotone function, also called isotone, or order-preserving, satisfies the property
- x ≤ y implies f(x) ≤ f(y),
for all x and y in its domain. The composite of two monotone mappings is also monotone.
Order theory deals with arbitrary partially ordered sets and preordered 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 not total. Furthermore, the strict 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, a monotone function, also called isotone, or order-preserving, satisfies the property
- x ≤ y implies f(x) ≤ f(y),
for all x and y in its domain. The
Letting ≤ denote the partial order relation of any partially ordered set, a monotone function, also called isotone, or order-preserving, satisfies the property
for all x and y in its domain. The composite of two monotone mappings is also monotone.
The dual notion
The dual notion is often called antitone, anti-monotone, or order-reversing. Hence, an antitone function f satisfies the property
for all x and y in its domain.
A constant function is bo
A constant function is both monotone and antitone; conversely, if f is both monotone and antitone, and if the domain of f is a lattice, then f 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 are order embeddings (functions for which x ≤ y if and only if f(x) ≤ f(y)) and order isomorphisms (surjective order embeddings).
In the context of search algorithms monotonicity (also called consistency) is a condition applied to heuristic functions. A heuristic h(n) is monotonic if, for every node n and every successor n' of n generated by any action a, the estimated cost of reaching the goal from n is no greater than the step cost of getting to n' plus the estimated cost of reaching the goal from n' ,
-
h
(
n
)<
This is a form of triangle inequality, with n, n', and the goal Gn closest to n. Because every monotonic heuristic is also admissible, monotonicity is a stricter requirement than admissibility. Some heuristic algorithms such as A* can be proven optimal provided that the heuristic they use is monotonic.[7]
Boolean functions
With the nonmonotonic function "if a then both b and c", false nodes appear above true nodes.
|
In Boolean algebra, a monotonic function is one such that for all ai and bi in {0,1}, if a1 ≤ b1, a2 ≤ b2, ..., an ≤ bn (i.e. the Cartesian product {0, 1}n is ordered coordinatewise), then f(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 an n-ary Boolean function is monotonic when its representation as an n-cube labelled with truth values has no upward edge from true to false. (This labelled Hasse diagram is the dual of the function's labelled Venn diagram, which is the more common representation for n ≤ 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 operators and and or (in particular not is forbidden). For instance "at least two of a,b,c hold" is a monotonic function of a,b,c, since it can be written for instance as ((a and b) or (a and c) or (b and c)).
The number of such functions on n variables is known as the Dedekind number of n.
See also
Notes
- and and or (in particular not is forbidden). For instance "at least two of a,b,c hold" is a monotonic function of a,b,c, since it can be written for instance as ((a and b) or (a and c) or (b and c)).
The number of such functions on n variables is known as the Dedekind number of n.