I'm struggling to evaluate this at $x = 2$ (or, really, any number).
To me, the fact that we have the $f(x)$ on the right hand side of the equation makes this a recursive function, so the calculation will go on indefinitely.
What is wrong with my approach?
One solution is $$f(x)=x^2$$ since $$f(x+1)=x^2+2x+1=f(x)+2x+1$$, so $$f(2)=4$$