Professional Documents
Culture Documents
The objects used to form a set are called its element or its members. Generally, the
elements of a set are written inside a pair of curly (idle) braces and are represented by
commas. The name of the set is always written in capital letter.
Exercise 1/ Activity 1
1. A = {v, w, x, y, z}
Here ‘A’ is the name of the set whose elements (members) are v, w, x, y, z.
2. If a set A = {3, 6, 9, 10, 13, 18}. State whether the following statements are ‘true’ or
‘false’:
(i) 7 ∈ A
(ii) 12 ∉ A
(iii) 13 ∈ A
(iv) 9, 12 ∈ A
Solution:
(i) False, since the element 7 does not belongs to the given set A.
(iv) True, since the elements 9 and 12 both belong to the given set A.
(v) False, since the element 14 does not belongs to the given set A.
1. The change in order of writing the elements does not make any changes in the
set.
In other words the order in which the elements of a set are written is not
important. Thus, the set {a, b, c} can also be written as {a, c, b} or {b, c, a} or {b, a,
c} or {c, a, b} or {c, b, a}.
2. If one or many elements of a set are repeated, the set remains the same.
In other words the elements of a set should be distinct. So, if any element of a set
is repeated number of times in the set, we consider it as a single element. Thus,
{1, 1, 2, 2, 3, 3, 4, 4, 4} = {1, 2, 3, 4} The set of letters in the word ‘GOOGLE’ = {G,
O, L, E}
Exercise 2/ Activity 2
Solution:
Set V = {U, I, E}
When two or more sets combine together to form one set under the given conditions,
then operations on sets are carried out.
Union of Sets: Union of two given sets is the smallest set which contains all the
elements of both the sets. To find the union of two given sets A and B is a set which
consists of all the elements of A and all the elements of B such that no element is
repeated. The symbol for denoting union of sets is ‘∪’.
Exercise 3/ Activity 3
Solution:
A ∪ B = {1, 3, 5, 7, 8, 9}
No element is repeated in the union of two sets. The common elements 3, 7 are
taken only once.
2. Let X = {a, e, i, o, u} and Y = {ф}. Find union of two given sets X and Y.
Solution: X ∪ Y = {a, e, i, o, u}
Therefore, union of any set with an empty set is the set itself.
Notes: A and B are the subsets of A ∪ B the union of sets is commutative, i.e., A ∪ B =
B ∪ A. The operations are performed when the sets are expressed in roster form.
Intersection of Sets: Intersection of two given sets is the largest set which contains all
the elements that are common to both the sets. To find the intersection of two given
sets A and B is a set which consists of all the elements which are common to both A
and B. The symbol for denoting intersection of sets is ‘∩’
Exercise 4/ Activity 4
1. If A = {2, 4, 6, 8, 10} and B = {1, 3, 8, 4, 6}. Find intersection of two set A and B.
Solution: A ∩ B = {4, 6, 8}
Solution: X ∩ Y = { }
Exercise 5/ Activity 5
A. If ξ = {1, 2, 3, 4, 5, 6, 7}
B.1. Let the set of natural numbers be the universal set and A is a set of even natural
numbers, Then A' {x: x is a set of odd natural numbers}
B.2. Let ξ = the set of letters in the English alphabet. A = the set of consonants in the
English alphabet. Then A' = the set of vowels in the English alphabet.
Let A be any set then A' = set of those elements of ξ which are not in A'.
Therefore, Set and its complement are disjoint sets, similarly, in a complement of set
when U be the universal set and A is a subset of U. Then the complement of A is the set
all elements of U which are not the elements of A.
Symbolically, we write A' to denote the complement of A with respect to U. Thus, A' =
{x : x ∈ U and x ∉ A} Obviously A' = {U - A}
We observe that 2, 8, 12, 14 are the only elements of U which do not belong to A.
Cartesian product of sets: If A and B are two non-empty sets, then their Cartesian
product A × B is the set of all ordered pair of elements from A and B. A × B = {(x, y) : x ∈
A, y ∈ B} Suppose, if A and B are two non-empty sets, then the Cartesian product of two
sets, A and set B is the set of all ordered pairs (a, b) such that a ∈A and b∈B which is
denoted as A × B.
Exercise 6/ Activity 6
Solution: A × B = {(7, 2); (7, 4); (7, 6); (8, 2); (8, 4); (8, 6)}
The 6 ordered pairs thus formed can represent the position of points in a plane, if
a and B are subsets of a set of real numbers.
2. If A × B = {(p, x); (p, y); (q, x); (q, y)}, find A and B.
So, we can say that 2, 3, 4 are the elements of A and 5, 7 are the elements of B.
Now, A × B = {(2, 5); (2, 7); (3, 5); (3, 7); (4, 5); (4, 7)}
Note: If either A or B are null sets, then A ×B will also be an empty set, i.e., if A = ∅
or B = ∅, then A × B = ∅
4.3 Venn Diagram What are Venn Diagrams?
Pictorial representations of sets represented by closed figures are called set diagrams
or Venn diagrams. Venn diagrams are used to illustrate various operations like union,
intersection and difference. We can express the relationship among sets through this in
a more significant way.
In this, A rectangle is used to represent a universal set and Circles or ovals are used to
represent other subsets of the universal set.
Exercise 7/ Activity 7
2. How many believe Elvis is still alive but don't believe that they have been abducted
by space aliens?
Solution: When we first read the data in this example, it may seem as if the numbers
contradict one Discrete Mathematics Set Theory Page 6 of 6 another. For instance, we
were told that 64 people were surveyed, yet there are 45 who believe that Elvis is alive
and 49 who believe that they've been kidnapped by space aliens. Obviously, 45 + 49 is
much greater than 64, so it appears that the number of people who responded to the
survey is greater than the number of people who were surveyed. This apparent
contradiction is resolved, however, when we take into account the fact that there are
some people who fall into both categories ("42 believe both of those things").
Now that we have organized the given information so that there is one number in each
of the four regions of the Venn diagram, we can use the diagram to answer the
questions.
1. How many believe neither of these things? If a person believes neither of these
things, then the person isn't in set E and isn't in set A. The diagram shows us that 12
people satisfy this description.
2. How many believe Elvis is still alive but don't believe that they have been abducted
by space aliens? A person who fits this description is simultaneously inside of circle E
yet outside of circle A. The diagram shows us that there are 3 of these people.
In general if X and Y are sets then a binary relation between X and Y is a subset
R⊆X×Y. We will mostly be looking deeply into relations where X=Y, i.e., relations on
various sets to themselves. Consider the set A of positive integers from 1 to 10
inclusive: Example 1:
A={1,2,...,10}
The strict inequality < is a relation R on X×X where the pairs (x,y)∈R⊆X×X are such that
the numerical value of x is strictly less than the numerical value of y, that is x
If X={1,2,3,4} and Y={6,8,10} then define the relation R from X to Y such that elements
X when squared are less than elements in Y. We thus have that:
Example 2:
R={(1,6),(1,8),(1,10),(2,6),(2,8),(2,10),(3,10)}
For a final example, if X={1,3,4,6,7} and Y={1,2,3,5} then define the relation R from X to
Y such that the sum of an element in X plus an element in Y is odd. This relation can
also be described such that xRy if x is even and y is odd or x is odd and y is even. So:
Example 3:
R={(1,2),(3,2),(4,1),(4,3),(4,5),(6,1),(6,3),(6,5),(7,1),(7,3),(7,5)}
Reflexive relation on set is a binary element in which every element is related to itself.
R is set to be reflexive, if (a, a) ∈ R for all a ∈ A that is, every element of A is R-related
to itself, in other words aRa for every a ∈ A.
A relation R in a set A is not reflexive if there be at least one element a ∈ A such that (a,
a) ∉ R.
The relation R11 = {(p, p), (p, r), (q, q), (r, r), (r, s), (s, s)} in A is reflexive, since every
element in A is R1- related to itself.
But the relation R2 = {(p, p), (p, r), (q, r), (q, s), (r, s)} is not reflexive in A since q, r, s ∈
A but (q, q) ∉ R2, (r, r) ∉ R2 and (s, s) ∉ R2
1. A relation R is defined on the set Z (set of all integers) by “aRb if and only if 2a + 3b is
divisible by 5”, for all a, b ∈ Z. Examine if R is a reflexive relation on Z.
Solution: Let a ∈ Z. Now 2a + 3a = 5a, which is divisible by 5. Therefore aRa holds for
all a in Z i.e. R is reflexive.
Solution: Let a ∈ Z. Then a – a is divisible by 5. Therefore aRa holds for all a in Z i.e. R
is reflexive.
4. Therefore aRa holds for all a in Z i.e. R is reflexive. 4. A relation ρ is defined on the
set of all real numbers R by „xρy‟ if and only if |x – y| ≤ y, for x, y ∈ R. Show that the ρ is
not reflexive relation. Solution: The relation ρ is not reflexive as x = -2 ∈ R but |x – x| = 0
which is not less than -2(= x).
Let A be a set in which the relation R defined. Then R is said to be a symmetric relation,
if (a, b) ∈ R ⇒ (b, a) ∈ R, that is, aRb ⇒ bRa for all (a, b) ∈ R.
But in the set A of natural numbers if the relation R be defined as „x is a divisor of y‟,
then the relation R is not symmetric as 3R9 does not imply 9R3; for, 3 divides 9 but 9
does not divide 3.
2. A relation R is defined on the set Z (set of all integers) by “aRb if and only if 2a + 3b is
divisible by 5”, for all a, b ∈ Z. Examine if R is a symmetric relation on Z.
Solution: Let a, b ∈ Z and aRb holds i.e., 2a + 3a = 5a, which is divisible by 5. Now, 2a
+ 3a = 5a – 2a + 5b – 3b = 5(a + b) – (2a + 3b) is also divisible by 5.
⇒ -(a – b) is an integer
⇒ (b – a) is an integer
⇒ (b, a) ∈ R
Therefore, R is symmetric.
Let ab ∈ R . Then,
ab ∈ R ⇒ (a – b) is divisible by m
⇒ -(a – b) is divisible by m
⇒ (b – a) is divisible by m
⇒ (b, a) ∈ R
R is said to be anti-symmetric, if there exist elements, if aRb and bRa ⇒ a = b that is, (a,
b) ∈ R and ((b, a) ∈ R ⇒ a = b.
For example, the relation defined by „x is less than or equal to‟ in the set of real
numbers is be antisymmetric, as a ≤ b and b ≤ a imply a = b, where a, b are elements of
the set.
The relation is said to be non-transitive, if (a, b) ∈ R and (b, c) ∈ R do not imply (a, c ) ∈
R.
For example, in the set A of natural numbers if the relation R be defined by „x less than
y‟ then a < b and b < c imply a < c, that is, aRb and bRc ⇒ aRc.
⇒ (a – c) is divisible by k.
⇒ (a, c) ∈ R.
⇒ m is divisor of p
⇒ (m, p) ∈ ρ
In the set of natural numbers, the relation R defined by “aRb if a divides b” is a partial
order relation, since here R is reflexive, anti-symmetric and transitive. A set, in which a
partial order relation is defined, is called a partially ordered set or a poset.
Solution:
(i) Let a ∈ Z. Then a – a is divisible by 5. Therefore aRa holds for all a in Z and R is
reflexive.
(ii) Let a, b ∈ Z and aRb hold. Then a – b is divisible by 5 and therefore b – a is divisible
by 5. Thus, aRb ⇒ bRa and therefore R is symmetric.
(iii) Let a, b, c ∈ Z and aRb, bRc both hold. Then a – b and b – c are both divisible by 5.
Therefore a – c = (a – b) + (b – c) is divisible by 5.
2. Let m e a positive integer. A relation R is defined on the set Z by “aRb if and only if a
– b is divisible by m” for a, b ∈ Z. Show that R is an equivalence relation on set Z.
Solution:
Hence, R is reflexive.
(ii) Let a, b ∈ Z and aRb holds. Then a – b is divisible by m and therefore, b – a is also
divisible by m. Thus, aRb ⇒ bRa.
Hence, R is symmetric.
(iii) Let a, b, c ∈ Z and aRb, bRc both hold. Then a – b is divisible by m and b – c is also
divisible by m.
Therefore, a – c = (a – b) + (b – c) is divisible by m.
Therefore, R is transitive.
Solution:
(ii) Symmetric: Let l, m ∈ S and lρm holds. Then l lies on the plane of m. Therefore, m
lies on the plane of l. Thus, lρm ⇒ mρl and therefore ρ is symmetric.
(iii) Transitive: Let l, m, p ∈ S and lρm, mρp both hold. Then l lies on the plane of m and
m lies on the plane of p. This does not always implies that l lies on the plane of p.
Since, R is reflexive and symmetric but not transitive so, R is not an equivalence
relation on set Z
4.1. What is a Function?
It is like a machine that has an input and an output. And the output is related
We say "f of x equals x squared" what goes into the function is put inside parentheses ()
after the name of the function:
So f(x) shows us the function is called "f", and "x" goes in and we usually see what a
function does with the input: f(x) = x2 shows us that function "f" takes "x" and squares
it.
Don't get too concerned about "x", it is just there to show us where the input goes and
what happens to it.
It could be anything!
f(q) = 1 - q + q2
h(A) = 1 - A + A2
w(θ) = 1 - θ + θ2
The Two Important Things!
Functions have been used in mathematics for a very long time, and lots of different
names and ways of writing functions have come about.
Here are some common terms you should get familiar with:
Example: z = 2u3 :
We often call a function "f(x)" when in fact the function is really "f"
Ordered Pairs
Write the input and output of a function as an "ordered pair", such as (4,16). They are
called ordered pairs because the input always comes first, and the output second:
(input, output)
Let's look at that more closely:
A General Function points from each member of "A" to a member of "B". It never has
one "A" pointing to more than one "B", so one-to-many is not OK in a function (so
something like "f(x) = 7 or 9" is not allowed) But more than one "A" can point to the
same "B" (many-to-one is OK)
Injective means we won't have two or more "A"s pointing to the same "B". So many-to-
one is NOT OK (which is OK for a general function). As it is also a function one-to-
many is not OK But we can have a "B" without a matching "A" Injective is also
called "One-to-One"
Surjective means that every "B" has at least one matching "A" (maybe more than
one). There won't be a "B" left out.
If every "A" goes to a unique "B", and every "B" has a matching "A" then we can go
back and forwards without being led astray.
4.1. Cardinality: Cardinal Number of a set
The number of distinct elements or members in a finite set is known as the cardinal
number of a set. Basically, through cardinality, we define the size of a set. The cardinal
number of a set A is denoted as n(A), where A is any set and n(A) is the number of
members in set A.
As the set A consists of 4 elements, therefore, the cardinal number of set A is given as
n(A) = 4.
Properties related to difference, union and intersection and the cardinal number of set
The union of the disjoint sets A and B represented by the Venn diagram is given by A ∪
B and it can be seen that A ∩ B = ∅ because no element is common to both the sets.
Simply, the number of elements in the union of set A and B is equal to the sum of
cardinal numbers of the sets A and B, minus that of their intersection.
Figure 2- Union of two sets
In the figure given above the differently shaded regions depict the different disjoint sets
i.e. A – B, B – A and A ∩ B are three disjoint sets as shown and the sum of these
represents A ∪ B. Hence,
n (A ∪ B) = n (A – B) + n(B – A) + n(A ∩ B)
Exercise 1/ Activity 1
There is a total of 200 students in class XI. 120 of them study mathematics, 50
students study commerce and 30students study both mathematics and
commerce. Find the number of students who
Solution: The total number of students represents the cardinal number of the universal
set. Let A denote the set of students studying mathematics and set B represent the
students studying commerce.
Therefore,
n (U) = 200
n(A) = 120
n(B) = 50
n(A ∩ B) = 30
The Venn diagram represents the number of students studying mathematics and
commerce.
⇒ n (A – B) = 120 – 30 = 90
The number of students who study mathematics but not commerce is 90.
ii) Similarly here, we are required to find the difference of sets B and A
n (B) = n (B – A) + n (A ∩ B)
⇒ n (B – A) = 50 – 30 = 20
The number of students who study commerce but not mathematics is 20.
This is clearly visible from the Venn diagram that the union of the three sets will be the
sum of the cardinal number of set A, set B, set C and the common elements of the three
sets excluding the common elements of sets taken in pairs of two.
Exercise 1/ Activity 1
Let us see an example to make our point clear.
In a survey of 200 students of a school it was found that 120 study mathematics,
90 study physics and 70 study chemistry, 40 study mathematics and physics, 30
study physics and chemistry, 50 study chemistry and mathematics and 20 study
none of these subjects. Find the number of students who study all three
subjects.
Solution :
n ( P ∩ C ) = 30 n ( C ∩ M ) = 50 n ( M ∪ P ∪ C )’ = 20
20 = 200 – n (M ∪ P ∪ C)
n(M ∪ P ∪ C)
⇒ n(M ∩ P ∩ C) = 20
4.1. Propositions
When writing a truth table, we have to list all of the possible combinations of
values for the propositions (p, q, …) in it.
o Since “¬p” contains only “p”, there are only two rows.
Negation is the first way we have to manipulate propositions.
o We will need others. o When propositions are manipulated to make
another proposition, we call the result a compound proposition.
Conjunction is a way to combine two propositions.
o The conjunction of p and q is written p∧q. o p∧q is true if both p and q are
true.
o In other words, ∧ means “and”.
o In a truth table:
Notice that we got every possible combination of values for “p” and “q” in the
truth table.
Disjunction is another way to combine two propositions.
o The disjunction of p and q is written p∨q.
o p∨q is true if p is true, or q is true, or both are true.
o In other words, ∨ means “or”.
o In a truth table:
Let's define propositions and translate some sentences into the logical notation.
o “Either John or Mary (or both) are going to the store today.”
o “John is going to the store today, but Mary isn't.”
o “The store is open today, and either John or Mary is going.”
Answers: o q∨r o r∧¬q o p∧(q∨r) Some notes about that:
o Sometimes the logic of a sentence is obvious, but sometimes it takes
some thought to unwrap it.
o That's one of the reasons to have this notation: meaning is always clearly
defined, unlike natural language sentences.
o The word “but” is logically the same as “and”. It just implies that the
following part is a little surprising.
o Whether “or” includes “or both” can be ambiguous. We'll usually assume
“or” translates to ∨, but it depends on the context.
o We can use parentheses to group parts together, just like in arithmetic.
Some sentences we can't (easily) translate yet:
o “If the store is open today, then John will go.”
o “Either John or Mary (but not both) are going to the store today.”
o It would be nice to have notation for that…
Exclusive Or
Conditionals
The other sentence we couldn't easily translate before: “If the store is open
today, then John will go.”
o That's a conditional statement or an implication.
o i.e. it expresses “If (something is true), then (something else).”
o We will write p→q for the conditional “If p then q.”
o In this conditional, the thing before the → (p in the example) is called the
antecedent, premise, or hypothesis. The thing after the → (q in the
example) is called the conclusion or consequence.
Like with “or”, one of the entries there might not match your expectations from
English.
o Statements like “If the moon is larger than the earth, then all food is red.”
are perfectly true: the premise is false, so the whole statement is true.
o It's easy to have conditionals like that one that don't make sense (when
said in natural language) but are true
There are a lot of things in English (and probably Chinese) that translate into a
conditional statement.
o Like “and” and “but”, they are logically equivalent but may have some
subtle meaning when said.
o Examples of p→q: “if p then q”; “q whenever p”; “p implies q”; “q follows
from p”; “q only if p”.
We could also have written p→q using only ∨, ∧, and ¬.
o Draw a truth table for ¬p∨q if you don't believe me.
For a conditional proposition p→q…
o q→p is its converse.
o ¬p→¬q is its inverse.
o ¬q→¬p is its contrapositive.
A conditional statement and its contrapositive are equivalent.
o Not obvious, but:
4.3. Translating Into Logic