False proof of $\pi=0$ In an attempt to prove to myself that the equation $e^{i\pi} = -1$ is indeed true, I attempted to 'reverse engineer' it into a state that I already know to be true using Year 12 methods, (i.e. able to verify it in a basic calculator), but ended up with $\pi = 0$ and was wondering where I went wrong. I don't doubt it comes down to me knowing pretty much nothing about imaginary numbers other then '$i$' is defined as the square root of $-1$.
Anyway here was my attempt:
\begin{align}
  e^{i\pi} &= -1 \\
  \ln(-1) &= i\pi \\
  2 \ln(-1) &= 2i \pi, \text{ multiplied all by $2$} \\
  \ln((-1)^2) &= 2 \sqrt{-1} \pi \\
  \ln(1) &= 2 \sqrt{-1} \pi, \text{ it was at this point I realised I'd messed up} \\
  0 &= 4 \cdot -1 \cdot \pi^2, \text{ pointless squaring} \\
  0 &= -4 \cdot \pi^2 \\
  0 &= \pi
\end{align}
 A: The problem is that the (complex) logarithm isn't a function in the traditional sense. It is multi-valued. For example,
$$e^0 = 1 = e^{2\pi i}$$
so $0$ and $2\pi i$ are both values of $\ln(1)$. In fact,
$$e^x = 1 \text{ if and only if } x \in \{2\pi i n : n \in \mathbf{Z} \} = \{\dots, -4 \pi i, -2\pi i, 0, 2 \pi i, 4 \pi i, 6 \pi i, \dots \}.$$
Therefore this entire set is $\ln(1)$.
A: Here's a quick way to summarize the essence of your paradox:
$$
e^{2 \pi i} = e^0 \overset{?}\implies 2 \pi i = 0
$$
The first equation is true, the second is not. The problem is that the log is no longer uniquely defined.  If it were defined in that sense, then taking the "log of both sides" would take us from the first equation to the second.
With real numbers, we can only have $e^x = e^y$ when $x = y$. This is not true if $x$ and $y$ are complex.

Since you are learning about complex numbers for the first time, it is worth noting that for real numbers $x$, we have Eulers formula:
$$
e^{xi} = \cos(x) + i \sin (x)
$$
Notably, both cosine and sine are periodic, so this function will be periodic (over the real values of $x$) with period $2 \pi$.  For more on all this, I recommend this video (mathologer) and this video (3blue1brown).
A: The problem with complex logarithm is that it is multivalued. For instance you can say that $(-2)^3=-8$ so $log_{-2} -8=3$ but the problem is that $(-2)^{1.09284065−0.420787248i}=-8$ is also true.
A: You should be knowing that e^(npii) where n is any integer is equal to one,so that means ln(1) has multiple values ie,npii,not only 0
So you can only take the case in which it is equal,ie ln 1 equals to 2*pi*i
