因为f(x+y)+f(x-y)=2f(x)f(y)
令x=y=0得f(0)+f(0)=2f(0)f(0),所以f(0)=1
令x=0得f(y)+f(-y)=2f(0)f(y)=2f(y)
f(-y)=f(y)
故f(x)为偶函数