17.6 Exponential and Logarithmic Functions

INTRODUCTION

In this and the next section, we shall examine the exponential, logarithmic, trigonometric, and hyperbolic functions of a complex variable z. Although the definitions of these complex functions are motivated by their real variable analogues, the properties of these complex functions will yield some surprises.

Exponential Function

Recall that in real variables the exponential function f(x) = ex has the properties

f′(x) = f(x)     and     f(x1 + x2) = f(x1)f(x2). (1)

We certainly want the definition of the complex function f(z) = ez, where z = x + iy, to reduce ex for y = 0 and to possess the same properties as in (1).

We have already used an exponential function with a pure imaginary exponent. Euler’s formula,

eiy = cos y + i sin y,     y a real number, (2)

played an important role in Section 3.3. We can formally establish the result in (2) by using the Maclaurin series for ex and replacing x by iy and rearranging terms:

Maclaurin series for cos y and sin y

For z = x + iy, it is natural to expect that

ex+iy = exeiy

and so by (2), ex+iy = ex(cos y + i sin y).

Inspired by this formal result, we make the following definition.

DEFINITION 17.6.1 Exponential Function

(3)

The exponential function ez is also denoted by the symbol exp z. Note that (3) reduces to ex when y = 0.

EXAMPLE 1 Complex Value of the Exponential Function

Evaluate e1.7+4.2i.

SOLUTION

With the identifications x = 1.7 and y = 4.2 and the aid of a calculator, we have, to four rounded decimal places,

e1.7 cos 4.2 = −2.6837     and     e1.7 sin 4.2 = −4.7710.

It follows from (3) that e1.7+4.2i = −2.6837 − 4.7710i.

The real and imaginary parts of ez, u(x, y) = ex cos y and v(x, y) = ex sin y, are continuous and have continuous first partial derivatives at every point z of the complex plane. Moreover, the Cauchy–Riemann equations are satisfied at all points of the complex plane:

It follows from Theorem 17.5.2 that f(z) = ez is analytic for all z; in other words, f is an entire function.

Properties

We shall now demonstrate that ez possesses the two desired properties given in (1). First, the derivative of f is given by (5) of Section 17.5:

f′(z) = ex cos y + i(ex sin y) = ex(cos y + i sin y) = f(z).

As desired, we have established that

Second, if z1 = x1 + iy1 and z2 = x2 + iy2, then by multiplication of complex numbers and the addition formulas of trigonometry, we obtain

In other words, (4)

It is left as an exercise to prove that

Periodicity

Unlike the real function ex, the complex function f(z) = ez is periodic with the complex period 2πi. Since e2πi = cos 2π + i sin 2π = 1 and, in view of (4), ez+2πi = eze2πi = ez for all z, it follows that f(z + 2πi) = f(z). Because of this complex periodicity, all possible functional values of f(z) = ez are assumed in any infinite horizontal strip of width 2π. Thus, if we divide the complex plane into horizontal strips defined by (2n − 1)π < y ≤ (2n + 1)π, n = 0, ±1, ±2, . . ., then, as shown in FIGURE 17.6.1, for any point z in the strip −π < yπ, the values f(z), f(z + 2πi), f(z − 2πi), f(z + 4πi), and so on, are the same. The strip −π < yπ is called the fundamental region for the exponential function f(z) = ez. The corresponding flow over the fundamental region is shown in FIGURE 17.6.2.

The horizontal axis is labeled x and the vertical axis is labeled y. The graph shows two horizontal lines intersecting the positive vertical axis at y = pi i and y = 3 pi i, and two horizontal lines intersecting the negative vertical axis at y = minus pi i and y = minus 3 pi i, respectively. A point above the first horizontal line is labeled z plus 4 pi i. A point between the first and second horizontal line is labeled z plus 2 pi i. A point between the second and fourth horizontal line but above the origin is labeled z. A point between the third and fourth horizontal lines is labeled z minus 2 pi i. The region bound by the second and third horizontal line is shaded differently.

FIGURE 17.6.1 Values of f(z) = ez at the four points are the same

