f(x)=1+12|x|−3x2
f(x) is an even function.
∴ We take only x∈[0,5]
For x∈[0,5],
f(x)=1+12x−3x2
Since the coefficient of x2 is negative, we get downward parabola whose maximum value is −D4a=1564×3=13
As the parabola is downward, we get its minimum value in [−2,5] at x=5
f(5)=−14
Required difference is |13−(−14)|=27