Let $f(x)= a x^2 + x +1 , x \in \mathbb{R} $. Find all values of parameter $a \in \mathbb{R} $ such that $f(f(x)) \geq 0 $ holds for all real $x$.
$f(x)> 0 $ iff $a> 0 $ and $ 1- 4a \leq 0$ which gives $a \geq \frac{1}{4} $ . But we have: $f(f(x))= a ( a x^2 + x +1)^2 + a x^2 + x +1 +1 $ , now the degree is 4 and I am not sure what to do...Can anyone help? Thanks in advance.
As you mention, $a \geqslant \frac14$ works. The only case that remains is when $0<a<\frac14$, i.e. when $f(x)$ has two distinct real roots. In this case, it is enough to ensure that the midpoint of the roots, i.e. $x = -\frac1{2a} $, results in a non-negative value, so we check $$f(-\tfrac1{2a}) = \frac1{4a}-\frac1{2a}+1 = 1-\frac1{4a}$$ $$\implies f(f(-\tfrac1{2a})) = f(1-\tfrac1{4a}) = \frac{16a^2+24a-3}{16a}$$ and from $16a^2+24a-3\geqslant 0$ we get $a\geqslant \dfrac{2\sqrt3-3}4$.