Vous êtes sur la page 1sur 31

1

LOGIC (MATHEMATICAL LOGIC)


Mathematical logic (also symbolic logic, formal logic, or, less frequently, modern logic) is a subfield
of mathematics with close connections to the foundations of mathematics, theoretical computer
science and philosophical logic. The field includes both the mathematical study of logic and the
applications of formal logic to other areas of mathematics. The unifying themes in mathematical logic
include the study of the expressive power of formal systems and the deductive power of
formal proof systems.
In the mathematical logic, there are two sentences i.e..
1. Close sentence (statement)
2. Open Sentence
Explanation
- Statement (close statement) is a sentence that only has true value or false value, but not all at
once true or false.
- Open sentence is a sentence that has not yet determined whether the value is only true or is
only false.
- Interrogative and imperative are not included neither statement nor open sentence



Adriand Nata Kusumah
2


Ex : State whether the following sentences and statements, open sentences, nor neither
one.
If they are statements, determine the truth value.
1. 2
3
< 3
2
(statement, true)
2. x> 4 (open sentence)
3. One week consists of (comprises) seven days. (statement, true)
4. x 6 = x + 6
5. x
2
9 = 0
6. x
2
+ 9 = 0, x R
7. How tall is she? (neither one)
8. Welcome (neither one)
9. Go out (neither one)

Exponent Inequalities
For a > 1
a
x
> a
y
then x > y
a
x
< a
y
then x < y
For o < a < 1
a
x
> a
y
then x < y
a
x
< a
y
then x > y

Agastya Prabhaswara Putra
3


Negation (Logic Denial)
Negation of Statement notated with
Table of Negation Truth Value




Ex. Given that is


Determine the negation TV of negation !
Sol.

, so



Dania Rahmah Aisyah
4


Compound statement
1. From two statements of P and Q can be formed a compound statement in the form p or q which is
called disjunction and notated with p v q.
Table of Disjunction TV
p q p v q
T T T
T F T
F T T
F F F


Dzikry Lazuardi Z. S.
5


Compound statement
2 ) From two statements of P and Q can be form a compound statement in the form p and q which is
called conjunction and notated with p q .
Table of Conjunction TV
P Q P Q
T
T
F
F
T
F
T
F
T
F
F
F

Ex : Det the TV of
Tan 60 > sin 0 and cos 45 = 1
T F = F
Exercises
1 . Determine the component and the TV of statements below !
a) Elbow-angled triangle ABC, but both legs are not the same.
b) Two is a prime number or even number.
c) After graduating from school I would take a course or work.
d) Each prime number is divisible by 1 and itself.
e) Someone who is 17 years old and already married are required to have ID cards.
2 . Find the value of x so the sentence

- x = 0 and 8 9 < 0 become


a ) Conjucntion with false value.
b) Conjunction with true value.
Faisal Rahman Yulistian
6


Compound statement
3. From two statements of p and q can be formed a compound statement in the form If p then q
which is called implication and notated with p q.
Table of implication TV:
p q p q
T T T
T F F
F T T
F F T

Ex . Det the TV of
If tan 30: = 1/33 , then cos 30: =1/2

If T then F = F


Farrah Fauziyyah K.
7


Compound statement
4. From Two statements of p and q can be formed a compound statement in the form p if only if q
which called Bi-implication and notated with p q.
Truth Value of Bi-implication.
p q p q
T T T
T F F
F T F
F F T
Conclusion:
- In Bi-implication, we will have the true value if both of the inputs are same.
- In Bi-implication, we will have the false value if the inputs are different.

Ihsan Hafiyyan
8


Det the TV of the following CS!
1. (p ~q) ~p
Sol.
p q ~p ~q (p ~q) (p ~q) ~q
T T F F F T
T F F T T F
F T T F F T
F F T T F T
So, the TV of (p ~q) ~p is TFTT
2. (~p q) ~q
Sol.
p q ~p ~q (~p q) (~p q) ~q
T T F F F T
T F F T F T
F T T F T F
F F T T F T
So, the TV of (~p q) ~q is TTFT
3. (~p V ~q) (qp)
Sol.
p q ~p ~q (~p V ~q) (qp) (~p V ~q) (qp)
T T F F F T F
T F F T T T T
F T T F T F F
F F T T T T T
So, the TV of (~p V ~q) (qp) is FTFT


