Find all the functions $f: \mathbb{R}\to\mathbb{R}$ such that $$f(x\sqrt{2}) = 2f(x)$$ and $$f(x+1) = f(x)+2x +1$$ for all $x\in\mathbb{R}$.
So, the only function that I intuitively can imaging is $f(x) = x^{2}$, but I tried to plug $x=0$ and other different expressions and numbers without any success. Is there any other functions and how to prove that $f(x)=x^{2}$. Could you give me any hint?
Set $$f(x)=x^2+g(x)$$ and plug it into the equations. You will obtain $$g(x+1)=g(x) \tag{1}$$ $$g(\sqrt{2}x)=2g(x) \tag{2}$$ i.e. $g$ is periodic with period $1$. Now: