NDA Maths · Functions

The Greatest Integer (Floor) Function

⌊x⌋ rounds down to the nearest integer; its staircase graph, fractional part, and floor-equations are the testable pieces.

Why this matters

Seven PYQs, and not one is EASY — every question here is MODERATE or HARD, so the floor function punches above its weight. The traps cluster around negatives (⌊−1.3⌋ = −2, not −1), the jump-down behaviour at integers, and the fractional part {x} = x − ⌊x⌋. Solving floor-equations and floor-sums rounds it out.

Concept 1 of 3

Definition, graph, and behaviour at integers

Intuition

x\lfloor x\rfloor (written [x][x] in NDA papers) is the **greatest integer not exceeding xx — round down** on the number line. The graph is a staircase: flat on each [n,n+1)[n,n+1), then a jump up by 1 at the next integer.

Definition

[x]=n[x]=n where nn is the unique integer with nx<n+1n\le x<n+1. Properties:

  • [x]x<[x]+1[x]\le x<[x]+1, and [x]=x[x]=x exactly when xx is an integer.
  • Discontinuous (jump of 1) at every integer; constant in between, so its derivative is 0 on each open interval (n,n+1)(n,n+1).
  • Range is Z\mathbb{Z}; domain is R\mathbb{R}.
xy[x] = n on [n, n+1) · jumps up by 1 at each integer

Worked example

Evaluate [2.7][2.7], [1.3][-1.3], and [5][5].
  1. [2.7][2.7]: greatest integer 2.7\le 2.7 is 22.
  2. [1.3][-1.3]: greatest integer 1.3\le -1.3 is 2-2 (round down, not toward zero).
  3. [5][5]: 55 is already an integer, so [5]=5[5]=5.
Answer:[2.7]=2, [1.3]=2, [5]=5[2.7]=2,\ [-1.3]=-2,\ [5]=5.
Practice this concept4 quick reps

Practice — Level 1 (4 reps)

Quick reps to lock in the method. Try each, then check.

  1. 1.
    [3.99][3.99]?
  2. 2.
    [0.5][-0.5]?
  3. 3.
    Is [x][x] continuous at x=2x=2?
  4. 4.
    Derivative of [x][x] at x=2.4x=2.4?

From the bank · past-year question

Example 1FunctionsMODERATE
Consider the following statements in respect of the function y=[x]y=[x], x(1,1)x\in(-1,1) where [.][.] is the greatest integer function: 1. Its derivative is 0 at x=0.5x=0.5 2. It is continuous at x=0x=0 Which of the above statements is/are correct?

[Q56 · Apr · 2022]

Floor rounds DOWN, so negatives go further from zero

[1.3]=2[-1.3]=-2, not 1-1: you must go to the integer below. Truncating toward zero is the most common floor mistake on negative inputs.

Concept 2 of 3

The fractional part {x} = x − [x]

Intuition

Whatever the floor throws away is the fractional part {x}=x[x]\{x\}=x-[x]. It is the leftover after rounding down, so it always lands in [0,1)[0,1) — even for negative xx.

Definition

{x}=x[x][0,1)\{x\}=x-[x]\in[0,1) for every real xx. Equivalently [x]x={x}(1,0][x]-x=-\{x\}\in(-1,0]. It is periodic with period 1. For a non-integer xx, [x]x[x]-x is strictly between 1-1 and 00, so [[x]x]=1\big[[x]-x\big]=-1.

Worked example

Find {2.3}\{-2.3\}.
  1. [2.3]=3[-2.3]=-3 (floor rounds down).
  2. {2.3}=2.3(3)=0.7\{-2.3\}=-2.3-(-3)=0.7.
  3. As expected, the result is in [0,1)[0,1).
Answer:{2.3}=0.7\{-2.3\}=0.7.
Practice this conceptself-check

Try it yourself

If xx is positive and not an integer, what is [[x]x]\big[[x]-x\big]?

From the bank · past-year question

Example 2FunctionsMODERATE
Let z=[y]z = [y] and y=[x]xy = [x] - x, where [.] is the greatest integer function. If x is not an integer but positive, then what is the value of z?

[Q71 · Sep · 2022]

Concept 3 of 3

Floor equations and sums

Intuition

To solve an equation in [x][x], treat [x][x] as an integer unknown nn, solve the ordinary equation for nn, then translate each integer back to the interval [n,n+1)[n,n+1). For floor sums, count how many terms share each floor value.

Definition

Key idea: [x]=n    x[n,n+1)[x]=n\iff x\in[n,n+1). So a polynomial equation in [x][x] becomes a polynomial in the integer nn; solve it, keep integer roots, and convert. For sums []\sum[\,\cdot\,], group the index range by where the floor value changes.

Worked example

Solve [x]25[x]+6=0[x]^2-5[x]+6=0 for real xx.
  1. Let n=[x]n=[x]: n25n+6=0(n2)(n3)=0n^2-5n+6=0\Rightarrow(n-2)(n-3)=0, so n=2n=2 or 33.
  2. [x]=2x[2,3)[x]=2\Rightarrow x\in[2,3); [x]=3x[3,4)[x]=3\Rightarrow x\in[3,4).
  3. Union the intervals.
Answer:x[2,4)x\in[2,4).
Practice this conceptself-check

Try it yourself

How many real xx satisfy [x]=4[x]=4? Describe them.

From the bank · past-year question

Example 3FunctionsMODERATE
If f(x)=[x]230[x]+221=0f(x)=[x]^2-30[x]+221=0, where [x][x] is the greatest integer function, then what is the sum of all integer solutions?

[Q77 · Sep · 2024]

[x] = n is an interval, not a single point

Solving a floor-equation gives **integer values of [x][x]**; each one unpacks to a whole interval [n,n+1)[n,n+1) of real xx. Reporting only the integers x=nx=n misses the rest of the solution set.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Watch out for (2)

Mastery check — 4 interleaved questions

Try each one before clicking. Questions are interleaved across the concepts above, not grouped — interleaving sharpens transfer.

Example 1FunctionsHARD
Let f(x)=[x]2x2f(x)=[x]^2-x^2.
What is f(0.999)+f(1.001)f(0.999)+f(1.001) equal to?

[Q83 · Sep · 2024]

Example 2FunctionsMODERATE
Let z=[y]z=[y] and y=[x]xy=[x]-x, where [][\cdot] is the greatest integer function. If xx is not an integer but positive, then what is the value of zz?

[Q71 · Sep · 2024]

Example 3FunctionsMODERATE
Let f(n)=[14+n1000]f(n) = \left[\dfrac{1}{4} + \dfrac{n}{1000}\right], where [x][x] denotes the integral part of xx. Then the value of n=11000f(n)\displaystyle\sum_{n=1}^{1000} f(n) is

[Q87 · Sep · 2017]

Example 4FunctionsHARD
Let [x] denote the greatest integer function. What is the number of solutions of x24x+[x]=0x^2 - 4x + [x] = 0 in [0,2][0, 2]?

[Q29 · Apr · 2018]

Drill every past-year question on this subtopic

7 questions from the bank — paginated, with cart and Word-export support.