What this les­son cov­ers

Some func­tions round a real num­ber to an inte­ger. The great­est inte­ger func­tion rounds down, the least inte­ger func­tion rounds up, and the frac­tional part func­tion keeps what is left over. This les­son defines all three, describes their step-shaped graphs and lists their prop­er­ties.

Great­est inte­ger func­tion

If x∈Rx \in \mathbb{R} and n≤x<n+1n \le x < n + 1 with n∈Zn \in \mathbb{Z}, then f(x)=nf(x) = n is called the great­est inte­ger func­tion, step func­tion or floor func­tion. It is writ­ten [x][x] and read "step xx". In words, [x][x] is the great­est inte­ger that is less than or equal to xx.

Exam­ples: [1.5]=1[1.5] = 1, [−1.5]=−2[-1.5] = -2, [1.2]=1[1.2] = 1, [−1.2]=−2[-1.2] = -2, [1]=1[1] = 1, [−1]=−1[-1] = -1. Notice that for a neg­a­tive non-inte­ger we move down to the next inte­ger, not towards zero.

Read­ing off inter­vals:

xx in [x][x]
[−2,−1)[-2, -1) −2-2
[−1,0)[-1, 0) −1-1
[0,1)[0, 1) 00
[1,2)[1, 2) 11
[2,3)[2, 3) 22

[x][x] is defined for every real xx: domain =R= \mathbb{R}, range =Z= \mathbb{Z}.

Graph. The graph is a stair­case of hor­i­zon­tal seg­ments. On each inter­val [n,n+1)[n, n+1) it is the seg­ment at height nn, with a filled dot at the left end (n,n)(n, n) and an open dot at the right end (n+1,n)(n+1, n).

Prop­er­ties of the great­est inte­ger func­tion

  1. [x]≤x[x] \le x for all x∈Rx \in \mathbb{R}.
  2. [x]=x  ⟺  x∈Z[x] = x \iff x \in \mathbb{Z}.
  3. [x]<x  ⟺  x∈R−Z[x] < x \iff x \in \mathbb{R} - \mathbb{Z}.
  4. [x]>x[x] > x for no real xx.
  5. If x∈Rx \in \mathbb{R} and k∈Zk \in \mathbb{Z}, then [x+k]=[x]+k[x + k] = [x] + k.
  6. [−x]=−[x][-x] = -[x] for x∈Zx \in \mathbb{Z}.
  7. [−x]=−[x]−1[-x] = -[x] - 1 for x∈R−Zx \in \mathbb{R} - \mathbb{Z}.
  8. [x]+[−x]=0[x] + [-x] = 0 for x∈Zx \in \mathbb{Z}, and [x]+[−x]=−1[x] + [-x] = -1 for x∈R−Zx \in \mathbb{R} - \mathbb{Z}.
  9. For k∈Zk \in \mathbb{Z}: [x]≥k⇒x∈[k,∞)[x] \ge k \Rightarrow x \in [k, \infty).
  10. For k∈Zk \in \mathbb{Z}: [x]>k⇒x∈[k+1,∞)[x] > k \Rightarrow x \in [k + 1, \infty).
  11. For k∈Zk \in \mathbb{Z}: [x]≤k⇒x∈(−∞,k+1)[x] \le k \Rightarrow x \in (-\infty, k + 1).
  12. For k∈Zk \in \mathbb{Z}: [x]<k⇒x∈(−∞,k)[x] < k \Rightarrow x \in (-\infty, k).
  13. [[x]]=[x][[x]] = [x] for all x∈Rx \in \mathbb{R}.
  14. x−1<[x]≤xx - 1 < [x] \le x for all x∈Rx \in \mathbb{R}.
  15. [x+y]=[x]+[y+x−[x]][x + y] = [x] + [y + x - [x]] for all x,y∈Rx, y \in \mathbb{R}.
  16. [x+y]≥[x]+[y][x + y] \ge [x] + [y] for x,y∈Rx, y \in \mathbb{R}.
  17. [x+y]=[x]+[y][x + y] = [x] + [y] when {x}+{y}<1\{x\} + \{y\} < 1, where {x}\{x\} and {y}\{y\} are the frac­tional parts of xx and yy.
  18. [xn]+[x+1n]+[x+2n]+⋯+[x+n−1n]=[x]\displaystyle \left[\dfrac{x}{n}\right] + \left[\dfrac{x+1}{n}\right] + \left[\dfrac{x+2}{n}\right] + \dots + \left[\dfrac{x+n-1}{n}\right] = [x], for n∈Nn \in \mathbb{N}.
  19. [x]+[x+1n]+[x+2n]+⋯+[x+n−1n]=[nx]\displaystyle [x] + \left[x + \dfrac1n\right] + \left[x + \dfrac2n\right] + \dots + \left[x + \dfrac{n-1}{n}\right] = [nx], for n∈Nn \in \mathbb{N}.

Prop­er­ties 9 to 12 are what you use to solve inequal­i­ties like [x]≥3[x] \ge 3: think of the num­ber line marked at k−1k - 1, kk, k+1k + 1.

Least inte­ger func­tion

For x∈Rx \in \mathbb{R}, the least inte­ger greater than or equal to xx is called the least inte­ger func­tion or ceil­ing func­tion. In these lessons it is writ­ten (x)(x); another com­mon nota­tion is ⌈x⌉\lceil x \rceil.

With num­bers it is clearer to use the sec­ond nota­tion. Exam­ples: ⌈3.2⌉=4\lceil 3.2 \rceil = 4, ⌈−2.3⌉=−2\lceil -2.3 \rceil = -2, ⌈5⌉=5\lceil 5 \rceil = 5.

