Given $f(x)$ to be differentiable such that $f(y)-f(x)-(y-x)f'(\frac{x+y}{2})+\frac{(x-y)^2}{4}=0$, then find $f(x)$
From the given equation, we can't plug in $x=y$ as it just gives $0=0$. For some reason I think $f(x)$ is a quadratic equation ( I dunno why tho ). So I set $f(x)=ax^2+bx+c$ and put it in the given equation. \begin{equation} ay^2+by+c-(ax^2+bx+c)-(y-x)[a(x+y)+b]+\frac{x^2-2xy+y^2}{4}=0\\ \Rightarrow x^2-2xy+y^2=0\\ \Rightarrow x=y \end{equation}
So does that mean for all quadratic equation it satisfies this functional equation?.