Class 12 Maths, Worked in Full Past papersGet updates
Chapter 5 · Continuity and Differentiability

Example 15: The greatest integer function [x][x] breaks at every integer

ExamplesContinuity · Section 5.2
The question

Find all the points of discontinuity of the greatest integer function defined by f(x)=[x]f(x) = [x]⁠, where [x][x] denotes the greatest integer less than or equal to xx⁠.

Exam answer

f(x)=[x]f(x) = [x] is defined for every real xx⁠.

Case 1: cc is not an integer. Then [x][x] is constant near cc⁠, so

lim⁡x→cf(x)=[c]=f(c)\lim_{x\to c} f(x) = [c] = f(c)

So ff is continuous at every cc that is not an integer.

Case 2: cc is an integer. Then f(c)=[c]=cf(c) = [c] = c and

LHL=lim⁡x→c−[x]=c−1,RHL=lim⁡x→c+[x]=c\begin{aligned} \text{LHL} &= \lim_{x\to c^-}[x] = c - 1, \\ \text{RHL} &= \lim_{x\to c^+}[x] = c \end{aligned}

Since LHL≠RHL\text{LHL} \ne \text{RHL}⁠, ff is not continuous at cc⁠.

∴\therefore The points of discontinuity of ff are all the integers.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

[x][x] is constant on each interval [n,n+1)[n, n+1): it equals nn there. A point that is not an integer sits strictly inside one of these intervals, so ff is constant near it and therefore continuous there. At an integer cc⁠, the interval just to the left gives the value c−1c - 1 and the interval starting at cc gives cc⁠. The graph steps up by 1, so the one-sided limits differ: every integer is a point of discontinuity, and nothing else is.

Given, to find, and the plan
Given
f(x)=[x]f(x) = [x]⁠, the greatest integer less than or equal to xx⁠.
To find
All points of discontinuity of ff⁠.
Plan
Understand [x][x] as a step function and find its domain. Case 1: cc not an integer (show continuity). Case 2: cc an integer (compute f(c)f(c)⁠, the left-hand limit and the right-hand limit separately).

Basics you need

1The greatest integer function

For each real xx there is exactly one integer nn with n≤x<n+1n \le x < n + 1⁠, and [x]=n[x] = n⁠. So [2.7]=2[2.7] = 2⁠, [3]=3[3] = 3⁠, [−0.5]=−1[-0.5] = -1 and [−2.7]=−3[-2.7] = -3 (the integer just below, not the one nearer zero). Basics: piecewise functions

2A function constant near cc has that constant as its limit

If f(x)=kf(x) = k for all xx in some open interval around cc⁠, then lim⁡x→cf(x)=k\lim_{x\to c} f(x) = k⁠: a limit at cc depends only on the values at inputs near cc⁠, and there ff agrees with the constant function kk⁠, whose limit is kk (Example 5). The same holds for one-sided limits on a one-sided interval. Basics: what a limit is

3One-sided limits

The left-hand limit at cc uses inputs x<cx < c⁠, the right-hand limit inputs x>cx > c⁠; the limit exists only if they agree. Basics: left-hand and right-hand limits

4Definition 1

For cc in the domain, ff is continuous at cc when the left-hand limit, the right-hand limit and f(c)f(c) are equal. Lesson: continuity at a point

