Class 12 Math1
Class 12 Math1
Let’s study.
Let’s recall.
1.1.1 Introduction :
Mathematics is a logical subject and tries to be exact. For exactness, it requires proofs which
depend upon proper reasoning. Reasoning requires logic. The word Logic is derived from the
Greek word "LOGOS" which means reason. Therefore logic deals with the method of reasoning. In
ancient Greece the great philosopher and thinker Aristotle started study of Logic systematically. In
mathematics Logic has been developed by English Philosopher and mathematician George Boole
(2 November 1815 - 8 December 1864)
Language is the medium of communication of our thoughts. For communication we use
sentences. In logic, we use the statements which are special sentences.
1.1.2 Statement :
A statement is a declarative (assertive) sentence which is either true or false, but not both
simultaneously. Statements are denoted by p, q, r, .....
Illustrations :
1) Following sentences are statements.
i) Sun rises in the East.
ii) 5 × 2 = 11
iii) Every triangle has three sides.
1
iv) Mumbai is the capital of Maharashtra.
v) Every equilateral triangle is an equiangular triangle.
vi) A natural number is an integer.
2) Following sentences are not statements.
i) Please, give your Pen.
ii) What is your name ?
iii) What a beautiful place it is !
iv) How are you ?
v) Do you like to play tennis ?
vi) Open the window.
vii) Let us go for tea
viii) Sit down.
Note : Interrogative, exclamatory, command, order, request, suggestion are not statements.
3) Consider the following.
3x
i) −9 = 0
2
ii) He is tall.
iii) Mathematics is an interesting subject.
iv) It is black in colour.
Let us analyse these statements.
i) For x = 6 it is true but for other than 6 it is not true.
ii) Here, we cannot determine the truth value.
For iii) & iv) the truth value varies from person to person. In all the above sentences, the truth value
depends upon the situation. Such sentences are called as open sentences. Open sentence is not a
statement.
Solved examples
Q.1. Which of the following sentences are statements in logic ? Write down the truth values of
the statements.
i) 6 × 4 = 25
ii) x + 6 = 9
iii) What are you doing ?
iv) The quadratic equation x2 – 5x + 6 = 0 has 2 real roots.
v) Please, sit down
vi) The Moon revolves around the earth.
vii) Every real number is a complex number.
viii) He is honest.
ix) The square of a prime number is a prime number.
2
Solution :
i) It is a statement which is false, hence its truth value is F.
ii) It is an open sentence hence it is not a statement.
iii) It is an interrogative hence it is not a statement.
iv) It is a statement which is true hence its truth value is T.
v) It is a request hence it is not a statement.
vi) It is a statement which is true, hence its truth value is T.
vii) It is a statement which is true, hence its truth value is T.
viii) It is open sentence, hence it is not a statement.
ix) It is a statement which is false, hence its truth value is F.
1.1.4 Logical connectives, simple and compound statements :
The words or phrases which are used to connect two statements are called logical connectives.
We will study the connectives 'and', 'or', 'if ..... then', 'if and only if ', 'not''.
Simple and Compound Statements : A statement which cannot be split further into two or
more statements is called a simple statement. If a statement is the combination of two or more simple
statements, then it is called a compound statement.
"3 is a prime and 4 is an even number", is a compound statement.
3
3) Conditional (Implication) : If two statements are combined by using the connective.
'if .... then', then it is called as conditional or implication. In other words if p, q are two state-
ments then 'if p then q' is called as conditional. It is denoted by p → q or p ⇒ q and it is read
as 'p implies q' or 'if p then q'.
Truth table for conditional.
p q p→q
T T T The conditional statement p → q is False only if p is true
T F F and q is false. Otherse it is true. Here p is called hypothesis
or antecedent and q is called conclusion or consequence.
F T T
F F T
Table 1.3
4
Solved examples
Ex.1: Express the following compound statements symbolically without examining the truth values.
i) 2 is an even number and 25 is a perfect square.
ii) A school is open or there is a holiday.
iii) Delhi is in India but Dhaka is not in Srilanks.
iv) 3 + 8 ≥ 12 if and only if 5 × 4 ≤ 25.
Solution :
i) Let p : 2 is an even numder
q : 25 is a perfect square.
The symbolic form is p ∧ q.
ii) Let p : The school is open
q : There is a holiday
The symbolic form is p ∨ q
iii) Let p : Delhi is in India
q : Dhaka is in Srilanka
The symbolic form is p ∧ ~ q.
iv) Let p : 3 + 8 ≥ 12; q : 5 × 4 ≤ 25
The symbolic form is p ↔ q
Exercise 1.1
Q.1. State which of the following are statements. Justify. In case of statement, state its truth
value.
i) 5 + 4 = 13.
ii) x – 3 = 14.
iii) Close the door.
iv) Zero is a complex number.
v) Please get me breafast.
vi) Congruent triangles are similar.
vii) x2 = x.
6
viii) A quadratic equation cannot have more than two roots.
ix) Do you like Mathematics ?
x) The sun sets in the west
xi) All real numbers are whole numbers
xii) Can you speak in Marathi ?
xiii) x2 – 6x – 7 = 0, when x = 7
xiv) The sum of cuberoots of unity is zero.
xv) It rains heavily.
7
1.2 STATEMENT PATTERN, LOGICAL EQUIVALENCE,
TAUTOLOGY, CONTRADICTION, CONTINGENCY.
Solved Examples
Ex.1.: Construct the truth table for each of the following statement patterns.
i) p → (q → p)
ii) (~ p ∨ q) ↔ ~ (p ∧ q)
iii) ~ (~ p ∧ ~ q) ∨ q
iv) [(p ∧ q) ∨r] ∧ [~ r ∨ (p ∧ q)]
v) [(~ p ∨ q) ∧ (q → r)] → (p → r)
8
Solution :
i) p → (q → p)
p q q→p p → (q → p)
T T T T
T F T T
F T F T
F F T T
Table 1.7
iii) ~ (~ p ∧ ~ q) ∨ q
p q ~p ~q (~p ∧~q) ~(~p ∧~ q) ~(~p ∧~ q) ∨ q
T T F F F T T
T F F T F T T
F T T F F T T
F F T T T F F
Table 1.9
iv) [(p ∧ q) ∨ r] ∧ [~ r ∨ (p ∧ q) ]
p q r ~r p ∧ q (p ∧ q) ∨ r ~r∨(p ∧ q) [p ∧ q) ∨ r] ∧ ( ~ r ∨ (p ∧ q)
T T T F T T T T
T T F T T T T T
T F T F F T F F
T F F T F F T F
F T T F F T F F
F T F T F F T F
F F T F F T F F
F F F T F F T F
Table 1.10
9
v) [(~p ∨ q) ∧ (q → r)] → (p → r)
p q r ~p ~p∨q q → r p → r (~p ∨ q) ∧ [(~p ∨ q) ∧ (q → r)] → (q → r)
(q → r)
T T T F T T T T T
T T F F T F F F T
T F T F F T T F T
T F F F F T F F T
F T T T T T T T T
F T F T T F T F T
F F T T T T T T T
F F F T T T T T T
Table 1.11
I II III IV V VI
p q p ∧ q p → ~q ~(p →~ q)
~q
T T F T F T
T F T F T F
F T F F T F
F F T F T F
Table 1.12
Columns (IV) and (VI) are identical \ (p ∧ q) ≡ ~(p → ~q)
ii) (p ↔ q) ≡ (p ∧ q) ∨ ( ~ p ∧ ~ q)
I II III IV V VI VII VIII
p q ~p ~q p↔q (p ∧ q) ~p ∧ ~ q (p ∧ q) ∨ (~p ∧ ~ q)
T T F F T T F T
T F F T F F F F
F T T F F F F F
F F T T T F T T
Table 1.13
Columns V and VIII are identical
\ (p ↔ q) ≡ (p ∧ q) ∨ (~p ∨ ~ q)
(iii) (p ∧ q) → r ≡ p → (q → r)
10
I II III IV V VI VII
p q r p∧q (p ∧ q) → r q→r p →( q → r)
T T T T T T T
T T F T F F F
T F T F T T T
T F F F T T T
F T T F T T T
F T F F T F T
F F T F T T T
F F F F T T T
Table 1.14
(iv) p → (q ∨ r) ≡ (p → q) ∨ (p → r)
I II III IV V VI VII VIII
p q r q∨r p → (q ∨ r) p→q p→r (p → q) ∨ (p → r)
T T T T T T T T
T T F T T T F T
T F T T T F T T
T F F F F F F F
F T T T T T T T
F T F T T T T T
F F T T T T T T
F F F F T T T T
Table 1.15
Columns V and VIII are identical
\ p → (q ∨ r) ≡ (p → q) ∨ (p → r)
Ex.3. Using truth tables, examine whether each of the following statement pattern is a tautology or
a contradiction or contingency.
i) (p ∧ q) ∧ (~ p ∨ ~ q)
ii) [p ∧ (p → ~ q)] → q
iii) (p → q) ∧ [(q → r) → (p → r)]
iv) [(p ∨ q) ∨ r] ↔ [p ∨ (q ∨ r)]
11
Solution:
i) (p ∧ q) ∧ (~ p ∨ ~ q)
p q ~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 F
Table 1.16
All the truth values in the last column are F. Hence it is contradiction.
ii) [p ∧ (p → ~q)] → q
p q ~q p → ~q p ∧( p → ~ q) p ∧ (p → ~q) → q
T T F F F T
T F T T T F
F T F T F T
F F T T F T
Table 1.17
Truth values in the last column are not identical. Hence it is contingency.
iii) (p → q) ∧ [(q → r) → (p → r)]
p q r p→q q → r p → r (q → r)→ (p→ r) (p → q) ∧(q → r) → (p → r)
T T T T T T T T
T T F T F F T T
T F T F T T T F
T F F F T F F F
F T T T T T T T
F T F T F T T T
F F T T T T T T
F F F T T T T T
Table 1.18
Truth values in the last column are not same, hence it is contingency.
iv) [(p ∨ q) ∨ r] ↔ (p ∨ (q ∨ r)]
p q r p ∨ q (p ∨ q)∨ r q ∨ r p ∨ (q ∨ r) [(p ∨ q) ∨ r] ↔ [p ∨ (q ∨ r)]
T T T T T T T T
T T F T T T T T
T F T T T T T T
T F F T T F T T
F T T T T T T T
F T F T T T T T
F F T F T T T T
F F F F F F F T
Table 1.19 All the truth values in the last column are T, hence it is tautology.
12
Exercie.1.2
Q.1. Construct the truth table for each of the following statement patterns.
i) [(p → q) ∧ q] → p
ii) (p ∧ ~ q) ↔ (p → q)
iii) (p ∧ q) ↔ (q ∨ r)
iv) p → [~ (q ∧ r)]
v) ~ p ∧ [(p ∨ ~ q ) ∧ q]
vi) (~ p → ~ q) ∧ (~ q → ~ p)
vii) (q → p) ∨ (~ p ↔ q)
viii) [p → (q → r)] ↔ [(p ∧ q) → r]
ix) p → [~ (q ∧ r)]
x) (p ∨ ~ q) → (r ∧ p)
13
1.3 QUANTIFIERS, QUANTIFIED STATEMENTS, DUALS, NEGATION OF
COMPOUND STATEMENTS, CONVERSE, INVERSE AND CONTRAPOSITIVE
OF IMPLICATION.
1.3.1 Quantifiers and quantified statements.
Look at the following statements :
p : "There exists an even prime number in the set of natural numbers".
q : "All natural numbers are positive".
Each of them asserts a condition for some or all objects in a collection. Words "there exists"
and "for all" are called quantifiers. "There exists is called existential quantifier and is denoted
by symbol $. "For all" is called universal quantifier and is denoted by ". Statements involving
quantifiers are called quantified statements. Every quantified statement corresponds to a collection
and a condition. In statement p the collection is 'the set of natural numbers' and the condition is
'being even prime'. What is the condition in the statement q ?
A statement quantified by universal quantifier " is true if all objects in the collection satisfy
the condition. And it is false if at least one object in the collection does not satisfy the conditon.
A statement quantified by existential quantifier $ is true if at least one object in the collection
satisfies the condition. And it is false if no object in the collection satisfies the condition.
14
Ex.1. Write the duals of each of the following :
i) (p ∧ q) ∨ r ii) t ∨ (p ∨ q)
iii) p ∧ [~ q ∨ (p ∧ q) ∨ ~ r] iv) (p ∨ q) ∧ t
v) (p ∨ q) ∨ r ≡ p ∨ (q ∨ r ) vi) p ∧ q ∧ r
vii) (p ∧ t) ∨ (c ∧ ~ q)
Solution :
i) (p ∨ q) ∧ r ii) c ∧ (p ∧ q)
iii) p ∨ [(~ q ∧ (p ∨ q) ∧ ~ r] iv) (p ∧ q) ∨ c
v) (p ∧ q) ∧ r ≡ p ∧ (q ∧ r ) vi) p∨q∨r
vii) (p ∨ c) ∧ (t ∨ ~q)
15
Activity :
Prepare the truth table for p → q, q → p, ~ p → ~q and ~ q → ~p. What is your conclusion
from the truth table ?
i) ........................ ≡ .........................
ii) ........................ ≡ .........................
16
Solution :
i) Some natural numbers are not rationals.
ii) No student of class X is sixteen year old.
iii) ∀ n ∈ N, n + 8 < 11
iv) ∃ x ∈ N such that 2x + 1 is not odd
Ex.3. Write the converse, inverse and contrapositive of the following statements.
i) If a function is differentiable then it is continuous.
ii) If it rains then the match will be cancelled.
Solution :
(1) Let p : A function is differentiable
q : A function is continuous.
\ Given statement is p → q
i) Its converse is q → p
If a function is continuous then it is differentiable.
ii) Its inverse is ~ p → ~ q.
If a function not differentiable then it is not continuous.
iii) Its contrapositive is ~ q → ~ p
If a function is not continuous then it is not differentiable.
(2) Let p : It rains, q : The match gets cancelled.
\ Given statement is p → q
i) Its converse is q → p
If the match gets cancelled then it rains.
ii) Inverse is ~ p → ~ q
If it does not rain then the match will not be cancelled.
iii) Its contrapositive is ~ q → ~ p.
If the match is not cancelled then it does not rain.
Exercise 1.3
Q.1. If A = {3, 5, 7, 9, 11, 12}, determine the truth value of each of the following.
i) ∃ x ∈ A such that x – 8 = 1
ii) ∀ x ∈ A, x2 + x is an even number
iii) ∃ x∈ A such that x2 < 0
iv) ∀ x ∈ A, x is an even number
v) ∃ x ∈ A such that 3x + 8 > 40
vi) ∀ x ∈ A, 2x + 9 > 14
Q.2. Write the duals of each of the following.
i) p ∨ (q ∧ r) ii) p ∧ (q ∧ r) iii) (p ∨ q) ∧ (r ∨ s) iv) p∧~q
v) (~ p ∨ q) ∧ (~ r ∧ s) vi) ~ p ∧ (~ q ∧ (p ∨ q) ∧ ~ r)
vii) [~ (p ∨ q)] ∧ [p ∨~ (q ∧ ~ s)] viii) c ∨ {p ∧ (q ∨ r)} ix) ~ p ∨ (q ∧ r) ∧ t x) (p ∨ q) ∨ c
17
Q.3. Write the negations of the following.
i) x + 8 > 11 or y – 3 = 6
ii) 11 < 15 and 25 > 20
iii) Qudrilateral is a square if and only if it is a rhombus.
iv) It is cold and raining.
v) If it is raining then we will go and play football.
vi) 2 is a rational number.
vii) All natural numbers are whole numbers.
viii) ∀ n ∈ N, n2 + n + 2 is divisible by 4.
ix) ∃ x ∈ N such that x – 17 < 20
1.4.1.
i) p → q ≡ ~ p ∨ q ii) p ↔ q ≡ (p → q) ∧ (q → p)
iii) p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r) iv) p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)
Activity :
Prove the results (iii) and (iv) by using truth table.
18
1.4.2. Algebra of statements.
Idempotent Law p ∧ p ≡ p, p∨p≡p
Commutative Law p∨q≡q∨p p∧q≡q∧p
Associative Law p ∧ (q ∧ r) ≡ (p ∧ q) ∧ r ≡ p ∧ q ∧ r
p ∨ (q ∨ r) ≡ (p ∨ q) ∨ r ≡ p ∨ q ∨ r
Distributive Law p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)
p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)
De Morgan's Law ~(p ∧ q) ≡ ~ p ∨ ~q, ~(p ∨ q) ≡ ~p ∧ ~q
Identity Law p ∧ t ≡ p, p ∧ c ≡ c,p ∨ c ≡ p, p ∨ t ≡ t
Complement Law p ∧ ~ p ≡ c, p ∨ ~ p ≡ t
Absorption Law p ∨ (p ∧ q) ≡ p, p ∧ (p ∨ q) ≡ p
Conditional Law p→q≡~p∨q
Biconditional Law p ↔ q ≡ (p → q) ∧ (q → p) ≡ (~p ∨ q)∧ (~q ∨ p)
Table 1.21
Solved Examples
Ex.1. Write the negations of the following stating the rules used.
i) (p ∨ q) ∧ (q ∨ ~ r) ii) (p → q) ∨ r
iii) p ∧ (q ∨ r) iv) (~ p ∧ q) ∨ (p ∧ ~ q)
v) (p ∧ q) → (~ p ∨ r)
Solution :
i) ~ [(p ∨ q) ∧ (q ∨ ~ r)] ≡ ~ (p ∨ q) ∨ ~ (q ∨ ~ r) [DeMorgan’s law]
≡ (~ p ∧ ~ q) ∨ (~ q ∧ r) [DeMorgan’s law]
≡ (~ q ∧ ~ p) ∨ (~ q ∧ r) [Commutative law]
≡ ~ q ∧ (~ p ∨ r) [Distributive law]
~ [(p ∧ q) → (~ p ∨ r)] ≡ (p ∧ q) ∧ ~ (~ p ∨ r)
v) [~ (p → q) ≡ p ∧ ~ q]
≡ (p ∧ q) ∧ [p ∧ ~ r] [DeMorgan’s law]
≡ q ∧ p ∧ p ∧ ~ r [Associative law
≡ q ∧ p ∧ ~ r [Idempotent law]
19
Ex.2. Rewrite the following statements without using if ...... then.
i) If prices increase then the wages rise.
ii) If it is cold, then we wear woolen clothes.
Solution :
i) Let p : Prices increase
q : The wages rise.
The given statement is p → q
but p → q ≡ ~ p ∨ q
The given statement can be written as
'Prices do not increase or the wages rise'.
ii) Let p : It is cold, q : We wear woollen clothes.
The given statement is p → q
but p → q ≡ ~ p ∨ q
The given statement can be written as
It is not cold or we wear woollen clothes.
Solution :
i) We know that
p ↔ q ≡ (p → q) ∧ (q → p)
≡ (~ p ∨ q) ∧ (~ q ∨ p) [Conditional law]
≡ ~ ( p ∧ ~ q) ∧ ~ (q ∧ ~p) [Demorgan’s law]
ii) ~ (p ∨ q) ∨ (~ p ∧ q) ≡ (~ p ∧ ~ q) ∨ (~ p ∧ q) [Demorgan’s law]
≡ ~ p ∧ (~ q ∨ q) [Distributive law]
≡ ~ p ∧ t [Complement law]
≡ ~ p [Identity law]
iii) (p ∧ q) ∧ ~ p ≡ ~ p ∧ (p ∨ q) [Commutative law]
≡ (~ p ∧ p) ∨ (~ p ∧ q) [Distributive law]
≡ c ∨ (~ p ∧ q) [Complement law]
≡ ~ p ∧ q [Identity law]
20
Exercise 1.4
Q.1. Using rules of negation write the negations of the following with justification.
i) ~q→p ii) p∧~q
iii) p∨~q iv) (p ∨ ~ q) ∧ r
v) p → (p ∨ ~ q) vi) ~ (p ∧ q) ∨ (p ∨ ~ q)
vii) (p ∨ ~ q) → (p ∧ ~ q) viii) (~ p ∨ ~ q)∨(p ∧ ~ q)
21
In figure 1.2, we consider a circuit containing an electric lamp L, controlled by a switch S.
When the switch S is closed (i.e. on), then current flows in the circuit and hence the lamp
glows. When the switch S is open (i.e. off), then current does not flow in the circuit and subsequently
the lamp does not glow.
The theory of symbolic logic can be used to represent a circuit by a statement pattern. Conversely
for given statement pattern a circuit can be constructed. Corresponding to each switch in the cirucit
we take a statement letter in statement pattern. Switches having the same state will be denoted by the
same letter and called equivalent switches. Switches having opposite states are denoted by S and S'.
They are called complementary switches. In circuit we don't show whether switch is open or closed.
In figure 1.3 switch S1 corresponds to statement letter p in the corresponding statement pattern.
We write it as p : switch S1 and ~ p : switch S'1
The correspondence between switch S2 and statement letter q is shown as q : switch S2 and
~ q : switch S'2.
We don't know the actual states of switches in the circuit. We consider all possible combinations of
states of all switches in the circuit and prepare a table, called "Input Output table", which is similar
to truth table of the corresponding statement pattern.
In an Input-output table we represent '1' when the state of the switch is 'on' and '0' when the
state of the switch is 'off '.
Fig. 1.3
Let p : The switch S1
q : The switch S2
L : The lamp L
Input output table (switching table) for p ∧ q.
p q p∧q
1 1 1
1 0 0
0 1 0
0 0 0
Table 1.22
22
1.5.2 Two switches in parallel :
Two switches S1 and S2 are connected in parallel and electric lamp L is as shown in fig. 1.4
Let p : The switch S1
q : The switch S2
L : The lamp L
Q.1. Express the following circuits in the symbolic form of logic and write the input-output
table.
i)
Fig. 1.5
ii) iii)
23
Solution :
i) Let p : The switch S1 q : The switch S2 L : The lamp L
Given circuit is expressed as (p ∨ q) ∨ (~ p ∧ ~ q)
Solution :
p q ~p ~q p∨q ~ p ∧ ~ q (p ∨ q) ∨ (~p ~ q)
1 1 0 0 1 0 1
1 0 0 1 1 0 1
0 1 1 0 1 0 1
0 0 1 1 0 1 1
Table 1.24
ii) Let p : The switch S1 is closed
q : The switch S2 r : The switch S3 L : The lamp L
The symbolic form is [(p ∧ q) ∨ (~ p ∧ ~ q)] ∧ r
p q r ~p ~q p ∧ q (p ∧ q) ∨ (~p ∧ ~q) (p ∧ q) ∨ (~p ∧ ~q) [(p ∧ q) ∨
(~p ∧ ~q)] ∧ r
1 1 1 0 0 1 0 1 1
1 1 0 0 0 1 0 1 0
1 0 1 0 1 0 0 0 0
1 0 0 0 1 0 0 0 0
0 1 1 1 0 0 0 0 0
0 1 0 1 0 0 0 0 0
0 0 1 1 1 0 1 1 1
0 0 0 1 1 0 1 1 0
Table 1.25
24
Ex.2. Construct switching circuits of the following.
i) [(p ∨ (~ p ∧ q)] ∨ [(~ q ∧ r) ∨ ~ p]
ii) (p ∧ q ∧ r) ∨ [~ p ∨ (q ∧ ~ r)]
iii) [(p ∧ r) ∨ (~ q ∧ ~r)] ∨ (~ p ∧ ~ r)
Solution :
Let p : The switch S1
q : The switch S2
r : The switch S3
The circuits are as follows.
Fig. 1.10
25
Ex.3. Give an alternative arrangement for the following circuit, so that the new circuit has
minimum switches.
Fig. 1.12
Ex.4. Express the following switching circuit in the symbolic form of Logic. Construct the
switching table and interpret it.
Fig. 1.13
26
Solution :
Let p : The switch S1
q : The switch S2
The symbolic form of the given switching circuit is (p ∨ q) ∧ (~p) ∧ (~q)
The switching table.
p q ~p ~q p∨q (p ∨ q) ∧ (~ p) (p ∨ q) ∧ (~ p) ∧ (~ q)
1 1 0 0 1 0 0
1 0 0 1 1 0 0
0 1 1 0 1 1 0
0 0 1 1 0 0 0
Table 1.27
Last column contains all 0, lamp will not glow irrespective of the status of the switches.
Ex.5. Simplify the given circuit by writing its logical expression. Also,write your conclusion.
Fig. 1.14
Let p : The switch S1
q: The The switch S2
The logical expression for the given circuit is p ∧ (~ p ∨ ~ q) ∧ q
Consider
p ∧ (~ p ∨ ~ q) ∧ q
≡ [ p ∧ ( ~ p ∨ ~ q] ∧ q [Associative Law]
≡ [(p ∧ ~ p) ∨ (p ∨ ~ q)] ∧ q [Distributive Law]
≡ [c ∨ (p ∧ ~ q)] ∧ q [Complement Law]
≡ (p ∧ ~ q) ∧ q [Identity Law]
≡ p ∧ (~ q ∧ q) [Associative Law]
≡ p∧c [Complement Law]
≡ c [Identity Law]
Conclusion : The lamp will not glow irrespective of the status of the switches.
27
Ex. 6 : In the following switching circuit,
i) Write symbolic form ii) Construct switching table iii) Simplify the circuit
Fig. 1.15
Solution : Let p : The switch S1 . q : The switch S2 . r : The switch S3
1) The symbolic form of given circuit is (p ∧ q) ∨ (~ p ∧ q) ∨ (r ∧ ~ q).
ii) Switching Table :
P q r ~ p ~ q ~ p ∧ q ~ p ∧ q r ∧ ~ q (p ∧ q) ∨ (~p ∧ q) ∨ (r ∧ ~ q)
1 1 1 0 0 1 0 0 1
1 1 0 0 0 1 0 0 1
1 0 1 0 1 0 0 1 1
1 0 0 0 1 0 0 0 0
0 1 1 1 0 0 1 0 1
0 1 0 1 0 0 1 0 1
0 0 1 1 1 0 0 1 1
0 0 0 1 1 0 0 0 0
Table 1.28
iii) Consider = (p ∧ q) ∨ (~p ∧ q) ∨ (r ∧ ~q)
= [(p ∨ ~p) ∧ q] ∨ [(r ∧ ~q)] [Distributive Law]
= (t ∧ q) ∨ (r ∨ ~q) [Complement Law]
= q ∨ (r ∧ ~q) [Identity Law]
= (q ∨ r) ∧ (q ∨ ~q) [Distributive Law]
= (q ∨ r) ∧ t [Complement Law]
= (q ∨ r) [Identify Law]
Simplified circuit is :
Fig. 1.16
28
Exercise 1.5
Q.1. Express the following circuits in the symbolic form of logic and writ the input-output
table.
(i) (ii)
(iii) (iv)
(v) (vi)
29
Q.2. Construct the switching circuit of the following :
i) (~p ∧ q) ∨ (p ∧ ~ r) ii) (p ∧ q) ∨ [~p ∧ (~ q ∨ p ∨ r)]
iii) [(p ∧ r) ∨ (~q ∧ ~ r)] ∧ (~ p ∧ ~ r) iv) (p ∧ ~ q ∧ r) ∨ [p ∧ (~ q ∨ ~r)]
v) p ∨ (~ p ) ∨ (~ q) ∨ (p ∧ q) vi) (p ∧ q) ∨ (~ p) ∨ (p ∧ ~q)
Q.3. Give an alternative equivalent simple circuits for the following circuits :
(i) (ii)
Fig. 1.23
Fig. 1.24
Q.4. Write the symbolic form of the following switching circuits construct its switching table
and interpret it.
i) ii )
Fig. 1.27
Q.5.
Obtain the simple logical expression of the following. Draw the corresponding
switching circuit.
i) p ∨ (q ∧ ~ q) ii) (~ p ∧ q) ∨ (~ p ∧ ~ q) ∨ (p ∧ ~ q)]
iii) [p (∨ (~ q) ∨ ~r)] ∧ (p ∨ (q ∧ r) iv) (p ∧ q ∧ ~ p) ∨ (~ p ∧ q ∧ r) ∨ (p ∧ ~ q ∧ r)
∨ (p ∧ q ∧ r)
30
Let’s remember!
1) A declarative sentence which is either true or false, but not both simultaneously is called a
statement.
Sr. Connective Symbolic Name of Com- Hint in Negation
No. Form pound Statement truth table
i) and p∧q Conjunction T∧T≡T ~p ∨ ~q
ii) or p∨q Disjunction F∨F≡F ~p ∧ ~ q
iii) if... then p → q Conditional T→F≡F p∧~q
iv) if and only p ↔ q Biconditional T ↔ T ≡ T (p ∧ ~q) ∨ (q ∧ ~p)
if F↔F≡T
Table 1.29
3) In the truth table of the statement pattern if all truth values in the last column
a) are 'T' then it is tautology.
b) are 'F' then it is contradiction.
4) In the truth table of the statement pattern if some entries are 'T' and some are 'F' then it is
called as contingency.
5) The symbol ∀ stands for 'for all' or 'for every'. It is universal quantifier. The symbol ∃ stands
for 'for some' or 'for one' or 'there exists at least one'. It is called as existential quantifier.
6) Algebra of statements.
Idempotent Law p ∧ p ≡ p, p∨p≡p
Commutative Law p∨q≡q∨p p∧q≡q∧p
Associative Law p ∧ (q ∧ r) ≡ (p ∧ q) ∧ r ≡ p ∧ q ∧ r
p ∨ (q ∨ r) ≡ (p ∨ q) ∨ r ≡ p ∨ q ∨ r
Distributive Law p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)
p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)
De Morgan's Law ~(p ∧ q) ≡ ~ p ∨ ~q, ~(p ∨ q) ≡ ~p ∧ ~q
Identity Law p ∧ t ≡ p, p ∧ c ≡ c,p ∨ c ≡ p, p ∨ t ≡ t
Complement Law p ∧ ~ p ≡ c, p ∨ ~ p ≡ t
Absorption Law p ∨ (p ∧ q) ≡ p, p ∧ (p ∨ q) ≡ p
Conditional Law p→q≡~p∨q
Biconditional Law p ↔ q ≡ (p → q) ∧ (q → p) ≡ (~p ∨ q)∧ (~q ∨ p)
31
8) Switching circuits :
i) Switches in series ii) Switches in parallel.
Fig. 1.28
Fig. 1.29
Input-output table
p q p∧q p∨q
1 1 1 1
1 0 0 1
0 1 0 1
0 0 0 0
Table 1.30
Miscellaneous Exercise 1
I]Select and write the correct answer from the given alternatives in each of the following
questions :
i) If p ∧ q is false and p ∨ q is true, the ________ is not true.
A) p ∨ q B) p↔q C) ~p ∨ ~q D) q ∨ ~p
ii) (p ∧ q) → r is logically equivalent to ________.
A) p → (q → r) B) (p ∧ q) → ~r C) (~p ∨ ~q) → ~r D) (p ∨ q) → r
iii) Inverse of statement pattern (p ∨ q) → (p ∧ q) is ________.
A) (p ∧ q) → (p ∨ q) B) ~(p ∨ q) → (p ∧ q)
C) (~p ∧ ~q) → (~p ∨ ~q) D) (~p ∨ ~q) → (~p ∧ ~q)
iv) If p ∧ q is F, p → q is F then the truth values of p and q are ________.
A) T, T B) T, F C) F, T D) F, F
v) The negation of inverse of ~p → q is ________.
A) q ∧ p B) ~p ∧ ~q C) p ∨ q D) ~q → ~p
vi) The negation of p ∧ (q → r) is ________.
A) ~p ∧ (~q → ~r) B) p ∨ (~q ∨ r)
C) ~p ∧ (~q → ~r) D) ~p ∨ (q ∧ ~r)
vii) If A = {1, 2, 3, 4, 5} then which of the following is not true?
A) ∃ x ∈ A such that x + 3 = 8 B) ∃ x ∈ A such that x + 2 < 9
C) ∀ x ∈ A, x + 6 ≥ 9 D) ∃ x ∈ A such that x + 6 < 10
32
Q.2. Which of the following sentences are statements in logic? Justify. Write down the truth
value of the statements :
i) 4! = 24.
ii) p is an irrational number.
iii) India is a country and Himalayas is a river.
iv) Please get me a glass of water.
v) cos2q - sin2q = cos2q for all q∈R.
vi) If x is a whole number the x + 6 = 0.
Q.3. Write the truth values of the following statements :
i) 5 is an irrational but 3 5 is a complex number.
ii) " n ∈ N, n2 + n is even number while n2 – n is an odd number.
iii) ∃ n ∈ N such that n + 5 > 10.
iv) The square of any even number is odd or the cube of any odd number is odd.
v) In ∆ABC if all sides are equal then its all angles are equal.
vi) ∀ n ∈ N, n + 6 > 8.
Q.4. If A = {1, 2, 3, 4, 5, 6, 7, 8, 9}, determine the truth value of each of the following
statement :
i) ∃ x ∈ A such that x + 8 = 15.
ii) ∀ x ∈ A, x + 5 < 12.
iii) ∃ x ∈ A, such that x + 7 ≥ 11.
iv) ∀ x ∈ A, 3x ≤ 25.
Q.5. Write the negations of the following :
i) ∀ n ∈ A, n + 7 > 6.
ii) ∃ x ∈ A, such that x + 9 ≤ 15.
iii) Some triangles are equilateral triangle.
Q.6. Construct the truth table for each of the following :
i) p → (q → p) ii) (~p ∨ ~q) ↔ [~(p ∧ q)]
iii) ~(~p ∧ ~q) ∨ q iv) [(p ∧ q) ∨ r] ∧ [~r ∨ (p ∧ q)]
v) [(~p ∨ q) ∧ (q → r)] → (p → r)
Q.7. Determine whether the following statement patterns are tautologies contradictions or
contingencies :
i) [(p → q) ∧ ~q)] → ~p ii) [(p ∨ q) ∧ ~p] ∧ ~q
iii) (p → q) ∧ (p ∧ ~q) iv) [p → (q → r)] ↔ [(p ∧ q) → r]
v) [(p ∧ (p → q)] → q vi) (p ∧ q) ∨ (~p ∧ q) ∨ (p ∨ ~q) ∨ (~p ∧ ~q)
vii) [(p ∨ ~q) ∨ (~p ∧ q)] ∧ r viii) (p → q) ∨ (q → p)
33
Q.8. Determine the truth values of p and q in the following cases :
i) (p ∨ q) is T and (p ∧ q) is T
ii) (p ∨ q) is T and (p ∨ q) → q is F
iii) (p ∧ q) is F and (p ∧ q) → q is T
Q.9. Using truth tables prove the following logical equivalences :
i) p ↔ q ≡ (p ∧ q) ∨ (~p ∧ ~q)
ii) (p ∧ q) → r ≡ p → (q → r)
Q.10. Using rules in logic, prove the following :
i) p ↔ q ≡ ~ (p ∧ ~q) ∧ ~(q ∧ ~p)
ii) ~p ∧ q ≡ (p ∨ q) ∧ ~p
iii) ~(p ∨ q) ∨ (~p ∧ q) ≡ ~p
Q.11. Using the rules in logic, write the negations of the following :
i) (p ∨ q) ∧ (q ∨ ~r) ii) p ∧ (q ∨ r)
iii) (p → q) ∧ r iv) (~p ∧ q) ∨ (p ∧ ~q)
Q.12. Express the following circuits in the symbolic form. Prepare the switching table :
(i) (ii)
(i) (ii)
34
Q.14. Check whether the following switching circuits are logically equivalent - Justify.
(A) i) ii)
(B) i) ii)
Fig. 1.39
Q.17. Represent the following switching circuit in symbolic form and construct its switching
table. Write your conclusion from the switching table.
Fig. 1.40
35