Processing math: 100%
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

B.2: The Complex Exponential

( \newcommand{\kernel}{\mathrm{null}\,}\)

Definition and Basic Properties

There are two equivalent standard definitions of the exponential, ez, of the complex number z=x+iy. For the more intuitive definition, one simply replaces the real number x in the Taylor series expansion 1 ex=n=0xnn! with the complex number z, giving

ez=n=0znn!

We instead highlight the more computationally useful definition.

Definition B.2.1

For any complex number z=x+iy, with x and y real, the exponential ez, is defined by

ex+iy = excosy+iexsiny

In particular 2, eiy = cosy+isiny.

We will not fully prove that the intuitive definition (EZ) and the computational Definition B.2.1 are equivalent. But we will do so in the special case that z=iy, with y real. Under (EZ),

eiy=1+iy+(iy)22!+(iy)33!+(iy)44!+(iy)55!+(iy)66!+

The even terms in this expansion are

1+(iy)22!+(iy)44!+(iy)66!+=1y22!+y44!y66!+=cosy

and the odd terms in this expansion are

iy+(iy)33!+(iy)55!+=i(yy33!+y55!+)=isiny

Adding the even and odd terms together gives us that, under (EZ), eiy is indeed equal to cosy+isiny. 3 It is obvious that, in the special case that z=x with x real, the definitions (EZ) and B.2.1 are equivalent. So to complete the proof of equivalence in the general case z=x+iy, it suffices to prove that ex+iy=exeiy under both (EZ) and Definition B.2.1. For Definition B.2.1, this follows from Lemma B.2.2, below. As a consequence, we have

eiπ=1

which gives an amazing linking between calculus (e), geometry (π), algebra (i) and the basic number 1.

In the next lemma we verify that the complex exponential obeys a couple of familiar computational properties.

Lemma B.2.2
  1. For any complex numbers z1 and z2,

    ez1+z2=ez1ez2

  2. For any complex number c,

    ddtect=cect

Proof
  1. For any two complex numbers z1=x1+iy1 and z2=x2+iy2, with x1, y1, x2, y2 real,

    ez1ez2=ex1(cosy1+isiny1)ex2(cosy2+isiny2)=ex1+x2(cosy1+isiny1)(cosy2+isiny2)=ex1+x2{(cosy1cosy2siny1siny2)+i(cosy1siny2+cosy2siny1)}=ex1+x2{cos(y1+y2)+isin(y1+y2)}

    by the trig identities of Appendix A.8. This says exactly that

    ez1ez2=e(x1+x2)+i(y1+y2)=ez1+z2

    and that the familiar multiplication formula also applies to complex exponentials.
  2. For any real number t and any complex number c=α+iβ, with α, β real,

    ect=eαt+iβt=eαt[cos(βt)+isin(βt)]

    so that the derivative with respect to t

    ddtect=αeαt[cos(βt)+isin(βt)]+eαt[βsin(βt)+iβcos(βt)]=(α+iβ)eαt[cos(βt)+isin(βt)]=cect

    is also the familiar one.

Relationship with sin and cos

Equation B.2.3

When θ is a real number

eiθ=cosθ+isinθeiθ=cosθisinθ=¯eiθ

are complex numbers of modulus one.

Solving for cosθ and sinθ (by adding and subtracting the two equations) gives

Equation B.2.4
cosθ=12(eiθ+eiθ)=eiθsinθ=12i(eiθeiθ)=eiθ
Example B.2.5

These formulae make it easy derive trig identities. For example,

cosθcosϕ=14(eiθ+eiθ)(eiϕ+eiϕ)=14(ei(θ+ϕ)+ei(θϕ)+ei(θ+ϕ)+ei(θ+ϕ))=14(ei(θ+ϕ)+ei(θ+ϕ)+ei(θϕ)+ei(θ+ϕ))=12(cos(θ+ϕ)+cos(θϕ))

and, using (a+b)3=a3+3a2b+3ab2+b3,

sin3θ=18i(eiθeiθ)3=18i(ei3θ3eiθ+3eiθei3θ)=3412i(eiθeiθ)1412i(ei3θei3θ)=34sinθ14sin(3θ)

and

cos(2θ)=(e2θi)=(eiθ)2=(cosθ+isinθ)2=(cos2θ+2isinθcosθsin2θ)=cos2θsin2θ