A graph. The horizontal axis is labeled x and the vertical axis is labeled y. The graph shows a point on the positive vertical axis labeled pi i and a point on the negative vertical axis labeled minus pi i. The graph also shows the flow of several arrows moving in different directions in the region between pi i and minus pi i. Arrows on the negative and positive horizontal axis move rightward. In the first and the second quadrant, the outward arrows are moving anticlockwise, and in the third and the fourth quadrant, the outward arrows are moving clockwise.

FIGURE 17.6.2 Flow over the fundamental region

Polar Form of a Complex Number

In Section 17.2, we saw that the complex number z could be written in polar form as z = r(cos θ + i sin θ). Since e = cos θ + i sin θ, we can now write the polar form of a complex number as

z = re.

For example, in polar form z = 1 + i is z = .

Circuits

In applying mathematics, mathematicians and engineers often approach the same problem in completely different ways. Consider, for example, the solution of Example 10 in Section 3.8. In this example we used strictly real analysis to find the steady-state current ip(t) in an LRC-series circuit described by the differential equation

Electrical engineers often solve circuit problems such as this using complex analysis. To illustrate, let us first denote the imaginary unit by the symbol j to avoid confusion with the current i. Since current i is related to charge q by i = dq/dt, the differential equation is the same as

Moreover, the impressed voltage E0 sin γt can be replaced by Im(E0ejγt), where Im means the “imaginary part of.” Because of this last form, the method of undetermined coefficients suggests that we assume a solution in the form of a constant multiple of complex exponential—that is, ip(t) = Im(Aejγt). We substitute this expression into the last differential equation, use the fact that q is an antiderivative of i, and equate coefficients of ejγt:

The quantity Z = R + j(Lγ − 1/Cγ) is called the complex impedance of the circuit. Note that the modulus of the complex impedance, |Z| = , was denoted in Example 10 of Section 3.8 by the letter Z and called the impedance.

Now, in polar form the complex impedance is

Hence, A = E0/Z = E0/(|Z|e), and so the steady-state current can be written as

The reader is encouraged to verify that this last expression is the same as (35) in Section 3.8.

Logarithmic Function

The logarithm of a complex number z = x + iy, z ≠ 0, is defined as the inverse of the exponential function—that is,

(5)

In (5) we note that ln z is not defined for z = 0, since there is no value of w for which ew = 0. To find the real and imaginary parts of ln z , we write w = u + iv and use (3) and (5):

x + iy = eu+iv = eu(cos v + i sin v) = eu cos v + ieu sin v.

The last equality implies x = eu cos v and y = eu sin v. We can solve these two equations for u and v. First, by squaring and adding the equations, we find

where loge|z| denotes the real natural logarithm of the modulus of z. Second, to solve for v, we divide the two equations to obtain

This last equation means that v is an argument of z; that is, v = θ = arg z. But since there is no unique argument of a given complex number z = x + iy, if θ is an argument of z, then so is θ + 2, n = 0, ±1, ±2, . . . .

DEFINITION 17.6.2 Logarithm of a Complex Number

For z ≠ 0, and θ = arg z,

(6)

As is clearly indicated in (6), there are infinitely many values of the logarithm of a complex number z. This should not be any great surprise since the exponential function is periodic.

In real calculus, logarithms of negative numbers are not defined. As the next example will show, this is not the case in complex calculus.

EXAMPLE 2 Complex Values of the Logarithmic Function

Find the values of (a) ln(−2), (b) ln i, and (c) ln(−1 − i).

SOLUTION

(a) With θ = arg(−2) = π and loge|−2| = 0.6932, we have from (6)

ln(−2) = 0.6932 + i(π + 2).

(b) With θ = arg(i) = π/2 and loge|i| = loge 1 = 0, we have from (6)

In other words, ln i = πi/2, −3πi/2, 5πi/2, −7πi/2, and so on.

(c) With θ = arg(−1 − i) = 5π/4 and loge|−1 − i| = loge = 0.3466, we have from (6)

EXAMPLE 3 Solving an Exponential Equation

Find all values of z such that ez = + i.

SOLUTION

From (5), with the symbol w replaced by z, we have z = ln( + i). Now | + i | = 2 and tan θ = 1/ imply that arg( + i) = π/6, and so (6) gives

