Greatest Integer Function — Definition, Step Graph and Range
On this page· 13 sections
Source & scope. Class 11 Mathematics, Chapter 2 Relations and Functions, Section 2.4.1(vii) Greatest integer function — the last of the six named functions NCERT introduces before the Algebra of real functions in Section 2.4.2. Builds on: Signum Function. Next: Addition of Two Real Functions, the fi...
Source & scope. Class 11 Mathematics, Chapter 2 Relations and Functions, Section 2.4.1(vii) Greatest integer function — the last of the six named functions NCERT introduces before the Algebra of real functions in Section 2.4.2. Builds on: Signum Function. Next: Addition of Two Real Functions, the first operation in the algebra of real functions.
The greatest integer function is the function f : R → R defined by f(x) = [x], where [x] denotes the greatest integer less than or equal to x. For any real number x, [x] "rounds down" to the nearest integer that does not exceed x, so its domain is all of R while its range is the set of integers Z.
At a glance
- Notation: , read as "the greatest integer function of x" or "the floor of x."
- Rule: [x] is the greatest integer ≤ x — never an integer greater than x.
- NCERT's explicit step values: [x] = −1 for −1 ≤ x < 0; [x] = 0 for 0 ≤ x < 1; [x] = 1 for 1 ≤ x < 2; [x] = 2 for 2 ≤ x < 3; and so on.
- Domain = R, Range = Z (the set of all integers) — this follows directly from the step pattern, since every integer value is achieved on some interval.
- Also widely known as the floor function, commonly written as ⌊x⌋ in many references, though NCERT itself uses only the square-bracket notation [x].
Learning objectives
- State the definition of the greatest integer function and compute [x] for any given real number x.
- Reproduce NCERT's explicit step-by-step values of [x] on consecutive unit intervals.
- Identify the domain and range of the greatest integer function.
- Sketch the "staircase" graph of the greatest integer function.
Prerequisite knowledge
The reader should know what an integer is (..., −2, −1, 0, 1, 2, ...) and should already be comfortable with the idea of a real function with domain and range as subsets of R, as introduced earlier in this chapter alongside the signum and modulus functions.
Core explanation
The defining rule
NCERT defines the greatest integer function as f : R → R given by f(x) = [x], x ∈ R, where [x] assumes the value of the greatest integer less than or equal to x. The key phrase is "less than or equal to" — [x] is never larger than x, and among all the integers that are ≤ x, it picks the largest one.
For example, since 2 is an integer and 2 ≤ 2.7, and no larger integer (such as 3) satisfies 3 ≤ 2.7, the greatest integer ≤ 2.7 is 2, so [2.7] = 2. For a negative input such as x = −2.3, the integers ≤ −2.3 are ..., −4, −3, −2 is NOT ≤ −2.3 since −2 > −2.3 — so the greatest integer that is actually ≤ −2.3 is −3, giving [−2.3] = −3. This negative case is the one students most often get wrong, since it is tempting to simply "truncate toward zero" (which would incorrectly give −2) rather than genuinely rounding down.
NCERT's explicit step values
NCERT spells out the behaviour of [x] directly for several consecutive unit intervals:
- = −1 for −1 ≤ x < 0
- = 0 for 0 ≤ x < 1
- = 1 for 1 ≤ x < 2
- = 2 for 2 ≤ x < 3
...and so on, with the pattern continuing indefinitely in both directions. Each interval is closed on the left and open on the right — that is, the interval [n, n+1) for an integer n — and on that entire interval, [x] stays fixed at the value n. The function's value jumps up by exactly 1 the instant x reaches the next integer.
Domain and range
Since every real number lies in exactly one interval of the form [n, n+1) for some integer n, [x] is defined for every x ∈ R, so the domain of the greatest integer function is R.
NCERT's extract does not explicitly state the range of this function, but it follows directly and is the standard result: because the step pattern above produces every integer value −1, 0, 1, 2, ... (and by the same reasoning every negative integer as well, continuing the pattern to −2, −3, and so on), the range of the greatest integer function is Z, the set of all integers. Unlike the signum function (whose infinite domain collapses onto just three outputs), here the infinite domain maps onto the full infinite set of integers.
The "floor function" name
The greatest integer function is extremely widely known by the alternate name floor function, since "rounding down" is often described as finding the "floor" of a real number, and is frequently written ⌊x⌋ in other textbooks and in computer science contexts. NCERT itself only uses the bracket notation [x] and the name "greatest integer function," but a student is very likely to encounter the term "floor function" and the symbol ⌊x⌋ used interchangeably with it elsewhere.
Key terms
- Greatest integer function — the function f(x) = [x], giving the greatest integer less than or equal to x.
- Floor function — the standard alternate name for the greatest integer function, often written ⌊x⌋.
- Step function — a function whose graph consists of a series of flat horizontal segments ("steps") at different heights, with jumps at specific points; the greatest integer function is the most standard example.
- Half-open interval — an interval that is closed at one end and open at the other, such as [n, n+1); each such interval is where [x] stays constant at the integer n.
Diagram / figure guidance
Draw a "staircase" graph: on each interval [n, n+1) for integers n (say from n = −3 to n = 3), draw a horizontal segment at height y = n, with a solid filled dot at the left endpoint (x = n, closed) and an open circle at the right endpoint (x = n+1, excluded from that step but belonging to the next). The overall shape should look like an ascending staircase moving from lower-left to upper-right, with each step exactly 1 unit wide and 1 unit tall.
Worked example
Find the value of [x] for x = 3.8, x = −0.5, x = 4, and x = −4, and state which unit interval each value of x falls into.
Applying f(x) = [x] (the greatest integer ≤ x) to each input:
- x = 3.8 falls in the interval [3, 4), so [3.8] = 3.
- x = −0.5 falls in the interval [−1, 0), so [−0.5] = −1 (not 0, since 0 > −0.5 and is therefore not ≤ −0.5).
- x = 4 is itself an integer, and it falls in the interval [4, 5) (since the interval is closed at its left endpoint), so [4] = 4 — whenever x is already an integer, [x] = x exactly.
- x = −4 is likewise an integer and falls in [−4, −3), so [−4] = −4.
This confirms the general rule that when x is itself an integer, [x] = x, and otherwise [x] is the integer immediately to the left of x on the number line (never the one to the right, and never simply the integer part obtained by dropping the decimal portion when x is negative).
Common misconceptions
- "[x] just means dropping the decimal part of x (truncation)." This is only true for nonnegative x. For negative x, truncating toward zero gives the wrong answer: [−2.3] is −3, not −2, because −3 is the greatest integer that is actually ≤ −2.3.
- "[x] can round up if x is closer to the next integer." The greatest integer function always rounds down (toward negative infinity), regardless of how close x is to the next integer above it; [3.99] = 3, not 4.
- "The range of the greatest integer function is R, since the domain is R." The domain is R, but the range is only Z (the integers) — every output of [x] is an integer, never a non-integer real number.
- "At x = n (an integer), [x] belongs to the interval ending at n, not starting at n." Each interval [n, n+1) is closed on the left, so when x equals the integer n itself, [n] = n — it belongs to the step starting at n, not the step ending there.
Exam application (JEE)
JEE frequently tests the greatest integer function by asking for the value of [x] at specific (often negative or fractional) points, by asking for the domain and range of composite expressions involving [x] (such as solving [x]² − 5[x] + 6 = 0 or sketching y = [x] combined with another function), and by probing continuity/differentiability concepts in later chapters, since [x] is a textbook example of a function that is discontinuous at every integer. A very common trap question simply asks students to evaluate [x] for a negative non-integer input, specifically to check whether they round down correctly rather than truncating toward zero.
Frequently asked questions
- What is the greatest integer function? The greatest integer function is f(x) = [x], the function that assigns to each real number x the greatest integer that is less than or equal to x; it is also called the floor function.
- What is the domain and range of the greatest integer function? The domain is R (all real numbers), and the range is Z (all integers), since [x] always produces an integer output for every real input.
- Is the greatest integer function the same as the floor function? Yes — "floor function," often written ⌊x⌋, is simply the standard alternate name for the greatest integer function [x]; they refer to exactly the same rule.
- What is [x] when x is itself an integer? When x is an integer, [x] = x exactly, because each interval [n, n+1) is closed at its left endpoint n, so an integer input maps to itself.
- What is [−2.7]? [−2.7] = −3, because −3 is the greatest integer that is less than or equal to −2.7 (note that −2 is not a valid answer, since −2 > −2.7).
Practice questions (original practice questions)
- What is the value of [5.9]?
- (a) 5
- (b) 6
- (c) 5.9
- (d) 0
- Answer: (a) — The greatest integer ≤ 5.9 is 5.
- What is the value of [−3.2]?
- (a) −3
- (b) −4
- (c) 3
- (d) 4
- Answer: (b) — The greatest integer ≤ −3.2 is −4, since −3 is greater than −3.2 and therefore not a valid choice.
- What is the range of the greatest integer function f(x) = [x]?
- (a) R
- (b) Z
- (c) N
- (d) {0, 1}
- Answer: (b) — Every output of [x] is an integer, and every integer is attained, so the range is Z.
- For which interval does [x] = 4 hold true?
- (a) (3, 4]
- (b) [4, 5)
- (c) [3, 4)
- (d) (4, 5)
- Answer: (b) — [x] = 4 exactly for all x satisfying 4 ≤ x < 5.
- What is the value of [7] (where 7 is itself an integer)?
- (a) 6
- (b) 7
- (c) 8
- (d) 0
- Answer: (b) — When x is itself an integer, [x] = x, so [7] = 7.
Quick revision
- Greatest integer function: = the greatest integer ≤ x; also called the floor function.
- Step values: [x] = −1 on [−1, 0); [x] = 0 on [0, 1); [x] = 1 on [1, 2); [x] = 2 on [2, 3); and so on.
- Domain = R, Range = Z (all integers).
- If x is already an integer, .
- For negative non-integers, round down, don't truncate toward zero — e.g. [−2.3] = −3, not −2.
Related articles
- Builds on: Signum Function
- Next: Addition of Two Real Functions
- See also: Modulus Function, Real-Valued Function and Real Function
- Related topics: Addition of Two Real Functions — (f + g)(x), Cartesian Product R × R and R × R × R — Coordinates of the Plane and Space, Cartesian Product of Three Sets — Ordered Triplets, Cartesian Product of Two Sets — Definition, Properties and Examples, Codomain of a Relation — Definition, and How It Differs from Range, Constant Function — Definition, Domain, Range and Graph