Skip to content
Tutorials Center
My learning

Topics

Lesson 18 of 36 · Elementary Functions

Complex Powers and Inverse Trigonometric Functions

Define z^c as exp(c log z), compute surprising values such as i^i, see how many values a power has, and derive inverse sine and cosine with the logarithm.

With the exponential and the logarithm in hand, we can raise a complex number to any complex power, and invert the trigonometric functions. Both constructions hide a logarithm, so both inherit its many values.

Complex powers

For z ≠ 0 and any complex c, define

Text
z^c = e^(c log z)

Because log z is multi-valued, so is z^c: replacing log z by log z + 2πik multiplies the result by e^(2πikc). The principal value uses Log z: z^c = e^(c Log z).

How many values does z^c have?

  • c an integer n: e^(2πikn) = 1, so just one value, the ordinary power.
  • c = p/q rational in lowest terms: exactly q values. This is the q-th root lesson in disguise. For example z^(1/2) has two values, ±√z.
  • c irrational or non-real: infinitely many values, because the factors e^(2πikc) are all different.

Worked example 1: 1^(1/3) = e^((1/3) · 2πik) = e^(2πik/3), the three cube roots of unity, as in the lesson on roots.

Worked example 2: i^i. We have log i = i(π/2 + 2πk), so i^i = e^(i · i(π/2 + 2πk)) = e^(-π/2 - 2πk). All the values are real and positive! The principal value, with k = 0, is e^(-π/2) ≈ 0.2079.

Worked example 3: (-1)^(i). log(-1) = i(π + 2πk), so (-1)^i = e^(i · i(π + 2πk)) = e^(-π - 2πk), again real, with principal value e^(-π).

Worked example 4: 2^i = e^(i ln 2) = cos(ln 2) + i sin(ln 2): positive real base 2 and the principal log gives a point on the unit circle.

Python Values of z^c

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Each i^i value is real; the middle one (k = 0) is the principal value that Python reports. For (-8)^(1/3) all three cube roots have modulus 2, and each cubes back to -8 up to rounding.

Properties and cautions

For a fixed branch of log z (so z^c is single-valued and analytic on the cut plane):

Text
d/dz z^c = c z^(c-1)

The product rule (zw)^c = z^c w^c and the rule (z^a)^b = z^(ab) can fail with principal values, just like the logarithm rules. For example ((-1)^2)^(1/2) = 1 but (-1)^(2 · 1/2) = (-1)^1 = -1. When in doubt, go back to e^(c log z) and track every branch.

Also be careful with the notation e^z: it is the exponential function (a single value), although it can be viewed as e^c with base e and exponent z; the single-valued reading uses the real ln e = 1.

Inverse trigonometric functions

Because sin z and cos z are periodic and complex-valued onto the whole plane, their inverses are multi-valued and expressible with logs. Solve w = sin z for z. Let t = e^(iz):

Text
w = (t - 1/t)/(2i)    →    t² - 2iw t - 1 = 0    →    t = iw + √(1 - w²)

(the square root being two-valued), and z = -i log t:

Text
arcsin w = -i log( iw + √(1 - w²) )

Similarly

Text
arccos w = -i log( w + i√(1 - w²) )
arctan w = (1/(2i)) log( (1 + iw)/(1 - iw) )     (w ≠ ±i)

Pick the principal logarithm and principal square root to get the principal values (arcsin w then takes real parts in [-π/2, π/2], with details on the cuts (-∞, -1] and [1, ∞)).

Example: arcsin 2. 1 - w² = -3, so √(1 - 4) = i√3 (principal). Then iw + i√3 = i(2 + √3), and Log(i(2 + √3)) = ln(2 + √3) + iπ/2. Hence arcsin 2 = -i ln(2 + √3) + π/2, which is π/2 - i ln(2 + √3). This matches the solution of sin z = 2 from the lesson on complex trigonometry. (NumPy and cmath choose a branch on the cut [1, ∞) by a convention, so you may see the conjugate value π/2 + i ln(2 + √3); both are correct inverses.)

Python Inverse sine from the logarithm

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

For w = 0.5 the formula gives the familiar real number π/6 ≈ 0.5236. For w = 2 or w = -2 the result is complex, and sin(formula) returns the starting w, which is the only property that must hold. Where the formula and the library differ, they differ by the branch choice on a cut, not by a mistake: check by taking sin of both.

The important habit: when a formula involves log, √ or a non-integer power, ask "which branch?" before comparing two answers.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. How is z^c defined for complex c?

    We write z = e^(log z) and use the exponential law, so z^c = e^(c log z).
  2. 2. What are the values of i^i?

    log i = i(π/2 + 2πk), so i^i = e^(i · i(π/2 + 2πk)) = e^(-π/2 - 2πk).
  3. 3. How many values does z^(2/3) have for z ≠ 0?

    For a rational exponent p/q in lowest terms there are exactly q values; here q = 3.
  4. 4. Which formula expresses arcsin w using the logarithm?

    Solving w = sin z with t = e^(iz) gives t = iw + √(1 - w²) and z = -i log t.

Summary

  • z^c = e^(c log z) is multi-valued: one value for integer c, q values for c = p/q, infinitely many otherwise.
  • i^i = e^(-π/2 - 2πk); all values are real, and the principal one is about 0.2079.
  • The rules (zw)^c = z^c w^c and (z^a)^b = z^(ab) can fail on principal values.
  • Inverse trigonometric functions are logarithms: arcsin w = -i log(iw + √(1 - w²)), and similar formulas for arccos and arctan.

Next: Complex Line Integrals