You are on page 1of 16

Discrete Mathematics

Definition: D.M concern processes that consist of a sequence of individual steps.


Logic: Logic is the study of the principals and methods that distinguish between a
valid argument.
Statement: A statement is a declarative sentence that is either true or false but not
both. A statement is also refereed as a proposition.
i.e. 2+2=4 (true) Today is Sunday (true)
Not proposition: close the door X is written as 2 he is very rich
Truth value of proposition: if proposition is true, we say that it has a truth value of
“true”, denoted by “T”.
If a proposition is false, we say that it has a truth value of “false”, denoted by “F”.
i.e. Grass is Green (T) 4+2=6 (T) 4+2=7 (F)There are four fingers in a hand(F)
Note: If the sentence is proceeded by other sentences that make the pronoun or variable
reference clear, then sentence is a statement/proposition.
Example:
1. If X=1 then X>2 (F) X>2 is a statement with truth value “(F)”.
2. Bill gates is an American. He is very rich (T) he is very rich is a statement
with truth value (T)
3. X+2 is positive (not a statement) 4. May I come in (not a
statement)
5. Logic is interesting (T) 6. It is hot today (T)
7. -1>0 (F) 8. X+5=12 (not a statement)
Compound statement: Simple statements could be used to build the compound
statement. i.e.
1. “3+2=5” and “Lahore is a city in Pakistan.”
2. “The grass is green” or “it is hot today.”
3. “Discrete Mathematics is not difficult to me”
And, or, not are called logical connectives.
Logical connectives:
Connectives Meaning Symbol Called
Negation NOT ¬ Tilde
Conjunction AND Λ Hat
Disjunction OR V Val
Conditional If…then… → Arrow
Bi-Conditional If and only if ↔ Double arrow
Symbolic Representation: Statements are symbolically represented by letters such as
p, q, r …!
Example: let h =”Zia is healthy”
w =”Zia is wealthy”
s =”Zia is wise”
SENTENCE SYMBOLIC FORM
1. Zia is healthy & wealthy but not wise. (h Λ w) Λ ¬s
2. Zia is not wealthy but he is healthy and wise. ¬w Λ(h Λ s)
3. Zia is neither healthy, wealthy nor wise. ¬h Λ ¬w Λ ¬s
Translate from symbols to English:
Example:
Let p=”Islamabad is the Capital of Pakistan.”
q=”17 is divisible by 3.”
SYMBOLS SENTENCE
1. pΛq Islamabad is the Capital of Pakistan and 17 is divisible by3.
2. pVq Islamabad is the Capital of Pakistan or 17 is divisible by 3.
3. ¬p Islamabad is not the Capital of Pakistan.
Example:
Let m = “Ali is good in Mathematics.”
c = “Ali is a Computer Science student.”
SYMBOLS SENTENCE
1. ¬c Ali is not a Computer Science student.
2. cVm Ali is a Computer Science student or is good in Mathematics.
3. m Λ ¬c Ali is good in Mathematics but not is a Computer Science student.
Truth Table: A convenient method for analyzing a compound proposition is to make a
truth table for it.
A truth table specifies a truth value of a compound proposition for all possible
truth values of its constituent proposition.
Negation: If p is a statement variable, then the negation of p, “NOT”, is denoted by
“¬p”.
It has opposite truth values, the value from p. i.e.
 If p is true, ¬p is false; p ¬p
F F
 If p is false, ¬p is true.
