The complex numbers are an extension of the real numbers, in which all nonconstant polynomials have roots. The complex numbers contain the imaginary unit i, with . Every complex number can be represented in the form a + ib, where a and b are real numbers called the real part and the imaginary part of the complex number, respectively.
The sum and product of two complex numbers are:
Complex numbers were first introduced in connection with explicit formulas for the roots of cubic polynomials. In mathematics, the term "complex" when used as an adjective means that the field of complex numbers is the underlying number field considered, for example complex matrix, complex polynomial and complex Lie algebra.
History of complex numbers
The earliest fleeting reference to square roots of negative numbers occurred in the work of the Greek mathematician and inventor Heron of Alexandria in the 1st century AD, when he considered the volume of an impossible frustum of a pyramid. They became more prominent when in the 16th century closed formulas for the roots of third and fourth degree polynomials were discovered by Italian mathematicians (see Niccolo Fontana Tartaglia, Gerolamo Cardano). It was soon realized that these formulas, even if one was only interested in real solutions, sometimes required the manipulation of square roots of negative numbers. This was doubly unsettling since not even negative numbers were considered to be on firm ground at the time. The term "imaginary" for these quantities was coined by René Descartes in the 17th century and was meant to be derogatory. (See imaginary number for a discussion of the "reality" of complex numbers.) The 18th century saw the labors of Abraham de Moivre and Leonhard Euler. To De Moivre is due (1730) the wellknown formula which bears his name, de Moivre's formula:
and to Euler (1748) Euler's formula of complex analysis:
The existence of complex numbers was not completely accepted until the geometrical interpretation (see below) had been described by Caspar Wessel in 1799; it was rediscovered several years later and popularized by Carl Friedrich Gauss, and as a result the theory of complex numbers received a notable expansion. The idea of the graphic representation of complex numbers had appeared, however, as early as 1685, in Wallis's De Algebra tractatus.
Wessel's memoir appeared in the Proceedings of the Copenhagen Academy for 1799, and is exceedingly clear and complete, even in comparison with modern works. He also considers the sphere, and gives a quaternion theory from which he develops a complete spherical trigonometry. In 1804 the Abbé Buée independently came upon the same idea which Wallis had suggested, that should represent a unit line, and its negative, perpendicular to the real axis. Buée 's paper was not published until 1806, in which year JeanRobert Argand also issued a pamphlet on the same subject. It is to Argand's essay that the scientific foundation for the graphic representation of complex numbers is now generally referred. Nevertheless, in 1831 Gauss found the theory quite unknown, and in 1832 published his chief memoir on the subject, thus bringing it prominently before the mathematical world. Mention should also be made of an excellent little treatise by Mourey (1828), in which the foundations for the theory of directional numbers are scientifically laid. The general acceptance of the theory is not a little due to the labors of Augustin Louis Cauchy and Niels Henrik Abel, and especially the latter, who was the first to boldly use complex numbers with a success that is well known.
The common terms used in the theory are chiefly due to the founders. Argand called cosφ + i * sinφ the direction factor, and the modulus; Cauchy (1828) called cosφ + i * sinφ the reduced form (l'expression réduite); Gauss used i for , introduced the term complex number for a + bi, and called a^{2} + b^{2} 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.
Following Cauchy and Gauss have come a number of contributors of high rank, of whom the following may be especially mentioned: Kummer (1844), Leopold Kronecker (1845), Scheffler (1845, 1851, 1880), Bellavitis (1835, 1852), Peacock (1845), and De Morgan (1849). Möbius must also be mentioned for his numerous memoirs on the geometric applications of complex numbers, and Dirichlet for the expansion of the theory to include primes, congruences, reciprocity, etc., as in the case of real numbers.
Other types have been studied, besides the familiar a + bi, in which i is the root of x^{2} + 1 = 0. Thus Ferdinand Eisenstein has studied the type a + bj, j being a complex root of x^{3}  1 = 0. Similarly, complex types have been derived from x^{k}  1 = 0 (k prime). This generalization is largely due to Kummer, to whom is also due the theory of ideal numbers, which has recently been simplified by Felix Klein (1893) from the point of view of geometry. A further complex theory is due to Evariste Galois, the basis being the imaginary roots of an irreducible congruence,
 (mod p, a prime).
The late writers (from 1884) on the general theory include Weierstrass, Schwarz , Richard Dedekind, Otto Hölder, Berloty , Henri Poincaré, Eduard Study, and Macfarlane.
The formally correct definition using pairs of real numbers was given in the 19th century.
Definition
Formally we may define complex numbers as ordered pairs of real numbers (a, b) together with the operations:
So defined, the complex numbers form a field, the complex number field, denoted by C (or in blackboard bold).
We identify the real number a 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 is the complex number (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 of nonzero (a,b):
C could also be defined as the topological closure of algebraic numbers and the algebraic closure of R.
Geometry
A complex number can also be viewed as a point or a position vector on the two dimensional Cartesian coordinate system. This representation is called the complex plane or Argand diagram. In the figure, we have
The latter expression is sometimes shorthanded as r cis φ, where r = z is called the absolute value of z and φ = arg(z) is called the complex argument of z. However, Euler's formula states that e^{i φ} = cisφ. The exponential form gives us a better insight than the shorthand rcisφ, which is almost never used in serious mathematical articles. By simple trigonometric identities, we see that
and that
Now the addition of two complex numbers is just the vector addition of two vectors, and the multiplication with a fixed complex number can be seen as a simultaneous rotation and stretching.
Multiplication with i corresponds to a counter clockwise rotation by 90 degrees. The geometric content of the equation i^{2} = 1 is that a sequence of two 90 degree rotation results in a 180 degree rotation. Even the fact (1) · (1) = +1 from arithmetic can be understood geometrically as the combination of two 180 degree turns.
Absolute value, conjugation and distance
Recall that the absolute value (or modulus or magnitude) of a complex number z = r e^{iφ} is defined as z = r. Algebraically, if z = a + ib, then z = √(a² + b² ).
One can check readily that the absolute value has three important properties:
for all complex numbers z and w. By defining the distance function d(z, w) = z  w we turn the complex numbers into a metric space and we can therefore talk about limits and continuity. The addition, subtraction, multiplication and division of complex numbers are then continuous operations. Unless anything else is said, this is always the metric being used on the complex numbers.
The complex conjugate of the complex number z = a + ib is defined to be a  ib, written as or z^{*}. As seen in the figure, is the "reflection" of z about the real axis. The following can be checked:
 if and only if z is real
 if z is nonzero.
The latter formula is the method of choice to compute the inverse of a complex number if it is given in rectangular coordinates.
That conjugate commutes with all the algebraic operations (and many functions; e.g. ) is rooted in the ambiguity in choice of i (1 has two square roots); note, however, that conjugate is not differentiable (see holomorphic).
The complex argument of z=re^{iφ} is φ. Note that the complex argument is unique modulo 2π, that is, any two values of the complex argument differ by an integer multiple of 2π.
Complex number division
Given a complex number (a + ib) which is to be divided by another complex number (c + id) whose magnitude is nonzero, there are two ways to do this. The first way has already been implied: to convert both complex numbers into exponential form, from which their quotient is easy to derive. 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. This causes the denominator to simplify into a real number:


Matrix representation of complex numbers
While usually not useful, alternative representations of complex fields can give some insight into their nature. One particularly elegant representation interprets every complex number as 2×2 matrix with real entries which stretches and rotates the points of the plane. Every such matrix has the form
with real numbers a and b. The sum and product of two such matrices is again of this form. Every nonzero such matrix 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 matrix
and the imaginary unit i with
a counterclockwise rotation by 90 degrees. Note that the square of this latter matrix is indeed equal to 1.
The absolute value of a complex number expressed as a matrix is equal to the square root of the determinant of that matrix. If the matrix is viewed as a transformation of a 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 described by the transpose of the matrix corresponding to z.
If the matrix elements are themselves complex numbers, then the resulting algebra is that of the quaternions. In this way, the matrix representation can be seen as a way of expressing the CayleyDickson construction of algebras.
Some properties
Real vector space
C is a twodimensional real vector space. Unlike the reals, complex numbers cannot be ordered in any way that is compatible with its arithmetic operations: C cannot be turned into an ordered field.
Solutions of polynomial equations
A root of the polynomial p is a complex number z such that p(z) = 0. A most striking result is that all polynomials of degree n with real or complex coefficients have exactly n complex roots (counting multiple roots according to their multiplicity). This is known as the Fundamental Theorem of Algebra, and shows that the complex numbers are an algebraically closed field.
Indeed, the complex number field is the algebraic closure of the real number field. It can be identified as the quotient ring of the polynomial ring R[X] by the ideal generated by the polynomial X^{2} + 1:
This is indeed a field because X^{2} + 1 is irreducible. The image of X in this quotient ring becomes the imaginary unit i.
Algebraic characterization
The field C is (up to field isomorphism) characterized by the following three facts:
Consequently, C contains many proper subfields which are isomorphic to C. Another consequence of this characterization is that the Galois group of C over the rational numbers is enormous, with cardinality equal to the power set of the continuum.
Characterization as a topological field
As noted above, the algebraic characterization of C fails to capture some of its most important properties. These properties, which underpin the foundations of complex analysis, arise from the topology of C. The following properties characterize C as a topological field:
 C is a field.

C contains a subset P of nonzero elements satisfying:
 P is closed under addition, multiplication and taking inverses.
 If x and y are distinct elements of P, then either xy or yx is in P
 If S is any nonempty subset of P, then S+P=x+P for some x in C.
 C has a nontrivial involutive automorphism x>x*, fixing P and such that xx* is in P for any nonzero x in C.
Given these properties, one can then define a topology on C by taking the sets
as a base, where x ranges over C, and p ranges over P.
To see that these properties characterize C as a topological field, one notes that P ∪ {0} ∪ P is an ordered Dedekindcomplete field and thus can be identified with the real numbers R by a unique field isomorphism. The last property is easily seen to imply that the Galois group over the real numbers is of order two, completing the characterization.
Pontryagin has shown that the only connected locally compact topological fields are R and C. This gives another characterization of C as a topological field, since C can be distinguished from R by noting the nonzero complex numbers are connected whereas the nonzero real numbers are not.
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.
Applications
Control theory
In control theory, systems are often transformed from the time domain to the frequency domain using the Laplace transform. The system's poles and zeros 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 especially important whether the poles and zeros are in the left or right half planes, i.e. have real part greater than or less than zero. If a 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 be marginally stable .
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 as a convenient description for periodically varying signals. The absolute value z is interpreted as the amplitude and the argument arg(z) as the phase of a sine wave of given frequency.
If Fourier analysis is employed to write a given realvalued signal as a sum of periodic functions, these periodic functions are often written as the real part of complex valued functions of the form
where ω represents the angular frequency and the complex number z encodes the phase and amplitude as explained above.
In electrical engineering, this is done for varying voltages and currents. The treatment of resistors, capacitors and inductors can then be unified by introducing imaginary frequencydependent resistances for the latter two and combining all three in a single complex number called the impedance. (Electrical engineers and some physicists use the letter j for the imaginary unit since i is typically reserved for varying currents and may come into conflict with i.)
Improper integrals
In applied fields, the use of complex analysis is often used to compute certain realvalued improper integrals, by means of complexvalued functions. Several methods exist to do this, see methods of contour integration.
Quantum mechanics
The complex number field is also of utmost importance in quantum mechanics since the underlying theory is built on (infinite dimensional) Hilbert spaces over C.
Relativity
In special and general relativity, some formulas for the metric on spacetime become simpler if one takes the time variable to be imaginary.
Applied mathematics
In differential equations, it is common to first find all complex roots r of the characteristic equation of a linear differential equation and then attempt to solve the system in terms of base functions of the form f(t) = e^{rt}.
Fluid dynamics
In fluid dynamics, complex functions are used to describe potential flow in 2d.
Fractals
Certain fractals are plotted in the complex plane e.g. Mandelbrot set and Julia set.
See also
Further reading

An Imaginary Tale, by Paul J. Nahin; Princeton University Press; ISBN 0691027951 (hardcover, 1998). A gentle introduction to the history of complex numbers and the beginnings of complex analysis.
External links