Skip to main content
Limits, Continuity & Differentiability10 min read

Greatest Integer Function in Limits & Continuity

The Greatest Integer Function (GIF), denoted \( \lfloor x \rfloor \) or \( [x] \), returns the largest integer less than or equal to \( x \). JEE Main tests GIF-based limits and continuity problems in 20–25 questions over the past six years. These problems are uniquely tricky because GIF creates...

limitscontinuitygifgreatest-integer-function

Greatest Integer Function in Limits & Continuity

Introduction

The Greatest Integer Function (GIF), denoted x\lfloor x \rfloor or [x][x], returns the largest integer less than or equal to xx. JEE Main tests GIF-based limits and continuity problems in 20–25 questions over the past six years. These problems are uniquely tricky because GIF creates discontinuities at every integer, and left-hand and right-hand limits behave very differently. This article gives you the complete strategy.


1. Fundamental Properties

Definition

x=greatest integer n such that nx.\lfloor x \rfloor = \text{greatest integer } n \text{ such that } n \leq x.

Examples: 3.7=3\lfloor 3.7 \rfloor = 3, 1.3=2\lfloor -1.3 \rfloor = -2, 5=5\lfloor 5 \rfloor = 5.

Essential Properties

PropertyFormula
Fractional part{x}=xx\{x\} = x - \lfloor x \rfloor, where 0{x}<10 \leq \{x\} < 1
Integer shiftx+n=x+n\lfloor x + n \rfloor = \lfloor x \rfloor + n for nZn \in \mathbb{Z}
Negative flipx=x1\lfloor -x \rfloor = -\lfloor x \rfloor - 1 if xZx \notin \mathbb{Z}; =x= -\lfloor x \rfloor if xZx \in \mathbb{Z}
Product boundx1<xxx - 1 < \lfloor x \rfloor \leq x

Behaviour Near Integers

For any integer nn: limxnx=n1,limxn+x=n.\lim_{x \to n^-} \lfloor x \rfloor = n - 1, \qquad \lim_{x \to n^+} \lfloor x \rfloor = n.

So x\lfloor x \rfloor is right-continuous but left-discontinuous at every integer.


2. Limits Involving GIF

The Squeeze (Sandwich) Theorem Approach

Since x1<xxx - 1 < \lfloor x \rfloor \leq x, we can squeeze GIF-containing expressions: x1x<xx1for x>0.\frac{x - 1}{x} < \frac{\lfloor x \rfloor}{x} \leq 1 \quad \text{for } x > 0. As xx \to \infty: limxxx=1.\lim_{x \to \infty} \frac{\lfloor x \rfloor}{x} = 1.

Standard GIF Limit Results

limx0+x1/x=1,limx0+xx=0,limx0xx=undefined (diverges).\lim_{x \to 0^+} x \lfloor 1/x \rfloor = 1, \qquad \lim_{x \to 0^+} \frac{\lfloor x \rfloor}{x} = 0, \qquad \lim_{x \to 0^-} \frac{\lfloor x \rfloor}{x} = \text{undefined (diverges)}.

Warning: limf(x)limf(x)\lim \lfloor f(x) \rfloor \neq \lfloor \lim f(x) \rfloor in General

Example: limx0x=1\lim_{x \to 0^-} \lfloor x \rfloor = -1, but limx0x=0=0\lfloor \lim_{x \to 0^-} x \rfloor = \lfloor 0 \rfloor = 0.


3. Worked Examples

Example 1 (Basic Continuity Check)

Discuss the continuity of f(x)=x+xf(x) = \lfloor x \rfloor + \lfloor -x \rfloor.

Solution:

Case 1: xZx \in \mathbb{Z}. Then f(x)=x+(x)=0f(x) = x + (-x) = 0.

Case 2: xZx \notin \mathbb{Z}. Let x=n+αx = n + \alpha where 0<α<10 < \alpha < 1. Then x=n\lfloor x \rfloor = n and x=(n+1)\lfloor -x \rfloor = -(n+1). So f(x)=nn1=1f(x) = n - n - 1 = -1.

