I took the function $f(x)=x^2$ and noted that $f$ satisfies the following functional equation (from well-known equality $(x+1)^2=x^2+2x+1$):$$f(x+1)=f(x)+2x+1.$$
Here's the question: is there another solution $f: \mathbb{R} \to \mathbb{R}$ for this equation? I tried to prove it myself, but didn't succeed. Could you help, please?
Also I wonder: there is another functional equation for $f(x)=x^2$: $$f(x+y)=f(x)+2xy+f(y).$$ Is it related to the previous one? Can we deduce the second from the first?
UPD1: the fist question was answered in the comments. What about the second one?
UPD2: the second eqution has others solutions too. For instance, take $f(x)=x^2+ax$, where $a$ is an arbitrary real number. See Functional equation $f(x+y)=f(x)+2xy+f(y)$ .