Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How would equations of the form

$b^x-x^a=0$ be solved for $x$, given $a$ and $b$? For instance, specifically, how would

$2^x=x^2$ be solved? Does a method exist?

share|cite|improve this question
The only access we have to most real numbers is by approximating them using rational numbers. Thus the only access we have for the solutions for most equations is approximating them using rational numbers. Approximation is always a method, and usually the only method. – Mlazhinka Shung Gronzalez LeWy Sep 12 '13 at 3:09
up vote 3 down vote accepted

Beginning with $$ b^x=x^a $$ and writing $b^x=e^{x\ln b}$: $$ 1=xe^{-x\frac{\ln b}{a}}. $$ Multiplying both sides by $-(\ln b)/a$ yields $$ -\frac{\ln b}{a}=\left(-x\frac{\ln b}{a}\right)e^{-x\frac{\ln b}{a}}. $$ Therefore $$ W\left(-\frac{\ln b}{a}\right)=-x\frac{\ln b}{a} $$ where $W$ is the Lambert W function and so $$ x=-\frac{a}{\ln b} W\left(-\frac{\ln b}{a}\right). $$ This can be confirmed by Wolfram Alpha.

share|cite|improve this answer
Good enough for me, thank you! Just learned what a Lambert W function is – Yadnarav3 Sep 12 '13 at 3:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.