Problem

Source: 2nd Final Mathematical Cup Senior Division P1 (2020)

Tags: algebra, functional equation, Functional Equations, Functional equation in R



Find all such functions $f:\mathbb{R} \to \mathbb{R}$ that for any real $x,y$ the following equation is true. $$f(f(x)+y)+1=f(x^2+y)+2f(x)+2y$$