Prerequisite Math: Review of Complex Numbers

Complex numbers enter this book through the characteristic equation, whose roots need not be real. What makes them usable is Euler's formula e x + i y = e x ( cos y + i sin y ) , which connects the exponential to the trigonometric functions and converts complex solutions into real ones.

Quick Reference

Item Statement
Imaginary unit i = 1 , so i 2 = 1 , i 3 = i , i 4 = 1
Euler's formula e x + i y = e x ( cos y + i sin y )
Pure imaginary case e i θ = cos θ + i sin θ
Shorthand cos y + i sin y is sometimes written cis  y
Cosine from exponentials cos x = e i x + e i x 2
Sine from exponentials sin x = e i x e i x 2 i
Conjugate a + b i = a b i
Modulus | a + b i | = a 2 + b 2 , and z z = | z | 2
Real polynomial roots Complex roots occur in conjugate pairs

Deriving Euler's Formula

To motivate the definition of e x + i y , where x and y are real numbers and i = 1 , we may proceed as follows. Using the exponential series e w = 1 + w + w 2 2 ! + with w = i y ,

\begin{aligned} e^{z} = e^{x+iy} &= e^{x}e^{iy} \\ &= e^{x}\left[1 + iy + \frac{(iy)^{2}}{2!} + \frac{(iy)^{3}}{3!} + \frac{(iy)^{4}}{4!} + \cdots\right] \\ &= e^{x}\left[\left(1 - \frac{y^{2}}{2!} + \frac{y^{4}}{4!} - \cdots\right) + i\left(y - \frac{y^{3}}{3!} + \frac{y^{5}}{5!} - \cdots\right)\right] \end{aligned}

The last step used the powers of i to separate real from imaginary terms: ( i y ) 2 = y 2 , ( i y ) 3 = i y 3 , ( i y ) 4 = y 4 , and the pattern repeats with period four. The even powers are real and alternate in sign; the odd powers are imaginary and alternate in sign.

Now recognize the Taylor series

\begin{aligned} \sin x &= x - \frac{x^{3}}{3!} + \frac{x^{5}}{5!} - \cdots \\ \cos x &= 1 - \frac{x^{2}}{2!} + \frac{x^{4}}{4!} - \cdots \end{aligned}

sitting inside the two groups. We obtain

e^{x+iy} = e^{x}\left(\cos y + i\sin y\right) \tag{i}
  • This equation, known as Euler's formula, does not merely relate quantities already defined: it defines e x + i y . Raising e to a complex power has no prior meaning, and the series computation shows this is the only definition consistent with the usual exponential.
  • For brevity, the expression in parentheses is sometimes written cis  y .

Setting x = 0 gives the most famous form, e i θ = cos θ + i sin θ , whose modulus is cos 2 θ + sin 2 θ = 1 . So e i θ traverses the unit circle as θ increases, and taking θ = π gives e i π = 1 .

Sine and Cosine as Complex Exponentials

It follows from

\begin{aligned} e^{ix} &= \cos x + i\sin x \\ e^{-ix} &= \cos x - i\sin x \end{aligned}

where the second line replaces x by x and uses cos ( x ) = cos x and sin ( x ) = sin x , that adding and subtracting give

\begin{aligned} \cos x &= \frac{e^{ix} + e^{-ix}}{2} \\ \sin x &= \frac{e^{ix} - e^{-ix}}{2i} \end{aligned} \tag{ii}

Adding the two lines cancels the sines and gives 2 cos x ; subtracting cancels the cosines and gives 2 i sin x .

Compare these with the hyperbolic definitions cosh x = e x + e x 2 and sinh x = e x e x 2 . The trigonometric and hyperbolic functions are the same construction with and without the factor i , which explains why their identities and their Laplace transforms differ only by signs.

Where This Is Used in the Book

  • Section 4.2. Complex characteristic roots α ± i β give the complex solutions e ( α ± i β ) x , which Euler's formula converts into the real pair e α x cos β x and e α x sin β x .
  • Section 4.5. Complex exponents in a Cauchy-Euler equation give x α ± i β , which becomes x α cos ( β ln x ) and x α sin ( β ln x ) after writing x i β = e i β ln x .
  • Section 5.1. Complex eigenvalues produce complex solution vectors, whose real and imaginary parts are the two real solutions.
  • Section 7.1. The transform of e i k t yields the transforms of sin k t and cos k t at once, by taking real and imaginary parts.

The pattern is the same in every case: do the computation with complex exponentials, which are easy to differentiate and integrate, then extract real and imaginary parts at the end.

Conjugates and Real Answers

The complex conjugate of z = a + b i is z = a b i . Its modulus is | z | = a 2 + b 2 , and z z = a 2 + b 2 = | z | 2 .

Two facts about conjugates are used repeatedly.

If a polynomial has real coefficients and z is a root, then z is also a root.

This is why complex characteristic roots and complex eigenvalues always appear in pairs, and why the second member of a pair never requires separate computation.

A combination A z + B z is real precisely when B = A . Equivalently, z + z = 2 Re ( z ) and z z = 2 i Im ( z ) are respectively real and purely imaginary.

This is the fact behind the substitution A = 1 2 ( c 1 i c 2 ) , B = 1 2 ( c 1 + i c 2 ) used in Section 4.2 to turn a complex general solution into a real one.

Worked Examples

Write e ( 2 + 3 i ) x in the form u ( x ) + i v ( x ) with u and v real.

Solution

By Euler's formula with the real part 2 x and the imaginary part 3 x ,

e ( 2 + 3 i ) x = e 2 x ( cos 3 x + i sin 3 x ) = e 2 x cos 3 x + i e 2 x sin 3 x .

The real and imaginary parts, e 2 x cos 3 x and e 2 x sin 3 x , are exactly the two real solutions Section 4.2 attaches to the characteristic roots 2 ± 3 i .

Simplify 1 s i k into the form A + i B with A and B real.

Solution

Multiply numerator and denominator by the conjugate of the denominator:

1 s i k = 1 s i k s + i k s + i k = s + i k s 2 ( i k ) 2 = s + i k s 2 + k 2 = s s 2 + k 2 + i k s 2 + k 2 .

The key step is ( s i k ) ( s + i k ) = s 2 i 2 k 2 = s 2 + k 2 , which is real.

This computation is exactly what produces { cos k t } and { sin k t } in Section 7.1.

Show that x i β = cos ( β ln x ) + i sin ( β ln x ) for x > 0 .

Solution

Write the power as an exponential using x = e ln x :

x i β = e ln x i β = e i β ln x ,

using ln A B = B ln A . Applying Euler's formula with θ = β ln x ,

x i β = cos ( β ln x ) + i sin ( β ln x ) .

This is the computation behind the complex case of the Cauchy-Euler equation in Section 4.5, and it explains why logarithms appear inside the trigonometric functions there.

Find the roots of r 2 6 r + 25 = 0 and write e r 1 x in real form.

Solution

By the quadratic formula,

r = 6 ± 36 100 2 = 6 ± 64 2 = 6 ± 8 i 2 = 3 ± 4 i ,

using 64 = 64 1 = 8 i .

Taking r 1 = 3 + 4 i ,

e ( 3 + 4 i ) x = e 3 x ( cos 4 x + i sin 4 x ) .

The roots are conjugates, as they must be for a real quadratic, and the two real solutions e 3 x cos 4 x and e 3 x sin 4 x are its real and imaginary parts.

Exercises

Evaluate e i π / 2 , e i π , and e 2 π i .

Solution e i π / 2 = cos π 2 + i sin π 2 = i e i π = cos π + i sin π = 1 e 2 π i = cos 2 π + i sin 2 π = 1

The last identity shows that the complex exponential is periodic with period 2 π i , a property the real exponential does not have.

Use the complex exponential forms to prove cos 2 x = 1 + cos 2 x 2 .

Solution

Squaring cos x = e i x + e i x 2 ,

cos 2 x = ( e i x + e i x ) 2 4 = e 2 i x + 2 + e 2 i x 4 ,

using e i x e i x = e 0 = 1 for the cross term. Now e 2 i x + e 2 i x = 2 cos 2 x , so

cos 2 x = 2 cos 2 x + 2 4 = 1 + cos 2 x 2 .

Every trigonometric identity can be derived this way, by reducing it to algebra with exponentials.

Given that 𝐯 = [ 1 i ] is an eigenvector for the eigenvalue 1 + i of a real matrix, write down an eigenvector for 1 i , and expand e ( 1 + i ) t 𝐯 into real and imaginary parts.

Solution

Since the matrix is real, conjugating gives the eigenvector [ 1 i ] for the eigenvalue 1 i .

Expanding,

e ( 1 + i ) t [ 1 i ] = e t ( cos t + i sin t ) [ 1 i ] = e t [ cos t + i sin t sin t i cos t ] ,

using i ( cos t + i sin t ) = i cos t + sin t .

The real part is e t [ cos t sin t ] and the imaginary part is e t [ sin t cos t ] , the two real solutions found in Section 5.1.

Frequently Asked Questions

What is Euler's formula?

The identity e x + i y = e x ( cos y + i sin y ) , and in particular e i θ = cos θ + i sin θ . It is what gives meaning to a complex exponent, and it is the bridge between exponential and trigonometric behavior.


Is Euler's formula proved or assumed?

Both, depending on the starting point. If e w for complex w is defined by its power series, the formula is a theorem, proved by the rearrangement shown above. If it is not yet defined, the formula is taken as the definition, and the series computation is what shows the definition is the only reasonable one.


Why do complex roots always come in pairs?

Because the characteristic polynomial has real coefficients. Conjugating the equation p ( z ) = 0 leaves the coefficients unchanged and turns z into z , so p ( z ) = 0 as well. The same argument applies to the eigenvalues of a real matrix.


How do complex solutions become real ones?

Take real and imaginary parts. If z ( x ) solves a linear equation with real coefficients, then so do Re z and Im z , since they are the combinations 1 2 ( z + z ) and 1 2 i ( z z ) of the two conjugate solutions. This device recurs in Sections 4.2, 4.5, 5.1, and 7.1.


Why divide by 2 i in the formula for sin x ?

Because subtracting e i x from e i x leaves 2 i sin x , so recovering sin x requires dividing by 2 i . The asymmetry with the cosine formula is real, and forgetting the i is a common slip.


What is the relationship to the hyperbolic functions?

They are the same construction without the i : cosh x = e x + e x 2 against cos x = e i x + e i x 2 . Formally, cos ( i x ) = cosh x and sin ( i x ) = i sinh x , which is why every trigonometric identity has a hyperbolic counterpart differing only in signs, and why their Laplace transforms differ only in the sign of k 2 .