The step of a real number [x], values for negative numbers, the staircase graph, its properties, and inequalities and domains with [x].
Lesson 14 of 16
6 min read
12 practice questions
The greatest integer function rounds every real number down to an integer. It sounds simple, but it behaves in a surprising way for negative numbers, and its graph is a staircase rather than a smooth curve. It appears in many examination questions on domains, ranges and inequalities. This lesson defines it, works through many values, draws the graph, lists its properties and solves inequalities with it.
The step of a real number
Definition. If x∈R, n∈Z and
n≤x<n+1
then [x]=n. We read [x] as "step x" or "greatest integer of x". It is the greatest integer that is less than or equal to x.
So [x] is constant on each interval from one integer up to (but not including) the next:
Interval
Value of [x]
−2≤x<−1
−2
−1≤x<0
−1
0≤x<1
0
1≤x<2
1
2≤x<3
2
Working out values
For non-negative numbers, [x] simply drops the decimal part:
[0]=0,[0.1]=0,[0.5]=0,[0.9999]=0
[1]=1,[1.1]=1,[1.9999]=1,[2]=2,[2.5]=2,[2.999]=2
For negative numbers, think of the number line. [x] is the integer you reach by moving left from x (or staying put if x is already an integer). For example, −0.1 lies between −1 and 0; moving left from −0.1 the first integer you meet is −1. So [−0.1]=−1, not 0.
[−0.1]=−1,[−0.2]=−1,[−0.9]=−1,[−1]=−1
[−1.2]=−2,[−1.7]=−2,[−1.999]=−2,[−2]=−2
Compare positive and negative values side by side:
x
0.5
−0.5
1.2
−1.2
2.7
−2.7
[x]
0
−1
1
−2
2
−3
For integers there is nothing to round: [0]=0, [1]=1, [2]=2, [−1]=−1, [−2]=−2.
The greatest integer function
The function y=f(x)=[x] is called the step function, the greatest integer function or the floor function.
Domain=R,Range=Z
Every real number can be rounded down, and the result is always an integer; every integer n is the value of [n].
The graph of y=[x]
The graph is a staircase of horizontal segments, one unit long:
y=−2 on [−2,−1),
y=−1 on [−1,0),
y=0 on [0,1),
y=1 on [1,2),
y=2 on [2,3), and so on in both directions.
Each segment has a filled dot at its left end (the value is reached there) and an open circle at its right end (the value jumps up at the next integer). At each integer the graph jumps up by 1.
Properties
[x]≤x, for all x∈R.
[x]=x, for all x∈Z.
[x]<x, for all x∈R−Z.
[x]>x for no real x.
[x+k]=[x]+k, for all x∈R and k∈Z. For example, [x+1]=[x]+1. But this works only for an integer k: [x+21]=[x]+21 in general (the right side is not even an integer).
[−x]=−[x], for all x∈Z.
[−x]=−[x]−1, for all x∈R−Z.
[x]+[−x]=0 for x∈Z, and [x]+[−x]=−1 for x∈R−Z.
[[x]]=[x], for all x∈R.
x−1<[x]≤x, for all x∈R.
Example 1
Verify property 7 for x=1.3.
Left side: [−x]=[−1.3]=−2.
Right side: −[x]−1=−[1.3]−1=−1−1=−2.
The two sides agree.
Inequalities with [x]
Since [x] only takes integer values, an inequality in [x] is really a statement about which steps of the staircase are allowed. Then translate back to x using [x]=n⟺n≤x<n+1.
Example 2
Solve (a) [x]<2 (b) [x]≤2 (c) [x]>2 (d) [x]≥2.
(a) [x]<2 means [x] is 1,0,−1,…. The highest allowed step is [x]=1, which covers 1≤x<2. So x∈(−∞,2).
(b) [x]≤2 allows the step [x]=2 as well, which covers 2≤x<3. So x∈(−∞,3).
(c) [x]>2 means [x] is 3,4,…. The lowest allowed step is [x]=3, starting at x=3. So x∈[3,∞).
(d) [x]≥2 starts with the step [x]=2, at x=2. So x∈[2,∞).
Example 3
Solve (a) [x]>−3 (b) [x]≤−5.
(a) The lowest allowed step is [x]=−2, which starts at x=−2. So x∈[−2,∞).
(b) The highest allowed step is [x]=−5, which covers −5≤x<−4. So x∈(−∞,−4). A common wrong answer is (−∞,−5]: it misses numbers such as −4.5, for which [−4.5]=−5.
Domains with [x]
Example 4
Find the domain of x−[x].
We need x−[x]≥0, that is, [x]≤x, which is true for every real x by property 1. So the domain is R.
Example 5
Find the domain of [x]−x1.
We need [x]−x>0, that is, [x]>x, which is true for no real x by property 4. So the domain is ϕ.
Example 6
Solve [x]2−3[x]+2=0.
Treat [x] as the unknown: ([x]−1)([x]−2)=0, so [x]=1 or [x]=2. These give 1≤x<2 or 2≤x<3. Together, x∈[1,3).
Practice
Find [3.7], [−3.7], [−5] and [0.01].
Find [π] and [−π], using π≈3.14.
Solve [x]=4.
Solve [x]<7.
Solve [x]≥−6.
Solve [x]>−4.
Solve [x]≤0.
Find [2.4]+[−2.4], and say which property it shows.
Solve [x+3]=5.
Find [[−1.5]].
Solve [x]2−5[x]+6=0.
Find the domain of x−[x]1.
Answers
Show answers
3, −4, −5, 0.
[π]=3 and [−π]=−4.
x∈[4,5).
The highest step is [x]=6, covering [6,7): x∈(−∞,7).
The lowest step is [x]=−6, starting at −6: x∈[−6,∞).
The lowest step is [x]=−3, starting at −3: x∈[−3,∞).
The highest step is [x]=0, covering [0,1): x∈(−∞,1).
2+(−3)=−1. This is property 8 for a non-integer x.
[x+3]=[x]+3=5, so [x]=2 and x∈[2,3).
[−1.5]=−2 and [−2]=−2, so [[−1.5]]=−2 (property 9).
([x]−2)([x]−3)=0, so [x]=2 or [x]=3: x∈[2,4).
We need x−[x]>0, that is, [x]<x, which holds exactly when x is not an integer: the domain is R−Z.