Calculus/Complex numbers

From Wikibooks, open books for an open world
Jump to: navigation, search

In mathematics, a complex number is a number of the form

 a + bi \,

where a and b are real numbers, and i is the imaginary unit, with the property i 2 = −1. The real number a is called the real part of the complex number, and the real number b is the imaginary part. Real numbers may be considered to be complex numbers with an imaginary part of zero; that is, the real number a is equivalent to the complex number a+0i.

For example, 3 + 2i is a complex number, with real part 3 and imaginary part 2. If z = a + bi, the real part (a) is denoted Re(z), or ℜ(z), and the imaginary part (b) is denoted Im(z), or ℑ(z).

Complex numbers can be added, subtracted, multiplied, and divided like real numbers and have other elegant properties. For example, real numbers alone do not provide a solution for every polynomial algebraic equation with real coefficients, while complex numbers do (this is the fundamental theorem of algebra).

Equality[edit]

Two complex numbers are equal if and only if their real parts are equal and their imaginary parts are equal. That is, a + bi = c + di if and only if a = c and b = d.

Notation and operations[edit]

The set of all complex numbers is usually denoted by C, or in blackboard bold by \mathbb{C} (Unicode ℂ). The real numbers, R, may be regarded as "lying in" C by considering every real number as a complex: a = a + 0i.

Complex numbers are added, subtracted, and multiplied by formally applying the associative, commutative and distributive laws of algebra, together with the equation i2 = −1:

\,(a + bi) + (c + di) = (a + c) + (b + d)i
\,(a + bi) - (c + di) = (a - c) + (b - d)i
\,(a + bi)(c + di) = ac + bci + adi + bd i^2 = (ac - bd) + (bc + ad)i

Division of complex numbers can also be defined (see below). Thus, the set of complex numbers forms a field which, in contrast to the real numbers, is algebraically closed.

In mathematics, the adjective "complex" means that the field of complex numbers is the underlying number field considered, for example complex analysis, complex matrix, complex polynomial and complex Lie algebra.

The field of complex numbers[edit]

Formally, the complex numbers can be defined as ordered pairs of real numbers (a, b) together with the operations:

(a,b) + (c,d) = (a + c,b + d) \,
(a,b) \cdot (c,d) = (ac - bd,bc + ad). \,

So defined, the complex numbers form a field, the complex number field, denoted by C (a field is an algebraic structure in which addition, subtraction, multiplication, and division are defined and satisfy certain algebraic laws. For example, the real numbers form a field).

The real number a is identified with the complex number (a, 0), and in this way the field of real numbers R becomes a subfield of C. The imaginary unit i can then be defined as the complex number (0, 1), which verifies

(a, b) = a \cdot (1, 0) + b \cdot (0, 1) = a + bi \quad \text{and} \quad i^2 = (0, 1) \cdot (0, 1) = (-1, 0) = -1.

In C, we have:

  • additive identity ("zero"): (0, 0)
  • multiplicative identity ("one"): (1, 0)
  • additive inverse of (a,b): (−a, −b)
  • multiplicative inverse (reciprocal) of non-zero (a, b): \left({a\over a^2+b^2},{-b\over a^2+b^2}\right).

Since a complex number a + bi is uniquely specified by an ordered pair (a, b) of real numbers, the complex numbers are in one-to-one correspondence with points on a plane, called the complex plane.


The complex plane[edit]

A complex number z can be viewed as a point or a position vector in a two-dimensional Cartesian coordinate system called the complex plane or Argand diagram . The point and hence the complex number z can be specified by Cartesian (rectangular) coordinates. The Cartesian coordinates of the complex number are the real part x = Re(z) and the imaginary part y = Im(z). The representation of a complex number by its Cartesian coordinates is called the Cartesian form or rectangular form or algebraic form of that complex number.

Polar form[edit]

