The problem arose in the context of kinetic energy, where it can be proven from symmetry principles that $E(2v)=4E(v)$ without assuming $E=mv^2/2$ (see e.g. physics stackexchange).
While one may do further physics from this point to prove the desired result (that $E$ is quadratic in $v$) -- consider a system with other prime numbers of balls, then do algebra to prove the result for rational scaling in $v$, then use the fact that there are rational numbers between any two real numbers and assume the function is increasing to prove it for all real scaling -- it seems intuitively obvious from this point immediately, that if $E$ is increasing in $v$, $E=kmv^2$.
How would one prove this functional equation?
If we assume $f \in C^2$ (or at least that $f$ is twice differentiable and $f''$ is continuous at $0$), we can prove uniqueness. Taking the derivative twice, we obtain:
$$f(2x) = 4f(x) \implies f''(2x) = f''(x)$$
Now we have, using continuity of $f''$ at $0$:
$$f''(x) = f''\left(\frac{x}{2}\right) = f''\left(\frac{x}{4}\right) = \ldots = f''\left(\frac{x}{2^n}\right) \xrightarrow{n\to\infty} f''(0)$$
Hence, $f''$ is constant so $f(x) = ax^2 + bx + c$.
Now using the answer of @Khosrotash, you can deduce that:
$$f(x) = ax^2, \quad a > 0$$