Principal Value

It is interesting to note that as a consequence of (6), the logarithm of a positive real number has many values. For example, in real calculus, loge5 has only one value: loge 5 = 1.6094, whereas in complex calculus, ln 5 = 1.6094 + 2nπi. The value of ln 5 corresponding to n = 0 is the same as the real logarithm loge 5 and is called the principal value of ln 5. Recall that in Section 17.2 we stipulated that the principal argument of a complex number, written Arg z, lies in the interval (−π, π]. In general, we define the principal value of ln z as that complex logarithm corresponding to n = 0 and θ = Arg z. To emphasize the principal value of the logarithm, we shall adopt the notation Ln z. In other words,

(7)

Since Arg z is unique, there is only one value of Ln z for each z ≠ 0.

EXAMPLE 4 Principal Values

The principal values of the logarithms in Example 2 are as follows:

(a) Since Arg(−2) = π, we need only set n = 0 in the result given in part (a) of Example 2:

Ln(−2) = 0.6932 + πi.

(b) Similarly, since Arg(i) = π/2, we set n = 0 in the result in part (b) of Example 2 to obtain

(c) In part (c) of Example 2, arg(−1 − i) = 5π/4 is not the principal argument of z = −1 − i. The argument of z that lies in the interval (−π, π] is Arg(−1 − i) = −3π/4. Hence, it follows from (7) that

Up to this point we have avoided the use of the word function for the obvious reason that ln z defined in (6) is not a function in the strictest interpretation of that word. Nonetheless, it is customary to write f(z) = ln z and to refer to f(z) = ln z by the seemingly contradictory phrase multiple-valued function. Although we shall not pursue the details, (6) can be interpreted as an infinite collection of logarithmic functions (standard meaning of the word). Each function in the collection is called a branch of ln z. The function f(z) = Ln z is then called the principal branch of ln z, or the principal logarithmic function. To minimize the confusion, we shall hereafter simply use the words logarithmic function when referring to either f(z) = ln z or f(z) = Ln z.

Some familiar properties of the logarithmic function hold in the complex case:

(8)

Equations (8) and (9) are to be interpreted in the sense that if values are assigned to two of the terms, then a correct value is assigned to the third term.

EXAMPLE 5 Properties of Logarithms

Suppose z1 = 1 and z2 = −1. Then if we take ln z1 = 2πi and ln z2 = πi, we get

Just as (7) of Section 17.2 was not valid when arg z was replaced with Arg z , so too (8) is not true, in general, when ln z is replaced by Ln z. See Problems 45 and 46 in Exercises 17.6.

Analyticity

The logarithmic function f(z) = Ln z is not continuous at z = 0 since f(0) is not defined. Moreover, f(z) = Ln z is discontinuous at all points of the negative real axis. This is because the imaginary part of the function, v = Arg z, is discontinuous only at these points. To see this, suppose x0 is a point on the negative real axis. As zx0 from the upper half-plane, Arg zπ, whereas if zx0 from the lower half-plane, then Arg z → −π. This means that f(z) = Ln z is not analytic on the nonpositive real axis. However, f(z) = Ln z is analytic throughout the domain D consisting of all the points in the complex plane except those on the nonpositive real axis. It is convenient to think of D as the complex plane from which the nonpositive real axis has been cut out. Since f(z) = Ln z is the principal branch of ln z, the nonpositive real axis is referred to as a branch cut for the function. See FIGURE 17.6.3. It is left as exercises to show that the Cauchy–Riemann equations are satisfied throughout this cut plane and that the derivative of Ln z is given by

(9)

for all z in D.

A graph. The horizontal axis is labeled x and the vertical axis is labeled y. The graph shows a horizontal line superimposed on the negative horizontal axis labeled branch cut. The four quadrants are shaded.

FIGURE 17.6.3 Branch cut for Ln z

FIGURE 17.6.4 shows w = Ln z as a flow. Note that the vector field is not continuous along the branch cut.

