# 2.1: Complex Numbers

Learning Objectives

• An introduction to complex numbers.

While the fundamental signal used in electrical engineering is the sinusoid, it can be expressed mathematically in terms of an even more fundamental signal: the complex exponential. Representing sinusoids in terms of complex exponentials is not a mathematical oddity. Fluency with complex numbers and rational functions of complex variables is a critical skill all engineers master. Understanding information and power system designs and developing new systems all hinge on using complex numbers. In short, they are critical to modern electrical engineering, a realization made over a century ago.

### Definitions

The notion of the square root of -1 originated with the quadratic formula: the solution of certain quadratic equations mathematically exists only if the so-called imaginary quantity

$\sqrt{-1}$

could be defined. Euler first used i for the imaginary unit but that notation did not take hold until roughly Ampère's time. Ampère used the symbol i to denote current (intensité de current). It wasn't until the twentieth century that the importance of complex numbers to circuit theory became evident. By then, using i for current was entrenched and electrical engineers chose i for writing complex numbers.

Definition of Imaginary number

An imaginary number has the form

$ib = \sqrt{-b^{2}}$

Definition of Complex number

A complex number, z, consists of the ordered pair (a,b ), a is the real component and b is the imaginary component (the i is suppressed because the imaginary component of the pair is always in the second position). The imaginary number ib equals (0,b ). Note that a and b are real-valued numbers. Fig. 2.1.1 shows that we can locate a complex number in what we call the complex plane. Here, a, the real part, is the x-coordinate and b, the imaginary part, is the y-coordinate.

Fig. 2.1.1 A complex number is an ordered pair (a,b) that can be regarded as coordinates in the plane. They can also be expressed in polar coordinates as r⁢∠⁢θ.

From analytic geometry, we know that locations in the plane can be expressed as the sum of vectors, with the vectors corresponding to the x and y directions. Consequently, a complex number z can be expressed as the (vector) sum z=a+i⁢b where i indicates the y-coordinate. This representation is known as the Cartesian form of z. An imaginary number can't be numerically added to a real number; rather, this notation for a complex number represents vector addition, but it provides a convenient notation when we perform arithmetic manipulations.

Some obvious terminology. The real part of the complex number z=a+i⁢b, written as ℜ(⁢z), equals a. We consider the real part as a function that works by selecting that component of a complex number not multiplied by i. The imaginary part of z, ℑ⁢(z) , equals b: that part of a complex number that is multiplied by i. Again, both the real and imaginary parts of a complex number are real-valued.

The complex conjugate of z, written as

$\bar{z}$

z has the same real part as z, but an imaginary part of the opposite sign.

$z = \Re (z)+i\Im (z)\\ z = \Re (z)-i\Im (z)$

Using Cartesian notation, the following properties easily follow.

If we add two complex numbers, the real part of the result equals the sum of the real parts and the imaginary part equals the sum of the imaginary parts. This property follows from the laws of vector addition.

$a_{1}+ib_{1}+a_{2}+ib_{2} = a_{1}+a_{2}+i(b_{1}+b_{2})$

In this way, the real and imaginary parts remain separate.

The product of i and a real number is an imaginary number: ia. The product of i and an imaginary number is a real number: i(ib) = -b because i2 = -1. Consequently, multiplying a complex number by i rotates the number's position by 90 degrees.

Exercise $$\PageIndex{1}$$

Use the definition of addition to show that the real and imaginary parts can be expressed as a sum/difference of a complex number and its conjugate.

$\Re (z)= \frac{z+\bar{z}}{2}\; and\; \Im (z) = \frac{z-\bar{z}}{2i}$

Solution

$z+\bar{z} = a+ib+a-ib = 2a = 2\Re (z)\\ z-\bar{z} = a+ib-(a-ib) = 2ib = 2\left ( i,\Im (z) \right )$

Complex numbers can also be expressed in an alternate form, polar form, which we will find quite useful. Polar form arises arises from the geometric interpretation of complex numbers. The Cartesian form of a complex number can be re-written as

$a+ib = \sqrt{a^{2}+b^{2}}\left (\frac{a}{\sqrt{a^{2}+b^{2}}} + i\frac{b}{\sqrt{a^{2}+b^{2}}}\right )$

By forming a right triangle having sides a and b, we see that the real and imaginary parts correspond to the cosine and sine of the triangle's base angle. We thus obtain the polar form for complex numbers.

$z = a+ib = r\angle \theta \\ r = \left | z \right | = \sqrt{a^{2}+b^{2}}\\ a = r\cos (\theta) \\ b = r\sin (\theta ) \\ \theta = \arctan \left ( \frac{b}{a} \right )$

The quantity r is known as the magnitude of the complex number z, and is frequently written as |z| . The quantity θ is the complex number's angle. In using the arc-tangent formula to find the angle, we must take into account the quadrant in which the complex number lies.

Exercise $$\PageIndex{1}$$

Convert 3−2 ⁢i   to polar form.

Solution

To convert 3−2⁢ i   to polar form, we first locate the number in the complex plane in the fourth quadrant. The distance from the origin to the complex number is the magnitude r, which equals

$\sqrt{13} = \sqrt{3^{2}+(-2)^{2}}$

The angle equals

$-\arctan \frac{2}{3} = -0.588\: radians = -33.7^{\circ}$

$\sqrt{13}(-33.7^{\circ})$

### Euler's Formula

Surprisingly, the polar form of a complex number zzz can be expressed mathematically as

$z = re^{i\theta }$

To show this result, we use Euler's relations that express exponentials with imaginary arguments in terms of trigonometric functions.

