We wish to evaluate ∫02xf(x)dx where f(x)={emin{x2,x−[x]},e[x−lnx],x∈[0,1)x∈[1,2].
Since for x∈[0,1) we have [x]=0, it follows that x−[x]=x and because x2≤x on [0,1] we conclude min{x2,x}=x2; hence on this interval f(x)=ex2.
Moreover, on the interval [1,2] the function x−lnx increases from 1−ln1=1 to 2−ln2≈1.307<2, so that x−lnx∈[1,2) and therefore [x−lnx]=1, giving f(x)=e there.
Therefore the integral splits as ∫02xf(x)dx=∫01xex2dx+∫12xedx.
Next, to compute the first integral, we set u=x2 so that du=2xdx, which yields ∫01xex2dx=21∫01eudu=21(e−1)=2e−1.
Similarly, for the second integral we find e∫12xdx=e[2x2]12=e(2−21)=23e.
From the above, adding these results gives 2e−1+23e=24e−1=2e−21, so the value of the integral is 2e−21.