# The Complex Logarithm Function

Drag the blue points to see the effect of adding the complex number a to various shapes. The checkboxes show different shapes. The "before" shape is filled in, and is traced by the blue point P. The "after" shape is not filled, and is traced by P'.
This applet shows the function $\text{f(z)=ln(z)}$, the natural logarithm of z. It is the inverse of the complex exponential function. It can be computed from the polar coordinates of z: $\text{ln(r e^{i\theta}) = ln(r) + i \theta}$.[br][br]The logarithm is a multi-valued function, because the angle $\theta$ can be represented in many ways: $\theta+2\pi$ is the same angle as $\theta$, but it gives a different imaginary part for $\text{ln(z)}$. To make $\text{ln}$ single valued, choose a branch: a range for angles.