-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tex
More file actions
2147 lines (1660 loc) · 80.5 KB
/
main.tex
File metadata and controls
2147 lines (1660 loc) · 80.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% -------------------------------------------------------------------------------------------------------- %
\documentclass[a5paper,9pt]{book}
\title{Mathematics}
\author{Bogdan Pricope}
\date{\today}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Packages
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[utf8]{inputenc}
\usepackage[%
top = 1in,
bottom = 0.875in,
inner = 0.875in,
outer = 0.625in
]{geometry}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage[british]{babel}
\usepackage{titling, titlesec}
\usepackage{multirow}
\usepackage{xcolor, colortbl}
% \usepackage{lscape}
% \usepackage{hhline}
% \usepackage{csquotes}
% \usepackage{esint}
% \usepackage{newtxtext, newtxmath}
\usepackage{enumitem}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\usepackage{tikz}
\usepackage{standalone}
\usepackage{centernot}
\usepackage[makeroom]{cancel}
\usepackage{soul}
\usepackage{hyperref}
\usepackage{mathrsfs}
\usepackage[
labelfont=bf,
format=hang,
% justification=raggedright
]{caption}
\usepackage{threeparttable}
% \usepackage{xwatermark}
% \usepackage{arcs}
% \usepackage{etoolbox}
% \usepackage{mathrsfs}
% \usepackage{mathtools}
\usepackage{calc}
\usepackage{booktabs}
\usepackage{fancyhdr}
\usepackage[Rejne]{fncychap}
\usepackage{bold-extra}
\usepackage[dotinlabels]{titletoc}
\usepackage{lipsum}
\usepackage{siunitx}
\usepackage{epigraph}
\usepackage{subcaption}
\usepackage{xhfill}
\usepackage{stix}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Preamble configuration
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ------------------------------------------------- TikZ ------------------------------------------------- %
\pgfplotsset{compat=1.16}
\usetikzlibrary{%
calc,
patterns,
patterns.meta,
arrows,
arrows.meta,
positioning,
shapes.misc,
math,
external,
}
\tikzset{>=Latex}
% --% ----------------------------------------------- Hyperref ----------------------------------------------- %
\hypersetup{%
colorlinks=true, % This allows the use of coloured links.
allcolors=black, % This sets all links to black.
urlcolor=blue % This sets URLs to blue.
}
% ------------------------------------------------ Amsthm ------------------------------------------------ %
\newtheorem{thm}{Theorem}
\newtheorem{pos}{Postulate}
\theoremstyle{definition}
\newtheorem*{defn}{Definition}
\renewcommand{\qedsymbol}{Q.E.D.}
% ----------------------------------------------- Fancyhdr ----------------------------------------------- %
\pagestyle{empty}
\makeatletter
\def\cleardoublepage{\clearpage\if@twoside\ifodd\c@page\else%
\hbox{}\thispagestyle{empty}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother
% ------------------------------------------ Paragraph settings ------------------------------------------ %
\setlength{\parindent}{0.25in}
% \tolerance=1
% \emergencystretch=10pt
% \hyphenpenalty=100
% \hbadness=100
% \setcounter{tocdepth}{1}
% ----------------------------------------------- SiUnitX ----------------------------------------------- %
\sisetup{%
tight-spacing=true,
inter-unit-product = \ensuremath{{}\!\cdot\!{}}
}
% ----------------------------------------------- Titling ----------------------------------------------- %
\renewcommand{\maketitle}{%
\begin{titlepage}
\begin{center}
\vspace*{\fill}
{\Huge\textbf{Mathematics}}
\vspace*{3\bigskipamount}
{\LARGE Bogdan Pricope}
\vspace*{1.25\bigskipamount}
{\large\today}
\vspace*{\fill}
\end{center}
\end{titlepage}
}%
% --------------------------------- Table of contents --------------------------------- %
% \titlecontents{chapter} [6pc]
% {\addvspace{1pc}\bfseries
% \titlerule[2pt]\filright}
% {\contentslabel%
% [\textsc{\chaptername}\
% \thecontentslabel]{6pc}}
% {}{\hfill\contentspage}
% [\addvspace{2pt}]
% \setcounter{tocdepth}{1}
% ----------------------------------- Fancyhdr ------------------------------------ %
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\fancyhead{}
\fancyhead[R]{{\bfseries\leftmark}}
\fancyhead[L]{{\bfseries\textsc{\chaptername}\ \thechapter}}
% ---------------------------------- titlesec ------------------------------------- %
\titleformat{\section}
{\large\bfseries}
{\thesection}
{15pt}
{}[\titlerule]
\titleformat{\subsection}
{\normalsize\bfseries}
{\thesubsection}
{15pt}
{}
% ------------------------------------------------ Caption ------------------------------------------------ %
\captionsetup[table]{
labelsep=colon,
justification=raggedright,
singlelinecheck=off,
skip=0.25\baselineskip,
}
% --------------------------------- New commands --------------------------------- %
\newcommand{\txtlinesur}[1]{% This function surrounds text with equally spaced \hrule.
\vspace*{\baselineskip}
\hrule%
\vspace*{\medskipamount}
#1
\vspace*{\medskipamount}
\hrule%
\vspace*{\baselineskip}
}
\newcommand{\eqlinesur}[1]{% This function surrounds equations with equally spaced \hrule.
\vspace*{\baselineskip}
\hrule%
\vspace*{\medskipamount}
#1
\vspace*{\medskipamount-0.5\belowdisplayskip}
\hrule%
\vspace*{\baselineskip}
}
\newcommand{\nomlinesur}[2]{% This function surrounds theorems with equally spaced \hrule.
\vspace*{\baselineskip}
\hrule%
\vspace*{\medskipamount}
#1
\vspace*{\medskipamount}
\hrule%
\vspace*{\medskipamount}
#2
\vspace*{\medskipamount}
\hrule
\vspace*{\baselineskip}
}
\newcommand{\dd}{\mathrm{d}}
\newcommand{\cc}{\!\cdot\!}
\newcommand{\xx}{\!\times\!}
\newcommand{\Rarr}{\Rightarrow}
\newcommand{\D}{\Delta}
\newcommand{\mm}[1]{\mathrm{#1}}
\newcommand{\fig}[2]{%
\hyperref[#2]{#1~\ref*{#2}}%
}
\newcommand{\qq}[2]{%
\begin{center}
\begin{minipage}{0.75\textwidth}
\hrulefill\hspace{2.5mm}\textbf{#2}\hspace{2.5mm}\hrulefill\medskip
\hspace*{\fill}{\Large\textbf{``}}\hspace*{\fill} \\
#1 \\[\baselineskip]
\hspace*{\fill}{\Large\textbf{''}}\hspace*{\fill}
\smallskip\hrule
\end{minipage}
\end{center}
}
\newcommand{\mhl}[1]{\colorbox{yellow}{\(\displaystyle #1\)}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Document
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\maketitle
\phantomsection%
\tableofcontents%
\listoffigures%
\listoftables%
\newpage
\chapter*{Introduction}
\phantomsection\addcontentsline{toc}{chapter}{Introduction}
This booklet started as a fun project in the middle of the 2020 lock down with
the purpose of containing everything I've learned so far in the subject of mathematics.
Although this booklet contains the notes I've made while studying, I am not the
author of the content, as it was gathered from a variety of different sources.
Therefore, the sole purpose of this material is to aid other students in this
subject free of charge and thus it can be used as desired.
\newpage
\pagestyle{fancy}
% \chapter{Introduction}%
% \label{chap:introduction}
% \newpage
\chapter{Mathematical Operations}%
\label{chap:mathematical_operations}
\qq{Pure mathematics is, in its way, the poetry of logical ideas.}
{Albert Einstein}
\newpage
\section{Fundamental Operations}%
\label{sec:fundamental_operations}
% \subsection{Terminology}
%
% \subsubsection{Addition}
%
% \nomlinesur{%
% \begin{equation*}
% a + b = c
% \end{equation*}
%
% \vspace*{-0.5\belowdisplayskip}
% }{%
% \begin{tabbing}
% $a$ \hspace{15pt}\= \\
% $b$ \> \\
% $c$ \> sum
% \end{tabbing}
% }
%
% \subsubsection{Subtraction}
%
% \nomlinesur{%
% \begin{equation*}
% a - b = c
% \end{equation*}
%
% \vspace*{-0.5\belowdisplayskip}
% }{%
% \begin{tabbing}
% $a$ \hspace{15pt}\= \\
% $b$ \> \\
% $c$ \> Difference
% \end{tabbing}
% }
%
% \subsubsection{Multiplication}
%
% \nomlinesur{%
% \begin{equation*}
% a \times b = c
% \end{equation*}
%
% \vspace*{-0.5\belowdisplayskip}
% }{%
% \begin{tabbing}
% $a$ \hspace{15pt}\= multiplier \\
% $b$ \> multiplicand \\
% $c$ \> product
% \end{tabbing}
% }
%
% \subsubsection{Division}
%
% \nomlinesur{%
% \begin{equation*}
% a \div b = c
% \end{equation*}
%
% \vspace*{-0.5\belowdisplayskip}
% }{%
% \begin{tabbing}
% $a$ \hspace{15pt}\= dividend \\
% $b$ \> divisor \\
% $c$ \> quotient
% \end{tabbing}
% }
%
% \subsubsection{Raising to a Power}
%
% \nomlinesur{%
% \begin{equation*}
% a^b = c
% \end{equation*}
%
% \vspace*{-0.5\belowdisplayskip}
% }{%
% \begin{tabbing}
% $a$ \hspace{15pt}\= base \\
% $b$ \> exponent \\
% $c$ \> result
% \end{tabbing}
% }
%
% \subsubsection{Taking the n\textsuperscript{th} Root}
%
% \nomlinesur{%
% \begin{equation*}
% \sqrt[a]{b} = c
% \end{equation*}
%
% \vspace*{-0.5\belowdisplayskip}
% }{%
% \begin{tabbing}
% $a$ \hspace{20pt}\= root \\
% $b$ \> \\
% $c$ \> result
% \end{tabbing}
% }
\subsection{Addition and Subtraction}
Addition is a \emph{commutative} operation; this means that the order
of terms does not matter.
\begin{equation*}
a + b = b + a
\end{equation*}
Addition is also an \emph{associative} operation, meaning that when adding
three or more numbers, the order in which they are added does not matter,
producing the same result.
\begin{equation*}
a + (b + c) = (a + b) + c
\end{equation*}
Another property of addition is \emph{distributivity}, meaning that if
a number is multiplied by a sum of two other numbers, the same result is
given by the addition of those two numbers, each being multiplied by the
first number.
\begin{equation*}
a(b + c) = ab + ac
\end{equation*}
Subtraction, however, is \emph{not commutative} and changing the order of the
terms will result in a different value.
\begin{equation*}
a - b \neq b - a
\end{equation*}
Also, subtraction is not an \emph{associative} operation as addition is.
\begin{equation*}
a-(b-c) \neq (a-b)-c
\end{equation*}
However, subtraction is a \emph{distributive} operation.
\begin{equation*}
a(b-c) = ab - ac
\end{equation*}
When adding or subtracting algebraic terms, if those therms are of different
kind, they cannot be simplified.
\begin{align*}
a + b &= a + b & a + a &= 2a \\
a + a - b &= 2a - b & b + a - b &= a
\end{align*}
\subsection{Multiplication and Division}
Multiplication represents a repeated addition while division represents
a repeated subtraction. When it comes to the order of operations, multiplication
and division are preformed before addition and subtraction.
\eqlinesur{\begin{equation*}
a\times b = \underset{a}{\underbrace{b + b + \cdots + b}}
\end{equation*}}
\paragraph{Example:}
\begin{equation*}
3\times 5 = 5 + 5 + 5 = 15\\ [5pt]
\end{equation*}
When it comes to division, the divisor (the term that the dividend is divided by)
is subtracted from the dividend until it reaches zero and the result is given
by the number of times the divisor was subtracted from the dividend.
\eqlinesur{\begin{equation*}
a\div b = \overset{a\,-\,nb\,=\,0}{\overbrace{a - \underset{n}{\underbrace{b - b - \cdots - b}}}} = n
\end{equation*}}
\paragraph{Example:}
\begin{align*}
6 \div 2 = \overset{6\,-\,3\,\xx\,2\,=\,0}{\overbrace{6 - \underset{3}{\underbrace{2 - 2 - 2}}}} = 3
\end{align*}
When multiplying or dividing two terms with the same signs, the result
will be a positive term; when multiplying or dividing two terms with
different signs, however, the result will have be a negative term.
\txtlinesur{\begin{align*}
a\times b = ab \qquad&\text{ and }\qquad (-a)(-b) = ab\\
a(-b) = -ab \qquad&\text{ and }\qquad (-a)(b) = - ab
\end{align*}}
\pagebreak
% \begin{table}
% \centering
% \begin{threeparttable}
% \caption{Sign rules for multiplication and division}\label{tab:sign_rule_multiplication_division}
% \begin{tabular}{ccc}
% \toprule
% \hspace{15.5pt}\textbf{Term 1}\hspace{15.5pt} & \hspace{15.5pt}\textbf{Term 2}\hspace{15.5pt} & \hspace{15.5pt}\textbf{Result}\hspace{15.5pt} \\
% \midrule
% $+$ & $+$ & $+$ \\
% $-$ & $-$ & $+$ \\
% $+$ & $-$ & $-$ \\
% $-$ & $+$ & $-$ \\
% \bottomrule
% \end{tabular}
% \end{threeparttable}
% \end{table}
Like addition, multiplication is a \emph{commutative}, \emph{associative}
and \emph{distributive} operation.
\begin{gather*}
ab = ba \\[5pt]
a(bc) = (ab)c \\[5pt]
a(b+c) = ab + ac \\
\end{gather*}
Division is not a \emph{commutative} or an \emph{associative} operation
but is, however, \emph{distributive} only if the sum is divided by a number
and not the other way around.
\begin{gather*}
a\div b \neq b\div a \\[5pt]
a\div(b\div c) \neq (a\div b)\div c \\[5pt]
(a + b)\div c = a\div c + a\div b \\[5pt]
c\div (a+b) \neq c\div a + c\div b \\
\end{gather*}
\paragraph{Multiplication and Division Facts}
Any number multiplied by one and any number divided by one will result
in itself.
\txtlinesur{%
\begin{equation*}
1\times a = a \qquad\text{ and }\qquad a\div 1 = a
\end{equation*}
}
Any number multiplied by zero and zero divided by any number will result
in zero.
\txtlinesur{%
\begin{equation*}
0\times a = 0 \qquad\text{ and }\qquad 0\div a = 0
\end{equation*}
}
\pagebreak
Any number divided by zero is \emph{undefined}.
\txtlinesur{%
\begin{equation*}
a\div 0 = \text{undefined}
\end{equation*}
}
Any number divided by itself is one.
\txtlinesur{%
\begin{equation*}
a\div a = 1
\end{equation*}
}
A \emph{reminder} is a number that is left over from a division where
the divisor did not fully fit into the dividend. For $a\div b = c \text{ remainder } r$.
\txtlinesur{
\begin{equation*}
c = ab + r
\end{equation*}
}
A mathematical operation between two numbers which has as a result
a remainder is knows as \emph{modulo}.
\subsection{Indices and Radicals}
Just as multiplication is a repeated addition, raising to a power is a
repeated multiplication, with the index being the amount of times a number
is multiplied by itself.
\eqlinesur{%
\begin{equation*}
a^b = \underset{b}{\underbrace{a\times a\times\cdots\times a}}
\end{equation*}
}
A radical is the reverse operation to power raising, with the root being
the number of times a number has to be multiplied by itself in order to
give the number under the radical. The $n$\textsuperscript{th} root radical
of a number $a$ is written as $\sqrt[n]{a}$ and if the root is not specified,
then it is a square root $\left(\text{i.e.\ }\sqrt{a} = \sqrt[2]{a}\right)$.
\pagebreak
\vspace*{-\baselineskip}
\txtlinesur{%
\begin{equation*}
\sqrt[n]{a} = b \quad\because\quad b^n = a
\end{equation*}
}
Note that raising to a power and taking the $n$\textsuperscript{th} root is preformed
before multiplication and division which is preformed before addition and
subtraction. Also note that there are two results if $n$ is an even number
$\left(\text{i.e.\ }\sqrt[2n]{a} = \pm b\right.$ $\left.\because\; (-b)^{2n}=b^{2n}\right)$.
\subsubsection{Index Rules:}
\eqlinesur{%
\begin{align*}
0^n &= 0 & 1^n &= 1 & a^0 &= 1\\[7.5pt]
a^n\times a^m &= a^{n+m} & a^n\div a^m &= a^{n-m} & {\left(a^n\right)}^m &= a^{nm} \\[7.5pt]
a^1 &= a & a^{-n} &= \frac{1}{a^n} & \frac{1}{a^{-n}} &= a^n
\end{align*}
}
\subsubsection{Radical Rules:}
\eqlinesur{%
\begin{align*}
{\left(\sqrt[n]{a}\right)}^n &= a & {\left(\sqrt[n]{a}\right)}^m &= \sqrt[n]{a^m} & \sqrt[\uproot{1}n\cdot p]{a^{m\cdot p}} &= \sqrt[n]{a^m} \\[7.5pt]
a\strut^{\hspace{-1pt}\frac{n}{m}} &= \sqrt[m]{a^n} & \sqrt[m]{a^n} &= \sqrt[\leftroot{-2}\uproot{5}{\frac{m}{n}}]{a} & \sqrt[n]{ab} &= \sqrt[n]{a}\sqrt[n]{b}\\[7.5pt]
\sqrt[n]{\sqrt[m]{a}} &= \sqrt[nm]{a} & \sqrt[n]{\frac{a}{b}} &= \frac{\sqrt[n]{a}}{\sqrt[n]{b}} & \frac{\sqrt[n]{a}}{\sqrt[m]{b}} &= \sqrt[nm]{\frac{a^m}{b^n}}
\end{align*}
}
\subsection{Mathematical Operations with Rational Numbers}
A \emph{rational number} is any number that is a fraction of another
whole number, such as $\frac{3}{4}$ (three quarters). The fraction line
represents division as $\frac{3}{4}$ is the same as $3\div 4$. The top
part of a fraction is known as the \emph{numerator} while the bottom
part is known as the \emph{denominator}. When the numerator is greater
than the denominator, the fraction can be represented in terms of a whole
number and a fraction, such as \emph{one and a half}, which is the equivalent of
\emph{three halves} $\left(\text{i.e.\ }\frac{3}{2} = 1\frac{1}{2}\right)$.
\paragraph{For example:} if $a\div b = c \text{ remainder } r$:
\eqlinesur{%
\begin{equation*}
\frac{a}{b} = c\,\frac{r}{b}
\end{equation*}
}
When multiplying a fraction by a number, only the numerator is multiplied
by that number.
\eqlinesur{%
\begin{equation*}
a \times \frac{b}{c} = \frac{ab}{c}
\end{equation*}
}
When dividing a fraction by a number, only the denominator is multiplied by
that number.
\eqlinesur{%
\begin{equation*}
\frac{a}{b}\div c = \frac{a}{bc}
\end{equation*}
}
When multiplying two fractions together, the numerators are multiplied
with each other and the denominators are also multiplied with each other.
\eqlinesur{%
\begin{equation*}
\frac{a}{b}\times \frac{c}{d} = \frac{ac}{bd}
\end{equation*}
}
\pagebreak
When dividing two fractions, the divisor fraction is flipped so that the
numerator becomes the denominator and vice-versa (this is know as the reciprocal)
and then they are multiplied together.
\eqlinesur{%
\begin{equation*}
\frac{a}{b}\div\frac{c}{d} = \frac{a}{b}\times\frac{d}{c} = \frac{ad}{bc}
\end{equation*}
}
The addition and subtraction of fractions is a little more difficult
than multiplication and division is. This is because in order to add or
subtract two fractions, they must have the same denominator, which can be
achieved through amplification, which is the multiplication of both numerator
and denominator by the same number, being the equivalent of multiplying
that fraction by one.
\eqlinesur{%
\begin{equation*}
\frac{a}{b} \pm \frac{c}{d} = \frac{ad}{bd} \pm \frac{bc}{bd} = \frac{ad \pm bc}{bd}
\end{equation*}
}
The addition and subtraction of a fraction with a number is treated the
same as in the case above as any number $a$ can be represented as $\frac{a}{1}$.
\eqlinesur{%
\begin{equation*}
\frac{a}{b} \pm c = \frac{a}{b} \pm \frac{bc}{b} = \frac{a\pm bc}{b}
\end{equation*}
}
When raising a fraction to any power, the operation is performed on both
the numerator and the denominator.
\eqlinesur{%
\begin{equation*}
{\left(\frac{a}{b}\right)}^{\hspace{-1pt}n} = \frac{a^n}{b^n}
\end{equation*}
}
When taking the $n$\textsuperscript{th} root of a fraction, the operation
is performed in the same manner as raising it to a power.
\eqlinesur{%
\begin{equation*}
\sqrt[n]{\frac{a}{b}} = \frac{\sqrt[n]{a}}{\sqrt[n]{b}}
\end{equation*}
}
\pagebreak
\section{Advanced Mathematical Operations}%
\label{sec:advanced_mathematical_operations}
\subsection{Summation}
\emph{Summation} is a complex mathematical operation which computes repeated
additions with complex terms under certain conditions, where each term
`$n$' starts at an initial value `$a$' and is incremented by one until it
equals its final value `$b$'. The symbol for summation is the Greek capital
letter \emph{sigma} ($\Sigma$).
\nomlinesur{%
\begin{equation*}
\sum_{n=a}^{b} n = a + (a+1) + (a+2) + \cdots + b
\end{equation*}
}{%
\begin{tabbing}
$a$ \hspace{25pt}\= initial value of $n$ \\
$b$ \> final value of $n$ \\
$n$ \> the expression to be computed
\end{tabbing}
}
\paragraph{Example:}
\begin{align*}
x = \sum_{n=1}^{5} n \Rarr x &= 1 + 2 + 3 + 4 + 5 \\
x &= 15
\end{align*}
\begin{align*}
x = \sum_{n=0}^{3} 2^n \Rarr x &= 2^0 + 2^1 + 2^2 + 2^3 \\
x &= 1 + 2 + 4 + 8 \\
x &= 15
\end{align*}
\begin{align*}
x = \sum_{i=1}^{5}(2i - 1) \Rarr x &= 1 + 3 + 5 + 7 + 9 \\
x &= 25
\end{align*}
\pagebreak
\subsection{Product}
The \emph{product} operation works in the same way as summation does, with
the exception of the terms being multiplied instead of added. The symbol for
product is the Greek capital letter \emph{pi} $\left(\Pi\right)$.
\eqlinesur{%
\begin{equation*}
\prod_{n=a}^{b} n = a(a+1)(a+2)\times\cdots\times b
\end{equation*}
}
\paragraph{Example:}
\begin{align*}
x = \prod_{n=1}^{5} n \Rarr x &= 1\times 2 \times 3 \times 4 \times 5 \\
x &= 120
\end{align*}
\subsection{Limits}
A \emph{limit} is a mathematical operation which is used in order to evaluate
an expression where a term gets infinitely close to a certain value without
actually being equal to that value. For example, an expression such as $\frac{1}{0}$
cannot be evaluated and is therefore undefined; by using a limit, the behaviour
of this expression can be observed as the denominator approaches zero from
a certain direction.
\eqlinesur{%
\begin{equation*}
\lim_{n\rightarrow a} n = a
\end{equation*}
}
\vspace{-\baselineskip}
\paragraph{Example:}
\begin{align*}
\lim_{n\rightarrow 0} \frac{1}{n} &\Longrightarrow \frac{1}{1} = 1 \Longrightarrow \frac{1}{0.1} = 10
\Longrightarrow \frac{1}{0.01} = 100 \Longrightarrow \frac{1}{0.001} = 1000
\end{align*}
The example above shows that as $n$ approaches zero, the result keeps getting
bigger, thus the result to the expression being \emph{infinity}.
\begin{equation*}
\therefore \lim_{n\rightarrow 0} \frac{1}{n} = \infty
\end{equation*}
\pagebreak
\subsection{Factorial}
The \emph{factorial} function repeatedly multiplies a natural number with
every natural number between one and itself. The symbol for this function
is the exclamation mark `!' after the number.
\txtlinesur{%
\begin{equation*}
a! = 1\times 2 \times 3 \times \cdots \times (a-1) \times a
\end{equation*}
}
By definition, the factorial of zero equals one.
\txtlinesur{%
\begin{equation*}
0! = 1
\end{equation*}
}
Therefore, for numbers greater or equal to one, the factorial function can
be defined as:
\eqlinesur{%
\begin{equation*}
a! = \prod_{n=1}^{a}n
\end{equation*}
}
\paragraph{Example:}
\begin{gather*}
1! = 1 \\[5pt]
2! = 1\times 2 = 2 \\[5pt]
5! = 1\times 2 \times 3 \times 4\times 5 = 120 \\[5pt]
10! = 1 \times 2 \times 3 \times \cdots \times 8 \times 9 \times 10 = \num{3628800} \\
\end{gather*}
Note that the factorial function does not work with rational or decimal numbers,
nor does it work with negative numbers.
\pagebreak
\subsection{Modulo}
The \emph{modulo} operation performs a division between two numbers and it
returns the remainder as a result. If $a\div b = c \text{ remainder } r$:
\txtlinesur{%
\begin{equation*}
a\bmod{b} = r
\end{equation*}
}
\subsubsection{Rules:}
\nomlinesur{%
\begin{equation*}
\text{If}\qquad a\div b = c\text{ rem } r\qquad \text{ then }\qquad a = cb + r
\end{equation*}
\vspace*{-0.5\belowdisplayskip}
}{%
\vspace*{-0.5\abovedisplayskip}
\begin{equation*}
a, b \neq 0 \qquad\text{ and }\qquad 0 \leq r < |\,b\,|
\end{equation*}
\vspace*{-0.5\belowdisplayskip}
}
\paragraph{Example:}
\begin{align*}
&13 \div 6 = 2 & -&16\div 5 = -4 \\[-5pt]
&\underline{12} & -&\underline{20} \\[-5pt]
&\phantom{0}1 \text{ (remainder)} & &\phantom{0}4 \text{ (remainder)} \\[5pt]
&\therefore 13\bmod{6} = 1 & &\therefore -16\bmod{5} = 4 \\[25pt]
&18\div -7 = -2 & -&15\div -6 = 3 \\[-5pt]
&\underline{14} & -&\underline{18} \\[-5pt]
&\phantom{0}4 \text{ (remainder)} & &\phantom{0}3 \text{ (remainder)} \\[5pt]
&\therefore 18\bmod{(-7)} = 4 & &\therefore -15\bmod{(-6)} = 3 \\
\end{align*}
Note that: $\;a\bmod{b} = a\bmod{(-b)}$.
\pagebreak
\subsection{Absolute Value}
The absolute value of a number gives the magnitude of that number, regardless
of its direction (sign).
\txtlinesur{%
\begin{equation*}
|\pm a\,| = a
\end{equation*}
}
\paragraph{Example:}
\begin{align*}
|\,5\,| = 5 \qquad\text{ and }\qquad |-3\,| = 3 \\
\end{align*}
% The function can also be defined as:
%
% \txtlinesur{%
% \begin{equation*}
% |\,a\,| = \sqrt{a^2}
% \end{equation*}
% }
%
% \paragraph{Example:}
%
% \begin{align*}
% |\,5\,| = \sqrt{5^2} = \sqrt{25} = 5 \qquad\text{ and }\qquad |-3\,| = \sqrt{{(-3)}^2} = \sqrt{9} = 3
% \end{align*}
%
% \vfill
%
\section{Extra}
In an equation, the order of the operations is performed from left to right and
in the order shown in \fig{Table}{tab:order_of_operations}.
\begin{table}[ht!]
\centering
\begin{threeparttable}
\caption{Order of operations}\label{tab:order_of_operations}
\begin{tabular}{cc}
\toprule
\textbf{Order} & \textbf{Operation} \\
\midrule
1 & Round/Square Brackets and Braces \\
2 & Raising to power/Taking the $n$\textsuperscript{th} root \\
3 & Multiplication/Division \\
4 & Addition/Subtraction \\
\bottomrule
\end{tabular}
\end{threeparttable}
\end{table}