Complex number



In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted $i$, called the imaginary unit and satisfying the equation $$i^{2}= -1$$; every complex number can be expressed in the form $$a + bi$$, where $i$ and $a$ are real numbers. Because no real number satisfies the above equation, $b$ was called an imaginary number by René Descartes. For the complex number $a+bi$, $i$ is called the ', and $a$ is called the '. The set of complex numbers is denoted by either of the symbols $$\mathbb C$$ or $(a, b)$. Despite the historical nomenclature, "imaginary" complex numbers have a mathematical existence as firm as that of the real numbers, and they are fundamental tools in the scientific description of the natural world.

Complex numbers allow solutions to all polynomial equations, even those that have no solutions in real numbers. More precisely, the fundamental theorem of algebra asserts that every non-constant polynomial equation with real or complex coefficients has a solution which is a complex number. For example, the equation $$(x+1)^2 = -9$$ has no real solution, because the square of a real number cannot be negative, but has the two nonreal complex solutions $$-1+3i$$ and $$-1-3i$$.

Addition, subtraction and multiplication of complex numbers can be naturally defined by using the rule $$i^{2}=-1$$ along with the associative, commutative, and distributive laws. Every nonzero complex number has a multiplicative inverse. This makes the complex numbers a field with the real numbers as a subfield.

The complex numbers also form a real vector space of dimension two, with $$\{1,i\}$$ as a standard basis. This standard basis makes the complex numbers a Cartesian plane, called the complex plane. This allows a geometric interpretation of the complex numbers and their operations, and conversely some geometric objects and operations can be expressed in terms of complex numbers. For example, the real numbers form the real line, which is pictured as the horizontal axis of the complex plane, while real multiples of $$i$$ are the vertical axis. A complex number can also be defined by its geometric polar coordinates: the radius is called the absolute value of the complex number, while the angle from the positive real axis is called the argument of the complex number. The complex numbers of absolute value one form the unit circle. Adding a fixed complex number to all complex numbers defines a translation in the complex plane, and multiplying by a fixed complex number is a similarity centered at the origin (dilating by the absolute value, and rotating by the argument). The operation of complex conjugation is the reflection symmetry with respect to the real axis.

The complex numbers form a rich structure that is simultaneously an algebraically closed field, a commutative algebra over the reals, and a Euclidean vector space of dimension two.

Definition and basic operations


A complex number is an expression of the form $i^{2} = −1$, where $b$ and $a$ are real numbers, and $C$ is an abstract symbol, the so-called imaginary unit, whose meaning will be explained further below. For example, $a + bi$ is a complex number.

For a complex number $i$, the real number $b$ is called its real part, and the real number $a$ (not the complex number $2 + 3i$) is its imaginary part. The real part of a complex number $b$ is denoted $a + bi$, $$\mathcal{Re}(z)$$, or $$\mathfrak{R}(z)$$; the imaginary part is $bi$, $$\mathcal{Im}(z)$$, or $$\mathfrak{I}(z)$$: for example,$ \operatorname{Re}(2 + 3i) = 2  $, $$   \operatorname{Im}(2 + 3i) = 3  $$.

A complex number $z$ can be identified with the ordered pair of real numbers $$(\Re (z),\Im (z))$$, which may be interpreted as coordinates of a point in a Euclidean plane with standard coordinates, which is then called the complex plane or Argand diagram,. The horizontal axis is generally used to display the real part, with increasing values to the right, and the imaginary part marks the vertical axis, with increasing values upwards.

A real number $z$ can be regarded as a complex number $Re(z)$, whose imaginary part is 0. A purely imaginary number $Im(z)$ is a complex number $a + 0i$, whose real part is zero. As with polynomials, it is common to write $bi$, $0 + bi$, and $a + 0i = a$; for example, $0 + bi = bi$.

The set of all complex numbers is denoted by $$\Complex$$ (blackboard bold) or $a + (−b)i = a − bi$ (upright bold).

In some disciplines such as electromagnetism and electrical engineering, $z$ is used instead of $a$, as $j$ frequently represents electric current, and complex numbers are written as $3 + (−4)i = 3 − 4i$ or $C$.

Addition and subtraction


Two complex numbers $$a =x+yi$$ and $$b =u+vi$$ are added by separately adding their real and imaginary parts. That is to say:

$$a + b =(x+yi) + (u+vi) = (x+u) + (y+v)i.$$ Similarly, subtraction can be performed as $$a - b =(x+yi) - (u+vi) = (x-u) + (y-v)i.$$

The addition can be geometrically visualized as follows: the sum of two complex numbers $i$ and $i$, interpreted as points in the complex plane, is the point obtained by building a parallelogram from the three vertices $a$, and the points of the arrows labeled $b$ and $O$ (provided that they are not on a line). Equivalently, calling these points $a$, $b$, respectively and the fourth point of the parallelogram $A$ the triangles $B$ and $X$ are congruent.

Multiplication
The product of two complex numbers is computed as follows:
 * $$(a+bi) \cdot (c+di) = ac - bd + (ad+bc)i.$$

For example, $$(3+2i)(4-i) = 3 \cdot 4 - (2 \cdot (-1)) + (3 \cdot (-1) + 2 \cdot 4)i = 14 +5i.$$ In particular, this includes as a special case the fundamental formula
 * $$i^2 = i \cdot i = -1.$$

This formula distinguishes the complex number i from any real number, since the square of any (negative or positive) real number x always satisfies $$x^2 \ge 0$$.

With this definition of multiplication and addition, familiar rules for the arithmetic of rational or real numbers continue to hold for complex numbers. More precisely, the distributive property, the commutative properties (of addition and multiplication) hold. Therefore, the complex numbers form an algebraic structure known as a field, the same way as the rational or real numbers do.

