Question:hard

Evaluate: \(\displaystyle\int_0^2 \left([x^2]-[x]^2\right)dx\), where \([\cdot]\) denotes the greatest integer (floor) function.

Show Hint

Split at x=1, sqrt2 and sqrt3, the points where [x] and [x^2] change value.
Updated On: Jul 3, 2026
  • \(0\)
  • \(1\)
  • \(4-\sqrt3-\sqrt2\)
  • \(2-\sqrt3\)
Show Solution

The Correct Option is C

Solution and Explanation

$\textbf{Step 1:}$ Write the required integral as the difference of two separate integrals: \[\int_0^2[x^2]\,dx-\int_0^2[x]^2\,dx\] $\textbf{Step 2:}$ Compute $\int_0^2[x]^2\,dx$. Since $[x]=0$ on $[0,1)$ and $[x]=1$ on $[1,2)$, \[\int_0^2[x]^2\,dx=\int_0^1 0\,dx+\int_1^2 1\,dx=0+1=1\] $\textbf{Step 3:}$ Compute $\int_0^2[x^2]\,dx$ using the breakpoints where $x^2$ crosses an integer: $x=1,\sqrt2,\sqrt3,2$. \[\int_0^2[x^2]\,dx=\int_0^1 0\,dx+\int_1^{\sqrt2}1\,dx+\int_{\sqrt2}^{\sqrt3}2\,dx+\int_{\sqrt3}^{2}3\,dx\] $\textbf{Step 4:}$ Evaluate each piece: \[\int_1^{\sqrt2}1\,dx=\sqrt2-1,\quad \int_{\sqrt2}^{\sqrt3}2\,dx=2(\sqrt3-\sqrt2),\quad \int_{\sqrt3}^{2}3\,dx=3(2-\sqrt3)\] Adding these: $(\sqrt2-1)+2\sqrt3-2\sqrt2+6-3\sqrt3=5-\sqrt2-\sqrt3$. $\textbf{Step 5:}$ Subtract the two results: \[\int_0^2[x^2]\,dx-\int_0^2[x]^2\,dx=(5-\sqrt2-\sqrt3)-1=4-\sqrt2-\sqrt3\] \[\boxed{4-\sqrt3-\sqrt2}\]
Was this answer helpful?
0