A real-valued function , with domain of a function in the usual order of the real numbers, is a monotonic function if it is either a nondecreasing function throughout or a nonincreasing function throughout . The same direction must work for every pair in . Being a strictly increasing function on one part and a strictly decreasing function on another does not make the whole function monotone: for example, on the real line changes direction at zero. A constant function is both a nondecreasing function and a nonincreasing function.
The word "increasing" is ambiguous across textbooks: some allow equal outputs and some require unequal outputs. Use nondecreasing function for the weak inequality and strictly increasing function for the strict inequality; use nonincreasing function and strictly decreasing function in the other direction. Neither continuity nor differentiability is part of the definition of a monotonic function.
Strict monotonicity gives injectivity, so an equation has at most one solution and an inverse function exists on the image of a function. Weak monotonicity permits repeated outputs and jumps. In probability theory, a cumulative distribution function is a nondecreasing function; its quantile function uses a generalized inverse to handle those flat parts and jumps. Monotonicity alone does not guarantee continuity, even for a strictly increasing function.
Figure 1.
Strict and weak monotonicity: cubic functions, flat portions, and a step
. The strictly increasing function and strictly decreasing function never repeat an output. The nondecreasing function has flat intervals, and the step function for , for is a discontinuous cumulative distribution function. The open and closed circles specify its value at the jump; no vertical segment belongs to its graph. Details.

Articles by others on the same topic (NaN)

A monotonic function is a function that is either entirely non-increasing or non-decreasing throughout its domain.