We need to evaluate ∫−22ex∣x∣+1∣x3+x∣dx. First, observe that x3+x=x(x2+1) and since x2+1>0 always, the sign of x3+x depends solely on x. For x≥0 we have ∣x3+x∣=x3+x, while for x<0 it follows that ∣x3+x∣=−(x3+x)=−x3−x. Similarly, note that x∣x∣=x2 when x≥0 and x∣x∣=−x2 when x<0.
From these observations, we split the integral into two parts:
I=∫−22ex∣x∣+1∣x3+x∣dx=∫−20e−x2+1−(x3+x)dx+∫02ex2+1x3+xdx. Substituting x→−x in the first integral gives
∫−20e−x2+1−(x3+x)dx=∫02e−x2+1x3+xdx,
so that
I=∫02(x3+x)[e−x2+11+ex2+11]dx.
Since
e−x2+11+ex2+11=ex2+1ex2+ex2+11=ex2+1ex2+1=1,
the integral reduces to
I=∫02(x3+x)dx=[4x4+2x2]02=416+24=4+2=6.
The answer is Option D: 6.