I have to evaluate $$\int _0^2\:\frac{x-\left[x\right]}{2x-\left[x\right]+1}dx$$
Where $[x] = floor(x)$
I tend to write it like this, but I think i'm missing the point $x = 2$
$$\int _0^2\:\frac{x-\left[x\right]}{2x-\left[x\right]+1}dx=\int _0^1\:\frac{x}{2x+1}dx+\int _1^2\:\frac{x-1}{2x}dx = 1 - \frac{1}{4} \cdot \ln 3$$
The correct answer is $1 - \frac{1}{4} \cdot \ln 12$