Alternatively, the complex number z can be specified by polar coordinates. The polar coordinates are r =  |z| ≥ 0, called the absolute value or modulus, and φ = arg(z), called the argument of z. For r = 0 any value of φ describes the same number. To get a unique representation, a conventional choice is to set arg(0) = 0. For r > 0 the argument φ is unique modulo 2π; that is, if any two values of the complex argument differ by an exact integer multiple of 2π, they are considered equivalent. To get a unique representation, a conventional choice is to limit φ to the interval (-π,π], i.e. −π < φ ≤ π. The representation of a complex number by its polar coordinates is called the polar form of the complex number.

Conversion from the polar form to the Cartesian form[edit]

x = r \cos \varphi
y = r \sin \varphi

Conversion from the Cartesian form to the polar form[edit]

r = \sqrt{x^2+y^2}
\varphi = 
\begin{cases}
\arctan(\frac{y}{x}) & \mbox{if } x > 0\\
\arctan(\frac{y}{x}) + \pi & \mbox{if } x < 0 \mbox{ and } y \ge 0\\
\arctan(\frac{y}{x}) - \pi & \mbox{if } x < 0 \mbox{ and } y < 0\\
+\frac{\pi}{2} & \mbox{if } x = 0 \mbox{ and } y > 0\\
-\frac{\pi}{2} & \mbox{if } x = 0 \mbox{ and } y < 0\\
\mathrm{undefined} & \mbox{if } x = 0 \mbox{ and } y = 0.
\end{cases}

The previous formula requires rather laborious case differentiations. However, many programming languages provide a variant of the arctangent function. A formula that uses the arccos function requires fewer case differentiations:

\varphi = 
\begin{cases}
+\arccos\frac{x}{r} & \mbox{if } y \geq 0 \mbox{ and } r \ne 0\\
-\arccos\frac{x}{r} & \mbox{if } y < 0\\
\mathrm{undefined} & \mbox{if } r = 0.
\end{cases}

Notation of the polar form[edit]

The notation of the polar form as

 z = r\,(\cos \varphi + i\sin \varphi )\,

is called trigonometric form. The notation cis φ is sometimes used as an abbreviation for cos φ + i sin φ. Using Euler's formula it can also be written as

 z = r\,\mathrm{e}^{i \varphi}\,,

which is called exponential form.

Multiplication, division, exponentiation, and root extraction in the polar form[edit]

Multiplication, division, exponentiation, and root extraction are much easier in the polar form than in the Cartesian form.

Using sum and difference identities its possible to obtain that

r_1\,e^{i\varphi_1} \cdot r_2\,e^{i\varphi_2} 
= r_1\,r_2\,e^{i(\varphi_1 + \varphi_2)} \,

and that

\frac{r_1\,e^{i\varphi_1}}{r_2\,e^{i\varphi_2}}
 = \frac{r_1}{r_2}\,e^{i (\varphi_1 - \varphi_2)}. \,

Exponentiation with integer exponents; according to de Moivre's formula,

\big(r\,e^{i\varphi}\big)^n = r^n\,e^{in\varphi}. \,

Exponentiation with arbitrary complex exponents is discussed in the article on exponentiation.

The addition of two complex numbers is just the addition of two vectors, and multiplication by a fixed complex number can be seen as a simultaneous rotation and stretching.

Multiplication by i corresponds to a counter-clockwise rotation by 90° (π/2 radians). The geometric content of the equation i 2 = −1 is that a sequence of two 90 degree rotations results in a 180 degree (π radians) rotation. Even the fact (−1) · (−1) = +1 from arithmetic can be understood geometrically as the combination of two 180 degree turns.

All the roots of any number, real or complex, may be found with a simple algorithm. The nth roots are given by

  \sqrt[n]{r e^{i\varphi}}=\sqrt[n]{r}\ e^{i\left(\frac{\varphi+2k\pi}{n}\right)}

for k = 0, 1, 2, …, n − 1, where \sqrt[n]{r} represents the principal nth root of r.

Absolute value, conjugation and distance[edit]

The absolute value (or modulus or magnitude) of a complex number z = r eiφ is defined as |z| = r. Algebraically, if z = a + bi, then  | z | = \sqrt{a^2+b^2}.

One can check readily that the absolute value has three important properties:

 | z | = 0 \, if and only if  z = 0 \,
 | z + w | \leq | z | + | w | \, (triangle inequality)
 | z \cdot w | = | z | \cdot | w | \,