Indira Anindyajati Prasetyo
9


Negation of Compound Statement
1.~(p v q) = ~p ^ ~q
2. ~(p^q) = ~p v ~q
Sol.
1.
p q ~p ~q p v q ~(p v q) ~p ^ ~q
T T F F T ~(T) = F F
T F F T T ~(T) = F F
F T T F T ~(T) = F F
F F T T F ~(F) = T T

So, the TV of ~p ^ ~q is FFFT, able for ~(p v q)
2.
p q ~p ~q p ^ q ~(p ^ q) ~p v ~q
T T F F T ~(T) = F F
T F F T F ~(F) = T T
F T T F F ~(F) = T T
F F T T F ~(F) = T T

So, the TV of ~p ^ ~q is FFFT, able for ~(p v q)

Irfandi Makmur Putra
10


Negation of Compound Statement
3. ~(p q) = p . ~q
4. ~(pq) = (p.~q) v (~p.q)
Proof
p q ~p ~q pq ~(pq) p . ~q
T T F F T F F
T F F T F T T
F T T F T F F
F F T T T F F

So, the TV of ~p ^ ~q is FFFT, able for ~(p v q)
Proof
p q ~p ~q p.~q ~p.q pq ~(pq) (p.~q) v (~p.q)
T T F F F F T F F
T F F T T F F T T
F T T F F T F T T
F F T T F F T F F

So, the TV of ~p ^ ~q is FFFT, able for ~(p v q)


Lathifah Nurrahmah
11


Equivalent of compound statement(~p q)
1. Pq = (p q) (q p)
= (~p v q) (~q v p)
2. p q = ~p v q
3. ~p q = p v q
Proof number 1
~(Pq) = ( p ~q) v ( ~pq )
~[ ~(Pq) ] =~[( p ~q) v ( ~p q ) ]
Pq = ~(p ~q) ~(q ~p)
= (~p v q) (~q v p)
Proof number 2
~(p q) = p ~q
~ [~(p q)] =~[ p ~q ]
P q = ~p v q


What is the meaning of the following slogan?
Smoke or healthy
Sol. Supposing ~p = smoking and q = healthy
~p v q
Is same as
p q = Doesnt smoking then healthy

Another example :


p q ~p ~q (~p v q) (~q v p) (p q) (q p)
T T
F F
T T T T
T F
F T
F T F T
F T
T F
T F T F
F F
T T
T T T T
(p q) (q
p)
(~p v q) (~q v p) Pq
T T T
F F F
F F F
T T T
1. 2 x 2 = 4 if only if 4 : 2 = 2 the value is true
T T = T
2. 2 x 4 = 8 if only if 8 : 4 = 0 the value is false
T F = F
Translated from :
http://www.matematikamenyenangkan.com/logika-matematika/

Mahdiar Naufal
12


Implication and Contraposition, Converse and Inverse
A. Implication and Contraposition
Prove
p q ~p ~q p q ~q ~p
T T F F T T
T F F T F F
F T T F T T
F F T T T T

B. Converse and Inverse
Prove
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


M. Ilyas Arradya
13


Determine converse, inverse, and contraposition! (State the truth value)
1. If tan 30 =

then cos 30

.
Converse: If cos 30

, then tan 30 =

(T F = F)
Inverse : If tan 30

, then cos 30=

(T F = F)
Contraposition: If cos 30=

, then tan 30

(F T = T)
2. If sin 0 < cos 0 then cosec 30 = 2
Converse: If cosec 30 = 2, then sin 0 < cos 0 (T T = T)
Inverse: If sin 0 > cos 0, then cosec 30 2 (F F = T)
Contraposition: If cosec 30 2, then sin 0 > cos 0 (F F = T)
3. If Persib doesnt win then bobotoh are sad
Converse: If bobotoh are sad ,then Persib doesnt win (F F = T)
Inverse: If Persib win, then bobotoh are happy (T T = T)
Contraposition: If bobotoh are happy, then Persib win (T T = T)

