We have to evaluate the definite integral ∫ 1 2 ∣ 2 x − [ 3 x ] ∣ d x , \displaystyle \int_{1}^{2}\, \left|\,2x-[3x]\,\right|\,dx, ∫ 1 2 ∣ 2 x − [ 3 x ] ∣ d x ,
where [ t ] [t] [ t ] denotes the greatest integer less than or equal to t t t (the “floor” function).
The integrand involves [ 3 x ] [3x] [ 3 x ] , so we first find the sub-intervals of x x x in [ 1 , 2 ] [1,2] [ 1 , 2 ] on which [ 3 x ] [3x] [ 3 x ] remains constant. We note that
3 x ∈ [ 3 , 6 ] when x ∈ [ 1 , 2 ] . 3x\in[3,6]\quad\text{when}\quad x\in[1,2]. 3 x ∈ [ 3 , 6 ] when x ∈ [ 1 , 2 ] .
Because [ 3 x ] [3x] [ 3 x ] changes only at integer values of 3 x 3x 3 x , we examine the points 3 , 4 , 5 , 6 3,4,5,6 3 , 4 , 5 , 6 :
3 ≤ 3 x < 4 ⟹ 1 ≤ x < 4 3 , 4 ≤ 3 x < 5 ⟹ 4 3 ≤ x < 5 3 , 5 ≤ 3 x < 6 ⟹ 5 3 ≤ x < 2. \begin{aligned}
3\le 3x < 4 &\Longrightarrow& 1\le x < \dfrac{4}{3},\\
4\le 3x < 5 &\Longrightarrow& \dfrac{4}{3}\le x < \dfrac{5}{3},\\
5\le 3x < 6 &\Longrightarrow& \dfrac{5}{3}\le x < 2.
\end{aligned} 3 ≤ 3 x < 4 4 ≤ 3 x < 5 5 ≤ 3 x < 6 ⟹ ⟹ ⟹ 1 ≤ x < 3 4 , 3 4 ≤ x < 3 5 , 3 5 ≤ x < 2.
Thus [ 3 x ] [3x] [ 3 x ] takes the constant values 3 , 4 , 5 3,4,5 3 , 4 , 5 respectively on the intervals
[ 1 , 4 3 ) , \bigl[1,\tfrac43\bigr), [ 1 , 3 4 ) , [ 4 3 , 5 3 ) , \bigl[\tfrac43,\tfrac53\bigr), [ 3 4 , 3 5 ) , [ 5 3 , 2 ) . \bigl[\tfrac53,2\bigr). [ 3 5 , 2 ) .
On each of these intervals we now write the expression inside the absolute value:
∣ 2 x − [ 3 x ] ∣ = { ∣ 2 x − 3 ∣ , 1 ≤ x < 4 3 , ∣ 2 x − 4 ∣ , 4 3 ≤ x < 5 3 , ∣ 2 x − 5 ∣ , 5 3 ≤ x < 2 ( and at x = 2 a single point of zero measure ) . \left|\,2x-[3x]\,\right|=\begin{cases}
|2x-3|, & 1\le x<\dfrac43,\\[4pt]
|2x-4|, & \dfrac43\le x<\dfrac53,\\[4pt]
|2x-5|, & \dfrac53\le x<2\quad(\text{and at }x=2\text{ a single point of zero measure}).\\
\end{cases} ∣ 2 x − [ 3 x ] ∣ = ⎩ ⎨ ⎧ ∣2 x − 3∣ , ∣2 x − 4∣ , ∣2 x − 5∣ , 1 ≤ x < 3 4 , 3 4 ≤ x < 3 5 , 3 5 ≤ x < 2 ( and at x = 2 a single point of zero measure ) .
We next determine the sign of each linear expression to remove the absolute value:
For x ∈ [ 1 , 4 3 ) : 2 x ∈ [ 2 , 8 3 ) ⊂ ( 2 , 3 ) , so 2 x − 3 < 0 , For ⇒ ∣ 2 x − 3 ∣ = 3 − 2 x . For x ∈ [ 4 3 , 5 3 ) : 2 x ∈ [ 8 3 , 10 3 ) ⊂ ( 2 , 4 ) , so 2 x − 4 < 0 , For ⇒ ∣ 2 x − 4 ∣ = 4 − 2 x . For x ∈ [ 5 3 , 2 ) : 2 x ∈ [ 10 3 , 4 ) ⊂ ( 3 , 5 ) , so 2 x − 5 < 0 , For ⇒ ∣ 2 x − 5 ∣ = 5 − 2 x . \begin{aligned}
&\text{For }x\in[1,\tfrac43):\quad 2x\in[2,\tfrac83)\subset(2,3),\text{ so }2x-3<0,\\
&\phantom{\text{For }}\Rightarrow |2x-3| = 3-2x.\\[4pt]
&\text{For }x\in[\tfrac43,\tfrac53):\quad 2x\in[\tfrac83,\tfrac{10}3)\subset(2,4),\text{ so }2x-4<0,\\
&\phantom{\text{For }}\Rightarrow |2x-4| = 4-2x.\\[4pt]
&\text{For }x\in[\tfrac53,2):\quad 2x\in[\tfrac{10}3,4)\subset(3,5),\text{ so }2x-5<0,\\
&\phantom{\text{For }}\Rightarrow |2x-5| = 5-2x.
\end{aligned} For x ∈ [ 1 , 3 4 ) : 2 x ∈ [ 2 , 3 8 ) ⊂ ( 2 , 3 ) , so 2 x − 3 < 0 , For ⇒ ∣2 x − 3∣ = 3 − 2 x . For x ∈ [ 3 4 , 3 5 ) : 2 x ∈ [ 3 8 , 3 10 ) ⊂ ( 2 , 4 ) , so 2 x − 4 < 0 , For ⇒ ∣2 x − 4∣ = 4 − 2 x . For x ∈ [ 3 5 , 2 ) : 2 x ∈ [ 3 10 , 4 ) ⊂ ( 3 , 5 ) , so 2 x − 5 < 0 , For ⇒ ∣2 x − 5∣ = 5 − 2 x .
The entire integral therefore breaks up into three plain integrals:
∫ 1 2 ∣ 2 x − [ 3 x ] ∣ d x = ∫ 1 4 3 ( 3 − 2 x ) d x + ∫ 4 3 5 3 ( 4 − 2 x ) d x + ∫ 5 3 2 ( 5 − 2 x ) d x . \int_{1}^{2}\left|\,2x-[3x]\,\right|dx
=\int_{1}^{\tfrac43}(3-2x)\,dx+\int_{\tfrac43}^{\tfrac53}(4-2x)\,dx+\int_{\tfrac53}^{2}(5-2x)\,dx. ∫ 1 2 ∣ 2 x − [ 3 x ] ∣ d x = ∫ 1 3 4 ( 3 − 2 x ) d x + ∫ 3 4 3 5 ( 4 − 2 x ) d x + ∫ 3 5 2 ( 5 − 2 x ) d x .
We now evaluate each part, stating first the antiderivative formula
∫ ( a − 2 x ) d x = a x − x 2 . \int (a-2x)\,dx = ax - x^2. ∫ ( a − 2 x ) d x = a x − x 2 .
First integral:
∫ 1 4 3 ( 3 − 2 x ) d x = [ 3 x − x 2 ] 1 4 3 = ( 3 ⋅ 4 3 − ( 4 3 ) 2 ) − ( 3 ⋅ 1 − 1 2 ) = ( 4 − 16 9 ) − ( 3 − 1 ) = 20 9 − 2 = 2 9 . \begin{aligned}
\int_{1}^{\tfrac43}(3-2x)\,dx &=\Bigl[3x-x^{2}\Bigr]_{1}^{\tfrac43}\\
&= \left(3\cdot\dfrac43-\left(\dfrac43\right)^{2}\right)-\left(3\cdot1-1^{2}\right)\\
&= \left(4-\dfrac{16}{9}\right)-(3-1)\\
&= \dfrac{20}{9}-2\\
&= \dfrac{2}{9}.
\end{aligned} ∫ 1 3 4 ( 3 − 2 x ) d x = [ 3 x − x 2 ] 1 3 4 = ( 3 ⋅ 3 4 − ( 3 4 ) 2 ) − ( 3 ⋅ 1 − 1 2 ) = ( 4 − 9 16 ) − ( 3 − 1 ) = 9 20 − 2 = 9 2 .
Second integral:
∫ 4 3 5 3 ( 4 − 2 x ) d x = [ 4 x − x 2 ] 4 3 5 3 = ( 4 ⋅ 5 3 − ( 5 3 ) 2 ) − ( 4 ⋅ 4 3 − ( 4 3 ) 2 ) = ( 20 3 − 25 9 ) − ( 16 3 − 16 9 ) = ( 60 9 − 25 9 ) − ( 48 9 − 16 9 ) = 35 9 − 32 9 = 3 9 = 1 3 . \begin{aligned}
\int_{\tfrac43}^{\tfrac53}(4-2x)\,dx &=\Bigl[4x-x^{2}\Bigr]_{\tfrac43}^{\tfrac53}\\
&= \left(4\cdot\dfrac53-\left(\dfrac53\right)^{2}\right)-\left(4\cdot\dfrac43-\left(\dfrac43\right)^{2}\right)\\
&= \left(\dfrac{20}{3}-\dfrac{25}{9}\right)-\left(\dfrac{16}{3}-\dfrac{16}{9}\right)\\
&= \left(\dfrac{60}{9}-\dfrac{25}{9}\right)-\left(\dfrac{48}{9}-\dfrac{16}{9}\right)\\
&= \dfrac{35}{9}-\dfrac{32}{9}\\
&= \dfrac{3}{9}\\
&= \dfrac{1}{3}.
\end{aligned} ∫ 3 4 3 5 ( 4 − 2 x ) d x = [ 4 x − x 2 ] 3 4 3 5 = ( 4 ⋅ 3 5 − ( 3 5 ) 2 ) − ( 4 ⋅ 3 4 − ( 3 4 ) 2 ) = ( 3 20 − 9 25 ) − ( 3 16 − 9 16 ) = ( 9 60 − 9 25 ) − ( 9 48 − 9 16 ) = 9 35 − 9 32 = 9 3 = 3 1 .
Third integral:
∫ 5 3 2 ( 5 − 2 x ) d x = [ 5 x − x 2 ] 5 3 2 = ( 5 ⋅ 2 − 2 2 ) − ( 5 ⋅ 5 3 − ( 5 3 ) 2 ) = ( 10 − 4 ) − ( 25 3 − 25 9 ) = 6 − ( 75 9 − 25 9 ) = 6 − 50 9 = 54 9 − 50 9 = 4 9 . \begin{aligned}
\int_{\tfrac53}^{2}(5-2x)\,dx &=\Bigl[5x-x^{2}\Bigr]_{\tfrac53}^{2}\\
&= \left(5\cdot2-2^{2}\right)-\left(5\cdot\dfrac53-\left(\dfrac53\right)^{2}\right)\\
&= (10-4)-\left(\dfrac{25}{3}-\dfrac{25}{9}\right)\\
&= 6-\left(\dfrac{75}{9}-\dfrac{25}{9}\right)\\
&= 6-\dfrac{50}{9}\\
&= \dfrac{54}{9}-\dfrac{50}{9}\\
&= \dfrac{4}{9}.
\end{aligned} ∫ 3 5 2 ( 5 − 2 x ) d x = [ 5 x − x 2 ] 3 5 2 = ( 5 ⋅ 2 − 2 2 ) − ( 5 ⋅ 3 5 − ( 3 5 ) 2 ) = ( 10 − 4 ) − ( 3 25 − 9 25 ) = 6 − ( 9 75 − 9 25 ) = 6 − 9 50 = 9 54 − 9 50 = 9 4 .
Adding all three values:
∫ 1 2 ∣ 2 x − [ 3 x ] ∣ d x = 2 9 + 1 3 + 4 9 = 2 9 + 3 9 + 4 9 = 9 9 = 1. \int_{1}^{2}\left|\,2x-[3x]\,\right|dx
= \dfrac{2}{9}+\dfrac{1}{3}+\dfrac{4}{9}
= \dfrac{2}{9}+\dfrac{3}{9}+\dfrac{4}{9}
= \dfrac{9}{9}
= 1. ∫ 1 2 ∣ 2 x − [ 3 x ] ∣ d x = 9 2 + 3 1 + 9 4 = 9 2 + 9 3 + 9 4 = 9 9 = 1.
So, the answer is 1 1 1 .