How to solve this equation $$x^{2}=2^{x}$$
where $x \in \mathbb{R}$.
Por tentativa erro consegui descobri que $2$ é uma solução, mas não encontrei um método pra isso. Alguma sugestão?(*)
(Translation: By trying different values I've found that $2$ is a solution, but I couldn't find any method to this though. Any suggestions? )
The equation can be written $x\log2=2\log|x|$. Let's consider the function $$ f(x)=x\log2-2\log|x| $$ defined for $x\ne0$. We have easily $$ \lim_{x\to-\infty}f(x)=-\infty, \qquad \lim_{x\to\infty}f(x)=\infty $$ and $$ \lim_{x\to0}f(x)=\infty. $$ Moreover $$ f'(x)=\log2-\frac{2}{x}=\frac{x\log2-2}{x} $$ Set $\alpha=2/\log2$; then $f'(x)$ is positive for $x<0$ and for $x>\alpha$, while it's negative for $0<x<\alpha$.
Thus the function is increasing in $(-\infty,0)$, which accounts for a solution in this interval. In the interval $(0,\infty)$ the function has a minimum at $\alpha$ and $$ f(\alpha)=\frac{2}{\log2}\log2-2\log\frac{2}{\log2} =2(1-\log2+\log\log2)\approx-0.85 $$ Since the minimum is negative, this accounts for two solutions in $(0,\infty)$, which clearly are $x=2$ and $x=4$.