for all complex numbers z and w. It then follows, for example, that  | 1 | = 1 and |z/w|=|z|/|w|. By defining the distance function d(z, w) = |zw| we turn the set of complex numbers into a metric space and we can therefore talk about limits and continuity.

The complex conjugate of the complex number z = a + bi is defined to be abi, written as \bar{z} or z^*\,. As seen in the figure, \bar{z} is the "reflection" of z about the real axis. The following can be checked:

\overline{z+w} = \bar{z} + \bar{w}
\overline{z\cdot w} = \bar{z}\cdot\bar{w}
\overline{(z/w)} = \bar{z}/\bar{w}
\bar{\bar{z}}=z
\bar{z}=z   if and only if z is real
|z|=|\bar{z}|
|z|^2 = z\cdot\bar{z}
z^{-1} = \bar{z}\cdot|z|^{-2}   if z is non-zero.

The latter formula is the method of choice to compute the inverse of a complex number if it is given in rectangular coordinates.

That conjugation commutes with all the algebraic operations (and many functions; e.g. \sin\bar z=\overline{\sin z}) is rooted in the ambiguity in choice of i (−1 has two square roots). It is important to note, however, that the function f(z) = \bar{z} is not complex-differentiable.

Complex fractions[edit]

We can divide a complex number (a + bi) by another complex number (c + di) ≠ 0 in two ways. The first way has already been implied: to convert both complex numbers into exponential form, from which their quotient is easily derived. The second way is to express the division as a fraction, then to multiply both numerator and denominator by the complex conjugate of the denominator. The new denominator is a real number.


\begin{align}
{a + bi \over c + di}& = {(a + bi) (c - di) \over (c + di) (c - di)} = {(ac + bd) + (bc - ad) i \over c^2 + d^2}\\ & = \left({ac + bd \over c^2 + d^2}\right) + i\left( {bc - ad \over c^2 + d^2} \right).\,
\end{align}

Matrix representation of complex numbers[edit]

While usually not useful, alternative representations of the complex field can give some insight into its nature. One particularly elegant representation interprets each complex number as a 2×2 matrix with real entries which stretches and rotates the points of the plane. Every such matrix has the form


\begin{bmatrix}
  a &   -b  \\
  b & \;\; a  
\end{bmatrix}

where a and b are real numbers. The sum and product of two such matrices is again of this form. Every non-zero matrix of this form is invertible, and its inverse is again of this form. Therefore, the matrices of this form are a field. In fact, this is exactly the field of complex numbers. Every such matrix can be written as


\begin{bmatrix}
  a &     -b  \\
  b & \;\; a  
\end{bmatrix}
=
a \begin{bmatrix}
  1 & \;\; 0  \\
  0 & \;\; 1 
\end{bmatrix}
+
b \begin{bmatrix}
  0 &     -1  \\
  1 & \;\; 0 
\end{bmatrix}

which suggests that we should identify the real number 1 with the identity matrix


\begin{bmatrix}
  1 & \;\; 0  \\
  0 & \;\; 1 
\end{bmatrix},

and the imaginary unit i with


\begin{bmatrix}
  0 &     -1  \\
  1 & \;\; 0  
\end{bmatrix},

a counter-clockwise rotation by 90 degrees. Note that the square of this latter matrix is indeed equal to the 2×2 matrix that represents −1.

The square of the absolute value of a complex number expressed as a matrix is equal to the determinant of that matrix.

 |z|^2 =
\begin{vmatrix}
  a & -b  \\
  b &  a  
\end{vmatrix}
= (a^2) - ((-b)(b)) = a^2 + b^2

If the matrix is viewed as a transformation of the plane, then the transformation rotates points through an angle equal to the argument of the complex number and scales by a factor equal to the complex number's absolute value. The conjugate of the complex number z corresponds to the transformation which rotates through the same angle as z but in the opposite direction, and scales in the same manner as z; this can be represented by the transpose of the matrix corresponding to z.

If the matrix elements are themselves complex numbers, the resulting algebra is that of the quaternions. In other words, this matrix representation is one way of expressing the Cayley-Dickson construction of algebras.