# Maths question - can this equation be solved algebraically?

**URL:** <https://boards.straightdope.com/t/maths-question-can-this-equation-be-solved-algebraically/272640>\
**Category:** Factual Questions\
**Created:** [November 2, 2004, 11:57pm UTC](https://boards.straightdope.com/t/maths-question-can-this-equation-be-solved-algebraically/272640 "2004-11-02T23:57:58Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cunctator](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Cunctator](https://boards.straightdope.com/u/Cunctator)\
**Post date:** [November 2, 2004, 11:57pm UTC](https://boards.straightdope.com/t/maths-question-can-this-equation-be-solved-algebraically/272640/1 "2004-11-02T23:57:58Z")

</div>

This question has come up this morning in the office and we’re stumped for an answer. Can this equation be solved algebraically?

x[sup]x[/sup]=27

One can see intuitively that x=3 and it’s also possible to solve graphically. But algebraically?

---

<div class="post-metadata">

**Author:** ![Splanky](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@Splanky](https://boards.straightdope.com/u/Splanky)\
**Post date:** [November 3, 2004, 12:22am UTC](https://boards.straightdope.com/t/maths-question-can-this-equation-be-solved-algebraically/272640/2 "2004-11-03T00:22:46Z")

</div>

If by algebraically you mean have one x on one side and a number on the other, I don’t think so. You could take the log:

xlog(x) = log(27)

or x= log(27)/logx

It might look nicer, but I don’t think it helps a lot

---

<div class="post-metadata">

**Author:** ![Cunctator](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Cunctator](https://boards.straightdope.com/u/Cunctator)\
**Post date:** [November 3, 2004, 12:25am UTC](https://boards.straightdope.com/t/maths-question-can-this-equation-be-solved-algebraically/272640/3 "2004-11-03T00:25:17Z")

</div>

> [@Splanky](#):
>
> If by algebraically you mean have one x on one side and a number on the other, I don’t think so. You could take the log:
> 
> xlog(x) = log(27)
> 
> or x= log(27)/logx
> 
> It might look nicer, but I don’t think it helps a lot

\*\*Splanky \*\* - yes, by \*algebraically \* I meant manipulating the equation to end up with x as the subject on one side. We tried taking logs, but as you say, it doesn’t really help very much.

---

<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:** [November 3, 2004, 12:26am UTC](https://boards.straightdope.com/t/maths-question-can-this-equation-be-solved-algebraically/272640/4 "2004-11-03T00:26:23Z")

</div>

There may be some fancy trick, but for the most part, I think you’d have to keep computing x[sup]x[/sup] until you hit your target or pass it.

---

<div class="post-metadata">

**Author:** ![spingears](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@spingears](https://boards.straightdope.com/u/spingears)\
**Post date:** [November 3, 2004, 2:10am UTC](https://boards.straightdope.com/t/maths-question-can-this-equation-be-solved-algebraically/272640/5 "2004-11-03T02:10:29Z")

</div>

> [@ultrafilter](#):
>
> There may be some fancy trick, but for the most part, I think you’d have to keep computing x[sup]x[/sup] until you hit your target or pass it.

Take the xth root of both sides.

Now x = xth root of 27

Solve by using a spread sheet with reasonable values of x and home in on the answer. There may be a more rigorous way to be furnished by an advance math major student.

---

<div class="post-metadata">

**Author:** ![Yeticus\_Rex](https://avatars.discourse-cdn.com/v4/letter/y/a698b9/32.png) [@Yeticus\_Rex](https://boards.straightdope.com/u/Yeticus_Rex)\
**Post date:** [November 3, 2004, 2:16am UTC](https://boards.straightdope.com/t/maths-question-can-this-equation-be-solved-algebraically/272640/6 "2004-11-03T02:16:03Z")

</div>

As a math grad, albeit a crusty and rusty one, I believe there is some substitution you can use to solve it, but since I haven’t used it in 15 years or so, I forgot it.

---

<div class="post-metadata">

**Author:** ![ftg](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ftg/32/2801_2.png) [@ftg](https://boards.straightdope.com/u/ftg)\
**Post date:** [November 3, 2004, 2:29am UTC](https://boards.straightdope.com/t/maths-question-can-this-equation-be-solved-algebraically/272640/7 "2004-11-03T02:29:43Z")

</div>

There is indeed no simple closed form. The equation that some have shown above after taking logs:

t log t = n

appears quite frequently in the analysis of algorithms in Computer Science. E.g., in this case t is time and n is input size. And expressing t in terms of n is what we really want. In Computer Science we are usually happy with “Big Oh” order notation and it turns out that the following approximation is plenty close enough for our purposes:

t ~ n / log n

Also note that if you are trying to solve this numerically, even lame old techniques such as Newton-Raphson iteration are far superior to what has been suggested so far.

---

<div class="post-metadata">

**Author:** ![Omphaloskeptic](https://avatars.discourse-cdn.com/v4/letter/o/bcef8e/32.png) [@Omphaloskeptic](https://boards.straightdope.com/u/Omphaloskeptic)\
**Post date:** [November 3, 2004, 2:38am UTC](https://boards.straightdope.com/t/maths-question-can-this-equation-be-solved-algebraically/272640/8 "2004-11-03T02:38:03Z")

</div>

It sounds like what you’re looking for is an “elementary inverse” for the function f(x)=x[sup]x[/sup]: i.e., a closed-form expression in terms of elementary functions (trigonometric and exponential functions and their inverses) for f[sup]-1/sup. (Then you could just take x = f[sup]-1/sup.) As **ftg** says, there is no such elementary inverse. The [Lambert W function](http://mathworld.wolfram.com/LambertW-Function.html) is defined as W = f[sup]-1[/sup], so if that’s implemented on your platform of choice, then you can use that.

---

<div class="post-metadata">

**Author:** ![nivlac](https://avatars.discourse-cdn.com/v4/letter/n/3bc359/32.png) [@nivlac](https://boards.straightdope.com/u/nivlac)\
**Post date:** [November 3, 2004, 5:35am UTC](https://boards.straightdope.com/t/maths-question-can-this-equation-be-solved-algebraically/272640/9 "2004-11-03T05:35:11Z")

</div>

> [@Cunctator](#):
>
> This question has come up this morning in the office and we’re stumped for an answer. Can this equation be solved algebraically?
> 
> x[sup]x[/sup]=27
> 
> One can see intuitively that x=3 and it’s also possible to solve graphically. But algebraically?

No, there’s no close-form solution. But it can be solved iteratively. Set up the function y = x[sup]x[/sup]-27 and find the root iteratively, such as with Newton’s method. To find the derivative of y, you can use implicit differentiation.

---

<div class="post-metadata">

**Author:** ![hammerbach](https://avatars.discourse-cdn.com/v4/letter/h/73ab20/32.png) [@hammerbach](https://boards.straightdope.com/u/hammerbach)\
**Post date:** [November 3, 2004, 6:37am UTC](https://boards.straightdope.com/t/maths-question-can-this-equation-be-solved-algebraically/272640/10 "2004-11-03T06:37:26Z")

</div>

I just break out my trusty K&E LogLog Duplex Decitrig… This is one of the few things still easier to do with the slipstick than a calculator (assuming you have the right sliderule and don’t require great accuracy). If you can get your hands on one of these, it can help you to understand a great deal about logarithms. It did for me.

---

<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:** [November 3, 2004, 6:46am UTC](https://boards.straightdope.com/t/maths-question-can-this-equation-be-solved-algebraically/272640/11 "2004-11-03T06:46:11Z")

</div>

> [@Cunctator](#):
>
> This question has come up this morning in the office and we’re stumped for an answer. Can this equation be solved algebraically?
> 
> x[sup]x[/sup]=27
> 
> One can see intuitively that x=3 and it’s also possible to solve graphically. But algebraically?

As a nitpick to add to the negative results, to some solething algebraically means to do so in polynomials. Taking logs automatically removes you from the algebraic realm.

---

<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:** [November 3, 2004, 6:48am UTC](https://boards.straightdope.com/t/maths-question-can-this-equation-be-solved-algebraically/272640/12 "2004-11-03T06:48:24Z")

</div>

> [@Mathochist](#):
>
> As a nitpick to add to the negative results, to some solething algebraically means to do so in polynomials. Taking logs automatically removes you from the algebraic realm.

“solve something”. Brain hurts over these damned polls.

---

<div class="post-metadata">

**Author:** ![Jinx](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Jinx](https://boards.straightdope.com/u/Jinx)\
**Post date:** [November 3, 2004, 12:37pm UTC](https://boards.straightdope.com/t/maths-question-can-this-equation-be-solved-algebraically/272640/13 "2004-11-03T12:37:46Z")

</div>

The academic convention is to blind us with algebra and logic, but guess what? They hide from us the fact that some problems are solved by iterations. One well-known method for this is Newton’s method. So, iterations have been a tool of the trade for a long time, but our “high-and-mighty” academics fail to teach us to think outside the box and there’s more than one way to skin a cat. We need to teach people such thinking because it is just as valuable when tackling problems.

- Jinx

---

<div class="post-metadata">

**Author:** ![Capt.Ridley\_s\_Shooting\_Party](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@Capt.Ridley\_s\_Shooting\_Party](https://boards.straightdope.com/u/Capt.Ridley_s_Shooting_Party)\
**Post date:** [November 3, 2004, 1:01pm UTC](https://boards.straightdope.com/t/maths-question-can-this-equation-be-solved-algebraically/272640/14 "2004-11-03T13:01:48Z")

</div>

Newton Raphson and other iterative methods are taught at AS level in the UK. They’re hardly a secret.

---

<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:** [November 3, 2004, 1:28pm UTC](https://boards.straightdope.com/t/maths-question-can-this-equation-be-solved-algebraically/272640/15 "2004-11-03T13:28:26Z")

</div>

> [@Jinx](#):
>
> The academic convention is to blind us with algebra and logic, but guess what? They hide from us the fact that some problems are solved by iterations. One well-known method for this is Newton’s method. So, iterations have been a tool of the trade for a long time, but our “high-and-mighty” academics fail to teach us to think outside the box and there’s more than one way to skin a cat. We need to teach people such thinking because it is just as valuable when tackling problems.
> 
> - Jinx

Christ, take a pill! No mathematician would say that there’s only one way to reach a correct answer (Serge Lang would say there’s only one _correct_ way to reach a correct answer and many incorrect ways). We very much teach solutions by approximation and things like Newton’s method. In fact, I’m willing to bet the OP _knows_ about such solutions, especially given the comment about solving the problem “graphically”, and is asking just if there is a closed-form solution.

There is _no vast math-wing conspiracy_.

---

<div class="post-metadata">

**Author:** ![Cunctator](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Cunctator](https://boards.straightdope.com/u/Cunctator)\
**Post date:** [November 3, 2004, 10:19pm UTC](https://boards.straightdope.com/t/maths-question-can-this-equation-be-solved-algebraically/272640/16 "2004-11-03T22:19:55Z")

</div>

Thanks for the comments everyone. It looks like iterative and graphical solutions are the only possibilities.

Sorry if I misused the term “algebraic”, **Mathochist**. It’s twenty years since I’ve studied any maths. 🙂

---

<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:** [November 3, 2004, 10:33pm UTC](https://boards.straightdope.com/t/maths-question-can-this-equation-be-solved-algebraically/272640/17 "2004-11-03T22:33:27Z")

</div>

> [@Cunctator](#):
>
> Thanks for the comments everyone. It looks like iterative and graphical solutions are the only possibilities.
> 
> Sorry if I misused the term “algebraic”, **Mathochist**. It’s twenty years since I’ve studied any maths. 🙂

As I said, it’s a nitpick. Most people wouldn’t know it, but we _are_ fighting ignorance here.

despite major setbacks…

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [November 3, 2004, 11:01pm UTC](https://boards.straightdope.com/t/maths-question-can-this-equation-be-solved-algebraically/272640/18 "2004-11-03T23:01:52Z")

</div>

> [@](#):
>
> Thanks for the comments everyone. It looks like iterative and graphical solutions are the only possibilities.

Oh, there are a number of methods. Newton-Raphson (probably the best method) is iterative, and there are surely other iterative methods, but I’m not sure I’d describe, say, the method of bisection that way. There might also be some sort of series expansion for the Lambert W function, which you could use, and which also would not be iterative.

---

<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:** [November 3, 2004, 11:04pm UTC](https://boards.straightdope.com/t/maths-question-can-this-equation-be-solved-algebraically/272640/19 "2004-11-03T23:04:54Z")

</div>

> [@Jinx](#):
>
> The academic convention is to blind us with algebra and logic, but guess what? They hide from us the fact that some problems are solved by iterations. One well-known method for this is Newton’s method. So, iterations have been a tool of the trade for a long time, but our “high-and-mighty” academics fail to teach us to think outside the box and there’s more than one way to skin a cat. We need to teach people such thinking because it is just as valuable when tackling problems.
> 
> - Jinx

Did you know that pretty much every math department across the country offers courses in numerical analysis?

---

<div class="post-metadata">

**Author:** ![Hyperelastic](https://avatars.discourse-cdn.com/v4/letter/h/a3d4f5/32.png) [@Hyperelastic](https://boards.straightdope.com/u/Hyperelastic)\
**Post date:** [November 4, 2004, 12:37am UTC](https://boards.straightdope.com/t/maths-question-can-this-equation-be-solved-algebraically/272640/20 "2004-11-04T00:37:14Z")

</div>

_x[sup]x[/sup]_ is an interesting function. It has a minimum on _x_\>0. What is the value of the minimum and where does it occur?

[Next page](https://boards.straightdope.com/t/maths-question-can-this-equation-be-solved-algebraically/272640.md?page=2)
