We need to find all values of b for which f(x) has a maximum value at x=1.
Using the first piece since x≤1 gives f(1)=1−1+10−7=3.
Next, for x≤1 the function is f(x)=x3−x2+10x−7 and f′(x)=3x2−2x+10. Since the discriminant of 3x2−2x+10 is 4−120=−116<0 and the leading coefficient is positive, f′(x)>0 on (−∞,1]. This means f is strictly increasing on (−∞,1], so f(x)≤f(1)=3 for all x≤1.
For x>1, f(x)=−2x+log2(b2−4). Since the coefficient of x is −2<0, this expression is strictly decreasing on (1,∞), so its supremum occurs as x→1+: limx→1+f(x)=−2+log2(b2−4).
To ensure a maximum at x=1, we require f(x)≤3 for all x>1, which gives −2+log2(b2−4)≤3, then log2(b2−4)≤5, so b2−4≤32, hence b2≤36 and −6≤b≤6.
Moreover, for log2(b2−4) to be defined we require b2−4>0, i.e., b<−2 or b>2. Combining this with −6≤b≤6 gives b∈[−6,−2)∪(2,6].
The correct answer is Option C: [−6,−2)∪(2,6].