Is the Greatest Integer Function Monotonically Increasing?
At a glance
- 1. Check the convention
Increasing can mean nondecreasing or strictly increasing; the answer depends on which definition is being used.
- 2. Compare inputs
If x is no greater than y, their greatest integers cannot be in the opposite order.
- 3. Test strictness
Two different inputs in the same unit interval have the same floor, so the function is not strictly increasing.
The greatest integer function is usually written and returns the largest integer less than or equal to . Whether it is called “monotonically increasing” depends on the convention: some texts use that phrase to mean nondecreasing, while others reserve “increasing” for strictly increasing functions.
Under the nondecreasing definition, the answer is yes. Under the strict definition, the answer is no.
What the floor function does
For any real number , is the integer satisfying
Thus the function is constant on every interval , where is an integer. For instance, every number from up to (but not including) has floor :
At the next integer, the value jumps: .
Why it is nondecreasing
A function is nondecreasing if implies . To check this for the floor function, suppose , and let . By the definition of floor,
Since is an integer no greater than , it cannot be larger than the greatest integer no greater than . Therefore , or
This proves that the floor function is nondecreasing over all real numbers, including negative values.
A numerical example
Take and . Since , compare their floors:
The output has not gone down as the input increased: . The negative example also illustrates that floor means rounding down toward negative infinity, not rounding toward zero. In particular, is , not .
Why it is not strictly increasing
A function is strictly increasing if always implies . The floor function does not satisfy this condition. Choose two distinct numbers in the same unit interval, such as . Then
The inputs are strictly ordered, but the outputs are equal. In fact, the function is constant throughout each interval , so there are many such counterexamples.
What happens at integers
The floor function never decreases as you move from left to right. It stays level between consecutive integers, then increases by one at each integer. For an integer , values just below have floor , while . The function is right-continuous at integers, but it has a jump there.
This staircase shape is a useful way to distinguish monotonicity from continuity. A function can be monotone without being continuous, and it can be nondecreasing without being strictly increasing. The floor function has both of those features: it is nondecreasing and discontinuous at every integer.
Common mistakes
- Treating “increasing” as having only one meaning. Check whether a problem defines increasing as nondecreasing or strictly increasing. If it does not, state which interpretation you are using.
- Assuming monotone means strictly changing at every step. A nondecreasing function is allowed to stay constant over intervals.
- Rounding negative numbers toward zero. The greatest integer less than or equal to is , so .
- Confusing floor with ceiling. The ceiling function gives the least integer greater than or equal to its input; the floor gives the greatest integer less than or equal to it.
So, if “monotonically increasing” means nondecreasing, the greatest integer function is monotonically increasing. If the phrase means strictly increasing, it is not.
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.