Solving $a x = [\ln(x) – b]^c$

closed-formlambert-wspecial functionstranscendental equations

I'm trying to solve the nonlinear equation $a x = [\ln(x) – b]^c$ for x, where a, b, and c are constants, for a project. I've tried numerical techniques like in Excel Solver, but the solutions seem to be at local points where the solvers get stuck. Those "solutions" aren't sufficiently accurate for my purpose. I'm thinking that there may be a closed-form solution, perhaps using the Lambert W function after converting the equation to the proper form if possible. I'm not a mathematician, so any help finding the global root(s) is much appreciated.

Best Answer

Notice that we want to get the equation to be of the form $y(x)e^{y(x)}$ so we can use the Lambert-$W$ function that inverts this: $W\left(y(x)e^{y(x)}\right)=y(x)$: $$ax=\left(\ln x-b\right)^c\\ a^{1/c}x^{1/c}=\ln x-b\\ e^{a^{1/c}x^{1/c}}=xe^{-b}\\ e^{(-1/c) a^{1/c}x^{1/c}}=x^{-1/c}e^{b/c}\\ x^{1/c}e^{(-1/c) a^{1/c}x^{1/c}}=e^{b/c}\\ -1/c\cdot a^{1/c}x^{1/c}e^{(-1/c) a^{1/c}x^{1/c}}=-1/c\cdot a^{1/c}e^{b/c}$$ Now, we can use $W$: $$-1/c\cdot a^{1/c}x^{1/c}=W\left(-1/c\cdot a^{1/c}e^{b/c}\right)\\ x=\frac{(-c)^c}{a}W^c\left(-1/c\cdot a^{1/c}e^{b/c}\right) $$ You can use WolframAlpha to compute $W$ but write "product log of" instead of "Lambert-$W$ of."

Related Question