Polar Coordinates

Let z=x+iy be any complex number. Writing x and y in polar coordinates in the usual way, i.e. x=rcos(θ), y=rsin(θ), gives

x+iy=rcosθ+irsinθ=reiθ

See the figure on the left below. In particular

1=    ei0=e2πi=e2kπifor k=0,±1,±2,1=   eiπ=e3πi=e(1+2k)πifor k=0,±1,±2,i= eiπ/2=e52πi=e(12+2k)πifor k=0,±1,±2,i=eiπ/2=e32πi=e(12+2k)πifor k=0,±1,±2,

See the figure on the right below.

polar.svg        polar2.svg

The polar coordinate θ=arctanyx associated with the complex number z=x+iy, i.e. the point (x,y) in the xy-plane, is also called the argument of z.

The polar coordinate representation makes it easy to find square roots, third roots and so on. Fix any positive integer n. The nth roots of unity are, by definition, all solutions z of

zn = 1

Writing z=reiθ

rnenθi = 1e0i

The polar coordinates (r,θ) and (r,θ) represent the same point in the xy-plane if and only if r=r and θ=θ+2kπ for some integer k. So zn=1 if and only if rn=1, i.e. r=1, and nθ=2kπ for some integer k. The nth roots of unity are all the complex numbers e2πikn with k integer. There are precisely n distinct nth roots of unity because e2πikn=e2πikn if and only if 2πkn2πkn=2πkkn is an integer multiple of 2π. That is, if and only if kk is an integer multiple of n. The n distinct nth roots of unity are

1 , e2πi1n , e2πi2n , e2πi3n ,  , e2πin1n

For example, the 6th roots of unity are depicted below.

polar3.svg

Exploiting Complex Exponentials in Calculus Computations

You have learned how to evaluate integrals involving trigonometric functions by using integration by parts, various trigonometric identities and various substitutions. It is often much easier to just use (B.2.3) and (B.2.4). Part of the utility of complex numbers comes from how well they interact with calculus through the exponential function. Here are two examples.

Example B.2.6
excosx dx=12ex[eix+eix] dx=12[e(1+i)x+e(1i)x] dx=12[11+ie(1+i)x+11ie(1i)x]+C

This form of the indefinite integral looks a little weird because of the i's. While it looks complex because of the i's, it is actually purely real (and correct), because 11ie(1i)x is the complex conjugate of 11+ie(1+i)x. We can convert the indefinite integral into a more familiar form just by subbing back in e±ix=cosx±isinx, 11+i=1i(1+i)(1i)=1i2 and 11i=¯11+i=1+i2.

excosx dx=12ex[11+ieix+11ieix]+C=12ex[1i2(cosx+isinx)+1+i2(cosxisinx)]+C=12excosx+12exsinx+C

You can quickly verify this by differentiating (or by comparing with Example 1.7.11).

Example B.2.7

Evaluating the integral cosnx dx using the methods of Section 1.8 can be a real pain. It is much easier if we convert to complex exponentials. Using (a+b)4=a4+4a3b+6a2b2+4ab3+b4,

cos4x dx=124[eix+eix]4 dx=124[e4ix+4e2ix+6+4e2ix+e4ix] dx=124[14ie4ix+42ie2ix+6x+42ie2ix+14ie4ix]+C=124[1212i(e4ixe4ix)+42i(e2ixe2ix)+6x]+C=124[12sin4x+4sin2x+6x]+C=132sin4x+14sin2x+38x+C

Exploiting Complex Exponentials in Differential Equation Computations

Complex exponentials are also widely used to simplify the process of guessing solutions to ordinary differential equations. We'll start with (possibly a review of) some basic definitions and facts about differential equations.

