Find all functions $f\colon \mathbb{R} \to \mathbb{R}$ such that $$ f(af(b) − b^2) = (b + 1)f(a − b) $$ for all $a, b \in \mathbb{R}$.
Holds for f(x) = x and f(x) = 0 but I can't seem to prove its the only solution (if it is).
Edit: Sorry made a mistake, it doesn't hold for f(x) = x.
Consider $a=0$ which gives us $f(-b^2)=(b+1)f(-b)$ Making the substitution $b \rightarrow -b$ we arrive at $f(-b^2)=(1-b)f(b)$ and therefore $(b+1)f(-b)=(1-b)f(b)$. So $b=1$ gives us $2f(-1)=0$ and we have $f(-1)=0$. Similarly with $b=-1$ we have $2f(1)=0$ so $f(1)=0$.
Now setting $b=1$ in the original expression gives $f(af(1)-1)=2f(a-1)$ and so $f(af(1)-1)=f(-1)=0$ meaning $f(a-1)=0$ and so $f$ is the zero function.