So I was looking through the homepage of Youtube to see if there were any math equations that I thought that I might be able to solve when I came across this video by Cipher which proposed the following question:$$\text{Prove that }\pi=2i\ln\left(\dfrac{1-i}{1+i}\right)$$which I thought that I might be able to do. Here is my attempt at proving the aforementioned statement:$$\pi=2i\ln\left(\dfrac{1-i}{1+i}\right)$$$$\arctan(z)=\dfrac{1}{2i}\ln\left(\dfrac{1+iz}{1-iz}\right)$$$$\arctan(1)=\dfrac{1}{2i}\ln\left(\dfrac{1+i}{1-i}\right)$$$$\dfrac\pi4=\dfrac{1}{2i}\ln\left(\dfrac{1+i}{1-i}\right)$$$$\dfrac\pi4=-\dfrac{1}{2i}\ln\left(\dfrac{1-i}{1+i}\right)$$$$\pi=2i\ln\left(\dfrac{1-i}{1+i}\right)$$Now, all we need to do is prove that$$\arctan(z)=\dfrac{1}{2i}\ln\left(\dfrac{1+iz}{1-iz}\right)$$Let us have$$\arctan(z)=\dfrac{e^{i\theta}-e^{-i\theta}}{i(e^{i\theta}+e^{-i\theta})}$$Or$$\arctan(z)=\dfrac{-ie^{i\theta}+ie^{-i\theta}}{e^{i\theta}+e^{-i\theta}}$$$$\dfrac{e^{i\theta}+e^{-i\theta}}{e^{i\theta}-e^{-i\theta}}=\dfrac{1}{iz}$$$$\dfrac{(e^{i\theta}+e^{-i\theta})+(e^{i\theta}-e^{-i\theta})}{(e^{i\theta}-e^{-i\theta})-(e^{i\theta}+e^{-i\theta})}=\dfrac{1+iz}{1-iz}$$$$\dfrac{2e^{i\theta}}{2e^{-i\theta}}=\dfrac{1+iz}{1-iz}$$$$e^{2i\theta}=\dfrac{1+iz}{1-iz}$$$$2i\theta=\ln\left(\dfrac{1+iz}{1-iz}\right)$$$$\theta=\dfrac{1}{2i}\ln\left(\dfrac{1+iz}{1-iz}\right)$$$$\therefore\arctan(z)=\dfrac{1}{2i}\ln\left(\dfrac{1+iz}{1-iz}\right)$$$$\therefore\pi=\dfrac{1}{2i}\ln\left(\dfrac{1+i}{1-i}\right)$$
$$\mathbf{\text{My question}}$$
Is my proof correct, or what could I add to/do to change my proof to make it correct?
$$\mathbf{\text{Stuff that I could have messed up}}$$
- Fraction simplification
- The last quarter of my proof (since this was sort of a sketchy part of the proof for me)