Truth table for ¬p: T T
Conjunction: If p and q are statements, then the conjunction of p q pΛq
p& q is “p and q”, denoted by “p Λ q”. T T T
It is true when, and only when, both p& q are true. If either p or T F F
q is false or both are false, then p& q is false. F T F
Truth table for p Λ q: F F F
Disjunction: if p and q are statements, then the disjunction “p
OR q” is denoted by “p V q”. p q pVq
It is true when at least of p or q is true & is false only when both T T T
p& q are false. T F T
Truth table for p V q: F T T
Q: construct truth table for following statements; F F F
(i) ¬p Λ q
(ii) ¬p Λ (q V ¬r)
(i) (ii)
p q r ¬p ¬r q V ¬r ¬p Λ (q V ¬r)
p q ¬p ¬p Λ q T T T F F T F
T T F F T F T F F F F
T F F F T T F F T T F
F T T T T F F F T T F
F F T F F T T T F T T
F T F T T T T
F F T T F F F
F F F T T T T
(iii) (p V q) Λ ¬(p Λ q)
p q pVq pΛ ¬(p Λ q) (p V q) Λ ¬(p Λ q)
q
T T T T F F
T F T F T T
F T T F T T
F F F F T F
Exclusive OR: when OR is used in its exclusive sense, then the statement “pORq”
means p or q but not both.
OR
“p OR q and not p AND q.”
Symbols of Exclusive OR: p q or p XOR q
Logical Equivalence:two statement forms are called logically equivalent of and only if,
they have identical truth values for all possible truth values for their statement variables.
Symbol: ‗
Double Negation law or Involution law: if p is a statement, the
the double negation law is stated as ¬ (¬p) p ¬p ¬ (¬p)
Prove: T F T
Demorgan’s law: F T F
1. The negation of AND statement is logically equivalent to the OR statement in
which each component is negative. ¬ (p Λ q) ‗ ¬p V ¬q
p q ¬p ¬q p Λ ¬ (p Λ q) ¬p V ¬q
q
T T F F T F F
T F F T F T T
F T T F F T T
F F T T F T T
2. The negation of OR statement is logically equivalent to the AND statement in
which each component is negative. ¬(p V q) ‗ ¬p Λ ¬q
p q ¬p ¬q p V q ¬(p V q) ¬p Λ ¬q
T T F F T F F
T F F T T F F
F T T F T F F
F F T T F T T

Q: Use Demorgan’s law to write the negation of (-1< x >4)


Solution: For some particular middle no. x, 1-< x >4 means x >-1 and x <= 4. By
Demorgan’s law, the negation of x >-1 and x <=4 is; ¬ (p Λ q) ‗ ¬p V ¬q
 x <= -1 OR x >4.
Q: Rewrite in a simplest form, “It is not true that T cannot happy.”
Solution: let p = “I am happy” => (statements are always written in positive format)
¬p =”I am not happy”
and ¬(¬p) =”It is not true that I am not happy.”
Since ¬ (¬p) ‗ p
Hence the given statement is equivalent to; “I am happy.”
Q: Prove that ¬ (p Λ q) and ¬p Λ ¬q are not equivalent.
p q ¬p ¬q p Λ q ¬(p Λ q) ¬p Λ ¬q
T T F F T F F
T F F T F T F
F T T F F T F
F F T T F T T
 ¬(p Λ q) ‗ ¬p Λ ¬q
Q 1: Are the statements (p Λ q) Λ r and p Λ (q Λ r) logically equivalent?
p q r pΛ q Λ r (p Λ q) Λ r P Λ (q Λ r)
q
T T T T T T T
T F T F F F F
T T F T F F F
T F F F F F F
F T T F T F F
F T F F F F F
F F T F F F F
F F F F F F F
Hence (p Λ q) Λ r ‗ p Λ (q Λ r);
Q 2: Are the statements (p Λ q) V r and p Λ (q V r) logically equivalent?
p q r pΛ q V r (p Λ q) V r p Λ(q V r)
q
T T T T T T T
T F T F T T T
T T F T T T T
T F F F F F F
F T T F T T F
F T F F T F F
F F T F T T F
F F F F F F F
(p Λ q) Λ r ≠ p Λ (q Λ r);
Tautology: It is a statement form that is always true regardless of the truth values of
the statement variables.
Tautology is represented by the symbol (t). p ¬p P V ¬p
Example: The statement form p V ¬p is a Tautology. T F T
 p V ¬p ‗ t F T T
Contradiction: It is a statement form that is always false
regardless of the truth values of the statement variables. A p ¬p P V ¬p
Contradiction is represented by the symbol “c”. T F T
Example: the statement form p Λ ¬p is a Contradiction. F T T
 p Λ ¬p ‗ c
Q 1: (p Λ q) V (¬p V(p Λ ¬q)) ‗ t
p q ¬p ¬q p Λ (p Λ ¬q) (¬p V(p Λ (p Λ q) V (¬p V(p Λ ¬q)) ‗
q ¬q)) t
T T F F T F F T
T F F T F T T T
F T T F F F T T
F F T T F F T T

