To evaluate the definite integral
I=∫03([x]!ex+e−x)dx
where [x] denotes the greatest integer function, we break the interval of integration [0,3] into sub-intervals based on the step values of [x]:
- For x∈[0,1), [x]=0⟹[x]!=0!=1
- For x∈[1,2), [x]=1⟹[x]!=1!=1
- For x∈[2,3), [x]=2⟹[x]!=2!=2
Using these values, the integral I can be split into three separate integrals:
I=∫010!ex+e−xdx+∫121!ex+e−xdx+∫232!ex+e−xdx
Substitute the factorial values into the integral:
I=∫01(ex+e−x)dx+∫12(ex+e−x)dx+21∫23(ex+e−x)dx
The first two integrals can be combined into a single integral from 0 to 2:
∫02(ex+e−x)dx=[ex−e−x]02=(e2−e−2)−(e0−e0)=e2−e−2
Now, evaluate the third integral:
21∫23(ex+e−x)dx=21[ex−e−x]23=21(e3−e−3−(e2−e−2))
Adding these two results together gives:
I=(e2−e−2)+21(e3−e−3)−21(e2−e−2)
Combine like terms:
I=21(e2−e−2)+21(e3−e−3)
I=21(e2+e3−e21−e31)
Hence, the correct option is B.