Solve for $f$: $$\lim_{y\to x}\frac{(x-y)^2}{f(x)-f(y)}=1$$
My try:
$$\lim_{y\to x}{(x-y)^2}=\lim_{y\to x}{f(x)-f(y)}$$
$$\lim_{y\to x}\frac{(x-y)^2}{x-y}=\lim_{y\to x}\frac{f(x)-f(y)}{x-y}$$
$$0=f'(x)$$
$f(x)=c$ but this is obviously wrong. What I did wrong and what is the correct approach?
Relation with 2-Holder continuity:
By the properties of Holder condition, if there exists $C$ such that $|f(x)-f(y)|\leq C(x-y)^2$ (Condition H),
Then, $f$ must be constant.
To apply this, suppose $f(x)>f(y)$, let $C=1$ and take the equity, we have an alternative Holder's condition:
$$\frac{(x-y)^2}{f(x)-f(y)}=1.$$
This condition seems much stronger than my first equation.
OK I think the solution is found here (credit to Zerox): Function on $[a,b]$ that satisfies a Hölder condition of order $\alpha > 1 $ is constant