Let f (x) be a function on R and satisfy f (0) = 1, and for any real number, f (X-Y) = f (x) - Y (2x-y + 1), the analytic expression of F (x) is obtained I don't understand the two equations. I hope I can be more detailed

Let f (x) be a function on R and satisfy f (0) = 1, and for any real number, f (X-Y) = f (x) - Y (2x-y + 1), the analytic expression of F (x) is obtained I don't understand the two equations. I hope I can be more detailed

f(0)=1
If x = y is substituted, then f (X-Y) = f (x) - Y (2x-y + 1),
f(0)=f(x)-2x^2+x^2-x=1
f(x)=x^2+x+1