Definition B.2.8
  1. A differential equation is an equation for an unknown function that contains the derivatives of that unknown function. For example y(t)+y(t)=0 is a differential equation for the unknown function y(t).
  2. In the differential calculus text CLP-1, we treated only derivatives of functions of one variable. Such derivatives are called ordinary derivatives. A differential equation is called an ordinary differential equation (often shortened to “ODE”) if only ordinary derivatives appear. That is, if the unknown function has only a single independent variable.

    In CLP-3 we will treat derivatives of functions of more than one variable. For example, let f(x,y) be a function of two variables. If you treat y as a constant and take the derivative of the resulting function of the single variable x, the result is called the partial derivative of f with respect to x. A differential equation is called a partial differential equation (often shortened to “PDE”) if partial derivatives appear. That is, if the unknown function has more than one independent variable. For example y(t)+y(t)=0 is an ODE while 2ut2(x,t)=c22ux2(x,t) is a PDE.

  3. The order of a differential equation is the order of the highest derivative that appears. For example y(t)+y(t)=0 is a second order ODE.
  4. An ordinary differential equation that is of the form

    a0(t)y(n)(t)+a1(t)y(n1)(t)++an(t)y(t)=F(t)

    with given coefficient functions a0(t), , an(t) and F(t) is said to be linear. Otherwise, the ODE is said to be nonlinear. For example, y(t)2+y(t)=0, y(t)y(t)+y(t)=0 and y(t)=ey(t) are all nonlinear.

  5. The ODE (B.2.1) is said to have constant coefficients if the coefficients a0(t), a1(t), , an(t) are all constants. Otherwise, it is said to have variable coefficients. For example, the ODE y(t)+7y(t)=sint is constant coefficient, while y(t)+ty(t)=sint is variable coefficient.
  6. The ODE (B.2.1) is said to be homogeneous if F(t) is identically zero. Otherwise, it is said to be inhomogeneous or nonhomogeneous. For example, the ODE y(t)+7y(t)=0 is homogeneous, while y(t)+7y(t)=sint is inhomogeneous. A homogeneous ODE always has the trivial solution y(t)=0.
  7. An initial value problem is a problem in which one is to find an unknown function y(t) that satisfies both a given ODE and given initial conditions, like y(t0)=1, y(t0)=0. Note that all of the conditions involve the function y(t) (or its derivatives) evaluated at a single time t=t0.
  8. A boundary value problem is a problem in which one is to find an unknown function y(t) that satisfies both a given ODE and given boundary conditions, like y(t0)=0, y(t1)=0. Note that the conditions involve the function y(t) (or its derivatives) evaluated at two different times.

The following theorem gives the form of solutions to the linear 4 ODE (B.2.1).

Theorem B.2.9

Assume that the coefficients a0(t), a1(t), , an1(t), an(t) and F(t) are continuous functions and that a0(t) is not zero.

  1. The general solution to the linear ODE (B.2.1) is of the form

    y(t)=yp(t)+C1y1(t)+C2y2(t)++Cnyn(t)

    where

    • n is the order of (B.2.1)
    • yp(t) is any solution to (B.2.1)
    • C1, C2, , Cn are arbitrary constants
    • y1, y2, , yn are n independent solutions to the homogenous equation

      a0(t)y(n)(t)+a1(t)y(n1)(t)++an1(t)y(t)+an(t)y(t)=0

      associated to (B.2.1). “Independent” just means that no yi can be written as a linear combination of the other yj's. For example, y1(t) cannot be expressed in the form b2y2(t)++bnyn(t).

    In (B.2.2), yp is called the “particular solution” and C1y1(t)+C2y2(t)++Cnyn(t) is called the “complementary solution”.

  2. Given any constants b0, , bn1 there is exactly one function y(t) that obeys the ODE (B.2.1) and the initial conditions

    y(0)=b0y(0)=b1y(n1)(0)=bn1

In the following example we'll derive one widely used linear constant coefficient ODE.

Example B.2.10 RLC circuit

As an example of how ODE's arise, we consider the RLC circuit, which is the electrical circuit consisting of a resistor of resistance R, a coil (or solenoid) of inductance L, a capacitor of capacitance C and a voltage source arranged in series, as shown below. Here R, L and C are all nonnegative constants.

RLC.svg

We're going to think of the voltage x(t) as an input signal, and the voltage y(t) as an output signal. The goal is to determine the output signal produced by a given input signal. If i(t) is the current flowing at time t in the loop as shown and q(t) is the charge on the capacitor, then the voltages across R, L and C, respectively, at time t are Ri(t), Ldidt(t) and y(t)=q(t)C. By the Kirchhoff's law 5 that says that the voltage between any two points has to be independent of the path used to travel between the two points, these three voltages must add up to x(t) so that

Ri(t)+Ldidt(t)+q(t)C=x(t)

Assuming that R, L, C and x(t) are known, this is still one differential equation in two unknowns, the current i(t) and the charge q(t). Fortunately, there is a relationship between the two. Because the current entering the capacitor is the rate of change of the charge on the capacitor

