Solution by pco.
We claim the only solution is f(x)≡cx for some real constant c, which obviously works. We now show it is the only solution. Let P(x,y) denote the assertion that f(x+y2)=f(x)+yf(y).
Let g(x)=f(x)−f(0).
Subtracting P(0,y) from P(x,y), we get g(x+y2)=g(x)+g(y2).
So g(x+y)=g(x)+g(y) ∀x and ∀y≥0.
Hence, 0=g(0)=g(−∣x∣+∣x∣)=g(−∣x∣)+g(∣x∣) and g(x) is odd, and so additive.
Back to original equation, we get g(y2)=yg(y).
This means that g(y2+2y+1)=(y+1)g(y+1) which simplifies to g(y)=g(1)y.
So, f(x)=ax+b for some a,b. Plugging this in original equation, we get b=0, and so f(x)=ax∀x.
Note: f(0)=0 can also be proved from P(−1,−1).