Skip to content

Mathematics · Ch 15 — Functions

Greatest Integer Function (Step Function)

15.2.3.3

Greatest Integer Function (Step Function)

3. Greatest integer function (step function). Definition: for every real xx, f(x)=[x]=f(x)=[x]= the greatest integer less than or equal to xx. [x][x] is also called the floor function, sometimes written ⌊x⌋\lfloor x\rfloor.

Illustrations: (1) f(5.7)=[5.7]=f(5.7)=[5.7]= the greatest integer ≤5.7\le5.7. Integers ≤5.7\le5.7 are 5,4,3,2,…5,4,3,2,\ldots, of which 55 is the greatest, so [5.7]=5[5.7]=5. (2) f(−6.3)=[−6.3]=f(-6.3)=[-6.3]= the greatest integer ≤−6.3\le-6.3. Integers ≤−6.3\le-6.3 are −10,−9,−8,−7,…-10,-9,-8,-7,\ldots, of which −7-7 is the greatest, so [−6.3]=−7[-6.3]=-7. (3) f(2)=[2]=2f(2)=[2]=2 (an integer's floor is itself). (4) [π]=3[\pi]=3. (5) [e]=2[e]=2.

The function can be defined piecewise as f(x)=nf(x)=n if n≤x<n+1n\le x<n+1, i.e. x∈[n,n+1)x\in[n,n+1), n∈In\in I (Fig. 6.45). Domain: RR; Range: II (the set of integers). …

Figure 1Fig. 6.45 — graph of the greatest integer function (staircase)

What this figure shows. A staircase-shaped graph made of a sequence of short horizontal segments at every integer height, each segment running from one integer up to (but not including) the next: for example a segment at height y=2 running from x=2 (filled/closed dot, included) to x=3 (open/hollow dot, excluded, since at x=3 the value jumps up to 3), repeating this pattern at every integer height across the whole x-axis in both directions. Illustrates domain R and range the set of all integers I, and that the graph literally looks like an infinite staircase, always jumping …