Q 2: (p Λ q) Λ (¬p V ¬q) ‗ c

p q ¬p ¬q p Λ ¬p V (p Λ ¬q) Λ (¬p V ¬q) ‗


q ¬q) c
T T F F T F F
T F F T F T F
F T T F F T F
F F T T F T F
Laws of logic: For any given statement variables p, q & r having Tautology ‘t’
and Contradiction ‘c’, the following logical equivalences hold;
Sr. Law Logical Equivalences
No.
1. Double negation law ¬(¬p) ‗ p
2. Negation law p V ¬p ‗ t & p Λ ¬p ‗ c
3. Negation of ‘t’ & ‘c’ ¬t ‗ c & ¬c ‗ t
4. Identity law p Λ t ‗ p & p V c ‗ p
5. Idempotent law p Λ p ‗ p & p V p ‗ p
6. Universal found law p V t ‗ t p Λ c ‗ c
or
Domination law
7. Cumulative law p Λ q ‗ q Λ p & p V q ‗ q V p
8. Associative law (p Λ q) Λ r ‗ p Λ (q Λ r) & ((p V q) V r ‗ p V (q V r)
9. Distributive law p Λ (q V r) ‗ (p Λ q) V (p Λ r) & p V (q Λ r) ‗ (p V q) Λ
(p V r)
10. Demorgan’s law ¬(p Λ q) ‗ ¬p V ¬q & ¬(p V q) ‗ ¬p Λ ¬q
11. Absorption law p V (p Λ p) ‗ p & p Λ ( p V p) ‗ p
Q: Prove all Laws of logic. Proved as separate assignment…!
Q: Simplify p Λ {¬ (¬p V ¬ (q)}
‗ p Λ {¬ (¬p V ¬(q)} Demorgan’s law
‗ p Λ {p V ¬(q)} Double negation law
‗ (p Λ p) V (p Λ ¬q) Associative law
‗ p V ¬ (q) Idempotent law
Q: Verify ¬(¬p Λ q) Λ (p V q) ‗ p
L.H.S ‗ ¬(¬p Λ q) Λ (p V q)
‗ {¬ (¬p) V ¬q} Λ (p V q) Demorgan’s law
‗ {p V ¬q} Λ (p V q) Double negation law
‗ p V (¬q Λ q) Distributive law (in reverse)
‗ p V c Negation law
‗ p Identity law
Q: Simplify the statement, “You’ll get an A if you are hardworking and sun shines, or
you are hardworking and it rains.”
Solution: let p =”You are hardworking”
q =”The sun shines”
r =”It rains”
The condition is then (p Λ q) V (p Λ r) ‗ p Λ (q V r) (Distributive law)
Putting p Λ (q V r) back into English, we can rephrase the given statement as:
“You’ll get an A if you are hardworking and the sun shines or it rains.”
Q: Use logical equivalence to rewrite each of the following sentences more simply.
1. “It is not true that I’m tired and you are smart.”
Let p = “I’m tired”
q = “you are smart”
The condition is then ¬ (p Λ q) ‗ ¬p V ¬q (Demorgan’s law)
Putting ¬p V ¬q back into English, we can rephrase the given statement as:
“It is true that I’m not tired or you are not smart.”
2. “It is not true that I’m tired or you are smart.”
Let p = “I’m tired”
q = “You are smart”
The condition is then ¬ (p V q) ‗ ¬p Λ ¬q (Demorgan’s law)
Putting ¬p Λ ¬q back into English, we can rephrase the given statement as:
“It is true that I’m not tired and you are not smart.”
3. I forgot my pen or my bag and I forgot my pen or my glasses.”
Let p = “My pen”
q = “My bag”
r= “My glasses”
The condition is then (p V q) Λ (p V r) ‗ p V (q Λ r) (Distributive law)
Putting p V (q Λ r) back into English, we can rephrase the given statement as:
“I forgot my pen or my bag and glasses.”
4. “It is raining and I’ve forgotten my umbrella, or it is raining and I’ve forgotten
my hat.”
Let p = “It is raining”
q = “My umbrella”
r = “My hat”
The condition is then (p Λ q) V (p Λ r) ‗ p Λ (q V r) (Distributive law)
Putting p Λ (q V r) back into English, we can rephrase the given statement as:
“It is raining and I’ve forgotten my umbrella or hat.”
Conditional statements or Implications: If p and q are statement variables, then
condition of q by pl is “if p, then q” or “p implies q” and is denoted by ‘p→q’.
The original statement is saying that “If p is true, then q is true.”
The arrow ‘→’ is the conditional operator, p is called Hypothesis(or Antecedent) and q is
called Conclusion(or Consequent).
Truth table for p→q:
p q P→q i.e. p → q is ‘false’ when p is true and q is false, otherwise ‘true’, as if
T T T hypothesis is true then conclusion cannot be false.
T F F
F T T
F F T
Statements Truth values
1. “If 1=1, then 3=3” T
2. “If 1=1, then 2=3” F
3. “If 1=0, then 3=3” T
4. “If 1=2, then 2=3” T
5. “If 1=1, then 1=2 & 2=3” F
6. “If 1=3 or 1=2, then 3=3” T
Alternative ways of expressing Implications:
1. “If p then q” 2. “p implies q” 3. “If p, q”
4. “p only if q” 5. “p is sufficient for q” 6. “Not unless q”
7. “q follows from p” 6. “q if p” 9. “q whenever p”
10. “q is necessary for p”
Exercises:
1. “Your guarantee is good only if you buying your cd player less than 90 days ago.”
“If your guarantee is good, then you must have bought your cd player less than 90 days
ago.”
2. “To get tenure as a professor, it is sufficient to be world famous”
“If you are world famous then it is sufficient to get tenure as a professor.”
3. “Dad! You get the job that you have the best credentials.”
“Dad! If you have the best credentials then you’ll get the job.”
4. “It is necessary to walk 8 miles to get the top of the peak.”
“If you want to get the top of the peak then it is necessary to walk 8 miles daily.”
Q: translate the following English sentences into symbols.
1. “To get an A in this class, it is necessary for you to get an A in the final.”
2. you do every exercise in this book; you get an A in the final, implies, you get an A in
the class.”
Q: Translate the following symbolic propositions into English.
Let p, q, & r be the propositions;
p = “You have the flu”
q = “You miss the final exam”
r = “You pass the course”
1. p → q 2. ¬q → ¬r 3. ¬p Λ ¬q → r
Implication law: The implication law is stated as
p → q ‗ ¬p V q
p q ¬p p → ¬p V q
q
T T F T T
T F F F F
F T T T T
F F T T T
Negation of a conditional statement: We know that p → q ‗ ¬p V q
 ¬(p → q) ‗ ¬ (¬p V q)
‗ ¬ (¬p) Λ (¬q) Demorgan’s law
‗ p Λ (¬q) Double Negation law
Hence ¬ (p → q) ‗ p Λ (¬q)
Inverse of a conditional statement: The inverse of the conditional statement, p → q is
q → p.
The Truth table for converse of p → q:
p q q→p
T T T
T F T
F T F
F F T
Examples:
Write the inverse and converse of the following statements:
1. “If today is Friday, then 2+3=5.”
2. “If it snows today, I’ll go to University tomorrow.”
3. “If p is a square, then p is a tangent.”
4. “If my car is in the repair shop, then I cannot get to class.”
5. “Write Truth table for p V ¬q → ¬p.”
p q ¬p ¬q p V ¬q p V ¬q → ¬p
T T F F T F
T F F T T F
F T T F F T
F F T T T T
Contra positive of a conditional statement: The Contra positive of the
conditional statement p → q is ¬q → ¬p
A conditional statement and its Contra positive are equivalent.
i.e. p → q ‗ ¬q → ¬p
Truth table for Contra positive of p → q:
p q ¬p ¬q ¬q → ¬p p → q
T T F F T T
T F F T F F
F T T F T T
F F T T T T
Construct the Truth table for (p → q) Λ (¬p → r):
p q r ¬p p → ¬p → r (p → q) Λ (¬p → r)
q
T T T F T F F
T F T F T F F
T T F F T T T
T F F F T T T
F T T T F T F
F T F T F T F
F F T T T T T
F F F T T T T
Biconditional (↔): If p and q are statement variables, then the Biconditional of
p & q is “p if, and only if, q” and is denoted by “p ↔ q”.
 The words if and only if are sometimes abbreviated as ‘iff’.
 The double headed arrow “↔” is called Biconditional operator.
 “p ↔ q” is true when p and q, both are the same, otherwise false.
Truth table for p ↔ q:
p q p↔q
T T T
T F F
F T F
F F T
Alternate ways of expressing Biconditional: p ↔ q can also be expressed as;
1. p is necessary and sufficient for q.
2. If p then q, and conversely.
3. p is equivalent to q.
Examples:
Statements Truth values
1. 1+1=3 iff earth is flat. T
2. Sky is blue, iff 1=0. F
3. Milk is white, iff birds lay eggs. T
4. 33 is divisible by 4, iff horse has four legs. F
2
5. x>5, iff x >25. T
Example:
Write the following English statements in the form of iff.
1. If it is hot outside, you buy an Ice-cream cone and if you buy an Ice-cream
cone, it is hot outside.
You buy an Ice-cream cone off it is hot outside.
2. For you to win the match, it is necessary and sufficient that you have the only
winning cricket.
You win the match iff you have the winning cricket.
3. It rains if it is a weekend day and it is a weekend day if it rains.
It rains iff it is a weekend.
4. The train runs late on exactly those days when I take it.
The train runs late iff I take it.
5. This number is divisible by 6 precisely when it is divisible by both 2 & 3.
This number is divisible by 6 precisely iff it is divisible by both 2 & 3.
Hierarchy of operators for Logical connectives:
1. ¬ weakest (1st)
2. Λ, V strong (next)
3. →, ↔ strongest (last)
Solve them:
1. An implication is logically equivalent to its Contra positive.
2. The converse and Inverse of an implication are logically equivalent.
3. An implication is not equivalent to its Converse.
4. Write the Truth table for p V ¬q → ¬p
5. Write the Truth table for p Λ ¬r ↔ q V r
Q: p Λ ¬r ↔ q V r ‗ p Λ (¬r) ↔ q V r ‗ (p Λ (¬r) ↔ (q V r)
Q: Suppose that p & q are statements so that p → q is false. Find the Truth table of each
of the following;
1. ¬p → q 2. p V q 3. q → p 4. q ↔ p
Q: Suppose that a Composite statement is p V q → (r ↔ ¬s).
Let the Truth values for p, q, r & s are (T, F, F & T) respectively. What is the Truth value
of the given statement; p V q → (r ↔ ¬ s)

T F F T
F
T T
T
Hence, the Truth value of given statement is True.

Solution:
Write the truth table for;
1. P V ¬q → ¬p
p q ¬p ¬q p V ¬q p V ¬q → ¬p
T T F F T F
T F F T T F
F T T F F T
F F T T T T
2. p Λ ¬r ↔ q V r
p q r ¬r p Λ ¬r q V r p Λ ¬r ↔ q V r
T T T F F T F
T F T F F T F
T T F T T T T
T F F T T F T
F T T F F T F
F T F T F T F
F F T F F T F
F F F T F F F
3. Suppose that p & q are statements, so that p → q is false, find the truth value
of each of the following;
(i).¬p → q (ii). p V q (iii). q → p (vi). q ↔ p
Table for Exclusive OR:
p q p q
T T F
T F T
F T T
F F F
That is p q is false, when p and q both are same; otherwise true.
Questions:
(i). Prove that ¬p ↔ q ‗ p ↔ ¬q
p q ¬p ¬q ¬p ↔ ¬q p ↔ ¬q
T T F F F F
T F F T T T
F T T F T T
F F T T F F
(ii). Prove that ¬ (p q) ‗ p ↔ q
p q p ¬ (p q) p ↔ q
q
T T F T T
T F T F F
F T T F F
F F F T T
Laws of Logic:
Sr. No. Law Logical Equivalence
1 Commutative law P ↔ q ‗ q ↔ p
2 Implication law p → q ‗ ¬p V q ‗ ¬ (p Λ ¬q)
3 Exportation law (p Λ q) → r ‗ p → (q → r)
4 Equivalence law (p ↔ q) ‗ (p →q) Λ (q →p)
5 p → q ‗ (p Λ ¬q) → c
Questions:
Use logical equivalences:
p →q ‗ ¬p V q; p V q ‗¬ (¬p Λ ¬q) & p ↔ q ‗ (¬p V q) Λ (¬ q V p)
To rewrite the given statement form without using the symbols → & ↔.
Chapter - LOGIC
Set: A well defined collection of objects is called a Set. The objects are called the
elements or numbers of the Set.
 Sets are denoted by capital letters A, B, C, …, X,Y, Z. The elements of
a Set are denoted by lower case letters a, b, c, …, x, y, z.
 If an object ‘x’ is a member of a Set ‘A’, then we write x є A, which
reads “x belongs to A” or “x is in A” or “x is an element of A”.
 Otherwise we write x ¢ A, which reads “x does not belong to A” or “x
is not in A” or “x is not an element of A”.
Ways to express Sets:
1. Tubular form: Listing all the elements of Set, separated by
commas and enclosed by brackets. i.e.
A= {1, 2, 3, 4, 5}; B= {2, 4, 6, …, 50}; C= {1, 3, 5, …}
2. Descriptive form: Stating in words the elements of a Set. e.g.
A= {set of first five natural numbers};
B= {set of positive even integers < 50}; C= {set of positive odd integers}
3. Set builder form: Writing in symbolic form, the common characteristics by
all the elements of a Set. e.g.
A= {x є N: x ≤ 5; B= {x є E: 0 <x ≤ 50}; C= {x є O: x > 0}
Sets of Numbers:
1 Set of natural numbers: N= {1, 2, 3, 5, 7, 9…}
.
2 Set of whole numbers: W= {0, 1, 2, 3 …}
.
3 Set of integers: Z= {0,
. ±1, ±2, ±3 …}
= {…, -3, -2, -1, 0, 1, 2, 3…}
4 Set of even integers: E= {0, ±2, ±4, ±6…}
.
5 Set of odd integers: O= {±1, ±3, ±5…}
.
6 Set of prime numbers: P= {2, 3, 5, 7, 11, 13, 17,
. 19…}
7 Set of rational numbers: Q= {x: x= p/q; p, q є Z, q ≠ 0}
.
8 Set of irrational Q`= {x: x ≠ Q}
. numbers:
9 Set of real numbers: IR= {Q U Q`}
.

Subset: If A & B are two sets, A is called a subset of B, written as A ≤ B, if and


only if every element of A is also an element of B.
Symbolically: A ≤ B ↔ if x є A then x є B.
Remarks: 1. When A ≤ B, then B is called a superset of A.
2. When A ≤/ B, then there exist at least one x є A, such that x ¢ B.
Proper subset: Let A & B be sets. A is a Proper subset of B, iff every element of
A is in B but there is at least one element of B that is not in A and it can be written as
A < B. (A is Proper subset of B)
Example:
1. Let A = {1, 3, 5} & B = {1, 2, 3, 5} then A < B
2. Let N < W
Equal sets: Two sets A & B are equal off every element of A is in B and every
element of B is in A. It is denoted as A = B.
Symbolically: A = B iff A ≤ B & B ≤ A.
Example: Let A = {1, 2, 3, 6} B = {The set of positive divisors of 6}
C = {3, 1, 6, 2} D = {1, 2, 2, 3, 6, 6, 6} Sets A, B, C & D are equal sets.
Null set: A set which contains no element is called a Null set, or an Empty set or a
Void set.
Symbolically: It is denoted by a Greek letter Φ (phi) or { }.
Example: 1. A = {x: x is a person taller than 50 feet} => A = Φ
2. B = {x: x2 = 4, x is odd} => B = Φ
True / False:
1. x є {x} T 2. {x} ≤ {x} F
3. {x} є {x} F 4. {x} є {{x}} T
5. Φ ≤ {x} F 6. Φ є {x} T
Universal set: The set of all elements under consideration is called Universal set.
The Universal set is usually denoted by ‘U’.
Venn diagram: A Venn diagram is a graphical representation U
of sets by regions in plain. A B
Finite and Infinite sets: A set ‘S’ is said to be Finite if it
contains exactly ‘m’ distinct elements, where m denotes some non-
negative integers. In such a case we write |S| = m or n(S) = m (no. of elements in S is m).
A set is said to be Infinite if it is not Finite.
Example: 1. The set S of letters of English alphabets is Finite. |S| = 26.
2. The Null set, Φ has no elements, is Finite. |Φ| = 0.
3. The set of positive integers is an Infinite set.
Exercises: (Finite / Infinite)
1. A = {1 in the year} Finite 2. B = {even integers} Infinite
3. C = {positive integers less than 1} Finite 4. E = {Lines parallel to x-axis} Infinite
100 50
5. F = {x є R: x +29x -1=0} Finite 6. G = {Circles through origin} Infinite
Membership table: A table displaying the membership of elements in sets. A Ac
To indicate that an element is in a set, a ‘1’ is used. To indicate that an element 1 0
is not in a set, a ‘0’ is used. 0 1
Union of sets: Let A & B be subsets of a Universal set U. The union of
sets A & B is the sets of all elements in U that belongs to A or to B or to both and is
denoted by A U B.
Symbolically: A U B = {x є U: x є A or x є B}
Example: Let U = {a, b, c, d, e, f, g} A = {a, c, e, g} & B = {b, e, f, g}
Then, A U B = {a, c, e, g} U {b, e, f, g} => A U B = {a, b, c, e, f, g}
Remarks: 1. A U B = B U A. A B AUB U
2. A ≤ A U B & B ≤ A U B. 1 1 1 A B
1 0 1
0 1 1
0 0 0
Membership table for A U B:
Venn diagram for A U B:
Intersection of Sets: Let A & B be subsets of a Universal set U. The Intersection of sets
A & B is the set of all elements in U that belongs to both A & B and is denoted by A ∩
B.
Symbolically: A ∩ B = {x є U: x є A and x є B}
Example: From upper statements, A ∩ B = {e, g}
Remarks: 1. A ∩ B = B ∩ A 2. A ∩ B ≤ A or A ∩ B ≤ B
3. If A ∩ B = φ, then A & B are called disjoint sets.

Membership table for A ∩ B:


Venn diagram for A ∩ B: A B AUB U
1 1 1 A B
Set difference: Let A & B be 1 0 1
subsets of a Universal set U. the 0 1 1
difference of A & B (or relative 0 0 0
complements of B in A) is the set of all elements in U that belongs to A but not to B, and
is denoted by A – B or A \ B.
Symbolically: A – B = {x є U: x є A and x ¢ B}.
Example: From upper statements, A – B = {a, c}
Remarks: 1. A – B ≠ B – A 2. A – B ≤ A
3. A – B; A ∩ B & B – A are A B A U B U
mutually disjoint sets. 1 1 0 A B
Membership table for A – B: 1 0 1
Venn diagram for A – B: 0 1 0
Complement of a set: Let A be 0 0 0
subset of Universal set U. the complement
of A is the set of all elements in U that do not belongs to A. It is denoted by Ac, Ā or A`.
Symbolically: Ac = {x є U: x ¢ A}
Example: From upper statements;
U = { a, b, c, d, e, f, g} A = {a, c, e, g} Ac = {b, d, f}
Remarks: 1. Ac = U – A. 2. A ∩ Ac = φ 3. A U Ac = U.
c
Membership table for A : A U–A U
Venn diagram for Ac: 1 0 A
Exercises: 0 1
1. Let U = {1, 2, 3, …, 10}
X = {1, 2, 3, 4, 5} Y = {y: y = 2x, x є X}
Z = {z = z2 – 9z + 14 = 0}
Find; 1. X ∩ Y 2. Y U Z. 3. X – Z. 4. Yc. 5. Xc – Zc. 6. (X – Z)c.
2. Let U = {x є U: x є Z, 0 ≤ x, ≤ 10} P = {x є U: x is a prime}
2
Q = { x є U : x < 70} Find?
1. Draw a Venn diagram for above.
2. Pc ∩ Q = ?
Solution:
1. Y = {2, 4, 6, 8, 10} Z = {2}
Xc = {6, 7, 8, 9, 10} Zc = {1, 3, 4, 5, 6, 7, 8, 9, 10}

(i). X ∩ Y = {2, 4} (ii). Y U Z = {2, 4, 6, 8, 10} (iii). X – Z = {1, 3, 4, 5}


c c c
(iv). Y = {1, 3, 5, 7, 9} (v). X – Z = {} (vi). (X – Z)c = {2, 6, 7, 8, 9, 10}

(i). Draw Venn diagram of above;


U
Q
P
c
(ii). P UQ=?
c
P = U – P = {0, 1, 2, ,3 ,4, ,5, 6, 7, 8, 9, 10} – {2, 3, 5, 7} =
{0,1,4,6,8,9,10}
Pc ∩ Q = {1, 4, 6, 8}
Q. Let U = {1, 2, 3, 4, 5} and C = {1, 3} where A & B are empty sets. Find A
in each of the following:
1. AUB=U ; A ∩ B = Φ and B = {1}
Solution: Given:
AUB=U and A ∩ B = Φ
A
According to Venn diagram; B
Since, A U B = U & A ∩ B = Φ
Therefore; A = Bc
 A = Bc = {1}c = U – {1} So,
 A = Bc = {2, 3, 4, 5}
2. A<B=U and A U B = {4, 5}
Solution: Given:
A < B and A U B = {4, 5} U
Q
According to Venn diagram;
=> A < B < A U B = {4, 5} So, P
A < A U B = {4, 5}
=> A = {4} or A = {5}
1. Idempotent law A U B = A; A ∩ A = A
2. Commutative law A U B = B U A; A ∩ B = B ∩ A
3. Associative law A U (B U C) = (A U B) U C;
A ∩ (B ∩ C) = (A ∩ B) ∩ C
4. Universal law A U (B ∩ C) = (A U B) ∩ (A U C);
A ∩ (B U C) = (A ∩ B) U (A ∩ C)
5. Identity law A U Φ = A; A ∩ Φ = Φ
A U U = U; A ∩ U = A
6. Compliment law A U Ac = U; A ∩ Ac = Φ
Uc = Φ; Φc = U
7. Double compliment law (Ac)c = A
8. Demorgan’s law (A U B)c = Ac ∩ Bc
(A ∩ B)c = Ac U Bc
9. Alternative representation of Set difference A – B = A ∩ Bc
10 Subset law A U B ≤ C iff A ≤ C & B ≤ C;
. C ≤ A ∩ B iff C ≤ A & C ≤ B
11 Absorption law A U (A U B) = A; A ∩ (A U B) = A
.

Q. Let A, B & C be subsets of a universal set U. Show that;


1. A ≤ A U B 2. A – B ≤ A 3. if A ≤ B and B ≤ C then A ≤ C 4. A ≤ B iff Bc ≤ Ac
Solutions: 1. A ≤ A U B (If any arbitrary element of A is present in A U B then
A is subset of A U B and vice versa)
Let x be an arbitrary element of A, i.e. x є A
=> x є A or x є B => xєAUB
But x is an arbitrary element of A, therefore A ≤ A U B.
2. A–B≤A Let x be an arbitrary element of A – B, i.e. x є A – B
=> x є A and ¢ B (set difference) => xєA
But x is an arbitrary element of A – B, therefore A – B ≤ A.
3. If A ≤ B and B ≤ C then A ≤ C
Let x be an arbitrary element of A, i.e. xєA
=> x є B (Because A ≤ B) => x є C (Because B ≤ C)
But x is an arbitrary element of A, therefore A ≤ C.
4. A ≤ B iff Bc ≤ A c
Let x be an arbitrary element of A, i.e. xєA
c
=> x ¢ A (Complement set) => x ¢ Bc (Because Bc ≤ Ac)
=> x є B (Complement set)
But x is an arbitrary element of Bc, therefore Bc ≤ Ac.
Q. Let A & B be subsets of a Universal set U. Prove that A – B = A ∩ Bc
c
Case I: A–B≤A∩B
Let xєA–B => x є A and x ¢ B (Set difference)
c
=> x є A and x є B (Intersection) => x є A U Bc
But x is an arbitrary element of A – B, therefore A – B ≤ A ∩ Bc ……… (i)
c
Case 2: A∩B ≤A–B
Let x є A ∩ Bc => x є A and x є Bc (Intersection)
=> x є A and x ¢ B (Complement) => xєA–B
c c
But x is an arbitrary element of A ∩ B , therefore A ∩ B ≤ A – B ……… (ii)
By (i) & (ii) A – B = A ∩ Bc

You might also like