prove $f(x,y) = ax+by$ if and only if $bf_x = af_y$ also $a,b \neq 0$ and $f$ is $ C^1$ function.
I've got no idea what to do. I've tried total derivative of $f$ or something like that. I'm also thinking that by being $C^1$ and $bf_x = af_y$ can we conclude that $x$ and $y$ must be separated and both need to have a degree of $1$, but I don't think that seems legit.
The "other way" is not true: $f(x,y)=e^{x+y}$
We have $f_x=f_y$