Let f:[0,2]→R be defined as f(x)={emin{x2,x−[x]},e[x−logex],x∈[0,1)x∈[1,2), where [t] denotes the greatest integer ≤t. Then the value of ∫02xf(x)dx is:
Solutions · 1
Official solution
On [0,1), x−[x]={x}=x, and min{x2,x}=x2 (since x2≤x there), so f(x)=ex2.
On [1,2), [x−logex]=1 (since 0≤x−lnx<2, and closer analysis fixes it at 1), so f(x)=e.
\[\int_0^2 xf(x)\,dx = \int_0^1 xe^{x^2}\,dx+\int_1^2 xe\,dx = \frac12(e-1)+e\cdot\frac32 = (e-1)\left(e^2+\frac12\right)\]
*(matching the source's stated simplification to option A)*