Solution

  1. Domain and the step shape

    Every real number lies in exactly one interval [n,n+1)[n, n+1) with nn an integer, so [x][x] is defined for every real xx⁠: the domain is R\R⁠. On each such interval the function is constant:

    [x]=nfor n≤x<n+1.[x] = n \quad \text{for } n \le x < n + 1.

    For example [x]=0[x] = 0 on [0,1)[0, 1)⁠, [x]=1[x] = 1 on [1,2)[1, 2)⁠, and [x]=−1[x] = -1 on [−1,0)[-1, 0)⁠.

    x y O −3 −2 −1 1 2 3 4 −3 −2 −1 1 2 3
    The graph of y=[x]y = [x] for −3≤x<4-3 \le x < 4⁠, same scale on both axes (compare Fig 5.8). Each step at height nn starts with a filled dot at (n,n)(n, n)⁠, which is on the graph, and ends with an open dot at (n+1,n)(n+1, n)⁠, which is not.
    Writing [x][x] as "the constant nn on [n,n+1)[n, n+1)" turns it into a piecewise function with infinitely many pieces. Then continuity can be studied exactly like the piecewise examples before: inside the pieces and at the junctions, which here are the integers.
    The left end nn belongs to the step (n≤xn \le x⁠), the right end n+1n + 1 does not (x<n+1x < n + 1⁠). That is why each step has a filled dot on the left and an open dot on the right. Basics: piecewise functions
  2. Case 1: cc is not an integer

    Let n=[c]n = [c]⁠. Because cc is not an integer, c≠nc \ne n⁠, so n<c<n+1n < c < n + 1 with strict inequalities. Let δ\delta be the smaller of the two gaps:

    δ=min⁡(c−n, n+1−c)>0.\delta = \min(c - n,\ n + 1 - c) > 0.

    Every xx with ∣x−c∣<δ|x - c| < \delta satisfies n<x<n+1n < x < n + 1⁠, so [x]=n[x] = n⁠. Thus ff is constant near cc⁠, and

    lim⁡x→c[x]=n=[c]=f(c).\lim_{x\to c} [x] = n = [c] = f(c).

    So ff is continuous at every real number that is not an integer.

    The book says this is "evident from the graph": near a non-integer, the graph is a flat piece of one step. The δ\delta makes that precise. For c=2.3c = 2.3⁠: n=2n = 2⁠, the gaps are 0.30.3 and 0.70.7⁠, δ=0.3\delta = 0.3⁠, and every xx in (2,2.6)(2, 2.6) has [x]=2[x] = 2⁠.
    A function that is constant on an interval around cc has that constant as its limit at cc (Basic 2). Basics: what a limit is
  3. Case 2: cc is an integer, the value

    If cc is an integer, the greatest integer ≤c\le c is cc itself:

    f(c)=[c]=c.f(c) = [c] = c.
    c≤cc \le c⁠, and no larger integer is ≤c\le c⁠. In the graph this is the filled dot at the left end of the step at height cc⁠.
  4. Case 2: the left-hand limit at an integer cc

    For c−1≤x<cc - 1 \le x < c we have [x]=c−1[x] = c - 1 (the step at height c−1c - 1⁠). So for every xx in the interval (c−1,c)(c - 1, c) just to the left of cc⁠, f(x)=c−1f(x) = c - 1⁠, and

    lim⁡x→c−[x]=c−1.\lim_{x\to c^-} [x] = c - 1.
    Inputs approaching cc from the left, like c−0.1c - 0.1⁠, c−0.01c - 0.01⁠, c−0.001c - 0.001⁠, all lie on the step below. The book phrases this as: for a sufficiently small r>0r > 0⁠, [c−r]=c−1[c - r] = c - 1⁠. In fact any rr with 0<r≤10 < r \le 1 works.
  5. Case 2: the right-hand limit at an integer cc

    For c≤x<c+1c \le x < c + 1 we have [x]=c[x] = c⁠. So for every xx in (c,c+1)(c, c + 1)⁠, f(x)=cf(x) = c⁠, and

    lim⁡x→c+[x]=c.\lim_{x\to c^+} [x] = c.
    Inputs just to the right of cc lie on the step that starts at cc⁠. In the book's words, [c+r]=c[c + r] = c for small r>0r > 0 (any 0<r<10 < r < 1 works).
  6. Case 2: compare

    lim⁡x→c−[x]=c−1,lim⁡x→c+[x]=c,f(c)=c.\begin{aligned} \lim_{x\to c^-} [x] &= c - 1, \\ \lim_{x\to c^+} [x] &= c, \\ f(c) &= c. \end{aligned}

    Since c−1≠cc - 1 \ne c for every cc⁠, the two one-sided limits never agree, lim⁡x→c[x]\lim_{x\to c} [x] does not exist, and ff is discontinuous at every integer.

    The two one-sided limits always differ by exactly 1, the height of each step. Notice that the right-hand limit does equal f(c)f(c)⁠: the graph is "continuous from the right" at each integer (the filled dot sits on the right-hand step). That is not enough, because Definition 1 needs the left-hand limit as well.
  7. Conclusion

    Every real number is either a non-integer (Case 1, continuous) or an integer (Case 2, discontinuous). Hence the points of discontinuity of [x][x] are exactly the integers, …,−2,−1,0,1,2,…\dots, -2, -1, 0, 1, 2, \dots⁠, that is, the set Z\Z⁠.

    The two cases cover all of R\R⁠, so the list is complete: no integer is missed, and no non-integer is a point of discontinuity.
Result

f(x)=[x]f(x) = [x] is continuous at every real number that is not an integer. At every integer cc⁠, lim⁡x→c−[x]=c−1\lim_{x\to c^-} [x] = c - 1 and lim⁡x→c+[x]=c\lim_{x\to c^+} [x] = c differ, so the points of discontinuity are all the integers. This agrees with the textbook's solution.

Check it with numbers

At the integer c=2c = 2⁠: [1.9]=[1.99]=[1.999]=1[1.9] = [1.99] = [1.999] = 1⁠, [2]=2[2] = 2⁠, [2.001]=[2.01]=2[2.001] = [2.01] = 2⁠. Left values stay at 1, right values at 2. At the negative integer c=−1c = -1⁠: [−1.001]=−2[-1.001] = -2⁠, [−1]=−1[-1] = -1⁠, [−0.999]=−1[-0.999] = -1⁠. At the non-integer c=2.5c = 2.5⁠: [2.4]=[2.5]=[2.6]=2[2.4] = [2.5] = [2.6] = 2⁠, no change at all.

Common mistakes
  1. Rounding towards zero for negatives. [−2.7]=−3[-2.7] = -3⁠, not −2-2⁠: the greatest integer less than or equal to −2.7-2.7 is −3-3⁠.
  2. Using [c][c] for the left-hand limit. Just left of an integer cc the value is c−1c - 1⁠, not cc⁠.
  3. Listing only positive integers. The argument in Case 2 works for every integer cc⁠, including 0 and the negative integers.
  4. Deciding from f(c)f(c) and one side only. The right-hand limit equals f(c)f(c)⁠, but continuity also needs the left-hand limit to agree.
What to take away
  1. [x][x] is a piecewise constant function with a junction at every integer; it is continuous inside each step and jumps by 1 at every integer.
  2. Near a non-integer cc⁠, choose δ\delta smaller than the distance to the nearest integer; then [x][x] is constant near cc⁠.
  3. The same reasoning shows x−[x]x - [x] is discontinuous at every integer (Exercise 5.1 Q19).

Every fact used, and where it comes from

FactUsed inSource
[x]=n[x] = n for n≤x<n+1n \le x < n + 1⁠, nn an integerSteps 1–5Definition of the greatest integer function, Class XI (Basics: piecewise functions)
A function constant near cc has that constant as limitSteps 2, 4, 5Example 5, Section 5.2 (Basics: limits)
Limit exists iff both one-sided limits exist and agreeStep 6Section 5.2, after Definition 1 (Basics: one-sided limits)
Continuity at a point; point of discontinuitySteps 2, 6, 7Definition 1, Section 5.2 (Lesson: continuity at a point)
Graph of [x][x]Step 1Fig 5.8, Section 5.2
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →