Problem

Source: Korea National Olympiad 2019 P5

Tags: algebra, functional equation



Find all functions $f$ such that $f:\mathbb{R}\rightarrow \mathbb{R}$ and $f(f(x)-x+y^2)=yf(y)$