Maths Ch2
Maths Ch2
CHAS
2 Mathematical Logic
UnitI
Syllabus
A proposition
or a statement is a declarative represented by -
sentence which is either true or false.
Conjunction is also known as AND, it is
The possible values of a proposition are called represented by a.
truth values.
Disjunction is also known as OR, it is
represented
The value true is denoted by T or by the symbol 1. by v
The value false is denoted by F or by the Name of
symbol 0. Equivalent
Connective Symbol
Examples English word
Conjunction
NOT
AND
ii) Calcutta is an old city.
Disjunction OR
i) There are twelve months in a year.
2.2.1 Negation
iv)2+5=9
These are propositions. Examples ), (ii) and (ii)
If p denotes
negation and
a statement, then
read as "not p".
it is
p denotes its
)
are
Negation
i) Conjunction
2.2.2 Conjunction
F
Comp.)
(SPPU- Table 2.2.3: Truth table for i.
blefor Aalthemalca
EF Discrete
Mathematics
disjunction
Example :if
q Pvq Discre
PIt is raining
There are 40
chairs in my room.
T T T
q
is raining and
there are 40
chairs in T F T (pv
then PAqIt T T
my room.
as follows:
The truth table for pnqis given F
Table 2.2.2: Truth table forconjunction
Translate into symbolic form,the
Ex. 2.2.2
PA There is something wrong
stateme
T T the student.
with
tha3
or with
F shal watch the game on televi
(i) I
F F to the game
n Le
th
F F F
Soln.: it
ta
the statement (i) If we write
Ex. 2.2.1 : Translate symbolicform,
into
he has teacher.
(i)
Ram watches television while
dinner qThere is
something wrong with
is rich but student.
(ii) Shyam unhappy.
) If we write
(ii) If we write
teacher or with the student.
(ii) pv9
2.2.3
The
Disjunction
disjunction of two statements p and qis
pV1g
F F T T
written as p vq and is read as p or q.
The statementp v
when both p and
q has the truth value
have the truth
F
value
only
F;
F T F F
F
q T F T T
otherwise T. The disjunction of p and
it is q is
TechKnou
Publica
-rete Mathematics (SPPU Comp.) 2-3 Mathematical Logic
P Pvg (p Aq) P
Table 2.3.2: Truth table for p q
F T
TT
F T
F F T
TTFT
F T F
TT
F
TF
TT
F
T
2.3 Conditional and Bi-conditional
Statements Ex. 2.3.1 : Express the contrapositive, converse, inverses
Tat p and q be any two statements. and negation forms of the conditional statement
given below
hen
hen p q is called a conditional statement and x
"If is rational, then x real".
it is read as ifp then q or "p implies q". The truth Soln.
is
F
pis contrapositive
of
ofp >q.
The given
statement is
TF
TT
T T
T
If x is rational
Let,
P
then x is real"
P:X1s rational
Thetruth value of p>qis when p is true anddq
X is real
P
in
. is false;
pis called
all other cases
antecedent(hypothesis)
p q has truth value T.
Operation
Symbolie
formn
Statement
orm
qis called consequent (conclusion) 1.
Contrapositive Ifx is not real
p
aspvq)
qpis called the
q is called
converseofp
the inverse ofp
>q
qq 2. Converse P rational
If x is real
x is rational
then
Pgis another way of writing (p >)a (q>p) Ex. 2.3.2: Express the contrapositive, converse and
The statement
Same truth
p
values;
q is true if
it is
p and q have the
false if p and
inverse
"If 3<
forms
b and 1+ 1
of the
2 then
following
sin 3 statement
= 1/2"
Tech Knowledge
PuDTIt atiuniS
2-4 inverse eand
Define converse,
and state conve
Ex. 2.3.4 contraposi
(SPPU Comip a statement nverse,
ofthe following: Discrete
iversa
Mathermatics
Discrete contrapositive
ie.(pq form
(2)
equilateral.
n is
thenit
i,P
pA
then odd or n is
form Statement Ifn is prime,
(3) t.2.3.6
perationSymbolic
Contre r px) rein
Soln.
32b or is Easterthen orrow ia
positire -t(-pv-then Statement:If
today
(DeMorgan's Law)11 2
(1)
Converse:If
tomorrow
is Monday th
then tod:
B. Inverse -(pAg)-r
If 3bor1+1 2 Easter
If today
is not Easter then tomor
OTTON
Inverse
sin
=(-pv-q)-rthen not Monday. oin.
(De Morgan's Law) is not Monda
If tomorrow day
is
Write inverse Contrapositive:
given.
Ex. 2.3.3: The converse statement is not Easter.
and contrapositive
statements: today (ii
a man not
then
a is isosceles then
:
he considerate of others, triangle
(1)
is
(2) Statement If
is a gentleman. x. 2.3.
is stretchable then it has been not equilateral.
(2) Ifa steel rod
i.e.
P lconverse] (3) Statement:fn is prime thenn is odd orn is 2. 1)-
Inverse:
then a man
p q
is
:Ifhe is
not a gentleman.
not considerate of others
Converse: Ifn is odd or n is 2 then n is prime.
p q :If the
then it
steel rod is
() This system
following
and
is good chea
Contrapositive:q
been heated then
p: If the steel rod has not
() This system is not good but chea
it is not stretchable. in) This system is neither good nor cheapP
TechKnowleds
Publication
te Mathematics(SPP -
Comp.) 2-5
Mathematical Logic
Soln.
(ii) Either the material is
(i) pa
(i) pAq exercises are not challenging
interesting or the
course is not
are not challenging then the
i)-Pv iv) pv~ () There are many clouds in the sky but it did
not rain.
pALq:P:It
spoon. There are
G) many clouds in the sky
(3) It is not true that today is rained
Monday or the grass is
wet. P:Iwill get first class
(i) (qar)>pq:lstudy well
(4) Today is Monday or the dish did not run Lr: I score above 80in maths
away with
the
spoon.
(iii) p aq P:computers arecheap
Lg: Softwares are costly
Ex.2.3.8: Let p denote the statement The material is
P:It is very hot
denote the The
interesting'. q statement, (iv)
pa qvr q:It is humid
exercises are and denote the Lr: Ramesh is
challenging' r having heart problem
statement, The course is
enjoyable. Write the P: In small restaurant food is good
statement
(v) paq Lq: ln small restaurant
) in service is
following
symbolic form: poor
The
are
material is
interesting and exercises (vi)(pa~
q)r
challenging. P:I finish my submission before 5.00 in the evening
Gi) The material is means the
q:It is very hot
interesting
Lr:I will
play hockey
exercises are challenging and conversely.
TechKaowiedge
Puttt atieS
2-6
F Discrete Mathematics (SPPU-Comp.)
: statement in
the pvq Por q;
Ex. 2.3.10 Convert the folowing English Mathemaica
I
(0
am in a good mood.
movie then p
Pimplies qand q
I
() 1 am in good mood, then will studying
pvq p implieg
1
exclusive -oro
maths or I
will go to e movie.
The truth tables of these
compoun.
Gi) If1 am not in good mood, then 1 will
not gogiven below. ound
statem
to a movie or will ement
study maths
I
a movie or
Table 2.4.1 pvg
(v) 1wil go to I will not study
maths Table
2.4.2
if and only if
l am in a good mood P PVg :pA
Igo F T
rIam
to
a movie
in agood mood.
T T T T
)-p)nqr ii) r>(p vq) Table 2.4.3: p
Table
2.4.4:pv
(iii)(-) qvp (iv) (qvp)(r)
Ex.2.3.11: Use T F
p:willstudy discrete
T F F
T
structure
T
q:1 will go to a movie
(0rg
foliowing
Table 2.4.5 p
(i)gap
(i)q P (iv)P
FF TF T P q is true when
)
Soin.
(i)I
Ifiam
will
not
not
in
go
a good mood then
to a movie
SPPU-Dec. 18,2Marks
and
I will go to a movie
study discrete
TTF
T
T either p is
true.
false or q is
structurre
2.4
If I do not study
in a good mood.
Truth Tables
discrete structure then I am not
FFTT
FT T
F
T
F
The truth values of
compound statements can be F F T F
derived from the truth values of basic
p and q be statements. The compound
be constructed using connectives.
statements. Let
statements can
TTTP Py T T
p=~qVp
TechKnowleds
Publicatiu
Mathematic (SPPU Comp.) 2-7 Mathematical Logic
Discrete
s true
true when
whe
p truth
is
value.
both p and q have then same 2.4.4
A
Contingency
statement is neither a tautology nor
p
P to~
gis identical vvq
Dis identical to
qvp contradiction.
identical
truth
tru
nts can
tables for
be
to
to
v(~pq)
(p Ag)
(pAq)v(pA~g)D
more complicated
constructed using the
compound
1.
)
Idempotence
ii)
pvp p
pAp=p
statem
given
Ex.
above.
21:
ln.The
Constructthe
truth table
for P
truth table
v qg can
truth tables
for
(p
p (p v g)
)
2. Commutative
ii)
PvgqVp
pAq=qAP
by constructing be
constructed appropriate columns one 3.
the answeris reached. Associativity
until
byone
Columns of p and q can be used to construct the
(i)
Pvqvr =pv(qv r)
column of Pvq. ii)
(pAq)ar =pa (qar)
v 4.
Column of p can be used to
construct the
Distributivity
column of ~(pvq). () (pvqar) =(pv g) n (pvr)
Columns of p and~ (pvq)can be used toconstruct i) (pa (qv r)) = (pag)v(paT)
the column of p ~(pvq).
5. Double
negation
P9 Pgpvq P (pvq (p)=P
F T 6. De Morgan'slaw
FT T F (pvq)=~ pAg
F T T F paq =~Pv
TT F F
Following properties can be added
7. 1) PvT=T
to our list.
Either
)
p is false
8. )
i)
PvF=p
(pa T) =T
2.4.1
Tautology
orpv is true.
9. )
() PAF=F
pv p)=T
)
A statement whose truth value is always true (T) is
called a tautology. (ii) PA p)=F
10. T=F
)
2.4.2 Contradiction
A statement whose truth value is always false (F)
(ii) F=T
is called a 11.
contradiction Pv pAq) =p .(Law of Absorption)
2.4.3
Equivalence (11) PA pvq) =p ..Law of Absorption)
Two statements
p and q are said to be
Equivalent when they have the same
logically
truth values or
12.
p-q~ ~p
When the statement p qis a tautology.
13. pq=(pq) a q p
Itis represented asp =. 14. p q~pVq
15. pq= (paq)v~pA~g
TechKowtedge
2-8
Discrete Mathematics (SPPU-Comp.)
Hence, pV pA9 atautolop
1s
Mathemalica
Ex. 2.4.2: Show that (-p)- (pq)is atautology.
Soln. :Let us constructthe truth table for Ex. 2.4.5 : Prove by
constructing the t
p)p-) 0) PQv R)
q ~p is false |EFFF T T
T
T
T T
orp is true.
T
The column of ( p) (p q) is always true and
F T T
hence
Ex. 2.4.3:
it is a tautology.
Soln.: L.H.S.
equivalence.
(Pvg)A-p= pA
=(pvg)a~pP
TFTTT
T TFTTT
F
F
T
EpA p)v(qn~ p)
FvqA~p)
distributivityl
pA pFl
TTTTT T T T
qA p) pvF=p
pa9 commutativity]
Ex.
Soln.
2.4.4
Verity pv (p^g)is tautology Columns for (Qv R) and
are same and hence the two are
P>
equivalent.
Truth values are same.
P v (P
Method I: Using truth table. (ii)
(PQ)(PvQ)
PAq
F
(paq) p V (pAq)D
T
PQP|PvQ P4Q) Pv
T F
FT
TF
F
FF
T
T T
T
FT
T
T T
T T
TTT F T
T
F
F
F T
T
always true.
Pv (paq) =pv(~pv
algebra
[De Morgan's law]
Since, (P
ence it is a
Q) (PvQ) is
always true and
tautology.
=(pv p)v(q) [Associativityl
Tech Knowledge
uDIC atiun
e Mathematics(SPPU -Comp.)
2-9 MathematicalLogic
DisCretd
Soln.
dI: Using true table Ppva-P(pvg-P) (pvg)al-p)n-q)
Method
P F
(PAg)
T
(p q) T
TFF
F
T F
T T
TF T
TTT T T Since (p v
contradiction.
q)a(p)a (q) is
Always
always false,
false
it is a
2.4.6 Law
Duality
either (pAq) is
false Two formulas A and B are said to be duals of each
or (pq)is true. other if either one can be obtained from the other by
Since,
Sinc (p A q) P )is always true and henceit
replacing
is a tautology. A by v
Ex.2.4.7
)
Show that
i)
PAP
the
(pv9) (p)
propositions
A (g)are contradictions.
1.
3.
4.
Disjunctive normal form
2. Conjunctive normal form
)
Soln.
is
A
a
Disjunctive
formula is in
disjunction of
Normal Form
disjunctive normal form (DNF)if it
conjunctions of literals. A
P
help oftruth table.
propositional variable or its
negation is called a literal.
P pAP A
known
term containing
as
conjunction of
mintermsor product term.
literals is also
T Example of minterms
1.
2. xAy
3. XAy 4 XA y
In disjunctive normal form, minterms are
Always false separated by v The
(disjunction). following are in
incep pis always false, it is a contradiction. disjunctive normal form:
Tech Knowledge
Publtcations
Mathematical
LO
on ro ys tor
our attention wh Discrete Mathematics
C
2-10
We focus g r)istrua
e.
p The
Discrete
2.5.2
A
Mathematics
Conjunctive
(SPPU -Comp
Nomal
is in Conjunctive
Form
Normal
Form
Step
2: the statement3,4 and
rows
1.
are 1, 2,
In row no.
pA
P, I and
the
,
requiredminten
qAr1s
8.
r are all F
2.
3.
In row
true.
maxtern.
n row no.
So
no.
(
formula of lhtera q is F and r
TF,
also 1s
of disjunctions 15 2, P is false. So
row no.
G
it is a conjunction
of literals 2. In
1s the re
the requir, maxterm.
disjunction
So P
a term
known as maxterm.
containing
3: We can find
mintermn. Step
Example ofmaxterms 1s F, q is T andTT is conjunctions o
xV no. 3, P
2.
3.
In row he required minter
4.Xvy So pA q~r1s i.e. (~pvqv r) A
3. XVy
normal form,
maxterms
are
are in no. 4, P
1s F, q and r are TNote: For any stateme
n conjunctive The following 4. In row
the required minter equivalent.
separated by a (conjunction). pagATIS
normal form: andr are T.
8, P, q
all
conjunctive 2.5.5 Normal Form
In row no,
1. (pvqa(pv~q) 5.
the required minterm. Manipulation
Ppvq)a (pv~r)a (qv~rV~s) pagar 1s
We
2.
for Finding
DNF
can
DNF of p > (q A r) by taki
can find CNF
)
P be a statement formulaits
containing
its disjunctions
distributivity and De
Let DNF from
We can find in such manipulations
variables X1, X2., X
pA g~T)vPA~qAr)
.
which P
truth table: V
of the truth table
for
is
v(paqa~T)V(PAq^ 9^9AEx. 2.5.3: Find conj
2.5.4 (PAG
where we take statement formula containing
kX Ifk position
in
thatrow
in that
contains
row contains
T.
F.
Let
variables
p
X1,
be
X2..Xn
a
We can find its CNF from i Soln.
1. (pag)a qp
Ifk" position truthtable:
1.(P
5
T
F
T
F
T
F
T
F Step 2:
0
We
PqAr) is given in the Table 2.5.1.
th
2.
2. pA
(pa(p
6
T T
T
F
F
F
F
focus our
Statementp
are 5,6 and
7.
attention
(qAr)
on roWS
rows for
is false.
which
Thest row p
8 T T T T 1. In row
are
no. 5, p is true and both q
and =(F
false.So
qvr)isthe required
maxterm.
Knowedl
Tech llsati
Discrete Mathematics (SPPU -Comp.)
2-11 Mathematical LogiC
2. In row no. 6, p is
true, q is false and r is IF Vx=x
true. So (pvqv
r)is the required
maxterm. (pA9) va [Removing implication]
maxterm.
So (pv qv r) is the required pvT qvq T)
=T IT Vx = T
Step 3: We can find CNF of p (qa r) by taking CNF=T
conjunctions of maxterms. and DNF =T
i.e. Pvqvr)ApvqV r)a(PV qv r)
Ex. 2.5.4: Obtain of
disjunctive normal form
Note For any statement formula,
its CNF and DNF are (P) (-Pa)
equivalent
Soln.:
Ex.
= pAq)v (pag pAp P,qAgq
2.5.3: Find and normal forms
for
conjunctive
the following
disjunctive
Soln.
Ex.2.5.5 Obtainconjunctive normalform of
1. (paq)a q>p)
qp ~ qvP SPPU Dec.12, Marks 3
equivalent to
)
is logically
Soln.
(pA p)v(paq))>q Distributivity Ex. 2.5.6: Obtain the conjunctive and disjunctive norma
= (p
v
vg (p q For a
conclusion
set of premises
C follows lc
Soln.
(PAQ)v(-PaQ)
P=T
of distributivity/ HiaH2 H
AQ IReverse
VP) IPv
(Distributiv
In other words, when
TaQ (pAp)v(qn.pv(pa~q)v
~q)vF
then C is also true.
Q form:
DNF =(q ~p)v(pA~q
H
) CNF
(pvq)>q
(pv9v
QR
Remove implication
Which is
0
the required
aisjunctive
DNF of ((
normals
9)n gP)vp
form H2
()Find CNF of p pv
(pAq)v PPU Dec.14,4Marks, May 17, 3Man C
Distributivity)
pvg)A (qvg)
)(pq) q)> (
lqvg=a
(pvq) Soln.
p) vp
Ex. 2.6.1: Show that the
two maxterms DNF of (p
CNF (pvg)q
vP P
DNF = (pag)va ltwo minterms| (q p))
= ((pva) (gvp)) vp
Ex. 2.5.7: normal form
Obtain
following
the disjunctive of the
= PA VPvFv
(pA qovp
9 Pv-P(qv (q1)) () pa(P>) =PAqvpag) vp
:
Soln.
pv-P>(qvq~1))
= pAg vp which is in DN Soln.: There are threc
~pv q)
pv-p(qv gv~)
ii) CNF of p
H
r P
P (~pV~q)
lq rE~qV H2
Pv p >(Tv~r)) lqv q=T pvpv~q)) pv~(pvg) H
PV p >T) IT Vx= T]
=pv pv paq)
FPvpvT) pT=pvT] = (PVq) We have to show
pvT ap which is in CN
T
pvT T
2.6
C:p logic
statements,
given
which
informatio
are
true an
PF FF
=
(paq) IpA F] p established.
statements whose truth can
1
DNF (png Fvx=x Truth
of a theorem
2 F PT
Ex. 2.5.8
Soln.
Obtain
DNFthe
for(pvg)=(paq)
initial
are all
of
collection
can
demonstrated
statements called
be
f 3 FT
is
equivalent
(pvq)= (pag)
to
~(pv q)
also
true, then the
true.
premise
conclusion of the
theore
4
FT
=
pvg)a (pag)v (p
(p a g)
vq)a
Let
that
p and
" q be two
statement formulas. We saj
5 TF
(p nq)
xy=xny)v(xA~y) conclusionof
logically
follows from
formulas.
or p 18 a valid
*Lboth are true
or both
are
falsel
if
the
p>qis a
premise p".
"g
TT
tautology.
8TT
TechKnowledg
Publicatiun
Discrete Mathematics
(SPPU-Comp.) 2-13
Mathematical Logic
For a set of premises
(hypothesis) {H1, Hg.H,) a
C follows
Row no. 4, marked with (-)is the only row where
eonclusion logically ifT
HH SEither
S:IfI fail
I
then
will
I
study or Iwill
do not like
fail
mathematics.
Soln.
H C
Let, p: I like mathematics
q:Istudy mathematics
r:I fail
Ex. 2.6.1 Show thatthe argument therefore,
p q S1P
r S2: qVT
S:r>p)
The validity of argument can be analyzed by a
truth table.
Soln.There are three premises
H:p q P9 vr
1FFF T F
We have to show
C: p
H2
H3 r T
F TT T T
T
T
T
T
T
T
5T F F F F T
In other words, whenever H,H and Hg are true
TFT
then p
a truth table.
is also true. This can be done by constructing
7
8
6
TTF
T TTT
T TF T
T
F
T
F
1
F F|F T
T T T The rows marked () are those in which premises
F T
3F TFF
F T T
T
F
T are true.
conclusion
valid.
In row
r
no. 8, premises
7T TF F F T
P
F T p
Discrete 2-14
Mathemstics (SPPUComp.)
3. We conclude that the given Mathematical
Disjunctive 4. Chain rule argumentis
syllogism
T P
P r
(1)
Ex. 2.6.5:
Soln.
H (pAq
Show that~gfollows
(p a g), ~vp. logically
from
valid
5.
Resolution (2) H2 :gp
PVr (3) Hg :~pV~q [from using De
(4) H4: ~q from (2) and (3)
using
Morgan's
l
Pvq q follows from~ (pa D) resolu
andaqvp.
)
olutior
Ex. 2.6.3:
Show that r Given
is a valid inference from the Ex.2.6.6 that the value
of
premises p q, qrand p Determine the value of is
(Pv
g)q
Soln. falh
3) Hg P Given
premises
G)
pv~g)
E
(4)q from H and Hg
PV q)vq
Pq
In line number
and p.
from
Lusing
4, q can be concluded from
(2)
modus ponens It is
when p is
(qvp) Ag
given that p
true and q is
q false.
1s false.
p q will be fal
young9"
pv q p)
given that p -qis true
Soln.
PVqvp
Let, P: Person is
poor Tv q pvp
q: Person is
unhappy
T
r: Person (Tvq
dies young Ex. 2.6.7 : Show that
Therefore,
H p
0(PAPv q))v (qa (Pa9))s
equivalent to q.
Ho: qr
The conclusion
and Ho :q >rusing thechain
C
C : Pr
p>rfollows from
rule.
H:p-
)
Soln.
)(Pv~g)pv~g)vg) a
(papvq)v(qa-(paq)
lPA~p)v (p a vlqapv~9
is
tautology
q)l
Knowledg
TechPubllcation
crete Mathematics (SPPU
Comp.)
2-15
Mathematical
FvpADv
Fvp
(qn~p)v(q
q)v (qa~p)vF
~) (iii) Let p I am happy
Logic
qPV
p) qAT=q
Given premises
r program is
errorfree.
condition
my programruns.
for the
program torun
A Examples of universal
quantifiers
is it should be error
free 1 am not happy
1. x+x +1>0 for
all real numbersx.
Therefore is not errorfree 2. All men are mortal.
SPPU May 13, 6Marks
)
Soin.
Let, P Aaryan
He will obtain
study harded
3.
Every orange is yellow.
We can write these examples
i) For all x, if
as follows
x is a real number then
first less
r He will get a good job. x+X+1>0.
Given premises, (ii) For all x, if x is a man then x is mortal.
The conclusion : p
pAr.
P
rAr follows from the premise
(iii)
Let,
For all
Hx)
R(x)
x,
:
if x is orange then
x is a man,
x is a real number
x is yellow.
qShe is on time Using the above symbols, Ex. ),ii) and ii) can
Given be written as
premises
TechKnowledge
#uIcations
Mathematica
Discrete
Mathematics
(SPPU- Comp
2-16
Ex.2.7.1 : Let
Express
p(X):X
)Thereexists
is
the follow
student
a
using
student.
qx)xis
quantif
c
Discrete ianematics (S
example
students are clever Statement
Let us consider the following Some
(i) (Vx)(P(x)
a man.
4. There exists
x such that x is
man a 1. 3 is replaced by v-
(Thereexists an (p(x))
'Some students are clever Y
( The statement
clever 2. is
x real number (ii) exists an x such can replaced by
as There
is
an x such that xi
There exists written
x is an integer
and x is clever." Ex. 2.7.4: Negate the foll
and student
can be written using quantifierers, Pune is a
Let, Mx)X is a man, The same (a)
Soln.
CCx)x is clever, the universe of books, the
Ex.2.7.2 Over proposit
Ix)x is an integer
are defined B has blue cover M (a) It is not the case
that
(vi) can be
(v) and
Then the statements (iv), maths book 10)xis publishedn Ano (b) Not every
city in Ma-
expressed as follows Translate the following
d)(x)Ma) Ex.2.7.5:
)
Negate each
(
(e)x(Mx)A Cx))
Ex)R) I)
There
India
are maths books published out
SPPUMay 14,2Man (i)x,=
(n)
Vx, x=
there
If
i
Soln.
2.7.1 Statement Functions and Variables
(iv) It is
day
Let Mlx)denote 'x is
mortal
)Maths books published in India have ablue cove
Soln.
Hence M denotes the predicate is mortal" (i) The statement can also be written
A simple statement
an
function like Mx), in one
all x such that
as, Thereexi
x is maths book and x is
publish
)x) (|x|#x
variable
symbol
is
and a single
expression
variable.
consisting ofa predicate outside
quantifiers,
India'. The same can be written
(3x)(M(x) A~ Ix))
usit (ii) Vx xx)
A simple statement function (ii)If there is riot, th
becomes a statement
when the variable is Ex. 2.7.3
replaced by a definite object. State
whether true or false.
For iv) It is day ightan=
example, M(r), Md) and M(t) are statements
where r, d and t denotes
Ramesh,Delhi and Table.
1 (Vn e N) (n +4> 3)
A
compound statement function is
2.
(Vn e N) (n +2> Ex.2.7.6: Determin
8)
combining
and the
one or more
obtained
simple statement
logical connectives.
For
from
functions
3 ne N) (n +4< 7) Soln.
statemer
denote x
is a human example, let H(x) 4 an e N) (n
+6<4)
being and Mx)
mortal', then the
denote x is
Soln.
Sr
followings are
statement functions, Statemer
compound 1.
True No.
1.
H)M x) 2.
False
In+4> 3]
2. Hx)Mx) 3. True forn =2,n +2<8] x,x+2=
3.Mx)
4.
4 False
for
n +6>
n=
2,n +4< 7]
Vx, x +1
H(x)v~M(x) 41
Ex. 2.7.7
2.7.2 : If
P(xc
Negation of a
A Quantified
Statement R(x.y
quantifier
given inthe statement (1)
along with its gation
following table.
Tech Knowled
PUDIa tro
Mathematics (SPPU-Con
)
2-17
Discrete Mathematical Logic
Statement
Negation () Vx (-a (x))
(Vx) (P(x)) (3x) (P(x)
y (P))
(Px))
(3x) (Vx) (P(x)
(Gi)
(it)-(3x (P) a
(Vx)(Px) 3x) (P(x) (2) Using the information given above, write
the following sentences in
(3x)(P(x)) English
(Vx)(Px)
symbolic form
when negating a
quantified statement:
() The sum of any two integers is an odd
1. 3isreplaced by v. integers.
(a) It is not the case that (iii) No even number is a Prime number.
Pune is a big town.
(b) Not every city in
Maharashtra is clean.
(2) G) Vx Vy
(Rx,y)
Ex.
ii)
(Vx)(P(x) vQ (x))
(
2.7.5:
Negate each ofthe statement.
Cii) (Vx) Px)
Vx, x=x
(Gi) ax, x =x Ex.2.7.8 Negate each ofthe statement
(i) there is
0x,xx
If
riot, then someone is killed.
i) x,=x
Giv) It is
day light and all the people are arisen.
Soln.
(i)If a
) (x)(x|*x) v)Itis day
there is
light
riot,
and
then someoneis killed
all
the people are arisen.
SPPU May 15,Dec.
(i) vx (x x) 15, 4Marks
(iii)
(iv)
If there
It is day
is riot, then
ightand someoneis
all are alive.
not arisen.
Soln.
i)
ii)
3x)such that
(Vx)x= x
| is false.
x |=x is false.
Ex. 2.7.6 Determine the truth value of each of thel ii) lt is not the case that if there is a then
statement and negate statement.
riot,
every someone is killed.
Soln.
iv) Either it is not day light or all the people are not
Sr. Truth arisen
No. Statement Negation
Value
1.
3x,x+2 x False Vx, x+2 X
2.8 Mathematical induction
Tech Knowledge
Publicatiuns
2-18
Mathematical
induction step.
Step 1:Basis ofinduction
Ex 28.1 Stetethe principle of mathematical
inducton
for n = 1,
and prove the folowing propositon
:
P)14+7 (3n-2)
n3n-1) S(1) 13 = 11+1.4-1
SPPU-Dec. 14, Marks 4 S(1) is true
Soln.: Principle
of mathematical induction is discussed
in the Section 2.8. Step 2 Induction hypothesis Assume S(n) is
true
=k
Pn)14+7+(3n-2) n
for n=1,
P)
P):1
true for n
= 131)-1 1 Step 3:Induction step
1.2
2.334 1
induction to show
nn+1) n+1
that
Tech Knawled
Mathematics (SPPU
ete Mathemati Comp.) 2-19 Mathematical Logic
Discrete
Step2: Induction hypothesis
Soln
Assume S0k) is true for n =k
Let,
1:Basis
of induction S(k)3+3.5 + 3.5k
s
Step 1,
3(6k1-1V4 is true
forn
Step 3: Induction step
Step
:S) is
Induction
true
hypothesis
Sk+1):3+3
L.H.S
true.
= 36k+2-1V4
S(k + 1)
5++3.5
is true, we have to
+3.5
prove that
n21.
1
*+1)+1+1) Soln.
S(1):1! 2 21-1
- RHS. of S (k+1
or S(1): 12 1
TechKnowledge
Publications
2-20
Disorete Mathemtics (SPPU-Comp) Mathematical
1: Basis of induction
Step
k12 for k1 forn 1,
Step2:
Induction hypothesis
Ex 2.8.6 Prove byinduction for n &0
Assume S(n) 1s true for n =k
1-a S(k)
1.2+2.3++k(k+1
Soln.:Let, Sn)14n+a k (k+ 1) (k+ 2)
+
3 is
true
Soln.
LH.S.of Sk+1)=1+a+a2+.+a +ak+1 Let, S(n) : n
<2" for n> 1
1- 1 Step 1: Basis
for n =2
for
induction2.3
as n> 1
1- :1-k+2 S(2) 2<2
1-a
S(2) is true.
Step 2: vitenat
= Induction hypothesis
R.H.S.of Sk+1)
Sn)is true for all n by mathematical Assume S(n) is true for n =k
induction.
Soln. Sn) :
Sk+1) is true.
Let, 1.2+2.3 + .. +n
n+ 1) It is
given that,
n (n
+1)(n+2)
3 k <2k
or,
2k < 2.2k by
2
[Multiply
TechKnowled
atiun
Public
Mathematics(SPPU.Comp.) Mathematical Logic
2-21
)
k+k < 2k1 whieh fs divisible 3
by
of
k+1 21 k11 Given hypothesis is true for n -1
S(n) ia
Stn)
is true for all n>1 by mathematical Let us assume that k (k+1 +(k + 2i
Hence
diviaible by9.
induction
Step 3: Induction step
ForFor all integers showthat 8-3 is divisible by
Ex.2.8.9 5 by mathematicalinduction for n 2 1. Given that n(n1+(n +2 is divisible
Soln (k+1(k+2+(k +3
Let S(n)8h-3h isdivisible by 5
:Basis of induction
(k+1+(k+23+(k33 k2.3
Step 1
+3 k 32+33)
forn 1, = k(k+ 1 +(k +2
S(1) 8-3-5 is divisible by 5 +19k+27 k+27)
S1)is k+k +13 +(k+2 is divisible by9.
3
true.
= 8 (8k)-(3k)(8-5)
Ex.2.8.11 Prove the given proposition by mathematicai
= 8-(8k)-8 (8k)+5(8k) induction
TechKnowledge
ubIC atitr
P
Mathematical
2-22
step
Disorete Mathematics (SPPU- Comp 3:Induction
Step is true, we have to
that Stk)is
Given prove
Step 3: Indurtion step true.
we have to show that
Stk+1)is
ven that Sk) is Sk +1)
true,
Sk+1)istrue. LH.S.of
LHS.of Sk 1) = 12-2232--42+-1-1,2
-1k1T +(-1k+ 12
-1 2
-1-k(k+1)+-1k+12
(2k 1)-1 2k+1)+1)
1 -I-1klk(k+ 1)+2-1kk+ 1
2k12 D2k3
- --1 k(k+1)+2-1* k+ 1
= -1 (k+ |2k+1)-k
k3 1k
1)
=
2k k dk + 1) (k+2) R.HS.
induction.
3RH.S. of Sn)
Ex. 2.8.13 Prove by mathenmaticalinduction
Hencethe given statement is true for all n from 2+5+8 +(3n 1)n3n+12
mathematical induction. SPPU-May 13, 6Marks
induction, prove that, Soln.:
Ex.2.8.12: Using mathematical
12-22-32-42 (-1-n Let, S(n):2+5+8 +..+ (8n1)=n(3n +1/2
1nn1 Step 1: Basis of induction
Step 3:
Sn) is true for n =1
Induction step
statement is true
for n =k L.H.S. of Sk+1)
s):12-22+3-42.+(-1k-1k2 2 +5 +8+.. +(3k 1) +(3(k +1)-1
-1-k + (k 1)
k3k2+) (3k +2)
2 1s true
k(3k+1)+6k +4
2
TechKnowledge
Publications
iMena ComD
Discrete 3k+7k+4
2 2-23
3k3k2+4k+4
2
)
Skk+1)+4 Mathematical
Logic
(k+1)
Sk4)(k+) 2k 2k6k+3
_&t
2+1)+1
180k 2Bk31
Sk
) is true and hence
S(n)is
Sn)is 3
k12k+1)2k+3
true for
inductance. true for all n by
bri al
all n EX
2.8.15: mathematical
the help of Prove
With
by induction.
2814 athematical 1.11 2.21mathematical
E that, induction +3.31+ induction that for n>1
prove
+n.nl=(n
2+52+(2n-12 n(2n-1) Soln.
+1)1-1
SPPU May
12n+1) Step 1:
Basis
15.4Marks
SPPU May of
14, 4Marks LHS.induction
= ,for n =1
= 1.11=1
Soln
Sn) 12+32+52 R.H.S.
Tet
+(2n-1 Given (1+1)1-1 21
:Basis ofinduction
Step 2 : statement is
true forn -1=2-1=1
Step
S1)
For
S(1)
is
n =1
=
true.
x 1- 12 3
= 12 = 1
Induction
Assume that
n=k.
or, 1.1!
hypothesis
the
given
=1.
statement is
true
forT
+2.21 +3.3!
Induction hypothesis Step 3:Given +.+k.k! =(k+ 1)!-1
Step thatthe
Assume S(k) is true for n =k have to statement is
n =k + 1.prove that the
true for n
k,we =
S) 12+ 3 +5+... statement is true
for
5. Slk+1)
of
3
SPPU-May 17, Dec.18,
Markss
Soln.: LetS(n) =1+2+3+..+n=nn+1)
k 2k-1)(2k +1) 2
+(2k+1 1)2 Step 1: Basic for inductions
8
+3(2k +1)] .
For n
S1) is
S1) =
=
true.
1,
1 = 2 1
Tech Kaowledge
PuDlicatiuns
Discrete
Step 2:
Mathematics
Induction hypothesis
k
2-24
| 2.9
Let
and let a
and
Strong Mathematical Induction
p (n) be a predicate
b be i
defined over
lLo
Sk+1)is true.
Induction step
forall integers
Conclusion:
integersn2a.
i
k>b,if
with a si<h then p(k) is pi)is
S(n)
We assume the strong inductive hypothesis
is true for all n by mathematical induction.
every integer upto
k is by a prime.
divisible tha
Ex.2.8.17 Show that 72n (23n - (3h) is divisible Now, k is either a prime and hence divisible
by 25 for all natural number itself, or it can be factored as product b
n. of
numbers. Thus, k is divisible by a prime.
prime
Soln. :The
SPPU-May 19, Marks3
problem is being solved using mathematical
induction. 2.10 The Great Philosophers
Georg
Step 1: Basis for induction
Cantor, Richard Dedekind
for n= 1
72(23-3(8-1 = 72+(23-3) and Aristotle
31-)
= 49 +2x3=49+1 50
George cantor