A real-valued function f has the property that for all real numbers a and b,
f(a+b)+f(a−b)=2f(a)f(b).
If f(1)=3, what is the value of f(2)?
1
3
9
17
35