Step-by-Step Solution for $x^{1/x}=2^{1/2}$ I came across the equation $$x^{1/x}=2^{1/2}$$ where $x\in\mathbb R$. One can immediately see that $x=2$ is a solution, but it is easy to miss that $x=4$ satisfies the equation as well. Verfiying that $2,4$ are solutions is not hard, but how would one go about formally solving this equation, i.e. how could one solve for $x$? I am asking because if the equation was  say $x^{1/x}=2^{1/3}$ then the two solutions would not be obvious.

Basically, how to fill in the dots:
$$x^{1/x}=2^{1/2} \iff \ldots\iff x=2 \text{ or } x=4$$
Notice 

$$x ^{1/x} = 2^{1/2} \Rightarrow x = 2^{x/2} \Rightarrow x^{2} = 2^x$$

then you may look want take a look here.
I suppose it is necessary to consider what happens when $x &lt; 0.$ There is a question of interpretation of $x^{\frac{1}{x}}$ for $x \leq 0,$ ( for example, $(-1)^{r}$ could reasonable interpreted as a non-real complex number if $r$ is an irrational positive real number, if we consider $-1$ to be $e^{i \pi}$), so I assume the function only to be defined for $x &gt;0$, where it is defined to be $e^{\frac{\log x}{x}}.$ As far as this question is concerned, it seems that the case $x &gt;0$ is the most relevant case anyway.

Note that $x &gt;0$ is a solution of $x^{\frac{1}{x}} = 2^{\frac{1}{2}}$ if and only if $\frac{\log x}{x} = \frac{\log 2}{2}.$ The derivative of $\frac{\log x}{x}$ is $\frac{ 1 - \log x}{x^{2}}$ which is positive when $x &lt;e$ and negative when $x &gt; e.$ Hence $\frac{\log x}{x}$ increases when $x &lt;e$, then decreases when $x &gt;e$, taking a maximum value when $x = e.$ The values of $\frac{ \log x}{x}$ are positive on $(1, \infty)$  and the function is differentiable on that interval.Now if $\frac{log{x}}{x} = \frac{\log{y}}{y}$ for $1 &lt; x &lt; y,$ then the derivative vanishes somewhere on $(x,y)$ by the Mean Value Theorem. Since the derivative vanishes only at $e$, we see that any value of $\frac{\log x}{x}$ can be attained at most twice. Since $\frac{\log{4}}{4} = \frac{2\log 2}{2 \times 2} = \frac{\log 2}{2},$ we see that $2$ and $4$ are the only values of $x$ for which $x^{\frac{1}{x}} = 2^{\frac{1}{2}}.$