I recently came across the problem: $$x^{x^{x^{.^{.^.}}}}={^\infty x}=2$$ My approach was to take logs of both sides: $$\ln{2}=\ln{^\infty x}$$ and therefore: $$\begin{eqnarray*}\ln{2}&=&x\ln{^\infty x}\\ & = & x\ln{2}\end{eqnarray*}$$ which would imply that $x=1$. Clearly this is not true, and I have seen many other ways of doing it which produce the correct answer of $\sqrt2$.
Is my mistake that you can't use logarithms as normal when dealing with infinitely stacked powers? If not where else have I gone wrong?
Thanks for any help :)
Parentheses can be tricky
It is important how you set the parentheses! I think you mean: $$x^{\Big( x^{\big(x^{({{{\dots}}})}\big)} \Big)} = 2.$$ So according to these parentheses you get $$\ln\left(\color{red}{x}^{\color{blue}{\Big( x^{\big(x^{({{{\dots}}})}\big)} \Big)}}\right) = \ln(2 )$$ Now by applying the rule $\ln(\color{red}{a}^{\color{blue}{b}}) = \color{blue}b\ln(\color{red}{a})$ we conclude $$ \color{blue}{x^{\Big( x^{\big(x^{({{{\dots}}})}\big)} \Big)}} \ln(\color{red}{x}) = \ln(2) $$ after substitution with you initial assumption you obtain $$2 \ln(x) = \ln(2)$$ This leads to $x=\sqrt{2}$ after some easy manipulations.
More formal Level
To take this to a more formal level you are regarding the recursive sequence $$x_{n+1} = x^{x_n} \quad\text{with}\quad x_1 = x \quad\text{for some}\quad x \in \mathbb{R}^{+}$$ However, if you set the parentheses like $$\bigg(\Big(\big(x^x\big)^x\Big)^{x}\bigg)^{\dots}$$ then you have another recursive sequence: $$x_{n+1} = (x_{n})^x \quad\text{with}\quad x_1 = x \quad\text{for some}\quad x \in \mathbb{R}^{+}$$ If you want to solve $\lim_{n\to\infty} x_n = 2$ for the second recursion, you will come to $$2 = \lim_{n\to\infty} x_n = \lim_{n\to\infty} x_{n+1} = \lim_{n\to\infty} (x_n)^x = \big(\lim_{n\to\infty} x_n \big)^x = 2^x$$ and then you conclude $x=1$ but only if there is a solution for this problem you know that it must be $1$. So this doesn't mean that there is a solution!
There are three cases for your starting point $x$
Now as you can see the sequence can either have $0,1$ or $+\infty$ as a limit.