Lecture 2
Lecture 2
VARIABLES – Is something you imagine that it has one or more values but you don’t know what
they are. Is something you want whatever you say about it to be equally true for all elements in a
given set, and so you don’t want to be restricted to considering only a particular, concrete value
for it.
Example: Writing sentences using Variables
1. Are there numbers with the property that the sum of their squares equals the square of their sum
Answer: Are there number a a and b such that a2+b2 = (a+b)2
2. Given any real number, its square is non negative.
For any real number r, r2 ≥ 0
Exercise:
a. Are there numbers whose squares are smaller than the numbers themselves?
MATHEMATICAL STATEMENTS
Universal Statement – Says that a certain property is true for all elements in a set
Conditional Statement – Says that if one thing is true then some other thing also has to be true.
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)
An existential universal statement is a statement that is existential because its first part asserts that
a certain object exist and is universal because its second part says that the object satisfies a certain
property for all things of a certain kind.
For example:
There is a positive integer that is less than or equal to every positive integer:
The first part of this statement is existential because there is “only” a positive integer, it is not
generalizing all integers. The second part is universal in a way that this specific integer is equal or
less than to every positive integer.
SYMBOL SET
R Set of all real numbers
Z Set of all integers
Q Set of all rational numbers, or quotients of integers
N Set of all natural numbers
Subsets
A basic relation between sets is that of subset.
If A and B are sets, then A is called a subset of B, written A⊆B, if, and only if, every element of
A is also an element of B.
A⊆B means that For all elements x, if x∈A then x∈B.
It follows from the definition of subset that for a set A not to be a subset of a set B means that there
is at least one element of A that is not an element of B
A⊈B means that For all elements x, if x∈A then x∉B.
Ordered Pair
Given elements a and b, the symbol (a, b) denotes the ordered pair consisting of a and b together
with the specification that a is the first element of the pair and b is the second element. Two ordered
pairs (a, b) and (c, d) are equal if, and only if, a=c and b=d
(a, b) = (c, d) means that a=c and b=d
Example:
1. Is (1, 2) = (2, 1)
Cartesian Product
Given sets A and B, the Cartesian product A and B, denoted AxB and read “A cross B” is the set
of all ordered pairs (a, b), where a is in A and b is in B
Example:
1. Let A={1,2} and B={1, 2, 3} and define a relation R from A to B as follows:
Given any (x, y) ∈ A x B
𝑥−𝑦
(x, y) ∈ R means that is an integer
2
Function
A relation F from A to B is a function if, and only if:
1. Every element A is the first element of an ordered pair of F.
2. No two distinct ordered pairs in F have the same first element.
Example:
2. Let X={a, b, c} and Y={1, 2, 3, 4}. Which of the relations A, B, C defined below are
functions from X to Y?
a. A = {(a, 1), (b, 2), (c, 3)}
b. For all (x, y) ∈ A x B, (x, y) ∈ B means that x is a vowel and y is even
c. C is defined by the arrow diagram.