Escolar Documentos
Profissional Documentos
Cultura Documentos
in Math006
SECTION: _________________
NAME: ___________________________________
Logic
Proposition
- a declarative statement that is either true or false (but not
both)
Example 1.1.1
I NTENDED L EARNING OUTCOMES (ILO S )
Determine whether the following statement is a proposition or
1. Determine a proposition. not?
2
Assessment Tasks (ATs)
Logical Connectives
Conjunction - denoted by
p ∧ q , is the proposition p and q. Find the true values of the following:
Disjunction - denoted by
p ∨ q , is the proposition p or q. 1. ( p ∧ q) ∨ r
2. ( p ∧ r ) ∧ ( p ∨ q )
Negation - denoted by
p , is the proposition not p. 3. ( p ∧ q) ∨ ( p ∧ q )
Truth Table
3
1.2 Conditional Proposition - denoted by
p → q , is the com-
p → q is q → p .
• Converse of
p → q is q → p .
• Contrapositive of
I NTENDED LEARNING OUTCOMES (ILO S )
Example 1.2
1. Transform conditional statements to symbols.
1. If you get 100% on the finals, then you will get an A.
2. Convert conditional statements to converse,
2. You can take the flight if and only if you buy a ticket.
contrapositive, inverse, biconditional.
3. The home team wins whenever it is raining.
3. Determine the truth value of a compound
proposition.
4
Exclusive or Proposition - denoted by
p⊕q .
Example 1.1.2
5
1.3 Logic Gates
Logic Gates 1. And Gate 2. Or Gate
! !
7. Xnor Gate
! ! ! !
6
Example 1.3
1. ( p ∧ q) ∨ r
2. ( p ∧ q ) ⊕ (q ∧ r)
3. [(a ⊕ b) ∨ (b ∧ c)] ∨ (c ∧ d ∧ e )
! ! ! !
! ! ! !
1. ⎡⎣( p ⊕ q) ⊕ q ∧ r ⎤⎦
2. ( p ∨ q) ∧ ⎡⎣(q ∧ r) ∨ (r ∨ s)⎤⎦ ∧ s
7
1.5 Rules of Inference
Rules of Inference • Syntactical transform rules which one can use to infer a con-
clusion from a premise to create an argument.
8
Absorption Constructive Dilemma State the justification for each line below the conclusion.
p → q/∴ p → ( p ∧ q) ( p → q) ∧ (r → s)
A. B.
p ∨ r/∴q ∨ s
1. p ∧ q 1. p → q
3. p 3. s → r
State which rule of inference is the basis of the following argu-
4. p ∨ r 4. ( p ∧ q)/∴s ∨ q
ments: 5. s 5. p → ( p ∧ q)
2. It is below freezing and raining now. Therefore, it is below Assessment Tasks (ATs)
freezing now.
State the justification for each line below the conclusion.
A. B.
1. ( p ∨ q) ∧ (r ∨ s) 1. a → b
2. ( p → r) ∧ (q → s) 2. c → (d → e)
3. If it rains today, then we will not have a barbecue today. If
we do not have a barbecue today, then we will have a bar- 3. r/∴s 3. c ∨ (a ∨ d)
becue tomorrow. Therefore, if it rains today, then we will 4. p ∨ q 4. c/∴b ∨ e
have a barbecue tomorrow. 5. r ∨ s 5. d → e
6. s 6. (a → b) ∧ (d → e)
7. a ∨ d
8. b ∨ e
9
1.6 Logical Equivalence
Logical Equivalence • The compound propositions p & q are logically equivalent if
p ↔ q is a tautology.
Example 1.6.1
1.
2.
10
Example 1.6.2
A.
B.
11
1.7 Predicate
Predicates and Quantifiers • Statements that are neither true nor false when the values
of the variables are not specified.
Example 1.7.1
1.
12
Example 1.7.2
Quantifiers
• The extent to which a predicate is true over a range of ele- 1. Let P(x) be the statement “x + 1 > x.” What is the truth
ments.
value of the quantification , where the domain con-
Universal Quantifiers sists of all real numbers?
•
2.
3. Let P(x) denote the statement “x > 3.” What is the truth
Existential Quantifiers value of the quantification where the domain con-
sists of all real numbers?
•
13
Nested Quantifiers 4. Every real number except zero has a multiplicative inverse.
Example 1.7.3
2. ∀x ∃y (x + y = 0)
14
C HAPTER 2
Sets
1. Operations on Sets
2. Venn Diagram
3. Application of Sets
2.1 Example 2.1.1
Sets 1. A = { 1, 3, 5, 7, 9}
4. C = {1, 2, 3, 5}
5. D = {x ∈ℜ + /1 ≤ x < 5}
I NTENDED L EARNING OUTCOMES (ILO S ) 6. E = {y ∈ℜ / 3 < y > −2}
1. Define a set.
• Finite Set - a set with countable number of elements.
16
Subsets a. I ___ Q
b. R ___ I
c. O ___ I
e. Z ___ M
Cartesian Products
3. Given A = { 1, 2, 3 } and B = { x, y, z }, find:
a. A X B =
Example 2.1.3
Q = Rational! ! ! ! Z = Zero
C = Counting Numbers
17
Assessment Tasks (ATs)
a. W ___ Q
b. N ___ C
c. H ___ Q
d. I ___ H
e. O ___ M
18
2.2 Set Operations
Set Operations 1. Complementation ( ‘ )
2. Intersection ( ∩ )
4. Difference ( - )
19
5. A ∩ B =
6. A ∪ B =
7. A U B =
U = { k, a, n, g, r, o, d, i, s, u}
A = { k, n, g, r, i, o, s}
B = {n, g, o, s, r}
C = {k, g, s, n, i}
U = { 1, 2, 3, 4, 5, 6, 7, 8, 9} 1. ( A’ U B’ ) ∩ C' =
A = { 1, 3, 5, 7, 9} 2. ( A - B)’ U ( C’ - B) =
B = {1, 2, 3, 4, 5} 3. ( B - C’ ) U (A' ∩ B) =
Find:
1. A’ = 3. A - B =
2. B’ = 4. B - A =
20
2.3 Venn Diagram
Venn Diagram - graphical representation of sets.
Example 2.3
1. Draw a Venn diagram that represents:
U = { 1, 2, 3, 4, 5, 6, 7, 8, 9}!
!
A = { 1, 3, 5, 7, 9}! ! !
B = {1, 2, 3, 4, 5}
21
2. Draw the Venn diagrams for each of these combinations of
the set A, B, and C.
a.
b.
c.
22
2.4 Example 2.4
! ! !
b. How many play only volleyball?
23
a. How many teenagers are using Facebook only?
b. How many of them are not using any of these social me-
dia?
! ! !
24
C HAPTER 3
Relations
1. Definition of Relation
2. Properties of Relation
3. Equivalence Relation
4. Partial Order
3.1 Relations
Relations • A (binary) relation R from a set A to a set B is a subset of the
cartesian product A X B. If (x, y) is in R, we write xRy and
say that “x is related to y.”
Properties of Relations
Diagraph:
26
2. X = {1, 2, 3, 4} defined by x, y) ∈R if x ≤ y, (x, y) ∈X Partial Order
Equivalence Relation
Diagraph:
• A relation R on a set X is called an equivalence relation if R
is reflexive, symmetric and transitive.
3. A = { 1, 2, 3, 4 }
R = { (1, 1), (2, 2), (3, 2), (3, 3), (4, 4)}
27
3.2 Inverse of a Relation
Inverse and Composition of • The inverse of the relation is R −1 = {(y, x) / (x, y) ∈R}
Example 4.2
28
C HAPTER 4
Functions
1. Definition of a Function
2. Properties of a Function
3. Inverse and Composition
3.1 Injective
Surjective
Bijective
30
4. X = { 1, 2, 3 } and Y = { a, b, c }
4. X = { 1, 2, 3, 4 } and Y = { a, b, c }
5. X = { 1, 2, 3 } and Y = { a, b, c }
31
3.2 Inverse of a Function
Inverse and Composition of
Functions
Composition of a Function
2.
32
3.
Find g o f.
33
C HAPTER 5
Number
Theory
1. Divisibility
2. Congruence Modulo
3. Division and Euclidean Algorithm
4. Solving Linear Congruences
5. Number Systems
5.1 Divisibility
Divisibility and • If a and b are integers with a ≠ 0 , we say that a divides b if
Congruence Modulo
b
there is an integer c such that b=ac, or equivalently, if a is
ab
an integer. The notation denotes that a divides b.
Congruence Modulo
• If a and b are integers and m is a positive integer, then a is
I NTENDED LEARNING OUTCOMES (ILO S ) congruent to b modulo m if m divides a-b.
1. a ± ccb ± d(mod m)
2. ac ≡ bd(mod m)
Number Theory
3. a k ≡ b k (mod m), ∀k ∈N
- study of the set of integers and their properties.
35
Example 5.1 Given a ≡ 4(mod m) and b ≡ 5(mod m), find the valueof c
with a < c < 9 such that :
1. 15 ≡ 6(mod 9)
1.c ≡ 4a(mod 9) ! ! ! ! !
2.c ≡ 3b(mod 9)
2. − 47 ≡ 17(mod8)
36
5.2 Euclidean Algorithm
Division and Euclidean
Algorithm
Example 5.2
Division Algorithm 2. What are the quotient and remainder when -11 is divided
by 3?
• In the equality given in the division algorithm, d is
called the divisor, a is called the dividend, q is called
the quotient, and r is called the remainder.
q = a div d, r ≡ a mod d
37
Assessment Tasks (ATs)
3. Find the greatest common divisor of 414 and 662 using 1. Suppose a ≡ 7(mod13) and b ≡ 6(mod13), find c with 0 ≤ c < 13such that
Euclidean algorithm. a)c ≡ a 3 + b3 (mod13)
b)c ≡ 2a 2 b + 3ab 2 (mod13)
a) gcd(123,277)
b) gcd(100,101)
c) gcd( 111,201)
38
5.3 Solving Linear Congruence
Solving Linear Congruence The solution to ay ≡ b(mod m) ax ≡ b(mod m)is solvableif d b where d = gcd(a, m)
Example 5.3
1.3x ≡ 4(mod 5)
I NTENDED LEARNING OUTCOMES (ILO S )
2. 2x ≡ 5(mod 4)
39
3. 5x ≡ 3(mod8)
40
5.4 Number System
Number System Binary Expansion
Example 5.4
I NTENDED LEARNING OUTCOMES (ILO S )
1.
1. Represent integers in different number
systems.
2.
41
6.
3.
4.
5.
42
C HAPTER 6
Combinatorics
Example 6.1
Combinatorics
- arranging, ordering, enumerating, counting, optimizing,
and partitioning of FINITE objects. Factorial Notation
n! = n (n-1)(n-2)... (3)(2)(1)
Illustration:
3! =
6! =
0! =
44
! ! ! ! !
! ! ! !
45
6.2 Kinds of Permutation
3. Similar Things
Example 6.2
I NTENDED LEARNING OUTCOMES (ILO S )
1. 6 people in a circle
1. Analyze and evaluate problem solving in
permutation.
Permutation
• Arrangement of objects with regard to other.
3. Ms. CEA, 1st and 2nd runner-up from 8 finalists.
n!
P =
(n − r)!
n r
! !
46
4. 6 ganes played win-loss standing of 6. President, Vice-President, Treasurer, Secretary, in a class
of 10 students?
a) 4 - 2
c) 6 - 0
47
6.3 Example 6.3
d) no freshmen
n!
n Cr =
! !
(n − r)!r!
48