Q.Show that the function defined by g(x)=x−[x] is discontinuous at all integral points. Here [x] denotes the greatest integer less than or equal to x.
🔒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 Continuity — the floor function [x] jumps at integers, so g(x)=x−[x] (the fractional part) also jumps there.
Reasoning:
- At an integer n, g(n)=n−[n]=n−n=0.
- For x→n−, [x]=n−1, so g(x)=x−(n−1)→n−(n−1)=1.
- For x→n+, [x]=n, so g(x)=x−n→n−n=0. …
The function g(x)=x−[x] is the fractional part of x, which jumps from 1 back to 0 at every integer. Because the left-hand limit and right-hand limit at any integer n are different (and the function value equals the right-hand limit), the limit does not exist — so g is discontinuous at every integer.
The core idea: what g(x) really is
The greatest integer function [x] returns the largest integer not exceeding x. So g(x)=x−[x] gives the fractional part of x — the distance from x down to the nearest integer below it.
For example:
- At x=2.3, [2.3]=2, so g(2.3)=0.3.
- At x=5, [5]=5, so g(5)=0.
- At x=−1.2, [−1.2]=−2, so g(−1.2)=0.8.
The graph of g is a “sawtooth”: it rises linearly from 0 to just below 1 on each interval [n,n+1), then drops sharply back to 0 at the next integer. That drop is the discontinuity.
Step-by-step reasoning
1. Pick an arbitrary integer n.
We need to check continuity at x=n. The definition of continuity requires:
limx→ng(x)=g(n)
If the two-sided limit does not exist (or exists but doesn’t match g(n)), then g is discontinuous at n.
2. Compute g(n) directly.
Since [n]=n,
g(n)=n−n=0
3. Find the right-hand limit as x→n+.
For x just greater than n, say x=n+h with h>0 small, the greatest integer less than or equal to x is still n (because x hasn’t reached n+1 yet). So [x]=n, and
g(x)=(n+h)−n=h
As h→0+, g(x)→0. Hence
limx→n+g(x)=0
4. Find the left-hand limit as x→n−.
For x just less than n, say x=n−h with h>0 small, the greatest integer less than or equal to x is n−1 (because x is between n−1 and n). So [x]=n−1, and
g(x)=(n−h)−(n−1)=1−h
As h→0+, g(x)→1. Hence
limx→n−g(x)=1 …
Method: Proving a Function Built From [x] Is Discontinuous at Every Integer
Use this whenever you must show a function involving the greatest integer function [x] (floor function) is discontinuous at integer points, by examining its behaviour on either side of a general integer n.
Steps
Step 1: Recall how [x] behaves near an integer
For an integer n: [n]=n. Just below n (i.e., x=n−h for small h>0), [x]=n−1. Just above n (i.e., x=n+h), [x]=n. This is the key fact the whole argument rests on — the floor value drops by exactly 1 the instant x crosses below an integer.
Step 2: Fix an arbitrary integer n and write the function value f(n)
Substitute [n]=n into the given expression to get f(n) in terms of n.
Step 3: Compute the right-hand limit as x→n+
Substitute [x]=n (valid for x slightly above n) into the function's formula and simplify as x→n. …
Common Mistakes
Mistake 1: Assuming [x]=n for x just below the integer n
Why it's wrong: the greatest integer function always rounds down; for x slightly less than n (like 2.999), [x]=n−1, not n. Correct approach: always test with a concrete example (is [1.9] equal to 1 or 2?) before writing the left-hand limit formula.
Mistake 2: Thinking the function is continuous because it's "defined at every real number"
Why it's wrong: [x] (and functions built from it) being defined everywhere says nothing about the limit existing — continuity needs the one-sided limits to also agree with each other and with the function value, not just that a value exists. Correct approach: explicitly compute both one-sided limits at the integer and compare them, rather than assuming "defined = continuous." …
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.