In mathematics, a monotonic function (or monotone function) is a function between ordered sets that preserves the given order.