Given: f(x)=aloge∣x∣+bx2+x has critical points at x=−2 and x=1
At critical points, the derivative equals zero.
The derivative of f(x) is:
f′(x)=xa+2bx+1
At x=1, we have f′(1)=0:
1a+2b(1)+1=0
a+2b+1=0 ... (1)
At x=−2, we have f′(−2)=0:
−2a+2b(−2)+1=0
−2a−4b+1=0
−a−8b+2=0
a+8b=2 ... (2)
From equation (1):
a=−2b−1
Substituting into equation (2):
(−2b−1)+8b=2
6b−1=2
6b=3
b=21
Therefore:
a=−2(21)−1
a=−2
With a=−2 and b=21:
a+4b=−2+4(21)
a+4b=−2+2
a+4b=0