Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
1632 views
1
\documentclass[a4paper,titlepage]{article}
2
\title{Complex Numbers}
3
\author{Emily Lawson 1418516}
4
\date{\today}
5
6
\usepackage{amsmath}
7
\usepackage{graphicx}
8
\usepackage{tikz}
9
\usepackage[margin=0.5in]{geometry}
10
\usepackage{array}
11
12
\begin{document}
13
14
\maketitle
15
16
\tableofcontents
17
18
\pagenumbering{roman}
19
20
\emph{*NOTE : This student has a disability affecting written expressions. Please ignore minor errors of spelling, grammar or punctuation.*}
21
22
\section{Introduction}\label{intro}
23
24
Some equations are impossible to solve using the set of reals numbers, for example $x^2 + 4 = 0$. The only way to solve this equation is by using a number that is not real. By rearranging this equation, we get $x^2 = - 4$. A special non-real number called $i$ can be used here to solve this equation. $i$ has the property that $\textit{i}^2 = -1$, so the solution to the equation above is $x = 2i$.
25
26
Below is a function written in Sage that when run will produce the graph in Figure \ref{graph}, the graph shows the positions of three different complex numbers.
27
\begin{verbatim}
28
def cpoint(x,y,color,d=0.5):
29
p = point((x,y),color=color)
30
t = text('(%g,%g) or $%g%+gi$' % (x,y,x,y), (x,y+d), color=color)
31
return p + t
32
c = cpoint(6,4,'red')+cpoint(2,2.5,'blue')+cpoint(4,1,'purple')
33
c += text('Real axis',(7,-1),color='black',horizontal_alignment='right')
34
c += text('Imaginary axis',(-1,5),color='black',rotation='vertical',vertical_alignment='top')
35
c.show(xmin=-1, xmax=7, ymin=-1, ymax=5)
36
\end{verbatim}
37
38
\begin{figure}[htbp!]
39
\begin{center}
40
\includegraphics[width=12cm]{sagegraph}
41
\end{center}
42
\label{graph}
43
\caption{$2 + \frac{5}{2}i$, $4 + i$ and $6 + 4i$ shown on here graphically}
44
\end{figure}
45
46
\cite{graph}
47
48
\section{Definition of Complex Numbers}\label{def}
49
\subsection{Real and imaginary parts of a complex number}
50
A complex number is an expression $a + bi$, where a and b are both real numbers, and $i$ is as defined above in section \ref{intro} where $i^2 = - 1$. For a complex number $z = a + bi$, this is written in standard form. The \textit{real part} of $z$ is denoted as $Re(z)$ and the \textit{imaginary part} of $z$ is denoted as Im(z). Therefore, when $z = a + bi$,
51
$$
52
Re(z) = a, Im(z) = b
53
$$
54
55
We can use Sage to find the imaginary and real parts of a complex number, below is some code showing this with the example $z = 4 - 7i$.
56
\begin{verbatim}
57
z = 4 - 7 * i # this defines z as a complex number
58
z
59
real_part(z) # finds the real part of z
60
4
61
imag_part(z) # finds the imaginary part of z
62
-7
63
\end{verbatim}
64
65
\section{Conjugation and Exponentiation of Complex Numbers}
66
\subsection{Conjugation of complex numbers}
67
Multiplication of complex numbers is very similar to multiplication of real numbers. In order to be able to divide a complex number by another you must first find the \textit{conjugate} of the complex number you are dividing by.
68
\newline
69
\newline
70
The conjugate of a complex number $z$ is denoted as $\overline{z}$, the real part of $z$ and $\overline{z}$ is equal but the imaginary part of $\overline{z}$ has the opposite sign to that of $z$. For the complex number $z = a + bi$, where $a$ and $b$ are both real numbers,
71
72
$$
73
\overline{z} = \overline{a + bi} = a - bi
74
$$
75
76
Sage can be used to find the conjugate of a complex number, below is some code demonstrating this with the example $z = 4 - 7i$,
77
\begin{verbatim}
78
z = 4 - 7 * i # this defines z as a complex number
79
conjugate(z) # finds the complex conjugate of z
80
7*I + 4
81
\end{verbatim}
82
83
\textbf{Division of Complex Numbers}
84
\\
85
Given that $w$ and $z$ are both complex numbers, $w = a + bi$ and $z = c + di$, by using conjugation of complex numbers we can now find the result of $\frac{w}{z}$. In order to carry this out, we can use the identity below for the quotient of two complex numbers.
86
87
$$
88
\frac{w}{z} = \frac{w\overline{z}}{z\overline{z}}
89
$$
90
For the complex numbers $w$ and $z$ as defined earlier, provided $a$, $b$, $c$ and $d$ are all real non-zero numbers, we can find the quotient of $w$ and $z$:
91
92
\begin{align}
93
\frac{a + bi}{c + di} &= \frac{(a + bi)\overline{(c + di)}}{(c + di)\overline{(c + di)}} \\
94
&= \frac{(a + bi)(c - di)}{(c + di)(c - di)} = \frac{(ac + bd) - (bc - ad)i}{c^2 + d^2} = \frac{ac + bd}{c^2 + d^2} + \frac{bc - ad}{c^2 + d^2}i
95
\end{align}
96
97
98
Sage can be used to calculate the quotient of two complex numbers. For the examples $z = 3 - 7i$ and $w = 6 + 2i$, below is some Sage code which produces a further complex number to $\frac{z}{w}$,
99
\begin{verbatim}
100
z = 3 - 7 * i
101
w = 6 + 2 * i
102
z/w
103
-6/5*I + 1/10
104
\end{verbatim}
105
Here is some Sage code which calculates $\frac{z\overline{w}}{w\overline{z}}$. The two solutions to the equations are the same, proving the law of using conjugates in the division on two complex numbers, so $\frac{z}{w} = \frac{z\overline{w}}{w\overline{w}}$.
106
\begin{verbatim}
107
z = 3 - 7 * i
108
w = 6 + 2 * i
109
(z * conjugate(w)) / (w * conjugate(w))
110
-6/5*I + 1/10
111
\end{verbatim}
112
113
\subsection{Exponentiation of complex numbers}
114
For a complex number $z$ and a real number $n$, $z^n$ is defined to be as follows,
115
116
$$
117
z^n =
118
\begin{Bmatrix}
119
z...z & n > 0 & \text{where z is multiplied by itself n times}\\
120
1 & n = 0 \\
121
\frac{1}{z...z} & n < 0 & \text{where z is multiplied by itself n times and z $\neq$ 0}\\
122
\end{Bmatrix}
123
$$
124
125
Using the above definition, another known properties of complex multiplication and division, it can be shown that integer exponentiation of complex numbers and integer exponentiation of real numbers satisfy the same properties. From this we can assume the following statements, where $z$ and $w$ are complex numbers, and $m$ and $n$ are real numbers,
126
127
\begin{align*}
128
z^m z^n &= z^{m + n}, \\
129
\frac{z^m}{z^n} &= z^{m - n}, \\
130
(z^m)^n &= z^{mn}, \\
131
(wz)^n &= w^nz^n, \\
132
\left(\frac{w}{z}\right)^n &= \frac{w^n}{z^n}.
133
\end{align*}
134
135
Information from lecture notes \cite{exponentiation}
136
137
\section{Different Forms of Complex Numbers}
138
There are number of ways in which to represent a complex number, so far in Section \ref{intro} and Section \ref{def} we have been using the standard form, where a complex number $z$ is represented as $a + bi$. It is possible to represent a complex number graphically using an Argand Diagram, this will be shown in Section\ref{Argand}. Another way is in the exponential form, where $z = re^i\theta$ where $r$ is the modulus of $z$ and $\theta$ is the argument of $z$, this will be demonstrated in Section \ref{exp}. The final way of showing a complex number that I am going to talk about is by representing it in the polar form, this puts the complex number in terms of $\sin$ and $\cos$, this will be described in Section \ref{polar}.
139
140
\subsection{Argand Diagrams}\label{Argand}
141
142
Let $z$ be a complex number where $z = 2 + 3i$. Below is an Argand Diagram showing $2 + 3i$.
143
144
\begin{figure}[!htbp]
145
\begin{center}
146
\begin{tikzpicture}[scale=0.8]
147
\begin{scope}[thick,font=\scriptsize]
148
149
\draw [->] (-4,0) -- (4,0) node [above left] {$\Re\{z\}$};
150
\draw [->] (0,-4) -- (0,4) node [below right] {$\Im\{z\}$};
151
152
\foreach \n in {-3,...,-1,1,2,...,3}{%
153
\draw (\n,-3pt) -- (\n,3pt) node [above] {$\n$};
154
\draw (-3pt,\n) -- (3pt,\n) node [right] {$\n i$};}
155
156
\draw [thick, color=red] (0,0) -- (2,3);
157
\draw [color=blue, fill=blue] (2,3) circle(0.05);
158
\node [color=black] at (3,3) {$ 2+3i$};
159
\end{scope}
160
\end{tikzpicture}
161
\end{center}
162
\caption{\textit{\textbf{2+3i}} plotted on an Argand Diagram}
163
\label{Argand Diagram}
164
\end{figure}
165
166
The length of the line representing $z$ is the modulus, this can be worked out by the following Pythagoras equation. For $z = a + bi$, where $a$ and $b$ are real numbers,
167
$$
168
\mid{z}\mid = \mid{a + bi}\mid = \sqrt{a^2 + b^2}
169
$$
170
171
Below is some Sage code that calculates the modulus of the complex number shown in Figure \ref{Argand Diagram},
172
\begin{verbatim}
173
z = 2 + 3 * i
174
abs(z) # finds the modulus of z and prints this first
175
arg(z) # finds the argument of z, prints second
176
sqrt(13)
177
arctan(3/2)
178
\end{verbatim}
179
180
The argument is the angle between the positive x-axis and the line representing the complex number itself. It must comply to the following inequality,
181
$$
182
-\pi < arg(z) \leq \pi
183
$$
184
185
The argument can never be greater than $\pi$, so if the line produced by drawing a complex number is in the positive Imaginary axis, the argument will be positive. If the line produced is in the negative Imaginary axis, then the argument will be negative. If the line produced lies on the Real axis where $z$ is a negative real number, the argument will be $-\pi$.
186
187
Information from lecture notes \cite{Argand}
188
189
\subsection{Exponential form}\label{exp}
190
For any complex number $z$ and any real number $\theta$, the following definition holds true,
191
$$
192
z = re^{i\theta} \ \text{and also} \ re^{i(\theta + 2n\pi)} = re^{i\theta}
193
$$
194
In the above definition, $r$ is the modulus and $\theta$ is the argument of the complex number $z$, the modulus and argument are both explained in Section \ref{Argand}.
195
196
\subsection{Polar form}\label{polar}
197
For any complex number $z$, by knowing the modulus and the argument, it is possible to show $z$ as follows,
198
$$
199
z = r(cos(\theta) + i(sin(\theta))
200
$$
201
202
\cite{polar}
203
204
\subsection{Comparing forms of complex numbers}
205
Table \ref{t1} pictured below shows multiple different ways of showing each complex number.
206
207
\begin{table}[h ]
208
\begin{center}
209
\begin{tabular}{|c|c|c|}
210
\hline
211
\bf{Standard Form} & \bf{Exponential Form} & \bf{Polar Form} \\[5pt]
212
\hline
213
$a + bi$ & $re^{i\theta}$ & $r(cos(\theta)$ + $isin(\theta))$ \\[5pt]
214
\hline
215
$3 + 3\sqrt{3}$ & $6e^{\frac{\pi}{3}i}$ & $6(cos(\frac{\pi}{3}) + isin(\frac{\pi}{3}))$ \\[5pt]
216
\hline
217
$-5$ & $-5$ & $-5(cos(2\pi) + isin(2\pi))$ \\[5pt]
218
\hline
219
$7i$ & $7e^{\frac{\pi}{2}i}$ & $7(cos\left(\frac{\pi}{2}\right) + isin\left(\frac{\pi}{2}\right)$ \\[5pt]
220
\hline
221
\end{tabular}
222
\end{center}
223
\caption{Table showing different forms of representing complex numbers}
224
\label{t1}
225
\end{table}
226
227
\section{Conclusion}
228
In this document I have been exploring many different aspects of complex numbers. I have looked at how to plot graphs in LaTex and in Sage, showing the Sage code in the document. If I were to further continue this project I would investigate differential equations using complex numbers, and look at how to solve them using Sage.
229
230
\bibliographystyle{plain}
231
\bibliography{Bibliography}
232
233
\end{document}
234