Monotonic function is defined as a function that increases throughout its range or decreases throughout its range.