# Complex number

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A complex number is defined as a pair of real numbers z = (x, y) where the following operations are defined:

• Addition: z1 + z2 = (x1 + x2, y1 + y2)
• Multiplication: z1 z2 = (x1 y1 - x2 y2, x2 y1 + x2 y1)

When the second element equals zero the complex numbers behaves as real numbers. That's why the first element of the complex number is known as the real part and the second element as the imaginary part.

Multiplying (0, 1) (0, 1) we get (-1, 0). Since no real number is the square root of -1, we can now understand why the second element is the imaginary part.

An alternate (and more used) notation is z = x + iy. From the previous paragraph we get: i2 = -1.

Using this notation and the definitions above we can deduce all basic operations on complex numbers:

• Addition:
$z_1 + z_2 = (x_1 + x_2) + (y_1 + y_2) i$
• Subtraction:
$z_1 - z_2 = (x_1 + x_2) + (-y_1 - y_2) i$
• Multiplication:
$z_1 z_2 = (x_1 y_1 - x_2 y_2) + (x_1 y_2 + x_2 y_1) i$
• Division:
$\frac {z_1}{z_2} = \frac {x_1 y_1 + x_2 y_2}{x_2^2 + y_2^2}\,+\,\frac {x_2 y_1 - x_1 y_2}{x_2^2 + y_2^2} \,i$
• Square root:
$\sqrt{x+iy} = \sqrt{\frac{\left|x+iy\right| + x}{2}} \pm i \sqrt{\frac{\left|x+iy\right| - x}{2}}$
where the sign of the imaginary part of the root is the same as the sign of the imaginary part of the original number and
$\left|x+iy\right| = \sqrt{x^2+y^2}$