Creating and computing functions

AI Thread Summary
The discussion revolves around the function f(x) = x^(x^x) and the quest for its inverse. Participants question whether an explicit inverse can be expressed using elementary functions and express uncertainty about its existence. To compute the inverse numerically, methods such as Newton's method and iterative approximation techniques are suggested. The rapid growth of the function is noted, indicating that only a limited range of x values may need to be checked for precision. Overall, the conversation highlights the complexity of finding an inverse for this function and the potential computational strategies available.
Georgepowell
Messages
179
Reaction score
0
for example:

f(x) = x^(x^x)

Firstly, is there already an inverse of this function that can be expressed in functions that exist?

And if there isn't, how would I go about computing it in code? Is there a better way than trial and error?
 
Mathematics news on Phys.org
So you're looking for a function g such that g(x^(x^x)) = x?

y = x^(x^x)
ln y = x^x ln x

ln ln y = ln (x^x ln x) = x ln x ln ln x.

Call me crazy, but I don't know whether there exists an explicit expression for x in terms of elementary functions.

To approximate the function in code, several options exist. All of them will boil down to iteratively building up a solution, though. Newton's method could probably be used, or, more simply, just start with 0000000000.00000000000 and, starting at the left, increase a 10's place digit until the x^x^x gets too big, go back to the previous version, and go to a lower power of 10, and continue until you have as much precision as you want. Since x^x^x will grow pretty insanely quickly, you shouldn't have to check much higher than 10.
 
AUMathTutor said:
Call me crazy, but I don't know whether there exists an explicit expression for x in terms of elementary functions.

That is what I thought

AUMathTutor said:
To approximate the function in code... Newton's method could probably be used.

What is Newton's method? A quick Google search hasn't given me anything. A link would be good.
 
Ahh, found the Wikipedia page. I didn't know it was actually called "Newtons method"!

I thought that was just what you called it as a general name.
 
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top