I'm trying to solve this functional equation:
Find all continuous functions $f:\mathbb R \to \mathbb R$ fulfilling $$ f(x) = x^{3} - f(2x). $$
What I did: $$ \begin{align*} f(x) & = x^3 - f(2x) \\ f\left(\frac{x}{2}\right) & = \left(\frac{x}{2}\right)^{3} - f(x) \\ & \vdots \\ f\left(\frac{x}{2^{n}}\right) & = \left(\frac{x}{2^{n}}\right)^{3} - f\left(\frac{x}{2^{n-1}}\right) \end{align*} $$
Now if I substitute $f(x)$ in the second equation with it's value in the first I get: $$ f\left(\frac{x}{2}\right) = \left(\frac{x}{2}\right)^3 - \left(x^3 - f(2x)\right) $$
So I keep going like that and eventually I get this: $$ f\left(\frac{x}{2^{n}}\right) = \left(\frac{x}{2^{n}}\right)^{3} - \cdots + (-1)^{n + 1} \left(\frac{x}{2}\right)^3 + (-1)^n f(x) $$
Then if I take the limit I should be able to find $f(x)$. However, I struggle with determining the limit of the alternating series I get: $$ \sum_{n=1}^\infty (-1)^{n+1} 2^{-3n} $$
The left-hand side $f\left(\frac{x}{2^{n}}\right) \to 0$ when $n \to \infty$.
I also searched online and found another solution to a similar problem:
If I follow it, I get this answer:
Let $ f(x) = kx^{3}$, then $f(2x) = 8kx^{3}$ and their sum is $9kx^{3}$. So $k = \frac{1}{9}$ which means that $f(x) = \frac{1}{9}x^{3}$ and that does seem to satisfy the equation.
My question is this: is it possible to get the same with my approach?
Thanks in advance.