Currently there may be errors shown on top of a page, because of a missing Wiki update (PHP version and extension DPL3). |
Topics | Help • Register • News • History • How to • Sequences statistics • Template prototypes |
Complex number
A complex number is defined as a pair of real numbers [math]\displaystyle{ z = (x, y) }[/math] where the following operations are defined:
- Addition: [math]\displaystyle{ z_1 + z_2 = (x_1 + x_2, y_1 + y_2) }[/math]
- Multiplication: [math]\displaystyle{ z_1 z_2 = (x_1 y_1 - x_2 y_2, x_2 y_1 + x_2 y_1) }[/math]
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 [math]\displaystyle{ (0, 1) (0, 1) }[/math] we get [math]\displaystyle{ (-1, 0) }[/math]. 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 [math]\displaystyle{ z = x + iy }[/math]. From the previous paragraph we get: [math]\displaystyle{ i^2 = -1 }[/math].
Using this notation and the definitions above we can deduce all basic operations on complex numbers:
- Addition:
- [math]\displaystyle{ z_1 + z_2 = (x_1 + x_2) + (y_1 + y_2) i }[/math]
- Subtraction:
- [math]\displaystyle{ z_1 - z_2 = (x_1 + x_2) + (-y_1 - y_2) i }[/math]
- Multiplication:
- [math]\displaystyle{ z_1 z_2 = (x_1 y_1 - x_2 y_2) + (x_1 y_2 + x_2 y_1) i }[/math]
- Division:
- [math]\displaystyle{ \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 }[/math]
- Square root:
- [math]\displaystyle{ \sqrt{x+iy} = \sqrt{\frac{\left|x+iy\right| + x}{2}} \pm i \sqrt{\frac{\left|x+iy\right| - x}{2}} }[/math]
- 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
- [math]\displaystyle{ \left|x+iy\right| = \sqrt{x^2+y^2} }[/math]