$S$ is set of family of infinite differentiable function from $\mathbb R \to \mathbb R$ with $\forall x,y\in R$
$$f(x+y)-f(y-x)=2xf^\prime(y)$$
then I have to prove that $S$ only contain all polynomials of degree less than $2$.
My attempt:
I can show that all polynomial of degree less than 2 satisfies that property
From given equation, I think it uses Mean value theorem, but I am not able to show that is only function.
Please only provide me hint. I wanted to solve this problem.
Hint:
Differentiate both sides w.r.t. $x$ twice.