# Calculus/Complex numbers

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

where are real numbers, and is the imaginary unit, with the property . The real number is called the *real part* of the complex number, and the real number is the *imaginary part*. Real numbers may be considered to be complex numbers with an imaginary part of zero; that is, the real number is equivalent to the complex number .

For example, is a *complex number*, with real part 3 and imaginary part 2. If , the real part is denoted or , and the imaginary part is denoted or .

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, if and only if and .

## Notation and operations Edit

The set of all complex numbers is usually denoted by , or in blackboard bold by (Unicode ℂ). The real numbers may be regarded as "lying in" by considering every real number as a complex: .

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

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 together with the operations:

So defined, the complex numbers form a field, the complex number field, denoted by (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 is identified with the complex number , and in this way the field of real numbers becomes a subfield of . The imaginary unit can then be defined as the complex number , which verifies

In , we have:

- additive identity ("zero"):
- multiplicative identity ("one"):
- additive inverse of :
- multiplicative inverse (reciprocal) of non-zero :

Since a complex number is uniquely specified by an ordered pair 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 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 can be specified by Cartesian (rectangular) coordinates. The Cartesian coordinates of the complex number are the real part and the imaginary part . 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 can be specified by polar coordinates. The polar coordinates are , called the **absolute value** or **modulus**, and , called the **argument** of . For any value of describes the same number. To get a unique representation, a conventional choice is to set . For the argument is unique modulo ; that is, if any two values of the complex argument differ by an exact integer multiple of , 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

### Conversion from the Cartesian form to the polar form Edit

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:

### Notation of the polar form Edit

The notation of the polar form as

is called *trigonometric form*. The notation is sometimes used as an abbreviation for . Using Euler's formula it can also be written as

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

and that

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

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 corresponds to a counter-clockwise rotation by 90° or radians. The geometric content of the equation is that a sequence of two 90° rotations results in a 180° ( radians) rotation. Even the fact from arithmetic can be understood geometrically as the combination of two 180° turns.

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

for , where represents the principal -th root of .

## Absolute value, conjugation and distance Edit

The **absolute value** (or *modulus* or *magnitude*) of a complex number is defined as .

Algebraically, if then

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

- if and only if
- (triangle inequality)

for all complex numbers . It then follows, for example, that and . By defining the **distance** function 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 is defined to be , written as or . As seen in the figure, is the "reflection" of about the real axis. The following can be checked:

- if and only if is real
- if 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.* ) is rooted in the ambiguity in choice of (−1 has two square roots). It is important to note, however, that the function is not complex-differentiable.

## Euler's formula Edit

Let's review the MacLaurin expansion of a given function :

Here, is the factorial of .

To write the Maclaurin's expansion, we are supposed to know the first derivative, second derivative, third derivative, ect. of the given function. The higher derivative we know, the more accurate the expansion is. Therefore, ideally, if we are able to know *every* derivative, then the expansion will be *absolutely* accurate. Fortunately, there are some functions that their every derivative is known: sine, cosine, and the exponential function are three examples of such a function.

The derivative of is itself, therefore every derivative of is .

The MacLaurin expansion of is:

which is valid for all real numbers, because it is always convergent.

The derivatives of are:

The 5th derivation is the same as the 1st derivation, therefore the 6th derivation is the same as the 2nd derivation, and so on.

The same is for . The 1st derivative is , the second derivative is , and so on.

The MacLaurin expansion of is:

The MacLaurin expansion of is:

which are valid for all real numbers, because they are always convergent.

But what if someone plugs in an imaginary number and calculates , where is real? That may sound ridiculous and unimaginable because an imaginary number as the exponent is not yet defined. However, if we really do this, we will get an interesting result:

The result is . This equation is called *Euler's formula*.

This is the most wonderful formula in mathematics, because the exponential function and the trigonometric functions are connected in such a way via the imaginary unit . As mentioned before, is not defined, but why not define it like this? It doesn't violate any mathematical rule, and it may show some properties of deep maths. If we plug in , the equation will become:

which is called *Euler's identity*.

Many people like to write Euler's identity as

because in this formulation, we have five of the most important mathematical constants, all in one equation, and nothing else.

By the same reasoning, we get the following identities:

and so on.

## Complex fractions Edit

We can divide a complex number by another complex number 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.

## 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

where 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

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

and the imaginary unit with

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.

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 corresponds to the transformation which rotates through the same angle as but in the opposite direction, and scales in the same manner as ; this can be represented by the transpose of the matrix corresponding to .

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.

## Exercises Edit

1) If

2) The line through 0 and *z* is **perpendicular** to the line through 0 and *w* when

3) Consider the rotation transformation Show that perpendicular lines are mapped by *T* to perpendicular lines.

4) Calculate the addition, subtraction, and multiplication of two complex numbers using matrix notation with the following: