I've found some difficulties in this exercise please could you give me help?
Let $f$ be a continuous function in $\mathbb R$ such that
$$\forall(x;y)\in\mathbb R, f (x+y) + f(x-y) = 2(f(x)+f(y)).$$
- Calculate $f(0)$ then show that $f$ is an even function.
- Let $x\in\mathbb R$. Prove that $\forall n\in\mathbb Z,f(nx)=n^2f(x)$.
- Let $a=f(1)$. Prove that $\forall r\in\mathbb Q,f(r)=r^2 a$
- Deduce the expression of $f \in \mathbb R$.
let $a = f(1)$, then $f(n) = n^2a$ for all $n \in \mathbb{N}$ by (2). Now for $r = n/m \in \mathbb{Q}$, note that $$ m^2f(r) = f(mr) \text{ by Part (1)} $$ $$ = f(n) = n^2a $$ Hence, $f(r) = r^2 a$
Since $f$ is continuous, for any $x\in \mathbb{R}$, choose a sequence $q_n \in \mathbb{Q}$ such that $q_n \to x$, then $$ q_n^2 a = f(q_n) \to f(x) \Rightarrow f(x) =x^2 a $$