Thus: f(x)={0,xZ1,xZf(x) = \begin{cases} 0, & x \in \mathbb{Z} \\ -1, & x \notin \mathbb{Z} \end{cases}

At any integer nn: limxnf(x)=10=f(n)\lim_{x \to n} f(x) = -1 \neq 0 = f(n).

ff is discontinuous at every integer.


Example 2 (Limit with GIF in Exponent)

Evaluate limx0+(1+x)1/x\displaystyle \lim_{x \to 0^+} (1+x)^{\lfloor 1/x \rfloor}.

Solution:

As x0+x \to 0^+, 1/x\lfloor 1/x \rfloor behaves like 1/x1/x (since 1/x1/x{1/x}\lfloor 1/x \rfloor \approx 1/x - \{1/x\} and {1/x}\{1/x\} is bounded).

More precisely, 1x1<1/x1x\frac{1}{x} - 1 < \lfloor 1/x \rfloor \leq \frac{1}{x}.

(1+x)1/x1<(1+x)1/x(1+x)1/x.(1+x)^{1/x - 1} < (1+x)^{\lfloor 1/x \rfloor} \leq (1+x)^{1/x}.

Both bounds tend to ee:

  • (1+x)1/xe(1+x)^{1/x} \to e.
  • (1+x)1/x1=(1+x)1/x1+xe1=e(1+x)^{1/x - 1} = \frac{(1+x)^{1/x}}{1+x} \to \frac{e}{1} = e.

By squeeze: the limit is ee.


Example 3 (Continuity of xxx\lfloor x \rfloor)

Is f(x)=xxf(x) = x \lfloor x \rfloor continuous at x=2x = 2?

Solution:

f(2)=22=4f(2) = 2 \cdot 2 = 4.

LHL: limx2xx=21=2\lim_{x \to 2^-} x \lfloor x \rfloor = 2 \cdot 1 = 2 (since x=1\lfloor x \rfloor = 1 for 1x<21 \leq x < 2).

RHL: limx2+xx=22=4\lim_{x \to 2^+} x \lfloor x \rfloor = 2 \cdot 2 = 4.

LHL \neq RHL. Not continuous at x=2x = 2.


Example 4 (Fractional Part Limit)

Evaluate limx3{x}xx\displaystyle \lim_{x \to 3^-} \frac{\{x\}}{x - \lfloor x \rfloor}.

Solution:

Since {x}=xx\{x\} = x - \lfloor x \rfloor, this is: limx3xxxx=1.\lim_{x \to 3^-} \frac{x - \lfloor x \rfloor}{x - \lfloor x \rfloor} = 1.

But what about limx3+\lim_{x \to 3^+}? Same thing: {x}/(xx)=1\{x\}/(x - \lfloor x \rfloor) = 1 for all non-integer xx.

The function equals 1 everywhere except at integers where it is 0/00/0 (undefined).


Example 5 (GIF Inside Trigonometric Function)

Find limx0sinxx\displaystyle \lim_{x \to 0} \frac{\sin \lfloor x \rfloor}{\lfloor x \rfloor}.

Solution:

RHL (x0+x \to 0^+): x=0\lfloor x \rfloor = 0, so sin00=00\frac{\sin 0}{0} = \frac{0}{0}, which is indeterminate. But since x=0\lfloor x \rfloor = 0 identically for 0<x<10 < x < 1, the expression is 00\frac{0}{0}, which is undefined.

LHL (x0x \to 0^-): x=1\lfloor x \rfloor = -1, so sin(1)1=sin11=sin1\frac{\sin(-1)}{-1} = \frac{-\sin 1}{-1} = \sin 1.

The limit does not exist (LHL exists but RHL is undefined).


Example 6 (Summation with GIF)

Evaluate limn1n2r=1nrr/n\displaystyle \lim_{n \to \infty} \frac{1}{n^2} \sum_{r=1}^{n} r \lfloor r/n \rfloor.

Solution:

For 1rn11 \leq r \leq n-1: 0<r/n<10 < r/n < 1, so r/n=0\lfloor r/n \rfloor = 0.

For r=nr = n: n/n=1\lfloor n/n \rfloor = 1.

So the sum =0+0++n1=n= 0 + 0 + \cdots + n \cdot 1 = n. limnnn2=0.\lim_{n \to \infty} \frac{n}{n^2} = 0.


4. Previous Year JEE Problems

Problem 1 (JEE Main 2023)

limx0x2sinxtanx\displaystyle \lim_{x \to 0} \frac{x^2}{\sin x \lfloor \tan x \rfloor} where x0x \to 0^-:

Solution:

As x0x \to 0^-, tanx0\tan x \to 0^-, so tanx=1\lfloor \tan x \rfloor = -1. limx0x2sinx(1)=limx0x2sinx=limx0xsinx/xx1=0.\lim_{x \to 0^-} \frac{x^2}{\sin x \cdot (-1)} = \lim_{x \to 0^-} \frac{-x^2}{\sin x} = \lim_{x \to 0^-} \frac{-x}{\sin x / x} \cdot \frac{x}{1} = 0.

Wait—more carefully: x2sinx(1)=x2sinx=xxsinx01=0.\frac{x^2}{\sin x \cdot (-1)} = -\frac{x^2}{\sin x} = -x \cdot \frac{x}{\sin x} \to 0 \cdot 1 = 0.

Answer: 0.


Problem 2 (JEE Main 2021)

The number of points of discontinuity of f(x)=x2xf(x) = \lfloor x^2 - x \rfloor in [0,2][0, 2] is:

Solution:

g(x)=x2xg(x) = x^2 - x on [0,2][0, 2] has range: g(0)=0g(0) = 0, g(1/2)=1/4g(1/2) = -1/4, g(1)=0g(1) = 0, g(2)=2g(2) = 2.

The integers in the range [1/4,2][-1/4, 2] are: 0,1,20, 1, 2.

g(x)=0g(x) = 0: x=0,1x = 0, 1. g(x)=1g(x) = 1: x2x1=0x=1+521.618x^2 - x - 1 = 0 \Rightarrow x = \frac{1+\sqrt{5}}{2} \approx 1.618. g(x)=2g(x) = 2: x=2x = 2.

Points of discontinuity: x=0x = 0 (check left—not in domain), x=1x = 1, x=1+52x = \frac{1+\sqrt{5}}{2}, x=2x = 2.

But x=0x = 0 is the left endpoint, and gg passes through 0 at x=0,1x = 0, 1. We need to check where g(x)g(x) crosses an integer:

Between x=0x = 0 and x=1x = 1, g(x)g(x) dips below 0 (minimum 1/4-1/4) so g(x)\lfloor g(x) \rfloor jumps between 0 and 1-1. Discontinuity at points where g(x)=0g(x) = 0 in this interval — that's at x=0x = 0 and x=1x = 1.

After x=1x = 1: g(x)g(x) increases from 0 to 2. Discontinuity at g(x)=1g(x) = 1 and g(x)=2g(x) = 2.

Answer: 4 points of discontinuity.


Problem 3 (JEE Main 2024)

If f(x)=2sinxf(x) = \lfloor 2\sin x \rfloor on [0,π][0, \pi], at how many points is ff discontinuous?

Solution:

On [0,π][0, \pi], sinx\sin x goes from 0 to 1 and back to 0. So 2sinx2\sin x ranges from 0 to 2 and back.

Values where 2sinx2\sin x equals an integer:

  • 2sinx=02\sin x = 0: x=0,πx = 0, \pi
  • 2sinx=12\sin x = 1: x=π/6,5π/6x = \pi/6, 5\pi/6
  • 2sinx=22\sin x = 2: x=π/2x = \pi/2

The function 2sinx\lfloor 2\sin x \rfloor changes value at each of these (except at x=π/2x = \pi/2 where 2sinx2\sin x touches 2 from below).

At x=π/2x = \pi/2: 2sinx=1\lfloor 2\sin x \rfloor = 1 just before and after (since 2sinx<22\sin x < 2 nearby), and 2=2\lfloor 2 \rfloor = 2 at x=π/2x = \pi/2. So this is a discontinuity.

Points of discontinuity: x=π/6x = \pi/6 (jumps from 0 to 1), x=π/2x = \pi/2 (isolated point at 2), x=5π/6x = 5\pi/6 (drops from 1 to 0).

Answer: 3.


5. Common Patterns & Quick Results

ExpressionLHL at integer nnRHL at integer nn
x\lfloor x \rfloorn1n-1nn
x\lfloor -x \rfloorn-n(n+1)-(n+1)
{x}\{x\}1100
x+x\lfloor x \rfloor + \lfloor -x \rfloor1-11-1
(1)x(-1)^{\lfloor x \rfloor}(1)n1(-1)^{n-1}(1)n(-1)^n

6. Tips for JEE Aspirants

  1. Always compute LHL and RHL separately at integer points—GIF is discontinuous at every integer.
  2. For f(x)\lfloor f(x) \rfloor, find where f(x)f(x) takes integer values—these are the candidate discontinuity points.
  3. Use the squeeze theorem for limits at infinity: x1<xxx - 1 < \lfloor x \rfloor \leq x is your best friend.
  4. Fractional part {x}=xx\{x\} = x - \lfloor x \rfloor simplifies many expressions. At non-integer points, this is straightforward.
  5. Draw the staircase graph mentally. Visualizing the step function makes the problem transparent.
  6. For composite GIF g(x)\lfloor g(x) \rfloor, solve g(x)=ng(x) = n for each relevant integer nn to find all discontinuity points.

7. Quick-Reference Summary

StepAction
1Identify if GIF applies: look for \lfloor \cdot \rfloor, [][\cdot], or {}\{\cdot\}.
2Find where the argument equals an integer.
3Compute LHL and RHL at each such point.
4Check: LHL == RHL =f(a)= f(a)? If not, discontinuous.
5For limits at infinity, use squeeze theorem.

GIF problems reward students who think carefully about one-sided limits. The function is simple, but the traps are everywhere—practice until the staircase behaviour becomes second nature.

Ready to Apply These Techniques?

Practice with real JEE Main questions and see these methods in action.

Practice Limits, Continuity & Differentiability PYQs