Complex conjugate, absolute value and argument
The complex conjugate of the complex number $a + bj$ is defined as $$\overline z = x-yi.$$ It is also denoted by some authors by $$z^*$$. Geometrically, $OAB$ is the "reflection" of $XBA$ about the real axis. Conjugating twice gives the original complex number: $$\overline{\overline{z}}=z.$$ A complex number is real if and only if it equals its own conjugate. The unary operation of taking the complex conjugate of a complex number cannot be expressed by applying only their basic operations addition, subtraction, multiplication and division.

For any complex number $a + jb$, the product
 * $$z \cdot \overline z = (x+iy)(x-iy) = x^2 + y^2$$

is a non-negative real number. This allows to define the absolute value (or modulus or magnitude) of z to be the square root $$|z|=\sqrt{x^2+y^2}.$$ By Pythagoras' theorem, $$|z|$$ is the distance from the origin to the point representing the complex number z in the complex plane. In particular, the circle of radius one around the origin consists precisely of the numbers z such that $$|z| = 1 $$. If $$ z = x = x + 0i  $$ is a real number, then $$  |z|= |x| $$: its absolute value as a complex number and as a real number are equal.

Using the conjugate, the reciprocal of a nonzero complex number $$z = x + yi$$ can be computed to be

$$ \frac{1}{z} = \frac{\bar{z}}{z\bar{z}} = \frac{\bar{z}}{|z|^2} = \frac{x - yi}{x^2 + y^2} = \frac{x}{x^2 + y^2} - \frac{y}{x^2 + y^2}i.$$ More generally, the division of an arbitrary complex number $$w = u + vi$$ by a non-zero complex number $$z = x + yi$$ equals $$ \frac{w}{z} = \frac{w\bar{z}}{|z|^2} = \frac{(u + vi)(x - iy)}{x^2 + y^2} = \frac{ux + vy}{x^2 + y^2} + \frac{vx - uy}{x^2 + y^2}i. $$ This process is sometimes called "rationalization" of the denominator (although the denominator in the final expression might be an irrational real number), because it resembles the method to remove roots from simple expressions in a denominator.

The argument of $z$ (sometimes called the "phase" $\overline{z}$) is the angle of the radius $\overline{z}$ with the positive real axis, and is written as $z = x + yi$, expressed in radians in this article. The angle is defined only up to adding integer multiples of $$ 2\pi $$, since a rotation by $$2\pi$$ (or 360°) around the origin leaves all points in the complex plane unchanged. One possible choice to uniquely specify the argument is to require it to be within the interval $$ (-\pi,\pi]  $$, which is referred to as the principal value. The argument can be computed from the rectangular form $z$ by means of the arctan (inverse tangent) function.

Polar form


For any complex number z, with absolute value $$r = |z|$$ and argument $$\varphi$$, the equation
 * $$z=r(\cos\varphi +i\sin\varphi) $$

holds. This identity is referred to as the polar form of z. It is sometimes abbreviated as $ z = r \operatorname\mathrm{cis} \varphi $. In electronics, one represents a phasor with amplitude $φ$ and phase $r$ in angle notation: $$z = r \angle \varphi. $$

If two complex numbers are given in polar form, i.e., $z = x + yi$ and $arg z$, the product and division can be computed as $$z_1 z_2 = r_1 r_2 (\cos(\varphi_1 + \varphi_2) + i \sin(\varphi_1 + \varphi_2)).$$ $$\frac{z_1}{z_2} = \frac{r_1}{r_2} \left(\cos(\varphi_1 - \varphi_2) + i \sin(\varphi_1 - \varphi_2)\right), \text{if }z_2 \ne 0.$$ (These are a consequence of the trigonometric identities for the sine and cosine function.) In other words, the absolute values are multiplied and the arguments are added to yield the polar form of the product. The picture at the right illustrates the multiplication of $$(2+i)(3+i)=5+5i. $$ Because the real and imaginary part of $2 + i$ are equal, the argument of that number is 45 degrees, or $3 + i$ (in radian). On the other hand, it is also the sum of the angles at the origin of the red and blue triangles are arctan(1/3) and arctan(1/2), respectively. Thus, the formula $$\frac{\pi}{4} = \arctan\left(\frac{1}{2}\right) + \arctan\left(\frac{1}{3}\right) $$ holds. As the arctan function can be approximated highly efficiently, formulas like this – known as Machin-like formulas – are used for high-precision approximations of $\pi$.

Powers and roots
The n-th power of a complex number can be computed using de Moivre's formula, which is obtained by repeatedly applying the above formula for the product: $$ z^{n}=\underbrace{z \cdot \dots \cdot z}_{n \text{ factors}} = (r(\cos \varphi + i\sin \varphi ))^n = r^n \, (\cos n\varphi + i \sin n \varphi).$$ For example, the first few powers of the imaginary unit i are $$i, i^2 = -1, i^3 = -i, i^4 = 1, i^5 = i, \dots$$.

The $z$ $φ$th roots of a complex number $Oz$ are given by $$z^{1/n} = \sqrt[n]r \left( \cos \left(\frac{\varphi+2k\pi}{n}\right) + i \sin \left(\frac{\varphi+2k\pi}{n}\right)\right)$$ for $z_{1} = r_{1}(cos φ_{1} + i sin φ_{1})$. (Here $$\sqrt[n]r$$ is the usual (positive) $x + yi$th root of the positive real number $r$.) Because sine and cosine are periodic, other integer values of $φ$ do not give other values. For any $$z \ne 0$$, there are, in particular n distinct complex n-th roots. For example, there are 4 fourth roots of 1, namely
 * $$z_1 = 1, z_2 = i, z_3 = -1, z_4 = -i.$$

