Let [x] denote the greatest integer ≤x. Consider f(x)=max{x2,1+[x]}. Then the value of ∫02f(x)dx is:
Solutions · 1
Official solution
On [0,1): 1+[x]=1≥x2, so f(x)=1. On [1,2): 1+[x]=2≥x2, so f(x)=2. On [2,2]: x2≥2=1+[x], so f(x)=x2.
\[\int_0^2f(x)\,dx = \int_0^1 1\,dx+\int_1^{\sqrt{2}}2\,dx+\int_{\sqrt{2}}^2x^2\,dx = 1+2(\sqrt{2}-1)+\left(\frac83-\frac{2\sqrt{2}}3\right) = \frac{5+4\sqrt{2}}3\]