Greatest Integer Function Properties
On this page
Direct answer
The greatest integer function [x] returns the largest integer not exceeding x, so [x] = n exactly when n ≤ x < n + 1, giving [2.7] = 2 and [−2.1] = −3. Its graph is a right-continuous staircase that jumps by 1 at each integer and has integer range. The companion fractional part {x} = x − [x] always lies in [0, 1), so every real number splits as x = [x] + {x}.
What you must remember
- Definition discipline: [x] ≤ x < [x] + 1, and flooring moves toward minus infinity, so [−2.1] = −3 rather than −2.
- Integer shift: [x + n] = [x] + n for any integer n, while non-integer shifts need case analysis.
- Complement identity: [x] + [−x] = 0 when x is an integer and −1 otherwise, while {x} + {−x} = 1 for non-integer x.
- Hermite's identity: [x] + [x + 1/n] + ... + [x + (n − 1)/n] = [nx]; the case n = 2 reads [x] + [x + 1/2] = [2x].
- Fractional part: {x} = x − [x] lies in [0, 1), equals 0 exactly at integers, and has period 1.
- Discontinuity structure: [x] jumps by 1 at every integer, where the left limit is n − 1 while the value and right limit are both n; it is continuous elsewhere and non-decreasing everywhere.
- Calculus link: ∫ from 0 to n of [x] dx equals n(n − 1)/2, the main way the function meets integration in JEE Main.
Solving a step-function equation
Equations in [x] reduce to integer algebra first and then translate back into intervals. The example [x]² − 5[x] + 6 = 0 shows the method.
- Substitute the floor: write n = [x], so the equation becomes the integer equation n² − 5n + 6 = 0.
- Factor: (n − 2)(n − 3) = 0 gives n = 2 or n = 3.
- Translate back: [x] = 2 means 2 ≤ x < 3, and [x] = 3 means 3 ≤ x < 4.
- Merge the pieces: the solution set is [2, 3) ∪ [3, 4), which is the single half-open interval [2, 4).
- Sketch the composite: for y = [x/2] the value is 0 on [0, 2), 1 on [2, 4) and 2 on [4, 6), so scaling inside the floor stretches the steps.
Every equation in [x] resolves to a union of half-open intervals, one for each integer root. The stretch rule is the quick sketch tool here, since [x/a] jumps at multiples of a.
Where the staircase catches you
Most lost marks come from signs and endpoints, and both are fixed by drawing the staircase first.
- Trap: evaluating [−0.3] as 0 by truncating toward zero Correct: the floor is −1, and the identity [x] + [−x] = −1 for non-integers settles most sign disputes at once.
- Trap: writing the solution of [x] = 2 as the closed interval [2, 3] Correct: the solution is [2, 3), since x = 3 has floor 3 and breaks the equation; this closed-endpoint slip is the most common lost mark in numerical-answer format.
- Trap: assuming [x] has a limit at every integer Correct: the left and right limits differ by 1 at each integer, so no limit exists there.
JEE Main tests computation, such as evaluating [x] at stated points and counting jumps of [f(x)], which occur where f crosses an integer. JEE Advanced adds equations mixing [x] with {x}, solved by writing x = n + r with n an integer and r in [0, 1).
Frequently asked questions
What is the greatest integer function?
[x] is the largest integer less than or equal to x, so [x] = n exactly when n ≤ x < n + 1. For example [2.7] = 2 and [−2.1] = −3.
What is the value of [x] + [−x]?
The expression [x] + [−x] equals 0 when x is an integer and −1 for every non-integer x. This identity resolves most sign arguments involving the greatest integer function.
What does Hermite's identity for the greatest integer function state?
Hermite's identity states that [x] + [x + 1/n] + ... + [x + (n − 1)/n] = [nx] for a positive integer n. Its case n = 2, which reads [x] + [x + 1/2] = [2x], is the one to know cold.
Where is the greatest integer function discontinuous?
The greatest integer function is discontinuous at every integer, with a jump of 1 there. At an integer n its left limit is n − 1 while its value and right limit are both n, and it is continuous elsewhere.
What is the solution set of [x]² − 5[x] + 6 = 0?
The equation holds where [x] = 2 or [x] = 3, which gives x in [2, 3) together with [3, 4). Merged, the solution set of the greatest integer equation is the single half-open interval [2, 4).