For x=0 the function is f(x)=x3+ax2+bloge∣x∣+1.
Critical points satisfy f′(x)=0.
Differentiate: f′(x)=3x2+2ax+xb.
The points x=−1 and x=2 are given to be critical, so
At x=−1: 3(−1)2+2a(−1)+−1b=0⟹3−2a−b=0
⇒2a+b=3−(1)
At x=2: 3(2)2+2a(2)+2b=0⟹12+4a+2b=0
Multiply by 2: 24+8a+b=0−(2)
From (2) we get b=−24−8a.
Put this in (1):
2a+(−24−8a)=3⟹−6a=27⟹a=−29
Hence b=−24−8(−29)=12.
The required interval is [−2,−21].
Inside it, possible locations of absolute extrema are:
• the critical point x=−1 (it lies inside the interval)
• the endpoints x=−2 and x=−21.
Substitute a=−29,b=12 in f(x):
f(x)=x3−29x2+12loge∣x∣+1.
Case 1:
x=−1:
f(−1)=(−1)3−29(1)+12loge1+1
f(−1)=−1−29+0+1=−29=−4.5
Case 2:
x=−2:
f(−2)=(−8)−29(4)+12loge2+1
f(−2)=−8−18+12loge2+1=−25+12loge2
Case 3:
x=−21:
f(−21)=(−81)−29(41)+12loge(21)+1
=−81−89−12loge2+1
=−810−12loge2+1=−45−12loge2+1
=−41−12loge2 (numerically about −8.57)
Compare the three values:
f(−2)=−25+12loge2≈−16.68 (smallest)
f(−21)≈−8.57
f(−1)=−4.5 (largest)
Therefore
Absolute minimum m=f(−2)=−25+12loge2,
Absolute maximum M=f(−1)=−29.
Compute ∣M+m∣:
M+m=−29+(−25+12loge2)=−259+12loge2
Since this value is negative,
∣M+m∣=259−12loge2.
Numerically: 259=29.5,12loge2≈8.3178
∣M+m∣≈29.5−8.3178≈21.18.
This matches Option A (21.1). Hence
∣M+m∣≈21.1 (Option A).