I am trying to solve the following equation for x in terms of $y$ and $c$ (with $x,y \in [0,1]$) \begin{equation} \log\left(\frac{x}{1-x-y}\right) + \frac{x}{1-x-y} + \frac{y}{1-x-y} = c \end{equation}
I can solve this easier equation \begin{equation} \log\left(\frac{x}{1-x-y}\right) + \frac{x}{1-x-y} = c \end{equation}
Let \begin{equation} z = \frac{x}{1-x-y} \end{equation}
Then I can solve for $x$ using Lambert's W function \begin{align} \log(z) + z &= c \notag \\ z &= \exp(c)\exp(-z) \notag \\ z \exp(z) &= \exp(c) \notag \\ z &= W(\exp(c)) \notag \\ x &= \frac{(1-y)W(\exp(c))}{1+W(\exp(c))} \notag \end{align}
Can anyone help me solve the harder equation? Is Lambert's W function helpful here?
Thanks!