I encountered the following exercice:
Suppose $f$ is a quadratic function of the form $f(x)=ax^2+b$ with $a\neq 0$. Show that if $g(x)=c x^2+d$ with $c\neq 0$ is another function commuting with $f$ then $f(x)=g(x)$ for all $x$.
Starting with the definition of commuting function
$$(f\circ g)(x)=(g\circ f)(x),\quad \textrm{for all } x$$
and using the fact that two polynomials are equal as functions if all corresponding coefficients are equal I obtain the relation:
$$ad+b=cb+d$$
But I cannot figure out how to proceed. Thanks for any ideas.