i(t)=dqdt(t)=Cy(t)

This just says that the capacitor cannot create or destroy charge on its own; all charging of the capacitor must come from the current. Substituting (B.2.4) into (B.2.3) gives

LCy(t)+RCy(t)+y(t)=x(t)

which is a second order linear constant coefficient ODE. As a concrete example, we'll take an ac voltage source and choose the origin of time so that x(0)=0, x(t)=E0sin(ωt). Then the differential equation becomes

LCy(t)+RCy(t)+y(t)=E0sin(ωt)

Finally, here are two examples in which we use complex exponentials to solve an ODE.

Example B.2.11

By Theorem B.2.9(a), the general solution to the ordinary differential equation

y(t)+4y(t)+5y(t)=0

is of the form C1u1(t)+C2u2(t) with u1(t) and u2(t) being two (independent) solutions to (ODE) and with C1 and C2 being arbitrary constants. The easiest way to find u1(t) and u2(t) is to guess them. And the easiest way to guess them is to try 6 The reason that y(t)=ert is a good guess is that, with this guess, all of y(t), y(t) and y(t) are constants times ert. So the left hand side of the differential equation is also a constant, that depends on r, times ert. So we just have to choose r so that the constant is zero. y(t)=ert, with r being a constant to be determined. Substituting y(t)=ert into (ODE) gives

r2ert+4rert+5ert=0(r2+4r+5)ert=0r2+4r+5=0

This quadratic equation for r can be solved either by using the high school formula or by completing the square.

r2+4r+5=0(r+2)2+1=0(r+2)2=1r+2=±ir=2±i

So the general solution to (ODE) is

y(t)=C1e(2+i)t+C2e(2i)t

This is one way to write the general solution, but there are many others. In particular there are quite a few people in the world who are (foolishly) afraid 7 Embracing the complexity leads to simplicity. of complex exponentials. We can hide them by using (B.2.3) and (B.2.4).

y(t)=C1e(2+i)t+C2e(2i)t=C1e2teit+C2e2teit=C1e2t(cost+isint)+C2e2t(costisint)=(C1+C2)e2tcost+(iC1iC2)e2tsint=D1e2tcost+D2e2tsint

with D1=C1+C2 and D2=iC1iC2 being two other arbitrary constants. Don't make the mistake of thinking that D2 must be complex because i appears in the formula D2=iC1iC2 relating D2 and C1,C2. No one said that C1 and C2 are real numbers. In fact, in typical applications, the arbitrary constants are determined by initial conditions and often D1 and D2 turn out to be real and C1 and C2 turn out to be complex. For example, the initial conditions y(0)=0, y(0)=2 force

0=y(0)=C1+C22=y(0)=(2+i)C1+(2i)C2

The first equation gives C2=C1 and then the second equation gives

(2+i)C1(2i)C1=22iC1=2iC1=1C1=i, C2=i

and

D1=C1+C2=0D2=iC1iC2=2

Example B.2.12

We shall now guess one solution (i.e. a particular solution) to the differential equation

y(t)+2y(t)+3y(t)=cost

Equations like this arise, for example, in the study of the RLC circuit. We shall simplify the computation by exploiting that cost=eit. First, we shall guess a function Y(t) obeying

Y+2Y+3Y=eit

Then, taking complex conjugates gives

ˉY+2ˉY+3ˉY=eit

which we shall call (¯ODE2). Then, adding 12(ODE2) and 12(¯ODE2) together will give

(Y)+2(Y)+3(Y)=eit=cost

which shows that Y(t) is a solution to (ODE1). Let's try Y(t)=Aeit, with A a constant to be determined. This is a solution of (ODE2) if and only if

d2dt2(Aeit)+2ddt(Aeit)+3Aeit=eit(i2+2i+3)Aeit=eitA=12+2i

So eit2+2i is a solution to (ODE2) and eit2+2i is a solution to (ODE1). To simplify this, write 2+2i in polar coordinates. From the sketch below we have 2+2i=22eiπ4.

polar4.svg

So

eit2+2i=eit22eiπ4=122ei(tπ4)eit2+2i=122ei(tπ4)=122cos(tπ4)


This page titled B.2: The Complex Exponential is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Joel Feldman, Andrew Rechnitzer and Elyse Yeager via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?