Find all functions $f(x)$ continuous and non-negative that have the property that the area under the graph is $\frac{1}{3}$ the rectangle with opposite vertices at $(0,0)$ and $(x,f(x))$ and sides parallel to the coordinate axes.
I tried to solve it and I got the following:
$\int_0^x f(x)dx = \frac{1}{3} x f(x) \\ \Rightarrow f(x)=\frac{1}{3} \frac{d}{dx} (xf(x))$
but I could not go further. Any idea?
Let $g(x):=xf(x)$. Then
$$\frac{g(x)}x=\frac{g'(x)}3$$ is a separable ODE that integrates as
$$3\log x+c=\log g(x)$$
and finally
$$f(x)=\frac{g(x)}x=cx^2.$$