I am dealing with an expression of the form $$\alpha f(x)^2 + \beta f(x) + \gamma = 0,$$ where $f: \mathbb{R} \to \mathbb{R}$ is smooth and not identically zero, and $\alpha$, $\beta$, and $\gamma$ are real coefficients.
I strongly suspect that for the above to always hold, the $x$-dependence on the LHS must be removed. This would entail that $\alpha = \beta = 0$ (and $\gamma = 0$ as a result). Is my suspicion correct? In case it is correct, is there an algebraic argument for why it holds?
Edit: I forgot to specify that $f$ is not constant.