I need to find the inverse function of $f(x)=x+n^x$, where $n$ is a variable in the range $(0, 1]$. I understand that the result would not be a function because of the vertical-line test, so it would need to be broken up.
By swapping $x$ for $y$ we get $x=y+n^y$, but I have no idea where to go from here to isolate $y$ on one side of the equation.
Starting with $x=y+n^y$, and manipulating the equation in some non-obvious ways: \begin{align*} x&=y+n^y\\[5pt] \implies x-y &=n^y\\[5pt] \implies (x-y)\ln(n)n^{x} &= n^{y}\ln(n)n^{x}\\[5pt] \implies(x-y)\ln(n)n^{x-y} &= n^{x}\ln(n)\\[5pt] \implies \ln\left(n^{x-y}\right)n^{x-y} &= n^{x}\ln(n)\\[5pt] \implies \ln\left(n^{x-y}\right) \exp\left(\ln\left(n^{x-y}\right)\right) &= n^{x}\ln(n)\\[5pt] \implies W(n^{x}\ln(n)) &= \ln\left(n^{x-y}\right)\\[5pt] \implies W(n^{x}\ln(n)) &=(x-y)\ln(n)\\[5pt] \implies W(n^{x}\ln(n)) &=x\ln(n) - y\ln(n)\\[5pt] \end{align*} and so by solving the last equation for $y$ we get $$\boxed{y = x - \frac{W(n^{x}\ln(n))}{\ln(n)}}$$ where $W$ is the Lambert W function.