As for now, complex numbers are ordered pairs (x,y), where x, y are real numbers. We will write complex numbers in a new way.
Recall that we write 0 = (0,0) and 1 = (1,0). We continue in the same fashion; that is, we identify (x,0) with x.
Suppose that a and b are real numbers. Here are some reasons for which the identification makes sense.
- If a = b, then (a,0) = (b,0), and vice versa.
- (a,0) + (b,0) = (a+b, 0).
- (a,0) \cdot (b,0) = (ab, 0).
- No real number equals (x,y) if y \neq 0 (that is, the set of all real numbers and the set of all complex numbers (x,y) where y \neq 0 do not intersect).
Suppose that a is a real number. Then
a(x,y) = (a,0)(x,y) = (ax-0y, ay+0x)=(ax,ay).
Recall that \mathrm{i} = (0,1). Hence
\begin{aligned}
x + \mathrm{i}y
= {} & (x,0) + (0,1)(y,0) \\
= {} & (x,0) + (y,0)(0,1) \\
= {} & (x,0) + (0,y) \\
= {} & (x,y).
\end{aligned}
From now on, we will write (x,y) as x + \mathrm{i} y (and vice versa, if necessary). Of course, x + y \mathrm{i} also works.
From now on, we will say that (a,0) is a real number (if a is a real number).
From now on, we will say that every real number is also a complex number.
Recall that \mathrm{i}^2 = (-1, 0) = -1. Suppose that x_1, y_1, x_2, y_2 are real numbers. By laws of addition and multiplication,
\begin{aligned}
& \begin{aligned}
(x_1 + \mathrm{i} y_1) + (x_2 + \mathrm{i} y_2)
= {} & ((x_1 + \mathrm{i} y_1) + x_2) + \mathrm{i} y_2 \\
= {} & (x_1 + (\mathrm{i} y_1 + x_2)) + \mathrm{i} y_2 \\
= {} & (x_1 + (x_2 + \mathrm{i} y_1)) + \mathrm{i} y_2 \\
= {} & ((x_1 + x_2) + \mathrm{i} y_1) + \mathrm{i} y_2 \\
= {} & (x_1 + x_2) + (\mathrm{i} y_1 + \mathrm{i} y_2) \\
= {} & (x_1 + x_2) + \mathrm{i} (y_1 + y_2),
\end{aligned} \\
& \begin{aligned}
(x_1 + \mathrm{i} y_1) (x_2 + \mathrm{i} y_2)
= {} & x_1 (x_2 + \mathrm{i} y_2) + (\mathrm{i} y_1) (x_2 + \mathrm{i} y_2) \\
= {} & (x_1 x_2 + x_1 (\mathrm{i} y_2)) + ((\mathrm{i} y_1) x_2 + (\mathrm{i} y_1) (\mathrm{i} y_2)) \\
= {} & (x_1 x_2 + (x_1 \mathrm{i}) y_2) + (\mathrm{i} (y_1 x_2) + ((\mathrm{i} y_1) \mathrm{i}) y_2) \\
= {} & (x_1 x_2 + (\mathrm{i} x_1) y_2) + (\mathrm{i} (y_1 x_2) + (\mathrm{i} (y_1 \mathrm{i})) y_2) \\
= {} & (x_1 x_2 + \mathrm{i} (x_1 y_2)) + (\mathrm{i} (y_1 x_2) + (\mathrm{i} (\mathrm{i} y_1)) y_2) \\
= {} & (x_1 x_2 + \mathrm{i} (x_1 y_2)) + (\mathrm{i} (y_1 x_2) + ((\mathrm{i} \mathrm{i}) y_1) y_2) \\
= {} & (x_1 x_2 + \mathrm{i} (x_1 y_2)) + (\mathrm{i} (y_1 x_2) + ((\mathrm{i} \mathrm{i}) y_1) y_2) \\
= {} & (x_1 x_2 + \mathrm{i} (x_1 y_2)) + (\mathrm{i} (y_1 x_2) + (\mathrm{i} \mathrm{i}) (y_1 y_2)) \\
= {} & (x_1 x_2 + \mathrm{i} (x_1 y_2)) + (\mathrm{i} (y_1 x_2) + (-1) (y_1 y_2)) \\
= {} & (x_1 x_2 + \mathrm{i} (x_1 y_2)) + (\mathrm{i} (y_1 x_2) - y_1 y_2) \\
= {} & x_1 x_2 + (\mathrm{i} (x_1 y_2) + (\mathrm{i} (y_1 x_2) - y_1 y_2)) \\
= {} & x_1 x_2 + ((\mathrm{i} (x_1 y_2) + \mathrm{i} (y_1 x_2)) - y_1 y_2) \\
= {} & x_1 x_2 + (\mathrm{i} (x_1 y_2 + y_1 x_2) - y_1 y_2) \\
= {} & x_1 x_2 + (-y_1 y_2 + \mathrm{i} (x_1 y_2 + y_1 x_2)) \\
= {} & (x_1 x_2 - y_1 y_2) + \mathrm{i} (x_1 y_2 + y_1 x_2).
\end{aligned}
\end{aligned}
Hence, one can always easily compute the sum or product of two complex numbers, if they remember that \mathrm{i}^2 = -1 and the usual rules of arithmetic (commutativity, associativity, the distributive law, etc.).
Postscript.
- 0 + b\mathrm{i} can be written as b\mathrm{i}.
- x + 0\mathrm{i} can be written as x.
- 1\mathrm{i} and (-1)\mathrm{i} can be written as \mathrm{i} and -\mathrm{i}, respectively.
You could see the source code here.
As for now, complex numbers are **ordered pairs** $(x,y)$, where $x$, $y$ are real numbers. We will write complex numbers in a new way.
Recall that we write $0 = (0,0)$ and $1 = (1,0)$. We continue in the same fashion; that is, we identify $(x,0)$ with $x$.
Suppose that $a$ and $b$ are real numbers. Here are some reasons for which the identification makes sense.
- If $a = b$, then $(a,0) = (b,0)$, and vice versa.
- $(a,0) + (b,0) = (a+b, 0)$.
- $(a,0) \cdot (b,0) = (ab, 0)$.
- No real number equals $(x,y)$ if $y \neq 0$ (that is, the set of all real numbers and the set of all complex numbers $(x,y)$ where $y \neq 0$ do not intersect).
Suppose that $a$ is a real number. Then
$$
a(x,y) = (a,0)(x,y) = (ax-0y, ay+0x)=(ax,ay).
$$
Recall that $\mathrm{i} = (0,1)$. Hence
$$
\begin{aligned}
x + \mathrm{i}y
= {} & (x,0) + (0,1)(y,0) \\
= {} & (x,0) + (y,0)(0,1) \\
= {} & (x,0) + (0,y) \\
= {} & (x,y).
\end{aligned}
$$
> From now on, we will write $(x,y)$ as $x + \mathrm{i} y$ (and vice versa, if necessary). Of course, $x + y \mathrm{i}$ also works.
> From now on, we will say that $(a,0)$ is a real number (if $a$ is a real number).
> From now on, we will say that every real number is also a complex number.
Recall that $\mathrm{i}^2 = (-1, 0) = -1$. Suppose that $x_1$, $y_1$, $x_2$, $y_2$ are real numbers. By laws of addition and multiplication,
$$
\begin{aligned}
& \begin{aligned}
(x_1 + \mathrm{i} y_1) + (x_2 + \mathrm{i} y_2)
= {} & ((x_1 + \mathrm{i} y_1) + x_2) + \mathrm{i} y_2 \\
= {} & (x_1 + (\mathrm{i} y_1 + x_2)) + \mathrm{i} y_2 \\
= {} & (x_1 + (x_2 + \mathrm{i} y_1)) + \mathrm{i} y_2 \\
= {} & ((x_1 + x_2) + \mathrm{i} y_1) + \mathrm{i} y_2 \\
= {} & (x_1 + x_2) + (\mathrm{i} y_1 + \mathrm{i} y_2) \\
= {} & (x_1 + x_2) + \mathrm{i} (y_1 + y_2),
\end{aligned} \\
& \begin{aligned}
(x_1 + \mathrm{i} y_1) (x_2 + \mathrm{i} y_2)
= {} & x_1 (x_2 + \mathrm{i} y_2) + (\mathrm{i} y_1) (x_2 + \mathrm{i} y_2) \\
= {} & (x_1 x_2 + x_1 (\mathrm{i} y_2)) + ((\mathrm{i} y_1) x_2 + (\mathrm{i} y_1) (\mathrm{i} y_2)) \\
= {} & (x_1 x_2 + (x_1 \mathrm{i}) y_2) + (\mathrm{i} (y_1 x_2) + ((\mathrm{i} y_1) \mathrm{i}) y_2) \\
= {} & (x_1 x_2 + (\mathrm{i} x_1) y_2) + (\mathrm{i} (y_1 x_2) + (\mathrm{i} (y_1 \mathrm{i})) y_2) \\
= {} & (x_1 x_2 + \mathrm{i} (x_1 y_2)) + (\mathrm{i} (y_1 x_2) + (\mathrm{i} (\mathrm{i} y_1)) y_2) \\
= {} & (x_1 x_2 + \mathrm{i} (x_1 y_2)) + (\mathrm{i} (y_1 x_2) + ((\mathrm{i} \mathrm{i}) y_1) y_2) \\
= {} & (x_1 x_2 + \mathrm{i} (x_1 y_2)) + (\mathrm{i} (y_1 x_2) + ((\mathrm{i} \mathrm{i}) y_1) y_2) \\
= {} & (x_1 x_2 + \mathrm{i} (x_1 y_2)) + (\mathrm{i} (y_1 x_2) + (\mathrm{i} \mathrm{i}) (y_1 y_2)) \\
= {} & (x_1 x_2 + \mathrm{i} (x_1 y_2)) + (\mathrm{i} (y_1 x_2) + (-1) (y_1 y_2)) \\
= {} & (x_1 x_2 + \mathrm{i} (x_1 y_2)) + (\mathrm{i} (y_1 x_2) - y_1 y_2) \\
= {} & x_1 x_2 + (\mathrm{i} (x_1 y_2) + (\mathrm{i} (y_1 x_2) - y_1 y_2)) \\
= {} & x_1 x_2 + ((\mathrm{i} (x_1 y_2) + \mathrm{i} (y_1 x_2)) - y_1 y_2) \\
= {} & x_1 x_2 + (\mathrm{i} (x_1 y_2 + y_1 x_2) - y_1 y_2) \\
= {} & x_1 x_2 + (-y_1 y_2 + \mathrm{i} (x_1 y_2 + y_1 x_2)) \\
= {} & (x_1 x_2 - y_1 y_2) + \mathrm{i} (x_1 y_2 + y_1 x_2).
\end{aligned}
\end{aligned}
$$
Hence, one can always easily compute the sum or product of two complex numbers, if they remember that $\mathrm{i}^2 = -1$ and the usual rules of arithmetic (commutativity, associativity, the distributive law, etc.).
**Postscript.**
- $0 + b\mathrm{i}$ can be written as $b\mathrm{i}$.
- $x + 0\mathrm{i}$ can be written as $x$.
- $1\mathrm{i}$ and $(-1)\mathrm{i}$ can be written as $\mathrm{i}$ and $-\mathrm{i}$, respectively.