Professional Documents
Culture Documents
✓What is a language?
✓Components of a Language
✓Importance of Mathematical Language
✓Characteristics of a Mathematical
Language
✓Expressions vs. Sentences
✓The grammar of Mathematics
✓Conventions used in Mathematics
✓Sets, Relations and Functions
✓Elementary Logic
SETS, RELATIONS
AND FUNCTIONS
Sets are collections of well-
defined objects, relations
indicate relationships between
members of two sets A and B and
functions are a special type of
relation where there is exactly or
at most one relationship for each
element a ∈ A with an element in
Sets & elements
Set theory is a basis of modern mathematics,
and notions of set theory are used in all formal
descriptions
SETS
- a set is a collection of well-defined objects
which are called the members or elements
of that set. If we have a set we say that some
objects belong (or do not belong) to this set,
are (or are not) in the set.
Sets & elements
A set is said to contain its elements.
The notation x ∈ S denotes that x is an element
of the set S. If x is not a member of S, write
x ∉ S.
Example
If A is the set of even numbers less than 11, then
A = {2, 4, 6, 8, 10}. Hence, 2 ∈ A, 4 ∈ A, 6 ∈ A,
8 ∈ A, 10 ∈ A but 12 ∉A.
Sets & elements
SETS
- can consist of elements of various natures: people,
physical objects, numbers, signs, other sets, etc.
- Sets can be finite or infinite.
Examples
1) the set of students in this room (finite)
2) the set of letters of the English language (finite)
3) the set of natural numbers (infinite)
4) costumers of a bank (infinite)
5) Mathematics faculty of USC (finite)
Sets & elements
Null set or empty set - set which has no members at all.
Singleton set - a set with only one member
Notation: Use,
1) A, B, C, … for sets;
2) a, b, c, … or x, y, z, … for members;
3) b ∈ A if b belongs to A,
4) B ∈ A if both A & B are sets, & B is a member of A,
5) c ∉ A, if c doesn’t belong to A, and
6) ∅ is used for the empty set.
•
Specifications of a Set
Interval Notation
Used to describe subsets of sets upon which an order is
defined, e.g., numbers.
[a, b] = {x / a ≤ x ≤ b} [a, ∞) = {x / x > a}
[a, b) = {x / a ≤ x < b} (a, ∞) = {x / x > a}
(a, b] = {x / a < x ≤ b} (-∞, a] = {x / x < a}
(a, b) = {x / a < x < b} (-∞, a) = {x / x < a}
PRACTICE
What is the cardinality of each set? Determine
which sets are identical.
1) A = {a, e, i, o, u}
2) B = {x/x is a consonant}
3) C = {x/x is a vowel letter}
4) D = {2, 4, 6, 8, 10, 12, 14, 16, 18}
5) E = {x/x is a multiple of 2 but less than 20}
PRACTICE (ANSWERS)
What is the cardinality of each set? Determine
which sets are identical.
1) /A/ = 5 Sets A and C are identical.
2) /B/ = 21 Sets D and E are identical.
3) /C/ = 5
4) /D/ = 9
5) /E/ = 9
Universal Set
The universal set, U is the set
containing everything currently
under consideration.
- content depends on the context.
- sometimes explicitly stated,
sometimes implicit
KINDS OF SETS
Usually by a set we mean a collection of elements
where the ordering of the elements in the set does
not matter and no element is repeated.
Example: The set {3, 1, 2, 2, 4, 4} is actually thought
of as {1, 2, 3, 4}.
Example:
The ordered set {1, 2, 3} is different from
{2, 1, 3}.
We can also have ordered multi-sets.
•
PRACTICE
Write all the subsets of each given set.
1) A = {2, 4, 6}
2) B = {March, May}
3) C = {a, e, i, o, u}
PRACTICE
Write all the subsets of each given set.
1) A = {2, 4, 6}
Subsets of A = { }, {2}, {4}, {6}, {2,4},
{2,6}, {4,6}, {2,4,6}
2) B = {March, May}
Subsets of B = { }, {March}, {May},
{March, May}
PRACTICE
Write all the subsets of each given set.
3) C = {a, e, i, o, u}
Subsets of C = { }, {a}, {e}, {i}, {o}, {u}, {a,
e},
{a, i}, {a, o}, {a, u}, {e, i}, {e, o}, {e, u}, {i, o},
{i, u}, {o, u}, {a, e, i}, {a, e, o}, {a, e, u},
{a, i, o}, {a, i, u}, {a, o, u}, {e, i, o}, {e, i, u},
{e, o, u}, {i, o, u}, {a, e, i, o}, {a, e, i, u},
{a, e, o, u}, {a, i, o, u}, {e, i, o, u},
{a, e, i, o, u}
Challenge question
Formula: 2n
(Exclusive union)
A ∪ B = {x / x ∈ A or x ∈ B or x ∈ (A ∩ B)}
(inclusive union)
SET OPERATIONS
Set union
•
SET OPERATIONS
•
SET OPERATIONS
Set intersection
•
=
=
=
SET OPERATIONS
Complement of a Set
Notation: Ac or or A’
A’ is the set of elements NOT in A.
SET OPERATIONS
Example
Given: U = {set of even numbers less than 20}
Find the complement of each given set relative U.
1) A = {2, 4, 6, 8}
2) B = {10, 12, 14, 16, 18, 20}
3) C = {6, 12, 18}
•
•
•
Relations and Functions
▪ In natural language relations are a kind of
links existing between objects.
Examples:
‘mother of’, ‘neighbor of’, “part of”,
‘is older than’, ‘is an ancestor of’,
‘is a subset of’, etc. These are binary relations.
•
Relations and Functions
Cartesian
Product of
Sets
A×B = {(a, p), (a, q), (a, r), (b, p), (b, q), (b, r)}
Relations and Functions
Relation
R = {(a, p), (a, r), (b, q)}
Note: R ⊆ A × B
Relations and Functions
Examples of Relation
{(a, 1), (a, 2), (b, 1), (b, 2), (c, 1), (c, 2)}
Answer:
R = {(2, 2), (2, 4), (2, 6), (2, 8), (4, 4),
(4, 8), (6, 6), (8, 8)}
TRY THIS!
Let A = R, and define the relation R on ℜ by
(x, y) ∈ ℜ if and only if y = x2.
Answer:
R = {…, (-2, 4), (-1, 1), (0, 0), (1, 1), (2, 4),
(3, 9), (4, 16), …}
R = {(x, y) / x ∈ ℜ & y ∈ ℜ, y = x2}
NOT A FUNCTION
FUNCTIONS
Functions as processes. Sometimes functions
are considered in a different way, as
processes, something like devices or boxes
with inputs and outputs. We put the argument
in the input and get the value of the function
in output. In this case, the set of ordered
pairs in our definition is called the graph of
the function.
FUNCTIONS
I
n
p
u
t
5 Output
3
FUNCTIONS
Set of outputs
I is called range.
n
p
u
t
5
3 Output
Set of inputs is
called domain.
Types of Function
▪ A function f : X → Y is defined to be one-one
(or injective), if the images of distinct elements
of X under f are distinct.
INJECTIVE
BIJECTIVE
NOT INJECTIVE
BUT SURJECTIVE
Types of Function
Ex. Let π and - π be two members of the first set ℜ. Taking the sine of these two
real numbers would result to the same value – which is 0. Hence, f(x) = sin x is
not injective.
Why not surjective? The 2nd set is still ℜ. The range of f(x) = sin x is the set
[-1, 1]. Hence, the other members of the set ℜ would have no element in the
first set ℜ (no pair). Thus, the function is not surjective.
Types of Function
Which of the following functions are one-to-
one, onto, or bijective? Justify your answer.
INJECTIVE
The function is one to one (or injective) because every member of the first set
(set of natural numbers including 0) will have a unique pair in the second set.
Coz any natural number when added by 1 will still result to another natural
number, each is an element of the second set.
However, if we look at the second set – the first element which is 0, will have no
pair in the first set. One cannot find a natural number added to 1 so the result
will be 0. Hence, the function cannot be surjective.
Types of Function
Which of the following functions are one-to-one,
onto, or bijective? Justify your answer.
BIJECTIVE
The function is not one-to-one (or injective) since all elements in the first set will
have 0 as the pair in the second set. The function expresses many-to-one
relation. Nonetheless, since the 2nd set has 0 as only element (singleton set)
and has all elements in the 1st set as corresponding pairs, then the function is
surjective.
Types of Function
Summary:
Injective – one to one relation. The function F on A to B is
injective if and only if no two elements in the first set (A) will
have the same corresponding pair of element in the second
set (B). Every element in A must have a pair in B.
1) f : ℜ → ℜ, f(x) = 2x BIJECTIVE
4) f : ℜ+ → ℜ , f(x) = x2 . INJECTIVE
5) f : ℜ → ℜ , f(x) = x3 . BIJECTIVE
Types of Function
Which of the following functions are one-to-one,
onto, or bijective? Justify your answer.
1) f : ℜ+ → ℜ , f(x) = 1/ x INJECTIVE
5) f : ℜ → Z , f(x) = . SURJECTIVE
Practice Exercises (with answers)
Which of the following functions are one-to-one
(injective), onto (surjective), or bijective?
SURJECTIVE
INJECTIVE
INJECTIVE
SURJECTIVE
INJECTIVE
STATEMENT OF PROPOSITION
• must express a complete thought
• a declarative statement that is true or false
but not both
Some Elementary Logic
Example
Determine whether each statement is a proposition.
1) All multiples of 9 are odd.
2) Let n be a natural number.
3) Sketch the graph of f(x) = (x - 2)2 + 5.
4) A square is a rectangle.
5) 2 + 3 = 6
6) 2 + 3 = 5
7) 3x – x = 5 + x
8) Leyte is in Region VII.
9) Manila is the capital of the Philippines.
10) Hongkong is the capital of China.
Some Elementary Logic
Example
Determine whether each statement is a proposition.
1) All multiples of 9 are odd. Proposition
2) Let n be a natural number. Not a Proposition
3) Sketch the graph of f(x) = (x - 2)2 + 5. Not a Proposition
4) A square is a rectangle. Proposition
5) 2 + 3 = 6 Proposition
6) 2 + 3 = 5 Proposition
7) 3x – x = 5 + x Not a Proposition
8) Leyte is in Region VII. Proposition
9) Manila is the capital of the Philippines. Proposition
10) Hongkong is the capital of China. Proposition
Logical Connectives
• the mathematical equivalent of a conjunction -
that is, a word (or symbol ) that joins two
sentences to produce a new one
• an operation that combines two propositions to
yield a new one whose truth value depends
only on the truth value of the two original
propositions
• Compound propositions - are built up by
combining propositions using propositional
connectives
Let P and Q be Statements
Read as Truth Value
Conjunction: P and Q True, if & only if P and
P∧Q Q are both true
Disjunction: P or Q True if & only if P is
P∨Q true or Q is true or
both are true.
Implication: P implies Q True under all
P⇒Q If P, then Q circumstances except
Q if P when P is true and Q
(Conditional) P only if Q is False.
Example:
• Angles A and B are vertical angles
• Negation: Angles A and B are not
vertical angles.
Logical Connectives
Examples
Let
P: It is raining. Q: The sand gets wet.
Examples
Let
P: It is raining. Q: The sand gets wet.
Examples
In every item, indicate what statement P, Q or R might stand for then
express the item using the correct symbol ( ).
• Implication: If P then Q.
• P is the antecedent or hypothesis
• Q is the consequent or conclusion
• Converse: If Q then P.
• Inverse: If not P then not Q.
• Contrapositive: If not Q then not P.
Ways to Express the Conditional
Statement
1) If Maria earns a college degree, then she will find a good job.
2) Earning a college degree is sufficient for Maria to find a good job.
3) Maria will find a good job if she earns a college degree.
4) Maria will find a good job when she earns a college degree.
5) A necessary condition for Maria to earn a college degree is to
find a good job.
6) Finding a good job follows from earning a college degree.
7) Maria earns a college degree only if she will find a good job.
8) Maria will find a good job unless she doesn’t earn a college degree.
Ways to Express the Conditional
Statement
Possible Answers:
1) If Maria earns a college degree, then she will find
a good job.
EX. means ?
Binding variables
▪ When a quantifier is used on the variable x, we say that this occurrence
of the variable is bound.
▪ An occurrence of a variable that is not bound by a quantifier or set
equal to a particular value is said to be free.
b)
c)
d)
Collaborative works of:
Jennefer M. Piramide,
Teodora J. Punzalan &
Jovita N. Ravina