M. Imam Nasrullah
14


Tautology, Contradiction, and Contingency
Exp.
Tautology is a compound statement which the value is always true (all T)
Contradiction is a compound statement which the value is always false (all F)
Contingency is a compound statement which the value is not always true or not always false.
Contingency is not Contradiction nor Tautology

P ~P P ~P P ~P P ~P P ~P
T F T F F F
T F T F F F
F T T F T F
F T T F T F

BO the TV of (P V ~P ) is always true ( all true ), then (P V ~P ) is Tautology
BO the TV of (P . ~P ) is always false ( all false ), then (P . ~P ) is Contradiction
BO the TV of (P ~P ) is not always true or not always false, then (P ~P ) is Contingency
BO the TV of (P ~P ) is always false ( all false ), then (P~P ) is Contradiction


M. Nur Fathurrahman
15


State/ add the follc.s. are tautology, contra diction, or contingency
1. (p
^
q) ->q = Tautology
2. p -> (p v q) = Tautology
3. (p
^
q) -> (p v q) = Tautology
4. (p -> q)
^
(p
^~
q) = Contradiction
Sol.
1. Table of TV from (p
^
q) -> q
p q
p
^
q (p
^
q)-> q
T T T T
T F F T
F T F T
F F F T

For (p
^
q) -> q Because of (p
^
q) -> q is always true (all true), then
(p
^
q) -> q is Tautology


T
T
T
T
M. Raditya Dwiprasta
16


2| For p (p V q)
p q p V q p (p V q)
T T T T
T F T T
F T T T
F F F T

Because of TV of p ( p V q) is always true, then p (p V q) is tautology
3| For (p .q) (p V q)
p q p .q p V q (p .q) (p V q)
T T T T T
T F F T T
F T F T T
F F F F T

Because of the TV of (p . q) (p V q) is always true, then (p . q) (p V q) is tautology
4| For (pq) . (p.~q)
p q ~q pq p . ~q (pq) . (p .~q)
T T F T F F
T F T F T F
F T F T F F
F F T T F F

Because of the TV of (pq) . (p . ~q) is always false, (pq) . (p . ~q) is contradiction

By: M. Umar Fathurrohman
17


Infrence ( drawing conclution)
Ponens modus
Premise I : p q
Premise II: p
Conclution: q

Ex: if Im diligent then Im clever
Im diligent
Conclution Im clever
This argument is valid (prove)!
If it is stated in implication form [(p q) ^p] q and its the tautology

Nabila Putri Fauzia
18


