Skip to main content
Contents Index
Dark Mode Prev Up Next
\(\newcommand{\im}{{\mathrm{im}}}
\newcommand{\given}{{\, :\,}}
\newcommand{\hanoi}{\mathrm{hanoi}}
\newcommand{\lcm}{{\mathrm{lcm}}}
\newcommand{\ID}{{\mathrm{ID}}}
\newcommand{\chr}{{\mathtt{chr}}}
\newcommand{\ord}{{\mathtt{ord}}}
\newcommand{\set}[1]{\left\lbrace #1 \right\rbrace}
\newcommand{\seq}[2]{( #1 )_{#2}}
\newcommand{\gr}[1]{\left( #1 \right)}
\newcommand{\abs}[1]{\left| #1 \right|}
\newcommand{\size}[1]{\# #1}
\newcommand{\id}[1]{\mathrm{id}_{#1}}
\newcommand{\ip}[1]{\left\langle #1 \right\rangle}
\newcommand{\floor}[1]{\left\lfloor #1\right\rfloor}
\newcommand{\ceiling}[1]{\left\lceil #1\right\rceil}
\newcommand{\indemph}[1]{{\textbf{\emph{#1}}\index{#1}}}
\renewcommand{\implies}{\to}
\renewcommand{\iff}{\leftrightarrow}
\newcommand{\lxor}{\oplus}
\newcommand{\cP}{\wp}
\newcommand{\pset}{\cP}
\newcommand{\ZZ}{\mathbb{Z}}
\newcommand{\QQ}{\mathbb{Q}}
\newcommand{\NN}{\mathbb{N}}
\newcommand{\CC}{\mathbb{C}}
\newcommand{\RR}{\mathbb{R}}
\newcommand{\barr}[1]{\overline{#1}}
\newcommand{\sage}{\textsc{Sage}}
\newcommand{\magma}{\textsc{Magma}}
\newcommand{\bob}{\text{Bob}}
\newcommand{\true}{\text{T}}
\newcommand{\false}{\text{F}}
\newcommand{\ahat}{\hat{a}}
\newcommand{\ah}{\ahat}
\newcommand{\bhat}{\hat{b}}
\newcommand{\abar}{\bar{a}}
\newcommand{\cA}{\mathcal{A}}
\newcommand{\cF}{\mathcal{F}}
\newcommand{\cW}{\mathcal{W}}
\newcommand{\todo}[1]{{\color{red} TODO: #1}}
\renewcommand{\div}{\operatorname{div}}
\newcommand{\gexp}[3]{#1^{#2 #3}}
\newcommand{\gexpp}[3]{\displaystyle\left(#1\right)^{#2 #3}}
\newcommand{\glog}[3]{\log_{#1}^{#3}#2}
\def\dbend{{!!!}}
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
Subsection 0.1.4 Arithmetic
We recall basic properties of the operations on real numbers. Since the natural numbers, integers, and rational numbers are in the set of real numbers, they also hold for these.
For all real numbers \(a\) and \(b\) we have:
Commutative laws
\(a+b=b+a\) and
\(a\cdot b=b\cdot a\)
Associative laws
\(a+(b+c)=(b+a)+c\) and
\(a\cdot(b\cdot c)=(a\cdot b)\cdot c\)
Distributive law
\(\displaystyle a\cdot (b+c)=(a\cdot b)+(a\cdot c)\)
Identity laws
\(0+a=a\) and
\(1\cdot a=a\)
We call \(1\) the multiplicative identity. Note that the additive identity \(0\) is an element of the real and rational numbers and the integers, but not the natural numbers.
The following applies only to integers, rational numbers, and real numbers \(a\text{,}\) since neither \(0\) nor negative numbers are in the set of natural number. It only holds for \(a=0\) in \(\NN_0\text{.}\)
Inverse law for addition
\(\displaystyle a+(-a)=0\)
We call \(-a\) the additive inverse of \(a\) and write \(a+(-b)=a-b\text{.}\)
Because the sets of integers and natural numbers do not contain fractions, the following only holds for rational numbers and real numbers in general. The only integers for which it holds are \(a=1\) and \(a=-1\text{.}\) The only natural number for which it holds is \(a=1\text{.}\)
Inverse law for multiplication
\(\displaystyle a\cdot \frac{1}{a}=1\)
We call \(\frac{1}{a}\) the multiplicative inverse of \(a\text{.}\)
We indicate the order of operations with parenthesis (evaluate the innermost expression first), in addition we follow the precedence of operations:
Recall that
\(a^2=a\cdot a\text{.}\) With the laws above we prove:
Theorem 0.1.4.1 .
Let \(a\) and \(b\) be real numbers. Then
\(\displaystyle (a+b)^2=a^2+2ab+b^2\)
\(\displaystyle (a-b)^2=a^2-2ab+b^2\)
\(\displaystyle (a-b)(a+b)=a^2-b^2\)
Proof. We prove the first formula and leave the proof of the second formula as an exercise. For the third formula see
TheoremΒ 1.3.2.13 .
\begin{equation*}
(a+b)(a+b) = a(a+b)+b(a+b).
\end{equation*}
\begin{equation*}
a(a+b)+b(a+b)=(a^2+ab)+(ba+b^2).
\end{equation*}
\begin{equation*}
(a^2+ab)+(ba+b^2)=(a^2+ab)+(ab+b^2).
\end{equation*}
\begin{equation*}
(a^2+ab)+(ab+b^2)=a^2+(ab+ab)+b^2=a^2+2ab+b^2.
\end{equation*}
Thus we have proven that
\begin{equation*}
(a+b)(a+b)=a^2+2ab+b^2.
\end{equation*}
Figure 0.1.4.2. Mnemonics. (https://xkcd.com/992/ ) βSailor Moonβs head exploded onceβ and βSome men have explosive orgasmsβ both work for the Great Lakes from west to east (Paddle-to-the-Sea order).