In general there is no natural way of distinguishing one particular complex $n$th root of a complex number. (This is in contrast to the roots of a positive real number x, which has a unique positive real n-th root, which is therefore commonly referred to as the n-th root of x.) One refers to this situation by saying that the $n$th root is a $z$-valued function of $n$.

Fundamental theorem of algebra
The fundamental theorem of algebra, of Carl Friedrich Gauss and Jean le Rond d'Alembert, states that for any complex numbers (called coefficients) $z_{2} = r_{2}(cos φ_{2} + i sin φ_{2})$, the equation $$a_n z^n + \dotsb + a_1 z + a_0 = 0$$ has at least one complex solution z, provided that at least one of the higher coefficients $5 + 5i$ is nonzero. This property does not hold for the field of rational numbers $$\Q$$ (the polynomial $π/4$ does not have a rational root, because $0 ≤ k ≤ n − 1$ is not a rational number) nor the real numbers $$\R$$ (the polynomial $a_{0}, ..., a_{n}$ does not have a real root, because the square of $r$ is positive for any real number $k$).

Because of this fact, $$\Complex$$ is called an algebraically closed field. It is a cornerstone of various applications of complex numbers, as is detailed further below. There are various proofs of this theorem, by either analytic methods such as Liouville's theorem, or topological ones such as the winding number, or a proof combining Galois theory and the fact that any real polynomial of odd degree has at least one real root.

History
The solution in radicals (without trigonometric functions) of a general cubic equation, when all three of its roots are real numbers, contains the square roots of negative numbers, a situation that cannot be rectified by factoring aided by the rational root test, if the cubic is irreducible; this is the so-called casus irreducibilis ("irreducible case"). This conundrum led Italian mathematician Gerolamo Cardano to conceive of complex numbers in around 1545 in his Ars Magna, though his understanding was rudimentary; moreover, he later described complex numbers as being "as subtle as they are useless". Cardano did use imaginary numbers, but described using them as "mental torture." This was prior to the use of the graphical complex plane. Cardano and other Italian mathematicians, notably Scipione del Ferro, in the 1500s created an algorithm for solving cubic equations which generally had one real solution and two solutions containing an imaginary number. Because they ignored the answers with the imaginary numbers, Cardano found them useless.

Work on the problem of general polynomials ultimately led to the fundamental theorem of algebra, which shows that with complex numbers, a solution exists to every polynomial equation of degree one or higher. Complex numbers thus form an algebraically closed field, where any polynomial equation has a root.

Many mathematicians contributed to the development of complex numbers. The rules for addition, subtraction, multiplication, and root extraction of complex numbers were developed by the Italian mathematician Rafael Bombelli. A more abstract formalism for the complex numbers was further developed by the Irish mathematician William Rowan Hamilton, who extended this abstraction to the theory of quaternions.

The earliest fleeting reference to square roots of negative numbers can perhaps be said to occur in the work of the Greek mathematician Hero of Alexandria in the 1st century AD, where in his Stereometrica he considered, apparently in error, the volume of an impossible frustum of a pyramid to arrive at the term $$\sqrt{81 - 144}$$ in his calculations, which today would simplify to $$\sqrt{-63} = 3i\sqrt{7}$$. Negative quantities were not conceived of in Hellenistic mathematics and Hero merely replaced it by its positive $$\sqrt{144 - 81} = 3\sqrt{7}.$$

The impetus to study complex numbers as a topic in itself first arose in the 16th century when algebraic solutions for the roots of cubic and quartic polynomials were discovered by Italian mathematicians (Niccolò Fontana Tartaglia and Gerolamo Cardano). It was soon realized (but proved much later) that these formulas, even if one were interested only in real solutions, sometimes required the manipulation of square roots of negative numbers. In fact, it was proved later that the use of complex numbers is unavoidable when all three roots are real and distinct. However, the general formula can still be used in this case, with some care to deal with the ambiguity resulting from the existence of three cubic roots for nonzero complex numbers. Rafael Bombelli was the first to address explicitly these seemingly paradoxical solutions of cubic equations and developed the rules for complex arithmetic, trying to resolve these issues.

The term "imaginary" for these quantities was coined by René Descartes in 1637, who was at pains to stress their unreal nature: "... sometimes only imaginary, that is one can imagine as many as I said in each equation, but sometimes there exists no quantity that matches that which we imagine. [... quelquefois seulement imaginaires c'est-à-dire que l'on peut toujours en imaginer autant que j'ai dit en chaque équation, mais qu'il n'y a quelquefois aucune quantité qui corresponde à celle qu'on imagine.]" A further source of confusion was that the equation $$\sqrt{-1}^2 = \sqrt{-1}\sqrt{-1} = -1$$ seemed to be capriciously inconsistent with the algebraic identity $$\sqrt{a}\sqrt{b} = \sqrt{ab}$$, which is valid for non-negative real numbers $n$ and $n$, and which was also used in complex number calculations with one of $n$, $z$ positive and the other negative. The incorrect use of this identity in the case when both $x$ and $x$ are negative, and the related identity $\frac{1}{\sqrt{a}} = \sqrt{\frac{1}{a}}$, even bedeviled Leonhard Euler. This difficulty eventually led to the convention of using the special symbol $a_{1}, ..., a_{n}$ in place of $$\sqrt{-1}$$ to guard against this mistake. Even so, Euler considered it natural to introduce students to complex numbers much earlier than we do today. In his elementary algebra text book, Elements of Algebra, he introduces these numbers almost at once and then uses them in a natural way throughout.

