Q.The function f:R→Z defined by f(x)=[x]; where [.] denotes the greatest integer function, is
(A) Continuous at x=2.5 but not differentiable at x=2.5
(B) Not Continuous at x=2.5 but differentiable at x=2.5
(C) Not Continuous at x=2.5 and not differentiable at x=2.5
(D) Continuous as well as differentiable at x=2.5
🔒You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
🔒 Start your 10-day free trial to unlock the full solution →Concept understanding — Greatest Integer Continuity
Continuity of the Greatest Integer Function
The greatest integer function f(x)=⌊x⌋ returns the largest integer not exceeding x: ⌊2.3⌋=2, ⌊−1.2⌋=−2, ⌊4⌋=4. Its graph is a staircase — flat segments that jump up by 1 at every integer.
The intuition
Walk along the graph from left to right. Near a non-integer such as x=1.5 the function is flat at 1; nudge x a little either way and the value does not change, so nothing is broken there. But as you approach an integer like x=2 from the left the value is stuck at 1, and the instant you reach x=2 it leaps to 2. That sudden leap is a break.
⌊x⌋ is continuous at every non-integer and discontinuous at every integer.
Why integers fail
At an integer n the one-sided limits disagree:
limx→n−⌊x⌋=n−1,limx→n+⌊x⌋=n,⌊n⌋=n.
Since the left- and right-hand limits differ, limx→n⌊x⌋ does not exist, so continuity fails. This is a jump discontinuity, and the jump is always exactly 1. At a non-integer c there is a whole small interval on which f is constant equal to ⌊c⌋, so the limit exists and matches f(c) — the function is continuous.
How to test it …
Concept: Greatest Integer Function — it jumps at every integer, but is constant (hence continuous and differentiable) on every open interval between integers.
Reasoning:
- At x=2.5, the function f(x)=[x] equals 2 for all x in (2,3).
- Since 2.5 is not an integer, there is no jump at this point — the left-hand limit, right-hand limit, and f(2.5) all equal 2. …
The greatest integer function f(x)=[x] is constant on intervals like (2,3), so at x=2.5 it is continuous and differentiable — the correct option is (D).
The greatest integer function, [x], returns the largest integer less than or equal to x. For any non-integer point, the function is locally constant — it doesn't jump there. The only trouble spots are the integers themselves, where the floor "steps up" by 1.
At x=2.5, we are safely between 2 and 3. Let's check continuity and differentiability step by step.
-
Check continuity at x=2.5
For x in the open interval (2,3), [x]=2 exactly. So near x=2.5, the function is the constant function f(x)=2.
The left-hand limit: limx→2.5−f(x)=2.
The right-hand limit: limx→2.5+f(x)=2.
The function value: f(2.5)=[2.5]=2.
Since the limit equals the function value, f is continuous at x=2.5.
-
Check differentiability at x=2.5
Differentiability requires the derivative to exist, i.e., the limit
limh→0hf(2.5+h)−f(2.5)
must exist and be finite.
For any sufficiently small h (say ∣h∣<0.5), 2.5+h still lies in (2,3), so f(2.5+h)=2.
Hence the difference quotient is
h2−2=h0=0
for all such h=0. The limit as h→0 is clearly 0.
Therefore f′(2.5)=0, and the function is differentiable at x=2.5. …
Method: Testing Continuity and Differentiability of the Greatest Integer Function at a Given Point
Use this method whenever asked about continuity/differentiability of f(x)=[x] (or a similar step function) at a specific value.
Steps
Step 1: Check whether the given point is an integer
This is the single branching decision the whole method hinges on. Non-integers and integers behave completely differently for this function.
Step 2: If the point is NOT an integer, find its surrounding interval
For x0 strictly between two consecutive integers n and n+1, the function is constant, f(x)=n, throughout the open interval (n,n+1) — there is no jump anywhere inside this interval.
Step 3: Test continuity using the local constant value
Since f is locally constant near x0, the left-hand limit, right-hand limit, and f(x0) are all trivially equal to n, so continuity holds automatically.
Step 4: Test differentiability using the difference quotient …
Common Mistakes
Mistake 1: Assuming the greatest integer function is never differentiable
Because [x] is famous for its jumps, some students conclude it can't be differentiated anywhere. Why it's wrong: away from the integers, the function is locally constant, and a constant function is both continuous and differentiable (with derivative 0) — the jumps are confined strictly to integer points. Correct approach: always separate "what happens at integers" from "what happens between integers" before answering.
Mistake 2: Treating a non-integer point as if it needs a jump/one-sided-limit analysis …
Showing the 12 most recent of 43 on this concept.
- JEE Main 2026Set 2026-01-21-s24 marksQ.Let [·] denote the greatest integer function and f(x) = lim(n→∞) (1/n³) Σ(k=1 to n) [k²/3^z]. Then 12 Σ(j=1 to ∞) f(j) is equal to ___.
›Reveal solutionSolution
Convert the Riemann-sum-with-floor to a plain integral (the floor correction vanishes relative to n3), sum the resulting geometric series, then scale by 12.
- f(x)=limn→∞n31∑k=1n⌊3xk2⌋. Since ⌊y⌋=y−{y} with 0≤{y}<1, the fractional-part correction contributes at most O(n), which vanishes against n3 as n→∞. …
- JEE Main 2026Set 2026-04-02-s24 marksQ.The number of points in the interval [2, 4], at which the function f(x) = [x^2 - x - 1/2], where [.] denotes the greatest integer function, is discontinuous, is __________.
›Reveal solutionSolution
g(x)=x2−x−21 increases monotonically from 1.5 to 11.5 on [2,4]; the floor function jumps once for every integer g crosses, and there are 10 integers in that range.
The greatest integer function [g(x)] is discontinuous precisely at the points where g(x) itself equals an integer — nowhere else, as long as g is continuous (which it is, being a polynomial).
- g(x)=x2−x−21 has derivative g′(x)=2x−1, which is positive throughout [2,4] — so g is strictly increasing there, meaning it crosses each value in its range exactly once.
- g(2)=4−2−21=1.5 and g(4)=16−4−21=11.5. …
- JEE Main 2026Set 2026-01-22-s24 marksMCQQ.Let [·] denote the greatest integer function, and let f(x) = min{√2x, x²}. Let S = {x ∈ (−2, 2): the function g(x) = |x|[x²] is discontinuous at x}. Then Σ_{x∈S} f(x) equals (A) 2 − √2 (B) 1 − √2 (C) 2√6 − 3√2 (D) √6 − 2√2
›Reveal solutionSolution
[x²] only jumps where x² is an integer; since |x| ≠ 0 at every such point in (−2,2), every one of those jumps becomes a genuine jump discontinuity in g(x) — six points total, and most of their f-values cancel in symmetric pairs.
Work out where [x²] can jump inside x ∈ (−2,2): x² ranges over [0,4), so [x²] changes value exactly when x² = 1, 2, or 3, i.e. at x = ±1, ±√2, ±√3 (x² = 0 gives no jump since x² never goes negative near 0).
- At each such x₀, [x²] jumps by +1 as |x| increases through |x₀|. Since |x₀| ≠ 0, multiplying by |x| still produces a genuine jump in g(x) = |x|[x²] — so S = {−√3, −√2, −1, 1, √2, √3}, all six points.
- Evaluate f(x) = min{√2·x, x²} at each (comparing √2·x against x² at each point): • x = 1: √2(1) ≈ 1.414 vs 1² = 1 ⟹ f(1) = 1. …
- JEE Main 2026Set 2026-01-24-s24 marksMCQQ.Let [t] denote the greatest integer less than or equal to t. If the function f(x) = b^2 sin( (pi/2) [ (pi/2) (cos x + sin x) cos x ] ), for x < 0 f(x) = (sin x - (1/2) sin 2x) / x^3, for x > 0 f(x) = a, for x = 0 is continuous at x = 0, then a^2 + b^2 is equal to (A) 1/2 (B) 9/16 (C) 3/4 (D) 5/8
›Reveal solutionSolution
Both one-sided limits equal 1/2, giving a=1/2 and b2=1/2, so a2+b2=3/4.
Continuity at a point built from very different-looking piecewise formulas is enforced by matching both one-sided limits to the defined value at that point.
- Right side (x→0+): Taylor-expand sinx≈x−6x3, sin2x≈2x−34x3. Then sinx−21sin2x≈2x3, so f(x)→21. Hence a=21.
g(x)=2π(cosx+sinx)cosx→2π as x→0
- Left side (x→0−): the floor-function's argument g(x)=2π(cosx+sinx)cosx approaches 2π≈1.57 from slightly below (since for small negative x, cosx+sinx≈1+x<1), so 1≤g(x)<2π<2, giving ⌊g(x)⌋=1.
- So the left expression becomes b2sin(2π×1)=b2sin2π=b2. …
- JEE Main 2025Set 2025-04-07-s14 marksQ.The number of points of discontinuity of the function f(x)=[2x2]−[x],x∈[0,4], where [⋅] denotes the greatest integer function, is ________.
›Reveal solutionSolution
A sum/difference of two floor functions is discontinuous at every point where either one jumps, unless the jumps happen to coincide and cancel — here they never coincide, so just count the jump points of each piece separately on the open interval and add.
1. Where does ⌊x2/2⌋ jump?
⌊x2/2⌋ increases by 1 whenever x2/2 crosses an integer, i.e. x2=2n, x=2n for positive integers n. On [0,4], x2∈[0,16], so 2n≤16⇒n=1,…,8, giving
x=2, 2, 6, 22, 10, 23, 14, 4
(n=8 gives x=4, the right endpoint.) Interior points (0<x<4): the first 7 values.
2. Where does ⌊x⌋ jump?
⌊x⌋ increases by 1 whenever x crosses an integer, i.e. x=m2. On [0,4]: m=0,1,2⇒x=0,1,4. Interior point: only x=1.
3. Check the interior jump points are all distinct.
1, 2≈1.414, 2, 6≈2.449, 22≈2.828, 10≈3.162, 23≈3.464, 14≈3.742 …
- JEE Main 2025Set 2025-01-24-s24 marksMCQQ.Let [x] denote the greatest integer function, and let m and n respectively be the numbers of the points, where the function f(x)=[x]+∣x−2∣,−2<x<3, is not continuous and not differentiable. Then m+n is equal to : (A) 6 (B) 9 (C) 8 (D) 7
›Reveal solutionSolution
Count the jump points of [x] inside the open interval, and check whether ∣x−2∣'s corner adds anything new.
- On (−2,3), the integers are −1,0,1,2 (the endpoints −2,3 are excluded). [x] has a jump discontinuity at each integer.
- ∣x−2∣ is continuous everywhere, so it cannot cancel the jump of [x]; hence f(x)=[x]+∣x−2∣ is discontinuous at exactly x=−1,0,1,2. So m=4.
- A function cannot be differentiable at a point where it is not even continuous, so all 4 discontinuity points are also non-differentiable. …
- JEE Main 2025Set 2025-01-28-s14 marksQ.Let f(x) = { 3x, x < 0 ; min{1 + x + [x], x + 2[x]}, 0 ≤ x ≤ 2 ; 5, x > 2 } where [.] denotes greatest integer function. If α and β are the number of points, where f is not continuous and is not differentiable, respectively, then α + β equals ______ .
›Reveal solutionSolution
The only suspicious points are where the floor function or the piecewise definition changes — x=0,1,2; checking limits/derivatives there gives α=2 discontinuities and β=3 non-differentiable points.
- On [0,1), [x]=0, so min{1+x,x}=x (since 1+x>x always); so f(x)=x there.
- On [1,2), [x]=1, so both expressions 1+x+1=x+2 and x+2=x+2 are equal, giving f(x)=x+2 there.
- At x=0: left piece gives f(0−)=3(0)=0; right piece gives f(0)=0 — continuous. But left derivative is 3 (slope of 3x) and right derivative is 1 (slope of x) — not differentiable.
- At x=1: left limit (from f(x)=x on [0,1)) is 1; but f(1)=min{1+1+1,1+2}=min{3,3}=3, and the right-side piece also gives 3. Since 1=3, this is a jump discontinuity. …
- JEE Main 2025Set 2025-01-29-s14 marksQ.Let [t] be the greatest integer less than or equal to t. Then the least value of p ∈ N for which lim(x→0+) ( x([1/x]+[2/x]+...+[p/x]) − x²([1/x²]+[2²/x²]+...+[9²/x²]) ) ≥ 1 is equal to ______.
›Reveal solutionSolution
Each greatest-integer term x[k/x] (or x2[k2/x2]) converges to k (or k2) as x→0+ since the fractional-part remainder is squeezed to zero; the limit reduces to a clean arithmetic inequality in p.
- For any fixed positive integer k, [k/x]=xk−{xk}, so x[k/x]=k−x{xk}→k as x→0+ (the fractional part is bounded in [0,1), and it's multiplied by x→0).
- Similarly x2[k2/x2]→k2. …
- JEE Main 2024Set 2024-04-05-s24 marksMCQQ.Let f : [-1, 2] → R be given by f(x) = 2x^2 + x + [x^2] - [x], where [t] denotes the greatest integer less than or equal to t. The number of points, where f is not continuous, is: (A) 6 (B) 3 (C) 4 (D) 5
›Reveal solutionSolution
f is discontinuous exactly where [x2]−[x] jumps; careful sign-tracking shows the apparent jumps at x=1,2 cancel, leaving 4 genuine discontinuities.
- 2x2+x is a polynomial, hence continuous everywhere, so discontinuities of f are exactly those of h(x)=[x2]−[x].
- On [−1,2]: [x]=−1 on [−1,0), 0 on [0,1), 1 on [1,2), 2 at x=2 — candidate jump points x=0,1,2.
- x2 is decreasing from 1 to 0 on [−1,0] and increasing from 0 to 4 on [0,2]. [x2] can change value at x=−1 (since just right of −1, x2<1 so [x2] drops from 1 to 0), and at x=1,2,3,2 (where x2=1,2,3,4) on the increasing branch.
- Checking x=−1 (right limit only, left endpoint): right limit of h=0−(−1)=1 but h(−1)=1−(−1)=2. Jump — discontinuous.
- Checking x=0: left limit h→0−(−1)=1, right limit/value h=0−0=0. Jump — discontinuous. …
- JEE Main 2024Set 2024-04-05-s14 marksQ.If S={a∈R:∣2a−1∣=3[a]+2{a}}, where [t] denotes the greatest integer less than or equal to t and {t} represents the fractional part of t, then 72∑a∈Sa is equal to ______.
›Reveal solutionSolution
Write a=n+f with n=[a], f={a}∈[0,1) and split on the sign of 2a−1.
- Let a=n+f, n∈Z, 0≤f<1. Equation: ∣2a−1∣=3n+2f.
- Case a≥21: 2n+2f−1=3n+2f⇒n=−1, but then a<0<21, contradiction.
- Case a<21: 1−2n−2f=3n+2f⇒4f=1−5n. …
- JEE Main 2024Set 2024-04-06-s24 marksQ.Let [t] denote the greatest integer less than or equal to t. Let f: [0, ∞) → R be a function defined by f(x) = [x/2 + 3] - [√x]. Let S be the set of all points in the interval [0, 8] at which f is not continuous. Then the sum of all a in S is equal to
›Reveal solutionSolution
Candidate discontinuities occur only where one of the two floor functions jumps (even integers for the first, perfect squares for the second); check each candidate individually since simultaneous jumps can cancel.
- f(x)=[2x+3]−[x]. The first term jumps exactly where 2x+3∈Z, i.e. x∈{0,2,4,6,8} within [0,8]. The second term jumps where x∈Z, i.e. x∈{0,1,4} (perfect squares ≤8).
- x=0 is the left endpoint of the domain, so there is no left-hand limit to compare against — by convention it is not counted as a point of discontinuity.
- At x=1: left limit =[3.5]−[<1]=3−0=3; value at 1+: [3.5]−[1]=3−1=2. Different ⇒ discontinuous.
- At x=2: left limit =[→4−]−[2]=3−1=2; value at 2: [4]−[2]=4−1=3. Different ⇒ discontinuous. …
- JEE Main 2024Set 2024-01-27-s14 marksMCQQ.Consider the function f(x)=⎩⎨⎧b∣x2−7x+12∣a(7x−12−x2),2x−[x]sin(x−3),b,x<3x>3x=3 where [x] denotes the greatest integer less than or equal to x. If S denotes the set of all ordered pairs (a,b) such that f(x) is continuous at x=3, then the number of elements in S is: (A) 1 (B) 4 (C) 2 (D) Infinitely many
›Reveal solutionSolution
Compute the left and right limits at x=3 and equate them to f(3)=b.
- Left limit: 7x−12−x2=−(x−3)(x−4) and ∣x2−7x+12∣=∣(x−3)(x−4)∣; for x<3, (x−3)(x−4)>0, so the ratio tends to ba.
- Right limit: as x→3+, x−[x]=x−3, so x−3sin(x−3)→1 and the limit is 21=2. …
🎓Unlock everything free for 10 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 10 days. No credit card required.