(x)={−1,−2<x≤−10,−1<x≤01,0<x≤12,1<x≤2(x) = \begin{cases} -1, & -2 < x \le -1 \\ 0, & -1 < x \le 0 \\ 1, & 0 < x \le 1 \\ 2, & 1 < x \le 2 \end{cases}

and so on. Domain =R= \mathbb{R}, range =Z= \mathbb{Z}.

Graph. Again a stair­case, but now on each inter­val (n−1,n](n-1, n] the seg­ment is at height nn, with an open dot at the left end and a filled dot at the right end.

Prop­er­ties of the least inte­ger func­tion

Here II denotes the set of inte­gers.

  1. ((x))=(x)((x)) = (x).
  2. (x)=[x]=x(x) = [x] = x if x∈Ix \in I, and (x)=[x]+1(x) = [x] + 1 if x∉Ix \notin I.
  3. (x)+(−x)=0(x) + (-x) = 0 if x∈Ix \in I, and (x)+(−x)=1(x) + (-x) = 1 if x∉Ix \notin I.
  4. (x)−(−x)=2x(x) - (-x) = 2x if x∈Ix \in I, and (x)−(−x)=2(x)−1(x) - (-x) = 2(x) - 1 if x∉Ix \notin I.
  5. (x)=(x2)+(x−12)\displaystyle (x) = \left(\dfrac{x}{2}\right) + \left(\dfrac{x-1}{2}\right).
  6. (x)+(x+1n)+(x+2n)+⋯+(x+n−1n)=(nx)+n−1\displaystyle (x) + \left(x + \dfrac1n\right) + \left(x + \dfrac2n\right) + \dots + \left(x + \dfrac{n-1}{n}\right) = (nx) + n - 1, for n∈Nn \in \mathbb{N}.
  7. (n+12)+(n+24)+(n+48)+⋯+(n+2n−12n)=2n−1\displaystyle \left(\dfrac{n+1}{2}\right) + \left(\dfrac{n+2}{4}\right) + \left(\dfrac{n+4}{8}\right) + \dots + \left(\dfrac{n+2^{n-1}}{2^n}\right) = 2n - 1, for n∈Nn \in \mathbb{N} (a sum of nn terms).

Frac­tional part of xx

For x∈Rx \in \mathbb{R}, the func­tion f(x)=x−[x]f(x) = x - [x] is called the frac­tional part of xx, writ­ten {x}\{x\}. If x=n+fx = n + f with n∈Zn \in \mathbb{Z} and 0≤f<10 \le f < 1, then {x}=f\{x\} = f.

Exam­ples: {2.7}=0.7\{2.7\} = 0.7, {−3.6}=0.4\{-3.6\} = 0.4 (because −3.6=−4+0.4-3.6 = -4 + 0.4), {3}=0\{3\} = 0.

Graph. On each inter­val [n,n+1)[n, n+1) the graph is a slanted seg­ment ris­ing from (n,0)(n, 0) towards (n+1,1)(n+1, 1), never reach­ing the line y=1y = 1. It looks like the teeth of a saw. Domain =R= \mathbb{R}, range =[0,1)= [0, 1).

Exam­ple 1

Solve [x]=3[x] = 3 and [x]≤−2[x] \le -2.

[x]=3[x] = 3 means 3≤x<43 \le x < 4, so x∈[3,4)x \in [3, 4). By prop­erty 11 with k=−2k = -2, [x]≤−2[x] \le -2 gives x∈(−∞,−1)x \in (-\infty, -1).

Exam­ple 2

Find [−4.3]+[4.3][-4.3] + [4.3] and {−4.3}\{-4.3\}.

[−4.3]=−5[-4.3] = -5 and [4.3]=4[4.3] = 4, so the sum is −1-1 (prop­erty 8). {−4.3}=−4.3−(−5)=0.7\{-4.3\} = -4.3 - (-5) = 0.7.

Prac­tice

  1. Find [2.9][2.9], [−0.1][-0.1], ⌈2.9⌉\lceil 2.9 \rceil and ⌈−0.1⌉\lceil -0.1 \rceil.
  2. Find {5.25}\{5.25\} and {−5.25}\{-5.25\}.
  3. Solve [x]>2[x] > 2.
  4. Solve [x]<−1[x] < -1.
  5. Find [x]+[−x][x] + [-x] when x=7.5x = 7.5.
  6. Use prop­erty 19 with n=3n = 3 to eval­u­ate [0.4]+[0.4+13]+[0.4+23]\displaystyle [0.4] + [0.4 + \frac13] + [0.4 + \frac23].
  7. Solve [x]2−3[x]+2=0[x]^2 - 3[x] + 2 = 0.

Answers

Show answers
  1. [2.9]=2[2.9] = 2, [−0.1]=−1[-0.1] = -1, ⌈2.9⌉=3\lceil 2.9 \rceil = 3, ⌈−0.1⌉=0\lceil -0.1 \rceil = 0.
  2. {5.25}=0.25\{5.25\} = 0.25; {−5.25}=−5.25+6=0.75\{-5.25\} = -5.25 + 6 = 0.75.
  3. x∈[3,∞)x \in [3, \infty).
  4. x∈(−∞,−1)x \in (-\infty, -1).
  5. 7+(−8)=−17 + (-8) = -1.
  6. [3×0.4]=[1.2]=1[3 \times 0.4] = [1.2] = 1. (Directly: 0+0+10 + 0 + 1.)
  7. ([x]−1)([x]−2)=0([x] - 1)([x] - 2) = 0, so [x]=1[x] = 1 or 22, giv­ing x∈[1,3)x \in [1, 3).