In the 18th century complex numbers gained wider use, as it was noticed that formal manipulation of complex expressions could be used to simplify calculations involving trigonometric functions. For instance, in 1730 Abraham de Moivre noted that the identities relating trigonometric functions of an integer multiple of an angle to powers of trigonometric functions of that angle could be re-expressed by the following de Moivre's formula:

$$(\cos \theta + i\sin \theta)^{n} = \cos n \theta + i\sin n \theta. $$

In 1748, Euler went further and obtained Euler's formula of complex analysis:

$$e ^{i\theta } = \cos \theta + i\sin \theta $$

by formally manipulating complex power series and observed that this formula could be used to reduce any trigonometric identity to much simpler exponential identities.

The idea of a complex number as a point in the complex plane (above) was first described by Danish–Norwegian mathematician Caspar Wessel in 1799, although it had been anticipated as early as 1685 in Wallis's A Treatise of Algebra.

Wessel's memoir appeared in the Proceedings of the Copenhagen Academy but went largely unnoticed. In 1806 Jean-Robert Argand independently issued a pamphlet on complex numbers and provided a rigorous proof of the fundamental theorem of algebra. Carl Friedrich Gauss had earlier published an essentially topological proof of the theorem in 1797 but expressed his doubts at the time about "the true metaphysics of the square root of &minus;1". It was not until 1831 that he overcame these doubts and published his treatise on complex numbers as points in the plane, largely establishing modern notation and terminology:

"If one formerly contemplated this subject from a false point of view and therefore found a mysterious darkness, this is in large part attributable to clumsy terminology. Had one not called +1, −1, $\sqrt{-1}$ positive, negative, or imaginary (or even impossible) units, but instead, say, direct, inverse, or lateral units, then there could scarcely have been talk of such darkness."

In the beginning of the 19th century, other mathematicians discovered independently the geometrical representation of the complex numbers: Buée, Mourey, Warren,   Français and his brother, Bellavitis.

The English mathematician G.H. Hardy remarked that Gauss was the first mathematician to use complex numbers in "a really confident and scientific way" although mathematicians such as Norwegian Niels Henrik Abel and Carl Gustav Jacob Jacobi were necessarily using them routinely before Gauss published his 1831 treatise.

Augustin-Louis Cauchy and Bernhard Riemann together brought the fundamental ideas of complex analysis to a high state of completion, commencing around 1825 in Cauchy's case.

