Today, I was playing with numbers and I found this: $$\begin{align} \ln(1) = 0 \Rightarrow \ln((-1)^2) = 0 \Rightarrow 2\ln(-1) = 0 \Rightarrow 2\pi i = 0 \Rightarrow \boxed{i = 0} \end{align}$$
Apart from this I found another proof: $$\begin{align} \ln(1) = 0 \Rightarrow \ln(e^{2\pi i}) = 0 \Rightarrow 2\pi i = 0 \Rightarrow \boxed{i = 0} \end{align}$$
This obviously is not true and I myself don't know what's the flaw in this proof. Any help/hint is appreciated
Edit : My guess is that I am treating $i$ as a variable rather $i = \sqrt{-1}$. Is this logic correct?
Thanks
The rule $\log(a^x)=x\log a$ only applies when $a>0$, so even if we stay in the context of the real numbers, the first argument is flawed.
We can extend the definition of exponentiation to the complex numbers by defining $e^z$ as its Taylor series. By Euler's formula, $e^{z+2k\pi i}=e^z$ for all $k\in\Bbb{Z}$ . Hence, the function $e^z$ is periodic and so is not invertible. This makes defining $\log$ tricky. There are number of different approaches; for example, we could "restrict the domain of $e^z$", i.e. define $\log$ as the inverse of the function $f:\{z:-\pi<\Im(z)\le\pi\}\mapsto\Bbb{C}$ given by $f(z)=e^z$. If $\log$ is defined this way, then $\log(e^z)=z$ is only true when $-\pi<\Im(z)\le\pi$. This is analogous to how, in the real numbers, $\arcsin(\sin (x))=x$ is only true when $-\pi/2\le x\le\pi/2$.