Consider the equation:
$$x \mathrm{e}^{\frac1{2} ((x-z)^2 - x^2)} + y(x - z) = 0$$
And limiting $z > 0$ and $y \ge 1$, for what values of $z$ and $y$ does the function in $x$ have exactly 2 real solutions? Looking for a function $z(y)$, but I can work with any implicit closed form or even approximate solution, as I've spent some time playing around with it, and I do not believe that there is an explicit closed form solution to this problem.
Motivation: Consider two normally distributed random variables $\mathcal{N}(0, 1)$ and $\mathcal{N}(z, 1)$ which are drawn from with probabilities $\frac{1}{y+1}$ and $\frac{y}{y+1}$. The function $z(y)$ are the $z$ are exactly the critical value for the separation of the two modes. For values of $z$ less than $z(y)$ there are not two separate modes, for values greater than this there are.
A few known values of this function are $z(1) = 2$, and $z(2) \approx 2.627509131962$.
