Suppose that $f(x,y)$ is a continuously differentiable function and $g(x,y) =xy-f(x,y)$. I know that $g$ is concave if and only if $(-f_{xx})(-f_{yy}) -(1-f_{xy}) ^{2}>0$ and $f_{xx}>0$.
Now suppose that I "travel" along the function $g$ on a path that satisfies $f_{x}=y$. Thus, along this path $f_{xy}=1$.
Is it correct that along the path the function $g$ is concave if and only if $ (-f_{xx}) (-f_{yy}) >0$ and $f_{xx}>0$ ? An explanation is much appreciated.