设f(x)=ax^2+bx+c
f(x+1)+f(x-1)
=a(x+1)^2+b(x+1)+c+a(x-1)^2+b(x-1)+c
=2ax^2+2+2bx+2c
=2x^2-4x
2a=2,2b=-4,2c+2=0
a=1,b=-2,c=-1
f(x)=x^2-2x-1
设f(x)=ax^2+bx+c
f(x+1)+f(x-1)
=a(x+1)^2+b(x+1)+c+a(x-1)^2+b(x-1)+c
=2ax^2+2+2bx+2c
=2x^2-4x
2a=2,2b=-4,2c+2=0
a=1,b=-2,c=-1
f(x)=x^2-2x-1