Solution by jasperE3.
f(f(x)+f(y)2)=f(x)+f(y)2.
Let ∅=S⊆R be any set with the closure property that if a,b∈S then a+b2∈S, then all functions f are characterized as:
f(x)={xg(x)if x∈S2+Sif x∈/S2+S
where S2+S={a2+b∣a,b∈S} and g:R∖(S2+S)→S is any function.
Easy to verify that these functions work, and to show that all functions with f(f(x)+f(y)2)=f(x)+f(y)2 are of this form we choose S=f(R).
For instance with S=[1,∞) and g(x)=x2+1 we get f(x)={xx2+1if x≥2if x<2.