Monotonic function

Figure 1. A monotonically non-decreasing function
Figure 2. A monotonically non-increasing function
Figure 3. A function that is not monotonic

In mathematics, a monotonic function (or monotone function) is a function between ordered sets that preserves or reverses the given order. This concept first arose in calculus, and was later generalized to the more abstract setting of order theory.