Let $S$ be the set of continuous functions $f:[0,1]\to[0,\infty)$ that satisfy $$\int_{0}^{1} x^2f(x) dx=\frac{1}{2}\int_{0}^{1} xf^2(x) dx+\frac{1}{8}.$$ Is there at most one element in the set $S$ ?
I have seen that $f(x)=x$ satisfies the above equation and no other $f(x)$ of the form $f(x)=ax$ or $f(x)=ax^2$ satisfies this .
I'm sure I am missing some rigor here, but here is an attempt that shows that no such other function exists. Suppose it does and consider $f(x) = x + g(x)$. All such continuous functions could be written this way (suppose $g(x) = h(x) - x$ to see this). Inserting this into the expression and simplifying, we have $$ \int_0^1 x [g(x)]^2 \ dx = 0. $$ Since $g(x)$ is a continuous function, it must be that $g(x) \equiv 0$.