The correct option is C (−∞,−2)∪(2,∞)
Differentitating the given equation using Leibnitz theorem, we get
f′(x)=(a−1)(x2+x+1)2−(a+1)(x2+x+1)(x2−x+1).
Now, f′(x)=0⇒(a−1)(x2+x+1)−(a+1)(x2−x+1)=0⇒x2−ax+1=0
For distinct real roots
D>0⇒a2−4>0⇒a2>4⇒a∈(−∞,−2)∪(2,∞)