Function f (x), X belongs to R, if for any real number x1, X2 has f (x1 + x2) + F (x1-x2) = 2F (x1) f (x2), prove that f (x) is even function

Function f (x), X belongs to R, if for any real number x1, X2 has f (x1 + x2) + F (x1-x2) = 2F (x1) f (x2), prove that f (x) is even function

To prove that f (- x) = f (x)
Let x2 = 0
2f(x1)=2f(x1)f(0)
=>f(0)=1
Let X1 = 0
f(x2)+f(-x2)=2f(0)f(x2)
=>f(x2)+f(-x2)=2f(x2)
So f (- x2) = f (x2)
Because it holds for any X of R
So f (- x) = f (x)