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, 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

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 , so it *reverses* the order (see Figure 2).

If the order in the definition of monotonicity is replaced by the strict order , then one obtains a stronger requirement. A function with this property is called **strictly increasing**.^{[3]} Again, by inverting the order symbol, one finds a corresponding concept called **strictly decreasing**.^{[3]} A function may be called **strictly monotone** if it is either strictly increasing or strictly decreasing. Functions that are strictly monotone are one-to-one (because for not equal to , either or and so, by monotonicity, either or , thus .)

If it is not clear that "increasing" and "decreasing" are taken to include the possibility of repeating the same value at successive arguments, one may use the terms **weakly monotone**, **weakly increasing** and **weakly decreasing** to stress this possibility.

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 function of 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 be **absolutely monotonic** over an interval if the derivatives of all orders of are nonnegative or all nonpositive at all points on the interval.

A function that is monotonic, but not strictly monotonic, and thus constant on an interval, doesn't have an inverse. This is because in order for a function to have an inverse, there needs to be a one-to-one mapping from the range to the domain of the function. Since a monotonic function has some values that are constant in its domain, this means that there would be more than one value in the range that maps to this constant value.

However, a function y=g(x) that is strictly monotonic, has an inverse function such that x=h(y) because there is guaranteed to always be a one-to-one mapping from range to domain of the function. Also, a function can be said to be strictly monotonic on a range of values, and thus have an inverse on that range of value. For example, if

However, a function y=g(x) that is strictly monotonic, has an inverse function such that x=h(y) because there is guaranteed to always be a one-to-one mapping from range to domain of the function. Also, a function can be said to be strictly monotonic on a range of values, and thus have an inverse on that range of value. For example, if y=g(x) is strictly monotonic on the range [a,b], then it has an inverse x=h(y) on the range [g(a), g(b)], but we cannot say the entire range of the function has an inverse.

Note, some textbooks mistakenly state that an inverse exists for a monotonic function, when they really mean that an inverse exists for a strictly monotonic function.

The term **monotonic transformation** (or **monotone transformation**) can also possibly cause some 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).^{[4]} In this context, what we are calling a "monotonic transformation" is, more accurately, called a "positive monotonic transformation", in order to distinguish it from a “negative monotonic transformation,” which reverses the order of the numbers.^{[5]}