This functional equation problem is from the Latvian Baltic Way team selection competition 2019:
Find all functions $ f : \mathbb R \to \mathbb R $ such that for all real $ x $ and $ y $, $$ f \left( y ^ 2 - f ( x ) \right) = y f ( x ) ^ 2 + f \left( x ^ 2 y + y \right) \text . \tag 1 \label {eqn1} $$
OK, so I think that the only answer is $ f ( x ) = 0 $.
I just want to see if my proof that it is the only solution is correct.
So we start off by plugging $ y = - y $. We get that $$ f \left( y ^ 2 - f ( x ) \right) = - y f ( x ) ^ 2 + f \Big( - y \left( x ^ 2 + 1 \right) \Big) \text . $$
Then we add the two equations together getting that $$ 2 f \left( y ^ 2 - f ( x ) \right) = f \Big( - y \left( x ^ 2 + 1 \right) \Big) + f \Big( y \left( x ^ 2 + 1 \right) \Big) \text . $$
From the above equations we get that $$ \frac { f \Big( - y \left( x ^ 2 + 1 \right) \Big) + f \Big( y \left( x ^ 2 + 1 \right) \Big) } 2 = y f ( x ) ^ 2 + f \left( x ^ 2 y + y \right) \text. \tag 2 \label {eqn2} $$
Now, if we plug $ x = - x $ then we will get that the LHS is the same and that the RHS is $ y f ( - x ) ^ 2 + f \left( x ^ 2 y + y \right) $.
So we proceed by subtracting the two and getting that $$ 0 = y f ( x ) ^ 2 - y f ( - x ) ^ 2 \text . $$
So, lets assume that $ y \ne 0 $ getting that $$ 0 = \big( f ( x ) - f ( - x ) \big) \big( f ( x ) + f ( - x ) \big) \text . $$
Now we do a two case analysis, 1) the function is even and 2) the function is odd.
Lets start with the function being even then from \eqref{eqn2} we get that $$ 0 = y f ( x ) ^ 2 \text , $$ which of course implies that the function is just $ 0 $.
OK, now the odd case. Since the function is odd, $ f ( 0 ) = 0 $. Then plugging $ x = 0 $ in \eqref{eqn1} we get that $$ f \left( y ^ 2 \right) = f ( y ) \text , $$ which implies that $ f $ is also an even function. Since $ f $ is both even and odd, it can only be $ 0 $.
Since we got that $ f $ is zero in both cases, the only solution to the equation is $ f ( x ) = 0 $.