Proof
p q p q (p q) ^p [(p q) ^p q
T T T T T
T F F F T
F T T F T
F F T F T

BO the TV of [(p q) ^p] q is always true ( all T ) or its tautology, then the implication is valid.












Nadia Gitta Paramita
19


Infrence ( drawing conclution)
Tollens Modus
Premise I : pq
Premise II : ~q

Conclusion : ~p

Example
If Im diligent then Im clever
Im stupid
Conclusion Im lazy

This argument is valid (prove)!







Nadira Nurul F.
20


Infrence ( drawing conclution)
If it is stated in the implication ,( ) - , Tollens Modus as said valid if the is of
,( ) - is ..
Proof
( ) ,( ) -
F F T T T F T
F T T F F F T
T F F T T F T
T T F F T T T

BO the TV of ,( ) - is always True (all T) and the implication statement of ,( )
- is valid.

Naufal Purnama Hadi
21


Infrence ( drawing conclution)
Syllogism
Premise I : pq
Premise II : qr
Conclusion : pr
Ex. PI : If Im diligent then Im clever
PII : If Im clever then Im successful
Conclusion: If Im diligent then Im successful




Even number :Bil. Genap
Odd number :bil. Ganjil
Integer: bil. Bulat: {..,-1,0,1,..}
Natural Number: {1,2,3,}
Whole Number: {0,1,2,}
Real Number: {..1,..,-

,..0,..,

,..1,..}
Prime Number: {2,3,5,..}
Complex:
Putri Egayulia N.
22


This argument is valid (Prove! )
If its stated in the implication form is [(pq).(qr)(pr)]
Syllogism is said valid if the is of *(pq).(qr)(pr)] is tautology
Proof
p q r pq qr pr [(pq).(qr) [(pq).(qr)(pr)]
T T T T T T T T
T T F T F F F T
T F T F T T F T
T F F F T F F T
F T T T T T T T
F T F T F T F T
F F T T T T T T
F F F T T T T T

Because Of the TV of [(pq).(qr)(pr)+ is always true (all T) or its tautology, that the implication
statement of [(pq).(qr)(pr)] is valid !


Rr. Audria Pramesti W.
23


Quantor / Quantifier statements
There are two i.e.
1. Special Quantifier (Existentian Quantor)
: it is symbolized with (read : there is/ are), (read : so that).
Notation : x S P(x)
There is x an element of S, so that P(x) is valid (holds)
Ex : Det. The TV of the foll sq
1. x R x + 5 = 8
Sol. (there is x an element of real number, so that x + 5 = 8 is valid)
BO there is x an element of real, that is 3, so that if x is changed with 3, then the
statement above becomes 3 + 5 = 8 is true.
So, the tv of the sq of x R x + 5 = 8 is true.


Rasya Salma Irawan
24


Quantor / Quantifier statements
2. X R x
2
>0
Sol. ( There is x an element of real number, so that x
2
> 0 is not valid
Bo there is x an element of real, that is , so that if as with 3, then the statement above becomes 3
2
> 0
as true. So the TV of the Sq of x x
2
> 0 as true
3. x R x
2
< 0
Sol BO there is not x value an element of real which causes x
2
< 0
So, x R x
2
< 0 as false
2 General Quantifier ( universal Quantor)
It is symbolized with (read:for each/for all)
Notation : x S p(x)
(for each/for all x an element of s, so that p(x) is valid
Ex: Det the TV of the fall qq
1. x I 2x = 1

Reza Fasya
25



Solution
Because of there is not x value an element an integer which causes 2x=1 is true,
So, x I 2x = 1 is false
2. x R x
2
=0
Solution
Because of there is value x of an element real that is zero, so that if x changed with 0, then the
statement above becomes 0
2
=0 is false
So, x R x
2
=0 is false
3. x R x
2
+9=0
Solution
There is not x value an element of real causes x
2
+9=0 is true
So, the TV of x R x
2
+9=0 is false
Negation of Quantifier Statement
1. ~[ - x S P(x)] is x S ~P(x)
2. ~[ x S P(x)] is - x S ~P(x)

Ex/Exercise
Determine the negation and the TV of the following q.s
1. - x R x>2x
2. - x R \x=0
3. - x c x
2
-4=0
4. x W x-2<-3

Rissa Zharfany E.
26


Sol.
1. - x R x > 2x
BO there is x value of an element of real, that is -1, so that if x changed with -1, then the
statement above becomes -1>-2 is true.
So, - x R x > 2x is true.
~[ - x R x > 2x+ is x R x 2x
BO there is x value of an element of real, that is -1, so that if x changed with -1,then the
statement above becomes -1-2 is false.
So, x R x 2x is false.

2. - x R = 0
BO there is x value of an element of real, that is 0, so that if x changed with 0, then the
statement above becomes = 0 is true.
So, - x R = 0 is true.
~[- x R = 0] is x R 0
BO there is x value of an element of real, that is 0, so that if x changed with 0, then the
statement above becomes 0 is false.
So, x R 0 is false.

3. - x x
2
4 0
BO there is x value of an element of complex, that is , so that if x changed with , then
the statement above becomes ()
2
4 0 is true.
So, - x x
2
4 0 is true.
~[ - x x
2
4 0+ is x x
2
4 = 0
BO there is x value of an element of complex, that is , so that if x changed with , then
the statement above becomes ()
2
4 = 0 is false.
So, x x
2
4 = 0 is false.

4. x W x 2 < -3 = false
~[ x W x 2 < -3] = - x W x 2 -3 = true




Shazkia Aulia S. D.
27


Exponential Inequalities
1.



2.



3.


( )( )


( )( )
( )( )






* +


Sri Utami Ayuningrum
28


Logarithms Inequalities
Logarithms Function
Logarithms function is inverse of exponential function.
Proof F.E: Logarithm function y=f(x)= log
a
x is inverse of exponent function y=f(x)= a
x

y = a
x
log y= log a
x

log y = x log a
x = log y / log a
x = log
a
y

() = log
a
y

() = log
a
x

Syifaulqulub A. Nurfahdani
29


Graph : 2. Y = f(x) = 2
x
and Y = f(x) = log x
1. Y = f(x) = log x and Y =f(x) =


For y =

logx
If x
1
> x
2
then

logx
1
<

logx
2
X
1
< x
2
then

logx
1
>

logx
2
If x > y then
a
logx <
a
logy, 0 < a < 1
If
a
logx >
a
log y then x < y

Det.
2
log(x
2
2x ) > 3
2
log(x
2
2x) >
2
log8
x
2
2x> 8
x
2
2x 8 > 0
Zp : x
2
2x 8 = 0
(x 4)(x + 2) = 0 + + + - - - + + +
x = 4, x = -2 -2 4
x > 4
Condition :
x
2
2x > 0
Zp : x (x 2) = 0 + + + - - - + + +
x = 0, x = 2 0 2 4

+ + + - - - + + +
-2 0 2 4
x < -2 V x > -4
Thalia Nurul H.
30


Note: y = log
a
x a > 0 , a 1 , x > 0

x ... -3 -2 -1 0 1 2 3 ... 1 2 4 8
Y = f(x) = 2
x




1 2 4 8
Y = f(x) = log x
-3 -2 -1 0 1 2 3
Y =f(x) =


0 -1 3 2 1 2 3


X = 2 y = log x = 1
X = 4 y = log x = 2
X = 8 y = log x = 3
If x > x then log
a
x > log
a
x
x < x then log
a
x < log
a
x
If x > y , then log
a
x >log
a
y
If log
a
x > log
a
y , then x > y , a > 1

Veby Virgiana
31


Keterangan
Adriand Nata Kusumah : Meaning of Statement and Open Sentence
Agastya Prabhaswara Putra : Exercises 1 + Exponent Inequalities
Dania Rahmah Aisyah : Negations
Dzikry Lazuardi Zammuruddan Soeharno : Disjunction
Faisal Rahman Yulistian : Conjunction
Farrah Fauziyyah Kurniawaty : Implication
Ihsan Hafiyyan : Bi-Implication
Indira Anindyajati Prasetyo : Exercises 2
Irfandi Makmur Putra : Negation of Compound Statement
Lathifah Nurrahmah : Negation of Compound Statement
Mahdiar Naufal : Equivalent of compound statement
Muhammad Ilyas Arradya : Converse, Inverse, and Contradiction + Editor
Muhammad Imam Nasrullah : Exercises 3
Muhammad Nur Fathurrahman : Tautology, Contradiction, and Contingency
Muhammad Raditya Dwiprasta : Exercises 4
Muhammad Umar Fathurrohman : Exercises 4
Nabila Putri Fauzia : Ponens Modus + Editor
Nadia Gitta Paramita : Ponens Modus
Nadira Nurul Fadhilah : Tollens Modus
Naufal Purnama Hadi : Tollens Modus
Putri Egayulia N. : Syllogism
Raden Roro Audria Pramesti Wulandari : Syllogism
Rasya Salma Irawan : Special Quantifer
Reza Fasya : General Quantifer
Rissa Zharfany E. : General Quantifer
Shazkia Aulia Shafira Dewi : Exercises 5
Sri Utami Ayuningrum : Exponential Inequalities
Syifaulqulub Adina Nurfahdani : Logarithms Inequalities
Thalia Nurul Heraswati : Exercises 6
Veby Virgiana : Exercises

Vous aimerez peut-être aussi