If is defined by , the greatest integer function, find its domain, range and draw its graph.
Relations and Functions · Question 113 of 135
If f : R R is defined by f(x) = [x] , the greatest integer function, find its domain, range and draw its graph.
Solution:
Key idea: The greatest integer function gives the greatest integer that is less than or equal to . For example, , and .
Step 1 — Find the domain.
We ask for which real numbers the value exists. Every real number lies between two consecutive integers, so there is always a greatest integer not exceeding it. Hence is defined for every real .
Step 2 — Find the range.
We ask which values can take. By its definition is always an integer. Every integer is actually taken, because . So the set of values is exactly the set of integers.
Step 3 — Describe piece by piece.
We find the value of on each interval between consecutive integers. For any integer , every with has .
Step 4 — Draw the graph.
We draw each piece as a horizontal segment of length at height . The left end is included, so it gets a filled dot; the right end is not included (there the value jumps up to ), so it gets a hollow dot. The result is a "staircase".

Therefore, the domain of is , the range of is (the set of integers), and the graph is the staircase shown.
