# Imaginary unit

<math>\ldots</math> (repeats the pattern from blue area) |

<math>i^{-3} = i\,</math> |

<math>i^{-2} = -1\,</math> |

<math>i^{-1} = -i\,</math> |

<math>i^0 = 1\,</math> |

<math>i^1 = i\,</math> |

<math>i^2 = -1\,</math> |

<math>i^3 = -i\,</math> |

<math>i^4 = 1\,</math> |

<math>i^5 = i\,</math> |

<math>i^6 = -1\,</math> |

<math>\ldots</math> (repeats the pattern from blue area) |

In mathematics, physics, and engineering, the **imaginary unit** is denoted by <math>i\,</math> or the Latin <math>j\,</math> or the Greek iota (see alternative notations below). It allows the real number system, <math>\mathbb{R},</math> to be extended to the complex number system, <math>\mathbb{C}.</math> Its precise definition is dependent upon the particular method of extension.

The primary motivation for this extension is the fact that not every polynomial equation with real coefficients <math>f(x)=0</math> has a solution in the real numbers. In particular, the equation <math>x^2+1=0</math> has no real solution (see "Definition", below). However, if we allow complex numbers as solutions, then this equation, and indeed *every* polynomial equation <math>f(x)=0</math> does have a solution. (See algebraic closure and fundamental theorem of algebra.)

For a history of the imaginary unit, see the history of complex numbers.

The imaginary unit is often loosely referred to as the "square root of negative one" or the "square root of minus one", but see below for difficulties that may arise from a naive use of this idea.

## Definition

By definition, the imaginary unit <math>i</math> is one solution (of two) of the quadratic equation

- <math>x^2 + 1 = 0 \ </math>

or equivalently

- <math>x^2 = -1 \ </math>.

Since there is no **real** number that produces a negative real number when squared, we *imagine* such a number and assign to it the symbol *i*. It is important to realize, though, that *i* is as well-defined a mathematical construct as the real numbers, despite its formal name and being less than immediately intuitive.

Real number operations can be extended to imaginary and complex numbers by treating *i* as an unknown quantity while manipulating an expression, and then using the definition to replace any occurrence of *i*^{ 2} with −1. Higher integral powers of <math>i</math> can also be replaced with −*i*, 1, <math>i</math>, or −1**:**

- <math>i^3 = i^2 i = (-1) i = -i \,</math>
- <math>i^4 = i^3 i = (-i) i = -(i^2) = -(-1) = 1 \,</math>
- <math>i^5 = i^4 i = (1) i = i \,</math>

*<math>i</math>* and −*<math>i</math>*

Being a second order polynomial with no multiple real root, the above equation has *two* distinct solutions that are equally valid and that happen to be additive and multiplicative inverses of each other. More precisely, once a solution <math>i</math> of the equation has been fixed, the value −<math>i</math> (which is not equal to <math>i</math>) is also a solution. Since the equation is the only definition of <math>i</math>, it appears that the definition is ambiguous (more precisely, not well-defined). However, no ambiguity results as long as one of the solutions is chosen and fixed as the "positive <math>i</math>". This is because, although −<math>i</math> and <math>i</math> are not *quantitatively* equivalent (they *are* negatives of each other), there is no *qualitative* difference between <math>i</math> and −<math>i</math> (which cannot be said for −1 and +1). Both imaginary numbers have equal claim to being the number whose square is −1. If all mathematical textbooks and published literature referring to imaginary or complex numbers were rewritten with −<math>i</math> replacing every occurrence of +<math>i</math> (and therefore every occurrence of −<math>i</math> replaced by −(−<math>i</math>) = +<math>i</math>), all facts and theorems would continue to be equivalently valid. The distinction between the two roots <math>x</math> of <math>x^2 + 1 = 0</math> with one of them as "positive" is purely a notational relic; neither root can be said to be more primary or fundamental than the other.

