Over each sub-interval in which [x] is constant, the integrand becomes a simple exponential quotient.
Since the limits are 0 to 3, the greatest integer function [x] takes the values 0, 1 and 2 only.
Case 1: 0≤x<1 ⟹ [x]=0, so [x]!=0!=1.
Integral on this interval:
I1=∫01(ex+e−x)dx
Using ∫exdx=ex and ∫e−xdx=−e−x:
I1=[ex]01+[−e−x]01=(e−1)+(−e−1+1)=e−e1.
Case 2: 1≤x<2 ⟹ [x]=1, so [x]!=1!=1.
Integral on this interval:
I2=∫12(ex+e−x)dx=(e2−e)+(−e−2+e−1)=e2+e1−e−e21.
Case 3: 2≤x<3 ⟹ [x]=2, so [x]!=2!=2.
Integral on this interval:
I3=∫232ex+e−xdx=21[∫23exdx+∫23e−xdx].
Compute the two integrals separately:
∫23exdx=e3−e2,∫23e−xdx=[−e−x]23=−e−3+e−2.
Hence
I3=21(e3−e2−e31+e21).
Add the three parts:
I=I1+I2+I3
=(e−e1)+(e2+e1−e−e21)+21(e3−e2−e31+e21).
Simplify term-by-term:
• The terms e and −e cancel.
• The terms e1 and −e1 cancel.
Remaining terms:
I=e2−e21+21(e3−e2−e31+e21)
=(e2−e21)+(21e3−21e2−2e31+2e21)
=21e3+21e2−2e21−2e31.(Combine like terms.)
Factor out 21:
I=21(e3+e2−e21−e31).
This matches Option B.
Hence the required value is
21(e2+e3−e21−e31).