A graph. The horizontal axis is labeled x and the vertical axis is labeled y. The graph shows the flow of several arrows. The arrows are moving upward right in the first quadrant, upward in the second quadrant, downward in the third quadrant, and downward right in the fourth quadrant. A point on the positive vertical axis is marked i and another point on the negative vertical axis is marked minus i. Arrows on the positive vertical axis are moving upward and arrows on the negative vertical axis are moving downward.

FIGURE 17.6.4 w = Ln z as a flow

Complex Powers

Inspired by the identity xa = ea ln x in real variables, we can define complex powers of a complex number. If α is a complex number and z = x + iy, then zα is defined by

(10)

In general, zα is multiple-valued since ln z is multiple-valued. However, in the special case when α = n, n = 0, ±1, ±2, . . ., (10) is single-valued since there is only one value for z2, z3, z−1, and so on. To see that this is so, suppose α = 2 and z = re, where θ is any argument of z. Then

If we use Ln z in place of ln z, then (10) gives the principal value of zα.

EXAMPLE 6 Complex Power

Find the value of i2i.

SOLUTION

With z = i, arg z = π/2, and α = 2i , it follows from (10) that

where n = 0, ±1, ±2, . . . . Inspection of the equation shows that i2i is real for every value of n. Since π/2 is the principal argument of z = i, we obtain the principal value of i2i for n = 0. To four rounded decimal places, this principal value is i2i = eπ = 0.0432.

17.6 Exercises Answers to selected odd-numbered problems begin on page ANS-46.

In Problems 1–10, express ez in the form a + ib.

  1. z = π + πi
  2. z = 1.5 + 2i
  3. z = −0.3 + 0.5i
  4. z = 5i
  5. z = −0.23 − i

In Problems 11 and 12, express the given number in the form a + ib.

  1. e1+5πi/4e−1−πi/3

In Problems 13–16, use Definition 17.6.1 to express the given function in the form f(z) = u + iv.

  1. f(z) = eiz
  2. f(z) =
  3. f(z) =
  4. f(z) = e1/z

In Problems 17–20, verify the given result.

  1. |ez| = ex
  2. ez+πi = ezπi
  3. (ez)n = enz, n an integer
  4. Show that is nowhere analytic.
  5. (a) Use the result in Problem 15 to show that f(z) = is an entire function.

    (b) Verify that u(x, y) = Re() is a harmonic function.

In Problems 23–28, express ln z in the form a + ib.

  1. z = −5
  2. z = −ei
  3. z = −2 + 2i
  4. z = 1 + i

In Problems 29–34, express Ln z in the form a + ib.

  1. z = 6 − 6i
  2. z = −e3
  3. z = −12 + 5i
  4. z = 3 − 4i
  5. z = (1 + i)5
  6. z = (1 + i)4

In Problems 35–38, find all values of z satisfying the given equation.

  1. ez = 4i
  2. e1/z = −1
  3. ez−1 = −ie2
  4. e2z + ez + 1 = 0

In Problems 39–42, find all values of the given quantity.

  1. (−i)4i
  2. 3i/π
  3. (1 + i)(1 + i)
  4. (1 + i)3i

In Problems 43 and 44, find the principal value of the given quantity. Express answers in the form a + ib.

  1. (−1)(−2i/π)
  2. (1 − i)2i
  3. If z1 = i and z2 = −1 + i, verify that

    Ln(z1z2) ≠ Ln z1 + Ln z2.

  4. Find two complex numbers z1 and z2 such that

    Ln(z1/z2) ≠ Ln z1 − Ln z2.

  5. Determine whether the given statement is true.

    (a) Ln(−1 + i)2 = 2 Ln(−1 + i)

    (b) Ln i3 = 3 Ln i

    (c) ln i3 = 3 ln i

  6. The laws of exponents hold for complex numbers α and β:

    n an integer.

    However, the last law is not valid if n is a complex number. Verify that (ii)2 = i2i, but (i2)ii2i.

  7. For complex numbers z satisfying Re(z) > 0, show that (7) can be written as
  8. The function given in Problem 49 is analytic.

    (a) Verify that u(x, y) = loge(x2 + y2) is a harmonic function.

    (b) Verify that v(x, y) = tan−1(y/x) is a harmonic function.