Monotonic function explained

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.

In calculus and analysis

In calculus, a function

f

defined on a subset of the real numbers with real values is called monotonic if it is either entirely non-decreasing, or entirely non-increasing. 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 termed monotonically increasing (also increasing or non-decreasing) if for all

x

and

y

such that

x\leqy

one has

f\left(x\right)\leqf\left(y\right)

, so

f

preserves the order (see Figure 1). Likewise, a function is called monotonically decreasing (also decreasing or non-increasing) if, whenever

x\leqy

, then

f\left(x\right)\geqf\left(y\right)

, so it reverses the order (see Figure 2).

If the order

\leq

in the definition of monotonicity is replaced by the strict order

<

, one obtains a stronger requirement. A function with this property is called strictly increasing (also increasing).[4] Again, by inverting the order symbol, one finds a corresponding concept called strictly decreasing (also decreasing). A function with either property is called strictly monotone. Functions that are strictly monotone are one-to-one (because for

x

not equal to

y

, either

x<y

or

x>y

and so, by monotonicity, either

f\left(x\right)<f\left(y\right)

or

f\left(x\right)>f\left(y\right)

, thus

f\left(x\right)f\left(y\right)

.)

To avoid ambiguity, the terms weakly monotone, weakly increasing and weakly 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

f

is said to be absolutely monotonic over an interval

\left(a,b\right)

if the derivatives of all orders of

f

are nonnegative or all nonpositive at all points on the interval.

Inverse of function

All strictly monotonic functions are invertible because they are guaranteed to have a one-to-one mapping from their range to their domain.

However, functions that are only weakly monotone are not invertible because they are constant on some interval (and therefore are 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

y=g(x)

is strictly increasing on the range

[a,b]

, then it has an inverse

x=h(y)

on the range

[g(a),g(b)]

.

The term monotonic is sometimes used in place of strictly monotonic, so a source may state that all monotonic functions are invertible when they really mean that all strictly monotonic functions are invertible.

Monotonic transformation

The term monotonic transformation (or monotone 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 a utility function being preserved across a monotonic transform (see also monotone 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]

Some basic applications and results

The following properties are true for a monotonic function

f\colonR\toR

:

f

has limits from the right and from the left at every point of its domain;

f

has a limit at positive or negative infinity (

\pminfty

) of either a real number,

infty

, or

-infty

.

f

can only have jump discontinuities;

f

can only have countably many discontinuities in its domain. The discontinuities, however, do not necessarily consist of isolated points and may even be dense in an interval (a, b). For example, for any summable sequence (a_i) of positive numbers and any enumeration

(qi)

of the rational numbers, the monotonically increasing function f(x)=\sum_ a_i is continuous exactly at every irrational number (cf. picture). It is the cumulative distribution function of the discrete measure on the rational numbers, where

ai

is the weight of

qi

.

f

is differentiable at

x*\in\BbbR

and

f'(x*)>0

, then there is a non-degenerate interval I such that

x*\inI

and

f

is increasing on I. As a partial converse, if f is differentiable and increasing on an interval, I, then its derivative is positive at every point in I.

These properties are the reason why monotonic functions are useful in technical work in analysis. Other important properties of these functions include:

f

is a monotonic function defined on an interval

I

, then

f

is differentiable almost everywhere on

I

; i.e. the set of numbers

x

in

I

such that

f

is not differentiable in

x

has Lebesgue measure zero. In addition, this result cannot be improved to countable: see Cantor function.

f

is absolutely continuous

f

is a monotonic function defined on an interval

\left[a,b\right]

, then

f

is Riemann integrable.

An important application of monotonic functions is in probability theory. If

X

is a random variable, its cumulative distribution function

FX\left(x\right)=Prob\left(X\leqx\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

is a strictly monotonic function, then

f

is injective on its domain, and if

T

is the range of

f

, then there is an inverse function on

T

for

f

. 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 the y-axis.

In topology

A map

f:X\toY

is said to be monotone if each of its fibers is connected; that is, for each element

y\inY,

the (possibly empty) set

f-1(y)

is a connected subspace of

X.

In functional analysis

X

, a (possibly non-linear) operator

T:XX*

is said to be a monotone operator if

(Tu - Tv, u - v) \geq 0 \quad \forall u,v \in X.Kachurovskii's theorem shows that convex functions on Banach spaces have monotonic operators as their derivatives.

A subset

G

of

X x X*

is said to be a monotone set if for every pair

[u1,w1]

and

[u2,w2]

in

G

,

(w_1 - w_2, u_1 - u_2) \geq 0.

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)

is a monotone set. A monotone operator is said to be maximal monotone if its graph is a maximal monotone set.

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

\leq

denote the partial order relation of any partially ordered set, a monotone function, also called isotone, or , satisfies the property

x \leq y \implies f(x) \leq f(y)

for all and in its domain. The composite of two monotone mappings is also monotone.

The dual notion is often called antitone, anti-monotone, or order-reversing. Hence, an antitone function satisfies the property

x \leq y \implies f(y) \leq f(x),

for all and in its domain.

A constant function is both monotone and antitone; conversely, if is both monotone and antitone, and if the domain of is a lattice, then 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\leqy

if and only if

f(x)\leqf(y))

and order isomorphisms (surjective order embeddings).

In the context of search algorithms

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 and every successor of generated by any action, the estimated cost of reaching the goal from is no greater than the step cost of getting to plus the estimated cost of reaching the goal from,

h(n) \leq c\left(n, a, n'\right) + h\left(n'\right) .

This is a form of triangle inequality, with,, and the goal closest to . 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.[8]

In Boolean functions

In Boolean algebra, a monotonic function is one such that for all and in, if,, ..., (i.e. the Cartesian product is ordered coordinatewise), then . 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 -ary Boolean function is monotonic when its representation as an -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 .)

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,, hold" is a monotonic function of,,, since it can be written for instance as ((and) or (and) or (and)).

The number of such functions on variables is known as the Dedekind number of .

SAT solving, generally an NP-hard task, can be achieved efficiently when all involved functions and predicates are monotonic and boolean.[9]

See also

Bibliography

External links

Notes and References

  1. Book: Oxford Concise Dictionary of Mathematics. Clapham. Christopher. Nicholson. James. Oxford University Press. 2014. 5th.
  2. Web site: Monotonic Function. Stover. Christopher. Wolfram MathWorld. en. 2018-01-29.
  3. Web site: Monotone function. Encyclopedia of Mathematics. en. 2018-01-29.
  4. Book: Spivak, Michael. Calculus. Publish or Perish, Inc.. 1994. 0-914098-89-6. Houston, Texas . 192.
  5. See the section on Cardinal Versus Ordinal Utility in .
  6. Book: Varian, Hal R. . Intermediate Microeconomics . 8th . 2010 . W. W. Norton & Company . 56 . 9780393934243.
  7. if its domain has more than one element
  8. Conditions for optimality: Admissibility and consistency pg. 94–95 .
  9. 10.1609/aaai.v29i1.9755 . SAT Modulo Monotonic Theories . Sam . Bayless . Noah . Bayless . Holger H. . Hoos . Alan J. . Hu . Proc. 29th AAAI Conf. on Artificial Intelligence . AAAI Press . 3702 - 3709 . 2015 . free . 1406.0043 . live . https://web.archive.org/web/20231211023402/https://ojs.aaai.org/index.php/AAAI/article/view/9755 . Dec 11, 2023 .