# x^2 = 2^x. What is x ??

**URL:** <https://boards.straightdope.com/t/x-2-2-x-what-is-x/295844>\
**Category:** Factual Questions\
**Created:** [March 23, 2005, 4:45am UTC](https://boards.straightdope.com/t/x-2-2-x-what-is-x/295844 "2005-03-23T04:45:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![iwakura43](https://avatars.discourse-cdn.com/v4/letter/i/9de0a6/32.png) [@iwakura43](https://boards.straightdope.com/u/iwakura43)\
**Post date:** [March 23, 2005, 4:45am UTC](https://boards.straightdope.com/t/x-2-2-x-what-is-x/295844/1 "2005-03-23T04:45:26Z")

</div>

Yes, this is inspired by a homework question, the answer to which I obtained via graphing calculator. But it leads me to wonder how you would actually solve this equation. I started with taking logarithms of both sides but that only muddled things up more. One of the three answers is obvious (2; seeing as 2^2 = 2^2) and the others are x=4 and x= approx. -.767 ; how can you obtain those last two answers analytically?

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [March 23, 2005, 4:50am UTC](https://boards.straightdope.com/t/x-2-2-x-what-is-x/295844/2 "2005-03-23T04:50:54Z")

</div>

The third value is -2\*W(ln(2)/2)/ln(2), where W is Lambert’s W function (Google on that for some fun reading). I’ve seen an algebraic solution before, but it was very clever, and I don’t remember if it got the third value.

---

<div class="post-metadata">

**Author:** ![MartinL](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@MartinL](https://boards.straightdope.com/u/MartinL)\
**Post date:** [March 23, 2005, 10:33am UTC](https://boards.straightdope.com/t/x-2-2-x-what-is-x/295844/3 "2005-03-23T10:33:25Z")

</div>

The “Lambert W function” is from Euler who named it after Lambert. It is specifically defined to be the solution to your equation. Other than that, there is no closed form solution (from [this site](http://www.physicsforums.com/archive/topic/t-5565_x_*_log(x).html) ).  
You will find that your problem is equivalent to solving the equation x[sup]x[/sup]=c.

---

<div class="post-metadata">

**Author:** ![Shade](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Shade](https://boards.straightdope.com/u/Shade)\
**Post date:** [March 23, 2005, 1:35pm UTC](https://boards.straightdope.com/t/x-2-2-x-what-is-x/295844/4 "2005-03-23T13:35:17Z")

</div>

If you find the answer unsatisfying, realise that, for instance, “sin” is also pretty much defined as the answer to an equation. It’s just that you’re _used_ to those functions, so they feel like an answer, but the Lambert function doesn’t. Another answer is an explanation of why you can’t solve the equation in terms of familiar functions, but I left that in my other pants 🙂

---

<div class="post-metadata">

**Author:** ![wolf\_meister](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/wolf_meister/32/15202_2.png) [@wolf\_meister](https://boards.straightdope.com/u/wolf_meister)\
**Post date:** [March 23, 2005, 3:24pm UTC](https://boards.straightdope.com/t/x-2-2-x-what-is-x/295844/5 "2005-03-23T15:24:55Z")

</div>

Here is a thread that I started about something similar to this:

> **[a^x = x^a](https://boards.straightdope.com/sdmb/showthread.php?t=276338)**
>
> I think there was a thread similar to this a few months ago but it was the recent thread about logarithms that made me think about this. I’ve researched a great many websites to see why ‘e’ is so special. Oh sure, I get the usual textbook routine -...

In it, you’ll find lots of explanations and references (and yes, Lambert’s Function gets mentioned too). I also believe that there have been other similar threads _before_ the one I started.

---

<div class="post-metadata">

**Author:** ![Mathochist](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@Mathochist](https://boards.straightdope.com/u/Mathochist)\
**Post date:** [March 24, 2005, 10:58pm UTC](https://boards.straightdope.com/t/x-2-2-x-what-is-x/295844/6 "2005-03-24T22:58:46Z")

</div>

> [@Shade](#):
>
> If you find the answer unsatisfying, realise that, for instance, “sin” is also pretty much defined as the answer to an equation. It’s just that you’re _used_ to those functions, so they feel like an answer, but the Lambert function doesn’t. Another answer is an explanation of why you can’t solve the equation in terms of familiar functions, but I left that in my other pants 🙂

Well, there’s a way to get around that, actually. The sine function can be defined in terms of the exponential function on the complex plane, which itself is “really” a map from **C** to T[sub]1[/sub] **C** to **C** again.

T[sub]1[/sub] **C** is the tangent (complex) line to **C** , and since **C** is a topological vector space this tangent space can be canonically identified with **C** itself. This is the first map.

The second map is the diffeomorphism from a ball around the origin in the tangent space of a complex manifold at the identity to a ball around the identity in the manifold itself. Since **C** has no conjugate points, the domain is the entire tangent space. This is the second map.

Now that defines exp: **C** —\> **C** , and as we all know

sin(z) = (exp(iz)-exp(-iz))/2i

---

<div class="post-metadata">

**Author:** ![RM\_Mentock](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@RM\_Mentock](https://boards.straightdope.com/u/RM_Mentock)\
**Post date:** [March 25, 2005, 4:29am UTC](https://boards.straightdope.com/t/x-2-2-x-what-is-x/295844/7 "2005-03-25T04:29:18Z")

</div>

Here’s a quick little calculator function–f(x)= - sqrt(2)^x

Start with an x, and keep plugging the answer back in the function. It’ll converge to the third value ( -.76666469…)
