nondecreasingnonincreasing
Nondecreasingnonincreasing is an informal way to describe a sequence, function, or other ordered data that satisfies both the nondecreasing and nonincreasing conditions. A sequence (a_n) is nondecreasing if a_n ≤ a_{n+1} for all n, and nonincreasing if a_n ≥ a_{n+1} for all n.
If a sequence is both nondecreasing and nonincreasing, then for every n we have a_n ≤ a_{n+1} and
The same conclusion holds for real-valued functions defined on an interval. If f is nondecreasing and nonincreasing
Examples help illustrate the idea. The constant sequence 5, 5, 5, 5 is both nondecreasing and nonincreasing.
In analysis and related fields, the property of being both nondecreasing and nonincreasing is used to identify