$e^{i\theta } = \cos (\theta )+i\sin (\theta )\\ \cos (\theta ) = \frac{e^{i\theta }+e^{-(i\theta )}}{2}\\ \sin (\theta ) = \frac{e^{i\theta }-e^{-(i\theta )}}{2i}\\$

The first of these is easily derived from the Taylor's series for the exponential.

$e^{x} = 1+\frac{x}{1!}+\frac{x^{2}}{2!}+\frac{x^{3}}{3!}+....$

Substituting i⁢θ   for x, we find that

$e^{i\theta } = 1+i\frac{\theta }{1!}-\frac{\theta ^{2}}{2!}-i\frac{\theta ^{3}}{3!}+....$

because

$i^{2} = -1, \; i^{3} = -i \; and \; i^{4} = 1$

Grouping separately the real-valued terms and the imaginary-valued ones,

$e^{i\theta } = 1-\frac{\theta ^{2}}{2!}+....+i\left (\frac{\theta }{1!}-\frac{\theta ^{3}}{3!}+... \right )$

The real-valued terms correspond to the Taylor's series for cos(θ), the imaginary ones to sin(θ), and Euler's first relation results. The remaining relations are easily derived from the first. We see that multiplying the exponential in above equation by a real constant corresponds to setting the radius of the complex number to the constant.

Calculating with Complex Numbers

Adding and subtracting complex numbers expressed in Cartesian form is quite easy: You add (subtract) the real parts and imaginary parts separately.

$z_{1}\pm z_{2} = (a_{1}\pm a_{2})+i(b_{1}\pm b_{2})$

To multiply two complex numbers in Cartesian form is not quite as easy, but follows directly from following the usual rules of arithmetic.

$z_{1}z_{2} = (a_{1}+ib_{1})(a_{2}+ib_{2})\\ z_{1}z_{2} = a_{1}a_{2}-b_{1}b_{2}+i(a_{1}b_{2}+a_{2}b_{1})$

Note that we are, in a sense, multiplying two vectors to obtain another vector. Complex arithmetic provides a unique way of defining vector multiplication.

Exercise $$\PageIndex{1}$$

What is the product of a complex number and its conjugate?

Solution

$z\bar{z} = (a+ib)(a-ib) = a^{2}+b^{2}\\ z\bar{z} = r^{} = \left ( \left | z \right | \right )^{2}$

Division requires mathematical manipulation. We convert the division problem into a multiplication problem by multiplying both the numerator and denominator by the conjugate of the denominator.

$\frac{z_{1}}{z_{2}} = \frac{a_{1}+ib_{1}}{a_{2}+ib_{2}}\\ \frac{z_{1}}{z_{2}} =\frac{a_{1}+ib_{1}}{a_{2}+ib_{2}}\: \frac{a_{2}-ib_{2}}{a_{2}-ib_{2}}\\ \frac{z_{1}}{z_{2}} =\frac{(a_{1}+ib_{1})(a_{2}-ib_{2})}{a_{2}^{2}+b_{2}^{2}}\\ \frac{z_{1}}{z_{2}} =\frac{a_{1}a_{2}+b_{1}b_{2}+i(a_{2}b_{1}-a_{1}b_{2})}{a_{2}^{2}+b_{2}^{2}}$

Because the final result is so complicated, it's best to remember how to perform division—multiplying numerator and denominator by the complex conjugate of the denominator—than trying to remember the final result.

The properties of the exponential make calculating the product and ratio of two complex numbers much simpler when the numbers are expressed in polar form.

z_{1}z_{2}= \begin{align*} &= r_{1}e^{i\theta _{1}}r_{2}e^{i\theta _{2}}\\ &= r_{1}r_{2}e^{i(\theta _{1}+\theta _{2})} \end{align*}

$\frac{z_{1}}{z_{2}} = \frac{r_{1}e^{i\theta _{1}}}{r_{2}e^{i\theta _{2}}} = \frac{r_{1}}{r^{2}}e^{i(\theta _{1}-\theta _{2})}$

To multiply, the radius equals the product of the radii and the angle the sum of the angles. To divide, the radius equals the ratio of the radii and the angle the difference of the angles. When the original complex numbers are in Cartesian form, it's usually worth translating into polar form, then performing the multiplication or division (especially in the case of the latter). Addition and subtraction of polar forms amounts to converting to Cartesian form, performing the arithmetic operation, and converting back to polar form.

Exercise $$\PageIndex{1}$$

When we solve circuit problems, the crucial quantity, known as a transfer function, will always be expressed as the ratio of polynomials in the variable s=i2s=i2πf$⁢π⁢f$. What we'll need to understand the circuit's effect is the transfer function in polar form. For instance, suppose the transfer function equals

$\frac{s+2}{s^{2}+s+1}$

$s = i2\pi f$

Performing the required division is most easily accomplished by first expressing the numerator and denominator each in polar form, then calculating the ratio. Thus,

$\frac{s+2}{s^{2}+s+1} = \frac{i2\pi f+2}{-4\pi ^{2}f^{2}+i2\pi f+1}$

$\frac{s+2}{s^{2}+s+1} = \frac{\sqrt{4+4\pi ^{2}f^{2}e^{i\arctan (\pi f)}}}{\sqrt{(1-4\pi ^{2}f^{2})^{2}+4\pi ^{2}f^{2}e^{i\arctan (\frac{2\pi f}{1-4\pi ^{2}f^{2}})}}}$

$\frac{s+2}{s^{2}+s+1} = \sqrt{\frac{4+4\pi ^{2}f^{2}}{1-4\pi ^{2}f^{2}+16\pi ^{4}f^{4}}}\; e^{i\left (arctan (\pi f)- arctan (\frac{2\pi f}{1-4\pi ^{2}f^{2}}) \right )}$

### Contributor

• ContribEEOpenStax