The common terms used in the theory are chiefly due to the founders. Argand called $x^{2} − 2$ the direction factor, and $$r = \sqrt{a^2 + b^2}$$ the modulus; Cauchy (1821) called $√2$ the reduced form (l'expression réduite) and apparently introduced the term argument; Gauss used $x^{2} + 4$ for $$\sqrt{-1}$$, introduced the term complex number for $i$, and called $cos φ + i sin φ$ the norm. The expression direction coefficient, often used for $cos φ + i sin φ$, is due to Hankel (1867), and absolute value, for modulus, is due to Weierstrass.

Later classical writers on the general theory include Richard Dedekind, Otto Hölder, Felix Klein, Henri Poincaré, Hermann Schwarz, Karl Weierstrass and many others. Important work (including a systematization) in complex multivariate calculus has been started at beginning of the 20th century. Important results have been achieved by Wilhelm Wirtinger in 1927.

Abstract algebraic aspects
While the above low-level definitions, including the addition and multiplication, accurately describes the complex numbers, there are other, equivalent approaches that reveal the abstract algebraic structure of the complex numbers more immediately.

Construction as a quotient field
One approach to $$\C$$ is via polynomials, i.e., expressions of the form $$p(X) = a_nX^n+\dotsb+a_1X+a_0,$$ where the coefficients $i$ are real numbers. The set of all such polynomials is denoted by $$\R[X]$$. Since sums and products of polynomials are again polynomials, this set $$\R[X]$$ forms a commutative ring, called the polynomial ring (over the reals). To every such polynomial p, one may assign the complex number $$p(i) = a_n i^n + \dotsb + a_1 i + a_0$$, i.e., the value obtained by setting $$X = i$$. This defines a function
 * $$\R[X] \to \C$$

This function is surjective since every complex number can be obtained in such a way: the evaluation of a linear polynomial $$a+bX$$ at $$X = i$$ is $$a+bi$$. However, the evaluation of polynomial $$X^2 + 1$$ at i is 0, since $$i^2 + 1 = 0.$$ This polynomial is irreducible, i.e., cannot be written as a product of two linear polynomials. Basic facts of abstract algebra then imply that the kernel of the above map is an ideal generated by this polynomial, and that the quotient by this ideal is a field, and that there is an isomorphism
 * $$\R[X] / (X^2 + 1) \stackrel \cong \to \C$$

between the quotient ring and $$\C$$. Some authors take this as the definition of $$\C$$.

Accepting that $$\Complex$$ is algebraically closed, because it is an algebraic extension of $$\mathbb{R}$$ in this approach, $$\Complex$$ is therefore the algebraic closure of $$\R.$$

Matrix representation of complex numbers
Complex numbers $a + bi$ can also be represented by $a^{2} + b^{2}$ matrices that have the form

$$ \begin{pmatrix} a &  -b  \\ b & \;\; a \end{pmatrix}. $$ Here the entries $a$ and $b$ are real numbers. As the sum and product of two such matrices is again of this form, these matrices form a subring of the ring of $cos φ + i sin φ$ matrices.

A simple computation shows that the map $$a+ib\mapsto \begin{pmatrix} a &  -b  \\ b & \;\; a \end{pmatrix}$$ is a ring isomorphism from the field of complex numbers to the ring of these matrices, proving that these matrices form a field. This isomorphism associates the square of the absolute value of a complex number with the determinant of the corresponding matrix, and the conjugate of a complex number with the transpose of the matrix.

The geometric description of the multiplication of complex numbers can also be expressed in terms of rotation matrices by using this correspondence between complex numbers and such matrices. The action of the matrix on a vector $a_{0}, ..., a_{n}$ corresponds to the multiplication of $a + bi$ by $2 × 2$. In particular, if the determinant is $2 × 2$, there is a real number $a$ such that the matrix has the form

$$\begin{pmatrix} \cos t & - \sin t  \\ \sin t & \;\; \cos t \end{pmatrix}.$$ In this case, the action of the matrix on vectors and the multiplication by the complex number $$\cos t+i\sin t$$ are both the rotation of the angle $b$.

Complex analysis
The study of functions of a complex variable is known as complex analysis and has enormous practical use in applied mathematics as well as in other branches of mathematics. Often, the most natural proofs for statements in real analysis or even number theory employ techniques from complex analysis (see prime number theorem for an example).

Unlike real functions, which are commonly represented as two-dimensional graphs, complex functions have four-dimensional graphs and may usefully be illustrated by color-coding a three-dimensional graph to suggest four dimensions, or by animating the complex function's dynamic transformation of the complex plane.

Convergence
The notions of convergent series and continuous functions in (real) analysis have natural analogs in complex analysis. A sequence of complex numbers is said to converge if and only if its real and imaginary parts do. This is equivalent to the (ε, δ)-definition of limits, where the absolute value of real numbers is replaced by the one of complex numbers. From a more abstract point of view, $$\mathbb{C}$$, endowed with the metric $$\operatorname{d}(z_1, z_2) = |z_1 - z_2|$$ is a complete metric space, which notably includes the triangle inequality $$|z_1 + z_2| \le |z_1| + |z_2|$$ for any two complex numbers $(x, y)$ and $x + iy$.

Complex exponential
Like in real analysis, this notion of convergence is used to construct a number of elementary functions: the exponential function $a + ib$, also written $1$, is defined as the infinite series, which can be shown to converge for any z: $$\exp z:= 1+z+\frac{z^2}{2\cdot 1}+\frac{z^3}{3\cdot 2\cdot 1}+\cdots = \sum_{n=0}^{\infty} \frac{z^n}{n!}. $$ For example, $$\exp (1)$$ is Euler's constant $$e \approx 2.718$$. Euler's formula states: $$\exp(i\varphi) = \cos \varphi + i\sin \varphi $$ for any real number $a$. This formula is a quick consequence of general basic facts about convergent power series and the definitions of the involved functions as power series. As a special case, this includes Euler's identity $$\exp(i \pi) = -1. $$

Complex logarithm
For any positive real number t, there is a unique real number x such that $$\exp(x) = t$$. This leads to the definition of the natural logarithm as the inverse $$\ln \colon \R^+ \to \R ; x \mapsto \ln x $$ of the exponential function. The situation is different for complex numbers, since
 * $$\exp(z+2\pi i) = \exp z \exp (2 \pi i) = \exp z$$

by the functional equation and Euler's identity. For example, $|1| = 1$, so both $b$ and $|z/w| = |z|/|w|$ are possible values for the complex logarithm of $d(z, w) = |z − w|$.

In general, given any non-zero complex number w, any number z solving the equation
 * $$\exp z = w$$

is called a complex logarithm of $a$, denoted $$\log w$$. It can be shown that these numbers satisfy $$z = \log w = \ln|w| + i\arg w, $$ where arg is the argument defined above, and ln the (real) natural logarithm. As arg is a multivalued function, unique only up to a multiple of $d(z, w) = |z − w|$, log is also multivalued. The principal value of log is often taken by restricting the imaginary part to the interval $b$. This leads to the complex logarithm being a bijective function taking values in the strip $$\R^+ + \; i \, \left(-\pi, \pi\right]$$ (that is denoted $$S_0$$ in the above illustration) $$\ln \colon \; \Complex^\times \; \to \; \; \; \R^+ + \; i \, \left(-\pi, \pi\right] .$$

If $$z \in \Complex \setminus \left( -\R_{\ge 0} \right)$$ is not a non-positive real number (a positive or a non-real number), the resulting principal value of the complex logarithm is obtained with $(z^{2} − 1)(z − 2 − i)^{2}⁄z^{2} + 2 + 2i$. It is an analytic function outside the negative real numbers, but it cannot be prolongated to a function that is continuous at any negative real number $$z \in -\R^+ $$, where the principal value is $±1, (2 + i)$.

Complex exponentiation $z_{1}$ is defined as $$z^\omega = \exp(\omega \ln z), $$ and is multi-valued, except when $t$ is an integer. For $z_{2}$, for some natural number $t$, this recovers the non-uniqueness of $z$th roots mentioned above. If $exp z$ is real (and $w$ an arbitrary complex number), one has a preferred choice of $$\ln x$$, the real logarithm, which can be used to define a preferred exponential function.

Complex numbers, unlike real numbers, do not in general satisfy the unmodified power and logarithm identities, particularly when naïvely treated as single-valued functions; see failure of power and logarithm identities. For example, they do not satisfy $$a^{bc} = \left(a^b\right)^c.$$ Both sides of the equation are multivalued by the definition of complex exponentiation given here, and the values on the left are a subset of those on the right.

Complex sine and cosine
The series defining the real trigonometric functions sine and cosine, as well as the hyperbolic functions sinh and cosh, also carry over to complex arguments without change. For the other trigonometric and hyperbolic functions, such as tangent, things are slightly more complicated, as the defining series do not converge for all complex values. Therefore, one must define them either in terms of sine, cosine and exponential, or, equivalently, by using the method of analytic continuation.

Holomorphic functions
A function $$f: \mathbb{C}$$ → $$\mathbb{C}$$ is called holomorphic or complex differentiable at a point $$z_0$$ if the limit
 * $$\lim_{z \to z_0} {f(z) - f(z_0) \over z - z_0 }$$

exists (in which case it is denoted by $$f'(z_0)$$). This mimics the definition for real differentiable functions, except that all quantities are complex numbers. Loosely speaking, the freedom of approaching $$z_0$$ in different directions imposes a much stronger condition than being (real) differentiable. For example, the function
 * $$f(z) = \overline z$$

is differentiable as a function $$\R^2 \to \R^2$$, but is not complex differentiable. A real differentiable function is complex differentiable if and only if it satisfies the Cauchy–Riemann equations, which are sometimes abbreviated as
 * $$\frac{\partial f}{\partial \overline z} = 0.$$

Complex analysis shows some features not apparent in real analysis. For example, the identity theorem asserts that two holomorphic functions $z$ and $w$ agree if they agree on an arbitrarily small open subset of $$\mathbb{C}$$. Meromorphic functions, functions that can locally be written as $e^{z}$ with a holomorphic function $φ$, still share some of the features of holomorphic functions. Other functions have essential singularities, such as $eiπ = e3iπ = −1$ at $3iπ$.

Applications
Complex numbers have applications in many scientific areas, including signal processing, control theory, electromagnetism, fluid dynamics, quantum mechanics, cartography, and vibration analysis. Some of these applications are described below.

Complex conjugation is also employed in inversive geometry, a branch of geometry studying reflections more general than ones about a line. In the network analysis of electrical circuits, the complex conjugate is used in finding the equivalent impedance when the maximum power transfer theorem is looked for.

Shapes
Three non-collinear points $$u, v, w$$ in the plane determine the shape of the triangle $$\{u, v, w\}$$. Locating the points in the complex plane, this shape of a triangle may be expressed by complex arithmetic as $$S(u, v, w) = \frac {u - w}{u - v}. $$ The shape $$S$$ of a triangle will remain the same, when the complex plane is transformed by translation or dilation (by an affine transformation), corresponding to the intuitive notion of shape, and describing similarity. Thus each triangle $$\{u, v, w\}$$ is in a similarity class of triangles with the same shape.

Fractal geometry
The Mandelbrot set is a popular example of a fractal formed on the complex plane. It is defined by plotting every location $$c$$ where iterating the sequence $$f_c(z)=z^2+c$$ does not diverge when iterated infinitely. Similarly, Julia sets have the same rules, except where $$c$$ remains constant.

Triangles
Every triangle has a unique Steiner inellipse – an ellipse inside the triangle and tangent to the midpoints of the three sides of the triangle. The foci of a triangle's Steiner inellipse can be found as follows, according to Marden's theorem: Denote the triangle's vertices in the complex plane as $−1$, $2π$, and $−π < φ < π$. Write the cubic equation $$(x-a)(x-b)(x-c)=0$$, take its derivative, and equate the (quadratic) derivative to zero. Marden's theorem says that the solutions of this equation are the complex numbers denoting the locations of the two foci of the Steiner inellipse.

Algebraic number theory
As mentioned above, any nonconstant polynomial equation (in complex coefficients) has a solution in $$\mathbb{C}$$. A fortiori, the same is true if the equation has rational coefficients. The roots of such equations are called algebraic numbers – they are a principal object of study in algebraic number theory. Compared to $$\overline{\mathbb{Q}}$$, the algebraic closure of $$\mathbb{Q}$$, which also contains all algebraic numbers, $$\mathbb{C}$$ has the advantage of being easily understandable in geometric terms. In this way, algebraic methods can be used to study geometric questions and vice versa. With algebraic methods, more specifically applying the machinery of field theory to the number field containing roots of unity, it can be shown that it is not possible to construct a regular nonagon using only compass and straightedge – a purely geometric problem.

Another example is the Gaussian integers; that is, numbers of the form $ln z = ln(−z) + iπ$, where $iπ$ and $w$ are integers, which can be used to classify sums of squares.

Analytic number theory
Analytic number theory studies numbers, often integers or rationals, by taking advantage of the fact that they can be regarded as complex numbers, in which analytic methods can be used. This is done by encoding number-theoretic information in complex-valued functions. For example, the Riemann zeta function $z^{ω}$ is related to the distribution of prime numbers.

Improper integrals
In applied fields, complex numbers are often used to compute certain real-valued improper integrals, by means of complex-valued functions. Several methods exist to do this; see methods of contour integration.

Dynamic equations
In differential equations, it is common to first find all complex roots $(−π, π]$ of the characteristic equation of a linear differential equation or equation system and then attempt to solve the system in terms of base functions of the form $ω = 1 / n$. Likewise, in difference equations, the complex roots $ω$ of the characteristic equation of the difference equation system are used, to attempt to solve the system in terms of base functions of the form $z > 0$.

Linear algebra
Since $$\C$$ is algebraically closed, any non-empty complex square matrix has at least one (complex) eigenvalue. By comparison, real matrices do not always have real eigenvalues, for example rotation matrices (for rotations of the plane for angles other than 0° or 180°) leave no direction fixed, and therefore do not have any real eigenvalue. The existence of (complex) eigenvalues, and the ensuing existence of eigendecomposition is a useful tool for computing matrix powers and matrix exponentials.

Complex numbers often generalize concepts originally conceived in the real numbers. For example, the conjugate transpose generalizes the transpose, hermitian matrices generalize symmetric matrices, and unitary matrices generalize orthogonal matrices.

Control theory
In control theory, systems are often transformed from the time domain to the complex frequency domain using the Laplace transform. The system's zeros and poles are then analyzed in the complex plane. The root locus, Nyquist plot, and Nichols plot techniques all make use of the complex plane.

In the root locus method, it is important whether zeros and poles are in the left or right half planes, that is, have real part greater than or less than zero. If a linear, time-invariant (LTI) system has poles that are


 * in the right half plane, it will be unstable,
 * all in the left half plane, it will be stable,
 * on the imaginary axis, it will have marginal stability.

If a system has zeros in the right half plane, it is a nonminimum phase system.

Signal analysis
Complex numbers are used in signal analysis and other fields for a convenient description for periodically varying signals. For given real functions representing actual physical quantities, often in terms of sines and cosines, corresponding complex functions are considered of which the real parts are the original quantities. For a sine wave of a given frequency, the absolute value $sin(1/z)$ of the corresponding $n$ is the amplitude and the argument $f(z)/(z − z_{0})^{n}$ is the phase.

If Fourier analysis is employed to write a given real-valued signal as a sum of periodic functions, these periodic functions are often written as complex-valued functions of the form

$$x(t) = \operatorname{Re} \{X( t ) \} $$

and

$$X( t ) = A e^{i\omega t} = a e^{ i \phi } e^{i\omega t} = a e^{i (\omega t + \phi) } $$

where ω represents the angular frequency and the complex number A encodes the phase and amplitude as explained above.

This use is also extended into digital signal processing and digital image processing, which use digital versions of Fourier analysis (and wavelet analysis) to transmit, compress, restore, and otherwise process digital audio signals, still images, and video signals.

Another example, relevant to the two side bands of amplitude modulation of AM radio, is:

$$\begin{align} \cos((\omega + \alpha)t) + \cos\left((\omega - \alpha)t\right) & = \operatorname{Re}\left(e^{i(\omega + \alpha)t} + e^{i(\omega - \alpha)t}\right) \\ & = \operatorname{Re}\left(\left(e^{i\alpha t} + e^{-i\alpha t}\right) \cdot e^{i\omega t}\right) \\ & = \operatorname{Re}\left(2\cos(\alpha t) \cdot e^{i\omega t}\right) \\ & = 2 \cos(\alpha t) \cdot \operatorname{Re}\left(e^{i\omega t}\right) \\ & = 2 \cos(\alpha t) \cdot \cos\left(\omega t\right). \end{align}$$

Electromagnetism and electrical engineering
In electrical engineering, the Fourier transform is used to analyze varying voltages and currents. The treatment of resistors, capacitors, and inductors can then be unified by introducing imaginary, frequency-dependent resistances for the latter two and combining all three in a single complex number called the impedance. This approach is called phasor calculus.

In electrical engineering, the imaginary unit is denoted by $n$, to avoid confusion with $ω$, which is generally in use to denote electric current, or, more particularly, $f$, which is generally in use to denote instantaneous electric current.

Because the voltage in an AC circuit is oscillating, it can be represented as

$$ V(t) = V_0 e^{j \omega t} = V_0 \left (\cos\omega t + j \sin\omega t \right ),$$

To obtain the measurable quantity, the real part is taken:

$$ v(t) = \operatorname{Re}(V) = \operatorname{Re}\left [ V_0 e^{j \omega t} \right ] = V_0 \cos \omega t.$$

The complex-valued signal $sin(1/z)$ is called the analytic representation of the real-valued, measurable signal $z = 0$.

Fluid dynamics
In fluid dynamics, complex functions are used to describe potential flow in two dimensions.

Quantum mechanics
The complex number field is intrinsic to the mathematical formulations of quantum mechanics, where complex Hilbert spaces provide the context for one such formulation that is convenient and perhaps most standard. The original foundation formulas of quantum mechanics – the Schrödinger equation and Heisenberg's matrix mechanics – make use of complex numbers.

Relativity
In special and general relativity, some formulas for the metric on spacetime become simpler if one takes the time component of the spacetime continuum to be imaginary. (This approach is no longer standard in classical relativity, but is used in an essential way in quantum field theory.) Complex numbers are essential to spinors, which are a generalization of the tensors used in relativity.

Algebraic characterization
The field $$\Complex$$ has the following three properties: It can be shown that any field having these properties is isomorphic (as a field) to $$\Complex.$$ For example, the algebraic closure of the field $$\Q_p$$ of the $g$-adic number also satisfies these three properties, so these two fields are isomorphic (as fields, but not as topological fields). Also, $$\Complex$$ is isomorphic to the field of complex Puiseux series. However, specifying an isomorphism requires the axiom of choice. Another consequence of this algebraic characterization is that $$\Complex$$ contains many proper subfields that are isomorphic to $$\Complex$$.
 * First, it has characteristic 0. This means that $a = x_{A} + y_{A}i$ for any number of summands (all of which equal one).
 * Second, its transcendence degree over $$\Q$$, the prime field of $$\Complex,$$ is the cardinality of the continuum.
 * Third, it is algebraically closed (see above).

Characterization as a topological field
The preceding characterization of $$\Complex$$ describes only the algebraic aspects of $$\Complex.$$ That is to say, the properties of nearness and continuity, which matter in areas such as analysis and topology, are not dealt with. The following description of $$\Complex$$ as a topological field (that is, a field that is equipped with a topology, which allows the notion of convergence) does take into account the topological properties. $$\Complex$$ contains a subset $b = x_{B} + y_{B}i$ (namely the set of positive real numbers) of nonzero elements satisfying the following three conditions: Moreover, $$\Complex$$ has a nontrivial involutive automorphism $c = x_{C} + y_{C}i$ (namely the complex conjugation), such that $x + iy$ is in $ζ(s)$ for any nonzero $f$ in $$\Complex.$$
 * $f(t) = e^{rt}$ is closed under addition, multiplication and taking inverses.
 * If $x$ and $y$ are distinct elements of $f(t) = r^{t}$, then either $|z|$ or $arg z$ is in $V(t)$.
 * If $r$ is any nonempty subset of $v(t)$, then $1 + 1 + ⋯ + 1 ≠ 0$ for some $r$ in $$\Complex.$$

Any field $z$ with these properties can be endowed with a topology by taking the sets $P$ as a base, where $j$ ranges over the field and $I$ ranges over $P$. With this topology $i$ is isomorphic as a topological field to $$\Complex.$$

The only connected locally compact topological fields are $$\R$$ and $$\Complex.$$ This gives another characterization of $$\Complex$$ as a topological field, because $$\Complex$$ can be distinguished from $$\R$$ because the nonzero complex numbers are connected, while the nonzero real numbers are not.

Other number systems
The process of extending the field $$\mathbb R$$ of reals to $$\mathbb C$$ is an instance of the Cayley–Dickson construction. Applying this construction iteratively to $$\C$$ then yields the quaternions, the octonions and the sedenions. This construction turns out to diminish the structural properties of the involved number systems.

Unlike the reals, $$\Complex$$ is not an ordered field, that is to say, it is not possible to define a relation $P$ that is compatible with the addition and multiplication. In fact, in any ordered field, the square of any element is necessarily positive, so $x − y$ precludes the existence of an ordering on $$\Complex.$$ Passing from $$\C$$ to the quaternions $$\mathbb H$$ loses commutativity, while the octonions (additionally to not being commutative) fail to be associative. The reals, complex numbers, quaternions and octonions are all normed division algebras over $$\mathbb R$$. By Hurwitz's theorem they are the only ones; the sedenions, the next step in the Cayley–Dickson construction, fail to have this structure.

The Cayley–Dickson construction is closely related to the regular representation of $$\mathbb C,$$ thought of as an $$\mathbb R$$-algebra (an $$\mathbb{R}$$-vector space with a multiplication), with respect to the basis $y − x$. This means the following: the $$\mathbb R$$-linear map $$\begin{align} \mathbb{C} &\rightarrow \mathbb{C} \\ z &\mapsto wz \end{align}$$ for some fixed complex number $p$ can be represented by a $P$ matrix (once a basis has been chosen). With respect to the basis $P$, this matrix is $$\begin{pmatrix} \operatorname{Re}(w) & -\operatorname{Im}(w) \\ \operatorname{Im}(w) & \operatorname{Re}(w) \end{pmatrix},$$ that is, the one mentioned in the section on matrix representation of complex numbers above. While this is a linear representation of $$\mathbb C$$ in the 2 × 2 real matrices, it is not the only one. Any matrix $$J = \begin{pmatrix}p & q \\ r & -p \end{pmatrix}, \quad p^2 + qr + 1 = 0$$ has the property that its square is the negative of the identity matrix: $S + P = x + P$. Then $$\{ z = a I + b J : a,b \in \mathbb{R} \}$$ is also isomorphic to the field $$\mathbb C,$$ and gives an alternative complex structure on $$\mathbb R^2.$$ This is generalized by the notion of a linear complex structure.

Hypercomplex numbers also generalize $$\mathbb R,$$ $$\mathbb C,$$ $$\mathbb H,$$ and $$\mathbb{O}.$$ For example, this notion contains the split-complex numbers, which are elements of the ring $$\mathbb R[x]/(x^2-1)$$ (as opposed to $$\mathbb R[x]/(x^2+1)$$ for complex numbers). In this ring, the equation $x ↦ x*$ has four solutions.

The field $$\mathbb R$$ is the completion of $$\mathbb Q,$$ the field of rational numbers, with respect to the usual absolute value metric. Other choices of metrics on $$\mathbb Q$$ lead to the fields $$\mathbb Q_p$$ of $x$-adic numbers (for any prime number $y$), which are thereby analogous to $$\mathbb{R}$$. There are no other nontrivial ways of completing $$\mathbb Q$$ than $$\mathbb R$$ and $$\mathbb Q_p,$$ by Ostrowski's theorem. The algebraic closures $$\overline {\mathbb{Q}_p}$$ of $$\mathbb Q_p$$ still carry a norm, but (unlike $$\mathbb C$$) are not complete with respect to it. The completion $$\mathbb{C}_p$$ of $$\overline {\mathbb{Q}_p}$$ turns out to be algebraically closed. By analogy, the field is called $S$-adic complex numbers.

The fields $$\mathbb R,$$ $$\mathbb Q_p,$$ and their finite field extensions, including $$\mathbb C,$$ are called local fields.

Historical references

 * — A gentle introduction to the history of complex numbers and the beginnings of complex analysis.
 * — An advanced perspective on the historical development of the concept of number.
 * — A gentle introduction to the history of complex numbers and the beginnings of complex analysis.
 * — An advanced perspective on the historical development of the concept of number.
 * — A gentle introduction to the history of complex numbers and the beginnings of complex analysis.
 * — An advanced perspective on the historical development of the concept of number.
 * — An advanced perspective on the historical development of the concept of number.