MathorynMathematical Formula Database

Complex Numbers

Complex Logarithm

The logarithm of a nonzero complex number has infinitely many values that differ by multiples of 2πi2\pi i; the principal value uses k=0k=0 and arg⁡z∈(−π,π]\arg z\in(-\pi,\pi]. It is used to define complex powers zw=ewln⁡zz^w=e^{w\ln z} and in complex analysis.

ln⁡z=ln⁡∣z∣+i(arg⁡z+2πk),k∈Z\ln z=\ln|z|+i\left(\arg z+2\pi k\right),\quad k\in\mathbb Z
LaTeX\ln z=\ln|z|+i\left(\arg z+2\pi k\right),\quad k\in\mathbb Z

Variables

zz
nonzero complex number
∣z∣, arg⁡z|z|,\ \arg z
modulus and argument
kk
integer (branch)

Example

Find the principal value of ln⁡(1+i)\ln(1+i).

  1. ∣1+i∣=2|1+i|=\sqrt2, so ln⁡2≈0.3466\ln\sqrt2\approx0.3466.
  2. arg⁡(1+i)=π4≈0.7854\arg(1+i)=\frac{\pi}{4}\approx0.7854.

Answer: ln⁡(1+i)≈0.3466+0.7854i\ln(1+i)\approx0.3466+0.7854i.

Related formulas