1. Definition of the greatest integer function and unit intervals
The greatest integer function (GIF), written as $[x]$, maps a real number to the greatest integer less than or equal to it. The most useful working form is: $[x]=n$ if and only if $n\le x < n+1$, where $n$ is an integer. This statement partitions the real line into disjoint unit intervals $[n,n+1)$, and on each such interval the value of $[x]$ remains constant. That is why expressions involving $[x]$ behave like step functions: they do not change continuously, but jump at integers. In JEE, many “only for” statements depend on endpoints. Because the left endpoint is included and the right endpoint is excluded, values like $x=3$ lie in $[3,4)$ and not in $[2,3)$. A disciplined approach is to set $n=[x]$, solve conditions in integers, and then translate each valid $n$ to the corresponding real interval $[n,n+1)$ before merging intervals.
2. Integer shifts: why $[x+k]=[x]+k$ for integer $k$
A powerful identity for GIF is that for any integer $k$, we have $[x+k]=[x]+k$ for all real $x$. The logic is direct: if $[x]=n$, then $n\le x < n+1$. Adding $k$ gives $n+k\le x+k < n+k+1$, so the floor of $x+k$ must be $n+k$. This property removes most casework and is a frequent JEE trick. In expressions like $[x+3]$, since $3$ is an integer, it immediately becomes $[x]+3$ exactly (not approximately, and not conditionally). Many mistakes happen when students hesitate near integer boundaries, but integer shifts are always exact and safe. This identity often converts a complicated-looking function into a clean polynomial in $n=[x]$, after which factoring and sign analysis become straightforward.
3. Converting GIF expressions to integer algebra for sign questions
Once you substitute $n=[x]$, the expression becomes a function of an integer variable, so sign analysis reduces to checking an integer quadratic or product. For example, if $f(x)=n^2-n-6$, you factor it as $(n-3)(n+2)$. The sign is positive outside the roots and negative between the roots, but the important point is that $n$ is restricted to integers. So the inequality $-2
4. Integrals of step functions built from $[x]$
Integrating functions involving $[x]$ is easiest when you treat them as step functions. Since $[x]$ is constant on every interval $[n,n+1)$, any expression depending on $[x]$ is also constant there. Therefore, to compute $\int_a^b f(x)\,dx$, you split the integration range at all integers between $a$ and $b$, compute the constant value on each piece, and multiply by the piece length. This turns calculus into simple arithmetic. In this question, the interval $[0,2]$ splits into $[0,1)$ and $[1,2)$, and on each part the value is the same, so the integral is just the sum of two equal rectangles. This method is exact, fast, and avoids graphing. It also aligns perfectly with JEE expectations: correct partitioning, correct constants, and clean summation without missing jump points at integers.
Q
What is the definition of $[x]$?
⌄
$[x]=n$ exactly when $n\le x < n+1$, with $n\in\mathbb{Z}$. It is the floor of $x$.
Q
Why can we set $n=[x]$?
⌄
Because $[x]$ always equals an integer. Writing $n=[x]$ converts the question into integer algebra plus interval mapping.
Q
Is $[x+3]=[x]+3$ always valid?
⌄
Yes. Since $3$ is an integer, integer shift property gives $[x+3]=[x]+3$ for every real $x$.
Q
What is $f(x)$ in terms of $n=[x]$?
⌄
$f(x)=n^2-(n+3)-3=n^2-n-6=(n-3)(n+2)$.
Q
Where does $f(x)=0$ happen?
⌄
When $n=[x]=3$ or $n=[x]=-2$, i.e., on $[3,4)$ and $[-2,-1)$. Hence zeros are infinite in count.
Q
For which $x$ is $f(x)<0$?
⌄
$f(x)<0$ for $n=-1,0,1,2$, which corresponds to $x\in[-1,3)$.
Q
How to compute $\int_0^2 f(x)\,dx$ quickly?
⌄
Split into $[0,1)$ and $[1,2)$. On each, $f(x)=-6$. So the integral is $-6-6=-12$.
Q
Why is option (C) false?
⌄
Because the correct value is $\int_0^2 f(x)\,dx=-12$, not $-6$.
Q
Is $f(x)>0$ only for $x\ge 4$?
⌄
No. $f(x)>0$ also for $x<-2$, so positivity is on $(-\infty,-2)\cup[4,\infty)$.
Q
Which option is correct finally?
⌄
Option (B): $f(x) < 0$ only for $x \in [-1, 3)$.