Every real number can be split into an integer part and a leftover part between 0 and 1. The greatest integer function gives the integer part; this lesson is about the leftover, called the fractional part. Its graph has a striking sawtooth shape, and it is the first example you meet of a function that repeats itself regularly, an idea that becomes central when you study trigonometric functions.
Integral part and fractional part#
For a positive number the split is obvious:
1.7=1+0.7
Here 1 is the integral part and 0.7 is the fractional part.
For a negative number we insist that the fractional part is not negative: it must lie in [0,1). So −1.7 is not split as −1−0.7. Instead, borrow one whole unit:
−1.7=−1−0.7=−1−1+1−0.7=−2+0.3
The integral part is −2 and the fractional part is 0.3. Notice that the integral part −2 is exactly [−1.7].
An integer has fractional part 0: 2=2+0.
The fractional part function#
Definition. For x∈R, the function
f(x)=x−[x]
is called the fractional part of x. It is written {x} (some books write ]x[). So
{x}=x−[x],x=[x]+{x}
Example 1#
Find {1.7}, {−1.7}, {2.3}, {−2.3} and {2}.
{1.7}=1.7−[1.7]=1.7−1=0.7
{−1.7}=−1.7−[−1.7]=−1.7−(−2)=−1.7+2=0.3
{2.3}=2.3−2=0.3
{−2.3}=−2.3−(−3)=0.7,since −2.3=−3+0.7
{2}=2−2=0
A useful shortcut: for a negative non-integer, {−x}=1−{x}. For example, {−2.3}=1−0.3=0.7.
Domain, range and graph#
Every real number has a fractional part, and by its definition the fractional part always lies in [0,1):
Domain of x−[x]=R,Range of x−[x]=[0,1)
To draw the graph, make a table.
Between 0 and 1 the graph is the line y=x, climbing from (0,0) towards (1,1). Just before x=1 the value is almost 1, but at x=1 it drops back to 0 and starts climbing again. So the graph is a row of parallel line segments, each rising from a point (n,0) on the x-axis towards height 1, with a filled dot at the bottom and an open circle at the top. This shape is called a sawtooth.
The pattern repeats every 1 unit: {x+1}={x} for every x. We say the fractional part function has period 1.
Example 2#
Find the range of [x]−x.
Start from the known range and multiply by −1, reversing the inequalities:
0≤x−[x]<1
0≥[x]−x>−1
−1<[x]−x≤0
So the range of [x]−x is (−1,0].
Example 3#
Find {5.25} and {−5.25}.
{5.25}=5.25−5=0.25.
−5.25 lies between −6 and −5, so [−5.25]=−6 and {−5.25}=−5.25+6=0.75.
Example 4#
Solve 2[x]=x+{x}.
Replace x by [x]+{x}:
2[x]=[x]+{x}+{x}⟹[x]=2{x}
Since 0≤{x}<1, we have 0≤2{x}<2, so the integer [x] can only be 0 or 1.
- If [x]=0, then {x}=0, so x=0+0=0.
- If [x]=1, then {x}=21, so x=1+21=23.
So x∈{0,23}. Check x=23: 2[1.5]=2 and 1.5+0.5=2.
Example 5#
For which x is {x}=0?
{x}=0 means x−[x]=0, that is, [x]=x, which happens exactly when x is an integer. So x∈Z.
Practice#
- Find {4.6}.
- Find {−4.6}.
- Find {7}.
- Find {−0.25}.
- Find {x}+{−x} when x=2.3, and when x=3.
- Find the range of 2−{x}.
- Find the range of {x}+3.
- Find all x with 2≤x<4 and {x}=0.4.
- Solve [x]=3{x}.
- For x=−6.3, find [x], {x} and [x]+{x}.
Answers#
Show answers
- 4.6−4=0.6.
- [−4.6]=−5, so {−4.6}=−4.6+5=0.4.
- 0, since 7 is an integer.
- [−0.25]=−1, so {−0.25}=−0.25+1=0.75.
- For x=2.3: 0.3+0.7=1. For x=3: 0+0=0.
- From 0≤{x}<1: 0≥−{x}>−1, so 2≥2−{x}>1. The range is (1,2].
- [3,4).
- x=2.4 and x=3.4.
- Since 0≤3{x}<3, [x] is 0, 1 or 2. Then {x}=0,31,32, giving x=0, x=34, x=38.
- [−6.3]=−7, {−6.3}=0.7, and −7+0.7=−6.3, the number itself.