I have the following function $f(x,y)= e^{-xy}+e^{1/y}$.
I am trying to study its behavior as a function of $x$ at $y^{*}=g(x)$ that minimizes $f(x,y)$ for a given $x$.
Based on plots in Matlab, I see that it is a decreasing function of $x$ at $y^{*}$. However, I want to show this mathematically.
The function is not convex in terms of $y$ and there is no closed form solution for $y^{*}$.
Approach: I tried to prove that $y^{*}$ decreases with increase in the $x$ and $xy^{*}$ is constant. Then proceed to show $f(x,y^{*})$ is decreasing as function of $x$. No success.
Can someone help me to prove this?
1) Condition that $y^*$ minimizes $f(x,y)$ for given $x$ reads: $\frac{\partial f(x,y)}{\partial y} \bigg\vert_{y*}=0$. (If $y*$ is a maximum or a minimum should be addressed for completion!).
2) Behavior of $f(x,y^*(x))$:
$\frac{d f(x,y^*(x))}{dx} = \frac{\partial f(x,y)}{\partial x} \bigg\vert_{y*(x)} + \frac{\partial f(x,y)}{\partial y} \bigg\vert_{y^*(x)} \times \frac{dy^*(x)}{dx}$.
Using $(1)$, from $(2)$ we see the second term on RHS is zero, so:
$\frac{d f(x,y^*(x))}{dx} = \frac{\partial f(x,y)}{\partial x} \bigg\vert_{y*(x)} = -y^*(x) \exp[-x y^*(x)]$.
The sign of the first derivative depends on the sign of $y = y^*(x)$, satisfying: $x y^2 e^{-xy} + e^{1/y}=0$. We note that if in your case $x \gt 0$, there is no real solution for $y^*$ (since both terms are positive, with their sum zero). If $x \le 0$, we need to prove (if to fit your observation of decreasing function with $x$) that $y^*(x)>0$.
We look, making the notation $x=-t \le 0$ at finding $y=y^*$ from: $$y^2 e^{ty-\frac{1}{y}} = \frac{1}{t} \, ; t \gt 0$$. If you plot the LFS (left-hand side) as a function of $y$ you will see that (seemingly, sorry i didn't check in detail) there are two solutions, one positive and one negative.
Remains to be seen which one gives the requested minimum of $f(x,y^*(x))$. According to your observations and the above, the $y^* \gt 0 $ should be the one.
Indeed, if we take the expression of the second derivative of $f(x,y)$ with respect to $y$ given in the answer of Samrat, we can simplify the expression using the condition of the first derivative to be zero, and we will obtain that for $x <0$ (as discussed above) and $y^*>0$, we have a minimum.
The only thing left to do is to see what kind of extremum is the other solution, $y^* <0$.