Let $a, b \in \mathbb{R}, 0 \lt a \lt b$ and $f:\mathbb{R} \rightarrow \mathbb{R}$ such that: $$f(x^2 +ay) \ge f(x^2 +by), \forall x,y \in \mathbb{R} \tag1$$
Prove $f$ is constant on $(0, \infty)$
I don't know how to start, any idea is appreciated.
Playing a little bit with (1) I can get:
For $y \lt 0, x= \sqrt {-y}$ from (1) $f(0) \ge f((b-a)y), \forall y \lt 0$ or, similar, $f(0) \ge f((a-b)y), \forall y \gt 0$ also $f(0) \ge f(y) \forall y \lt 0$
but it doesn't seem to be helpful.