Complex Logarithm Explained with Worked Examples

The logarithm of a non-zero complex number is , for any integer . The principal value takes with the principal argument.

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Complex logarithm means

Writing and taking logs gives . Since the argument is only defined up to multiples of , the logarithm has infinitely many values.

The principal logarithm uses . For a negative real number this gives .

It means that logs of negative numbers exist, but they are complex. It is the inverse of the complex exponential and uses the modulus and argument of the number.

This page is part of Complex numbers in Complex numbers. Topics that work alongside it: Complex exponential, Complex powers, Modulus and argument, Hyperbolic–trigonometric link, Complex sine and cosine and Conjugate product.

What is it used for?

The logarithm of a complex number has a real part ln|z| and an imaginary part equal to the argument. Negative numbers have logarithms with imaginary parts.

How to use complex logarithm

  1. Write in polar form .
  2. Take as the real part.
  3. Take as the imaginary part.
  4. For the principal value use .

Graph

ln z for z = 1 + i: real part ½ ln 2, imaginary part π/4z = 1 + i, |z| = √2, arg = π/4-1-0.500.511.522.53-1-0.500.511.522.53ln z for z = 1 + i: real part ½ ln 2, imaginary part π/4real partimaginary partGraph with x from -1 to 3 and y from -1 to 3. Shows point z = 1 + i, |z| = √2, arg = π/4 at (1, 1).

The real part of ln z is the log of the distance from the origin; the imaginary part is the angle.

Worked examples

These examples are worked by hand, step by step, so you can compare your own working.

Example 1: the log of −1

Find the principal value of .

Worked example
Answer
iπi\pi
  1. −1 has modulus 1 and argument π

Example 2: the log of 1 + i

Find the principal value of .

Worked example
Answer
12ln⁡2+iπ4\dfrac12\ln2+\dfrac{i\pi}{4}
  1. Modulus and argument
  2. Combine

Example 3: the log of −e

Find the principal value of .

Worked example
Answer
1+iπ1+i\pi
  1. Modulus e and argument π

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

ln(1 + i)

ln √2 + iπ/4

Real part 0.3466.

Imaginary part

π/4

0.7854.

ln(−1)

iπ

Imaginary part 3.1416.

k = 1 branch of ln(1 + i)

π/4 + 2π

7.0686.

Word problems

ln z = ln|z| + i(arg z + 2πk). The principal value takes k = 0. Real parts are single-valued; imaginary parts differ by multiples of 2π.

Real part

ln|1 + i| = ln √2.

  1. 0.3466
  2. Check: ✓0.3466

Imaginary part

arg(1 + i).

  1. π/4
  2. Check: ✓0.7854

ln(−1) Higher

Imaginary part π.

  1. π
  2. Check: ln(−1) = iπ ✓3.1416

Another branch Higher

k = 1: π/4 + 2π.

  1. 7.0686
  2. Check: ✓7.0686

Common mistakes

Single value

one value ✗

infinitely many ✓

+2πik.

ln of a negative undefined

undefined ✗

iπ + ln|x| ✓

Complex.

ln|z| vs ln z

same ✗

imaginary part added ✓

Argument.

Degrees

mixed ✗

radians ✓

Units.

Exam tips

  1. ln z = ln|z| + i arg z.
  2. +2πik other branches.
  3. Principal value k = 0.
  4. ln(−1) = iπ.
  5. Radians.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. Re ln(3 + 4i) = ln 5 to 4 d.p. Foundation

1.6094

2. Im ln(3 + 4i) to 4 d.p. Foundation

0.9273

3. Im ln(i) Foundation

1.5708

4. Re ln(−e) Higher

1

5. Im ln(−e) Higher

3.1416

6. Im ln(1 + i) on k = 2 to 4 d.p. Higher

13.3518

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Complex logarithm
ln
Principal value
k = 0.
Branch
Choice of k.
Multivalued
Infinitely many values.
Branch cut
Along the negative real axis.
Argument
arg z.

Frequently asked questions

What is ln z?

ln|z| + i(arg z + 2πk).

What is the principal value?

k = 0 with principal arg.

What is ln(−1)?

iπ.

Is ln z single-valued?

No, unless a branch is chosen.

Which page covers complex powers?

complex powers.

Which page covers the hyperbolic link?

hyperbolic–trigonometric link.

More in Complex numbers and the formula sheets.