The issue can be a subtle one. The most precise explanation is to say that although the complex field, defined as **R**[*X*]/ (*X*^{2} + 1), (see complex number) is unique up to isomorphism, it is *not* unique up to a *unique* isomorphism — there are exactly 2 field automorphisms of **R**[*X*]/ (*X*^{2} + 1), the identity and the automorphism sending *X* to −*X*. (These are not the only field automorphisms of **C**, but are the only field automorphisms of **C** which keep each real number fixed.) See complex number, complex conjugation, field automorphism, and Galois group.

A similar issue arises if the complex numbers are interpreted as 2 × 2 real matrices (see complex number), because then both

- <math>X = \begin{pmatrix}

0 & -1 \\ 1 & \;\; 0 \end{pmatrix}</math>

and

- <math>X = \begin{pmatrix}

0 & 1 \\ -1 & \;\; 0 \end{pmatrix}

</math>

are solutions to the matrix equation

- <math> X^2 = -I \ </math> .

In this case, the ambiguity results from the geometric choice of which "direction" around the unit circle is "positive" rotation. A more precise explanation is to say that the automorphism group of the special orthogonal group SO (2, **R**) has exactly 2 elements — the identity and the automorphism which exchanges "CW" (clockwise) and "CCW" (counter-clockwise) rotations. See orthogonal group.

All these ambiguities can be solved by adopting a more rigorous definition of complex number, and explicitly *choosing* one of the solutions to the equation to be the imaginary unit. For example, the ordered pair (0, 1), in the usual construction of the complex numbers with two-dimensional vectors.

## Proper use

The imaginary unit is sometimes written <math>\sqrt{-1}</math> in advanced mathematics contexts (as well as in less advanced popular texts); however, great care needs to be taken when manipulating formulas involving radicals. The notation is reserved either for the principal square root function, which is *only* defined for real <math>x</math> ≥ 0, or for the principal branch of the complex square root function. Attempting to apply the calculation rules of the principal (real) square root function to manipulate the principal branch of the complex square root function will produce false results:

- <math>-1 = i \cdot i = \sqrt{-1} \cdot \sqrt{-1} = \sqrt{(-1) \cdot (-1)} = \sqrt{1} = 1</math>
*(incorrect)*

The calculation rule

- <math>\sqrt{a} \cdot \sqrt{b} = \sqrt{a \cdot b}</math>

is only valid for real, non-negative values of <math>a</math> and <math>b</math>.

For a more thorough discussion of this phenomenon, see square root and branch.

To avoid making such mistakes when manipulating complex numbers, a strategy is never to use a negative number under a square root sign. For instance, rather than writing expressions like <math>\sqrt{-7}</math>, one should write <math>i\sqrt{7}</math> instead. That is the use for which the imaginary unit was created.

## Square root of the imaginary unit

One might assume that a further set of imaginary numbers need to be invented to account for the square root of *i*. However this is not necessary as it can be expressed (*albeit rather poorly - see above*) as either of two complex numbers^{[1]}:

- <math> \pm \sqrt{i} = \pm \frac{1}{\sqrt{2}} (1 + i) </math>

This can be shown to be valid from:

<math>\left( \pm \frac{1}{\sqrt{2}} (1 + i) \right)^2 \ </math> <math>= \left( \pm \frac{1}{\sqrt{2}} \right)^2 (1 + i)^2 \ </math> <math>= (\pm 1)^2 \frac{1}{2} (1 + i)(1 + i) \ </math> <math>= \frac{1}{2} (1 + 2i + i^2) \quad \quad \quad (i^2 = -1) \ </math> <math>= \frac{1}{2} + i - \frac{1}{2} \ </math> <math>= i \ </math>

## Powers of <math>i</math>

The powers of <math>i</math> repeat in a cycle:

- <math>\ldots</math>
- <math>i^{-3} = i\,</math>
- <math>i^{-2} = -1\,</math>
- <math>i^{-1} = -i\,</math>
- <math>i^0 = 1\,</math>
- <math>i^1 = i\,</math>
- <math>i^2 = -1\,</math>
- <math>i^3 = -i\,</math>
- <math>i^4 = 1\,</math>
- <math>\ldots</math>

This can be expressed with the following pattern where *n* is any integer:

- <math>i^{4n} = 1\,</math>
- <math>i^{4n+1} = i\,</math>
- <math>i^{4n+2} = -1\,</math>
- <math>i^{4n+3} = -i\,</math>

