Unit 2: Language of Math
2025-07-31
In discrete math: a variable can be a single value or a set of values.
\[x = 5\] \[X=\{2,4,6,8,..\}\]
Text version:
Are there numbers with the following property: tripling it and adding 3 gives the same result as squaring it?
Using a placeholder:
Is there is a set of number \(x\) with the following property: doubling \(x\) and adding 3 gives the same result as squaring \(x\)?
Collecting the mathematical terms:
\[\left\{\forall x \mid 2x + 3 = x^2\right\}\] Reading the equation:
A Set of numbers for all values of \(x\) where \(3x + 3\) equals \(x\) squared.
Solving the equation:
\[\eqalign{(x-3)(x + 1) &=& x^2-2x -3 &=& 0\\ x &=& \{3,-1\}\\ }\]
\[\begin{matrix}\quad \LaTeX\quad & \rm Symbol &\quad\rm Description\quad\\ \hline \backslash\tt forall & \quad\forall\quad & \rm For\ all,\ Every\\ \backslash\tt exists & \quad\exists\quad & \rm There\ exists\\ \backslash\tt mid & \quad\mid\quad & \rm Given,\ Where,\ Such\ that \\ \backslash\{\backslash\} &\{\ \}& \rm A\ set\ (Unordered)\\ \backslash\tt dots & \dots & \rm And\ so\ on\\ \backslash\tt in & \in &\rm Element\ in;\ Member\ of\\ \backslash\tt notin & \notin & \rm Not\ a\ member;\ Not\ in \\ \backslash\tt subset & \subset & \rm Subset\ of\\ \backslash\tt subseteq & \subseteq & \rm Subset\ or\ equal\ to \\ \backslash\tt neq & \neq & \rm Negate;\ Not\\ \backslash\tt emptyset& \emptyset & An empty set\\ \end{matrix}\]
The moon is made of cheese.
42 is a perfect square.
Every even number greater than 2 can be expressed as the sum of two primes.
\(3 + 7 = 12\)
Would you like some cake?
The sum of two squares.
\(1 + 3 + 5 + 7 + \dots + 2n + 1\)
Go to your room!
\(3 + x = 12\)
\[\eqalign{Relation &\quad& Explanation\\ P \land Q& & \hbox{P and Q (conjunction)}\\ P \to Q& &\hbox{If P, then Q (implication)}\\ P \leftrightarrow Q & & \hbox{P if and only if Q (biconditional)}\\ P \lor Q& &\hbox{P or Q (disjunction)}\\ \neg P& &\hbox{Not P (negation)}\\ }\]
universal statement says that a certain property is true for all elements in a set. (All positive numbers are greater than zero.)
conditional statement says that if one thing is true then some other thing also has to be true. (For example: If 378 is divisible by 18, then 378 is divisible by 6.)
existential statement says that there is at least one thing for which the property is true. (For example: There is a prime number that is even.)
Let \(P(x,y)\) be the predicate where Person \(x\) can be fooled at Time \(y\).
Match each statement with its representation in symbols
Solutions
\[\small\eqalign{\rm Sym&\rm Set names &\rm \hbox{Math definition}\\ \hline \emptyset &\hbox{empty set} & \emptyset = \{\}\\ \mathbb N & \hbox{all natural numbers} &\mathbb N = \{1, 2, \dots, \infty\} \\ \mathbb W & \hbox{all natural numbers} &\mathbb W = \{0, 1, 2, \dots, \infty\} \\ \mathbb Z & \hbox{all integers} & \mathbb Z = \left\{{-\infty\dots,-2,-1,\atop 0, 1, 2, \dots \infty}\right\}\\ \mathbb Q & {\hbox{all rational numbers}\quad\atop {}^\hbox{(quotients of integers)}}& \mathbb Q = \left\{\frac{\forall x}{\forall y} \mid x\in \mathbb Z, y \in \mathbb Z \right\}\\ \mathbb R & \hbox{all real numbers} &\mathbb R =\left\{{-\infty\dots,-2,-1,\atop 0,1,2,\dots\infty}\right\} \\ \cal U & \hbox{Universe} & \\ }\]
\[\left\{x \in S \mid P(x)\right\}\] ### Using Set-Builder Notations
If A and B are sets, then A is called a subset of B, written \(A \subset B\), if, and only if, every element of A is also an element of B.
\[A \subset B \mid (\forall a \in A) \in B\]
If \(A\) and \(B\) are sets, then \(A\) is called a subset of \(B\), written \(A \subset B\), if, and only if, every element of \(A\) is also an element of \(B\).
\[A \subset B \mid (\exists a \in A) \notin B\]
\[\eqalign{S&=& A \times B\\ &=& \left(\forall a\in A, \forall b \in B \mid (a,b)\right)\\ &=& \left(\begin{matrix}(1,4), (2,4), (3,4),\\ (1,5), (2,5), (3,5)\end{matrix}\right)\\}\]
If \(n = |A|\) and \(m= |B|,\quad \therefore \quad n\cdot m = |A \times B|\)
Let n be a positive integer. Given a finite set A, a string of length n over A is an ordered n-tuple of elements of A written without parentheses or commas.
The elements of A are called the characters of the string.
The null string over A is defined to be the “string” with no characters. It is often denoted \(\lambda\) and is said to have length 0.
If \(A = \{0, 1\}\), then a string over A is called a bit string
Let \(A = \{a, b\}\). List all the strings of length 3 over A with at least two characters that are the same.
\[aab, aba, baa, aaa, bba, bab, abb, bbb\]
often act as black boxes that cause or reject a relationship to form between codomains (input).
Can be represented as a variable \(R\)
\[\eqalign{Given\ A &=& \{1, 2\};\ B = \{1, 2, 3\};\ \{(x,y)\} \subset A \times B;\ \forall (x,y) \in R;\ \mid \\ && R = \left(\frac{x + y}{2}\right) mod\ 2 = 0\\ \\ A \times B &=& \{(1,1), (1,2), (1,3), (2,1), (2,2), (2,3)\}\\ (x,y) \in R &=& \{(1,1), (1,3), (2,2)\}\\ (x,y) \notin R &=& \left\{(1,2),(2,1)\right\} }\]
\[(x,y) \in R \mid x - y\]
A relation F from A to B is a function if, and only if:
Reversible
Non-reversible
\[\eqalign{LaTeX &\quad&\rm Sym&\quad& \hbox{Logic operator}\\ \hline \backslash\tt lor &&\lor &\quad& \hbox{OR}\\ \backslash\tt land &&\land&&\hbox{AND}\\ \backslash\tt otimes &&\otimes&&\hbox{XOR}\\ \backslash\tt neg &&\neg&&\hbox{NOT}\\ }\]
IT221