Concept:
- Split the interval at integers, on each of which \([x]\) is constant: \([x]=k\) for \(k\le x\lt k+1\).
- \(\displaystyle\int_c^d f'(x)\,dx=f(d)-f(c)\) (fundamental theorem of calculus).
Step 1: Split the range at integers
Let \(n=[a]\) (so \(n\ge1\) and \(n\le a\lt n+1\)). Then \[ I=\sum_{k=1}^{n-1}k\int_k^{k+1}f'(x)\,dx+n\int_n^a f'(x)\,dx . \]
Step 2: Evaluate each piece
\[ I=\sum_{k=1}^{n-1}k\,[f(k+1)-f(k)]+n\,[f(a)-f(n)] . \]
Step 3: Telescope the sum
\[ \sum_{k=1}^{n-1}k\,f(k+1)-\sum_{k=1}^{n-1}k\,f(k)=(n-1)f(n)-\sum_{k=1}^{n-1}f(k). \] Hence \[ I=(n-1)f(n)-\sum_{k=1}^{n-1}f(k)+nf(a)-nf(n)=nf(a)-\sum_{k=1}^{n}f(k). \] With \(n=[a]\): \(I=[a]\,f(a)-\{f(1)+f(2)+\cdots+f([a])\}\).
Step 4: Check with \(f(x)=x\), \(a=2.5\)
Direct value: \(\displaystyle\int_1^{2.5}[x]\,dx=1(1)+2(0.5)=2\). Formula: \(2(2.5)-(1+2)=2\). Option (A) gives \(2.5(2.5)-3=3.25\), option (C) gives \(2(2)-5.5=-1.5\) and option (D) gives \(2.5(2)-5.5=-0.5\); none equals \(2\).
Step 5: Conclusion
\(\displaystyle\int_1^a[x]f'(x)\,dx=[a]\,f\left(a\right)-\{f(1)+f(2)+\cdots+f([a])\}\). Hence, the correct option is (B).