This leads to the conclusion that

- <math>i^n = i^{n \bmod 4}\,</math>

where *mod* is the modulo operation.

*i* and Euler's formula

- <math>e^{ix} = \cos(x) + i\sin(x) \,</math> ,

where *x* is a real number. The formula can also be analytically extended for complex *x*.

Substituting <math>x = \pi </math> yields

- <math>e^{i\pi} = \cos(\pi) + i\sin(\pi) = -1 + i0 \,</math>

and one arrives at the elegant Euler's identity:

- <math>e^{i\pi} + 1 = 0\,</math>.

This remarkably simple equation relates five significant mathematical quantities (0, 1, π, *e*, and *i*) by means of the basic operations of addition, multiplication, and exponentiation.

### Example

Substitution of <math>x = \pi/2 - 2N\pi,</math> where *N* is an arbitrary integer, produces

- <math>e^{i(\pi/2 - 2N\pi)} = i\,</math>

Or, raising each side to the power <math>i</math>,

- <math>e^{i i(\pi/2 - 2N\pi)} = i^i \,</math>

or

- <math>e^{-(\pi/2 - 2N\pi)} = i^i \,</math>,

which shows that <math>i^i\,</math> has an infinite number of *elements* in the form of

- <math>i^i = e^{-\pi/2 + 2\pi N}\,</math>

where *N* is any integer. This real value although real is not uniquely determined. The reason is that the complex logarithm is multiply-valued.

## Operations with *i*

Many mathematical operations that can be carried out with real numbers can also be carried out with <math>i</math>, such as exponentation, roots, logarithms and trigonometric functions .

A number raised to the <math>ni</math> power is:

- <math> \!\ x^{ni} = \cos(\ln(x^n)) + i \sin(\ln(x^n)) </math>

The <math> ni </math>^{th} root of a number is:

- <math> \!\ \sqrt[ni]{x} = \cos(\ln(\sqrt[n]{x})) - i \sin(\ln(\sqrt[n]{x})) </math>

The log base i of a number is:

- <math> \log_i(x) = {{2 \ln(x)} \over i\pi} </math>

The cosine of <math>i</math> is a real number:

- <math> \cos(i) = \cosh(1) = {{e + 1/e} \over 2} = {{e^2 + 1} \over 2e} = 1.54308064</math>

And the sine of <math>i</math> is imaginary:

- <math> \sin(i) = \sinh(1) \, i = {{e - 1/e} \over 2} \, i = {{e^2 - 1} \over 2e} \, i = 1.17520119 \, i</math>

## Alternative notations

- In electrical engineering and related fields, the imaginary unit is often written as <math>j\,</math> to avoid confusion with electrical current as a function of time, traditionally denoted by <math>i(t)\,</math> or just <math>i.\,</math> The Python programming language also uses
*j*to denote the imaginary unit, while in Matlab, both notations*i*and*j*are associated with the imaginary unit. - Some extra care needs to be taken in certain textbooks which define
*j*= −*i*, in particular to travelling waves (e.g. a right travelling plane wave in the x direction <math>e^{ i (kx - \omega t)} = e^{ j (\omega t-kx)} \,</math>). - Some texts use the Greek letter iota ( ι ) to write the imaginary unit to avoid confusion. For example: Biquaternion.

## Notes

- ↑ University of Toronto Mathematics Network: What is the square root of i? URL retrieved March 26, 2007.

## See also

## References

- Paul J. Nahin, An Imaginary Tale, The Story of √-1, Princeton University Press, 1998

## External links

cs:Imaginární jednotka da:Imaginær enhed de:Imaginäre Einheit et:Imaginaarühik gl:Unidade imaxinaria ko:허수 단위 id:Bilangan imajiner it:Unità immaginaria lv:Imaginārā vienība lt:Tariamasis vienetas nl:Imaginaire eenheid no:Imaginær enhet simple:Imaginary unit sl:Imaginarna enota fi:Imaginaariyksikkö sv:Imaginära enheten th:หน่วยจินตภาพ uk:Уявна одиниця Template:WikiDoc Sources