Propositional Logic and Set Theory Guide
Propositional Logic and Set Theory Guide
Getachew Bitew
Department of Mathematics
Addis Ababa University
2021/22
Propositional Logic and Set Theory Open propositions and quantifiers The concept of a set
Out lines
Definition
A proposition (or statement) is a sentence which has a truth value
(either True or False but not both).
Logical connectives
Logical connectives
(a) Conjunction
When two propositions are joined with the connective ”and,” the
proposition formed is a logical conjunction. “and” is denoted by
”∧”. So, the logical conjunction of two propositions, p and q, is
written as:
p ∧ q read as “ p and q,” or “ p conjunction q ”. p and q are
called the components of the conjunction. p ∧ q is true if and only
if p is true and q is true.
p q p∧q
T T T
T F F
F T F
F F F
Propositional Logic and Set Theory Open propositions and quantifiers The concept of a set
Logical connectives
Example
Consider the following propositions:
p: 3 is an odd number. (True)
q: 27 is a prime number. (False)
r : Addis Ababa is the capital city of Ethiopia. (True)
p ∧ q: 3 is an odd number and 27 is a prime number. (False)
p ∧ r : 3 is an odd number and Addis Ababa is the capital city of
Ethiopia. (True)
Propositional Logic and Set Theory Open propositions and quantifiers The concept of a set
Logical connectives
Disjunction
(b) disjunction
When two propositions are joined with the connective ”or,” the
proposition formed is a logical conjunction. “and” is denoted by
”∨”. So, the logical disnjunction of two propositions, p and q, is
written as:
p ∨ q read as “ p or q,” or “ p disjunction q ”. p and q are called
the components of the conjunction. p ∨ q is false if and only if p is
false and q is false.
p q p∨q
T T T
T F T
F T T
F F F
Propositional Logic and Set Theory Open propositions and quantifiers The concept of a set
Logical connectives
Example
Consider the following propositions:
p: 3 is an odd number. (True)
q: 27 is a prime number. (False)
r : Addis Ababa is the capital city of Ethiopia. (True)
p ∨ q: 3 is an odd number or 27 is a prime number. (True)
p ∨ r : 3 is an odd number or Addis Ababa is the capital city of
Ethiopia. (True)
Propositional Logic and Set Theory Open propositions and quantifiers The concept of a set
Logical connectives
Implication
(c) Implication
When two propositions are joined with the connective ”implies,”
the proposition formed is a logical implication. “implies” is
denoted by ” =⇒ ”. So, the logical implication of two
propositions, p and q, is written as:
p =⇒ q read as “ p implies q,” p =⇒ q is false if and only if p
is true and q is false.
p q p =⇒ q
T T T
T F F
F T T
F F T
Propositional Logic and Set Theory Open propositions and quantifiers The concept of a set
Logical connectives
Example
Consider the following propositions:
p: 3 is an odd number. (True)
q: 27 is a prime number. (False)
r : Addis Ababa is the capital city of Ethiopia. (True)
p =⇒ q: 3 is an odd number implies 27 is a prime number.
(False)
p =⇒ r : 3 is an odd number implies Addis Ababa is the capital
city of Ethiopia. (True)
Logical connectives
Bi-implication
(d) Bi-implication
When two propositions are joined with the connective ”bi-implies,”
the proposition formed is a logical bi-implication. “Bi-implication”
is denoted by ”⇔”. So, the logical bi-implication of two
propositions, p and q, is written as:
p ⇔ q read as “ p bi-implies q,” p ⇔ is false if and only if p and q
have different truth values.
p q p⇔q
T T T
T F F
F T F
F F T
Propositional Logic and Set Theory Open propositions and quantifiers The concept of a set
Logical connectives
Example
Consider the following propositions:
p: 3 is an odd number. (True)
q: 27 is a prime number. (False)
r : Addis Ababa is the capital city of Ethiopia. (True)
p ⇔ q: 3 is an odd number bi-implies 27 is a prime number.
(False)
p ⇔ r : 3 is an odd number bi-implies Addis Ababa is the capital
city of Ethiopia. (True)
Logical connectives
Negation
Definition
The proposition formed by joining two or more proposition by
connective(s) is called a compound statement.
Example
p ∧ (q =⇒ r ), p ∧ (¬q ∨ r )
Definition
Two compound propositions P and Q are said to be equivalent if
they have the same truth value for all possible combinations of
truth values for the component propositions occurring in both P
and Q. In this case we write P ≡ Q.
Example
Show that P : p =⇒ q and Q : ¬q =⇒ ¬p are equivalent.
Propositional Logic and Set Theory Open propositions and quantifiers The concept of a set
Example
If Kidist lives in Addis Ababa, then she lives in Ethiopia.
Converse: If Kidist lives in Ethiopia, then she lives in Addis Ababa.
Contrapositive: If Kidist does not live in Ethiopia, then she does
not live in Addis Ababa.
Inverse: If Kidist does not live in Addis Ababa, then she does not
live in Ethiopia.
Propositional Logic and Set Theory Open propositions and quantifiers The concept of a set
Definition
A compound proposition is a tautology if it is always true
regardless of the truth values of its component propositions. If, on
the other hand, a compound proposition is always false regardless
of its component propositions, we say that such a proposition is a
contradiction.
A proposition that is neither a tautology nor a contradiction is
called a contingency.
Example
p ∨ ¬p is tautology, p ∧ ¬p is contradiction, p =⇒ q is
contingency
Propositional Logic and Set Theory Open propositions and quantifiers The concept of a set
5. De Morgan’s Laws:
(a) ¬(p ∨ q) ≡ ¬p ∧ ¬q,
(b) ¬(p ∧ q) ≡ ¬p ∨ ¬q
6. Law of Contrapositive:
p =⇒ q ≡ ¬q =⇒ ¬p.
7. Complement Law:
¬(¬p) ≡ p.
Propositional Logic and Set Theory Open propositions and quantifiers The concept of a set
Definition
An open statement (also called a predicate) is a sentence that
contains one or more variables and whose truth value depends on
the values assigned for the variables.
Definition
Two open propositions P(x) and Q(x) are said to be equivalent if
and only if P(a) ≡ Q(a) for all individual a in the specified (
universal) set U..
Example
Let P(x) : x 2 − 1 = 0
Q(x) : |x| ≥ 1. Show that P(x) and Q(x) are equivalent in
U = {−1, − 21 , 0, , 1}.
Propositional Logic and Set Theory Open propositions and quantifiers The concept of a set
Quantifiers
Quantifiers
1 Universal quantifier:
The phrases ”for every x”, ”for each x” and ”for all x” are
universal quantifiers.
denoted by ∀x,
If P(x) is an open proposition with universe U, then ∀x(P(x),
is a quantified proposition and is read as ”for every x ∈ U with
property P(x).
2 Existential quantifier:
The phrases ”for some x”, ”for at least one x” and ”there
exists an x” are existential quantifiers.
denoted by ∃x,
If P(x) is an open proposition with universe U, then ∃x(P(x),
is a quantified proposition and is read as ”for there exists”
x ∈ U with property P(x).
Propositional Logic and Set Theory Open propositions and quantifiers The concept of a set
Quantifiers
Quantifiers
Example
Let U = R.
¬(∃x)(x < x 2 ) ≡ (∀x)(x ≥ x 2 )
Example
1 Symbolize (translate) the following statements involving
quantifiers.
(a) All rationals are reals.
(b) No rationals are reals.
(c) Some rationals are reals.
(d) Some rationals are not reals.
2 Let U =The set of integers, P(x) : x is a prime number,
Q(x): x is an even number, R(x) : x is an odd number.
Determine the truth value of the following propositions.
(a) ∃x(P(x) =⇒ Q(x))
(b) ∀x(P(x) =⇒ Q(x))
(c) ∀x(R(x) ∧ Q(x))
Propositional Logic and Set Theory Open propositions and quantifiers The concept of a set
Quantifiers
Definition
An argument (logical deduction) is an assertion that a given set of
statements p1 , p2 , · · · , pn , called hypotheses or premises, yield
another statement q, called the conclusion.
q
Propositional Logic and Set Theory Open propositions and quantifiers The concept of a set
Example
If Addis Ababa is in Ethiopia, then it is in Africa. Addis Ababa is
not in Africa. Therefore, Addis Ababa is not in Ethiopia. Write the
argument form.
Definition
An argument form p1 , p2 , · · · , pn ` q is said to be valid if q is true
whenever all the premises p1 , p2 , · · · , pn are true; otherwise it is
invalid.
Example
Investigate the validity of the following argument:
(a) p =⇒ q, ¬q ` ¬p
(b) p =⇒ q, ¬q =⇒ r ` p
Propositional Logic and Set Theory Open propositions and quantifiers The concept of a set
Rules of inferences
1. Modes Ponens:
p
p =⇒ q
q
2. Modes Tollens:
¬q
p =⇒ q
¬p
3. Principle of Syllogism
p =⇒ q
q =⇒ r
p =⇒ r
Propositional Logic and Set Theory Open propositions and quantifiers The concept of a set
4. Principle of Adjunction:
p
p
(a) q (b)
p∨q
p∧q
5. Principle of Detachment:
p∧q
p, q
6. Modes Tollendo Ponens:
¬p
p∨q
q
7. Modes Ponendo Tollens:
¬(p ∧ q)
p
¬q
Propositional Logic and Set Theory Open propositions and quantifiers The concept of a set
8. Constructive Dilemma:
(p =⇒ q) ∧ (r =⇒ s)
p∨r
q∨s
9. Principle of Equivalence:
p⇔q
p
q
10. Principle of Conditionalization:
p
q =⇒ p
Propositional Logic and Set Theory Open propositions and quantifiers The concept of a set
Descriptions of set
Example
N = {1, 2, 3, · · · }
Definition
The set which has no element is called the empty (or null) set and
is denoted by ∅ or {}.
Example
A = {x ∈ R : x 2 + 1 = 0} is an empty set.
Propositional Logic and Set Theory Open propositions and quantifiers The concept of a set
Definition
A set is finite if it has limited number of elements and it is called
infinite if it has unlimited number of elements.
Relationships between two sets
Definition
A set B is said to be a subset of set A (or is contained in A),
denoted by B ⊆ A, if every elements of B is is an element of A.
That is,
(∀x)(x ∈ B =⇒ x ∈ A)
Definition
Sets A and B are said to be equal if they contain exactly the same
elements. That is,
(∀x)(x ∈ B ⇔ x ∈ A)
Example
The sets {1, 2, 3}, {2, 1, 3} and {3, 2, 1} are equal.
A = {1, 2, 3, 4, 5} and D = {x ∈ N | 1 ≤ x ≤ 5} are equal.
Definition
Set B is said to be a proper subset of set A if every element of B
is also an element of A, but B has at least one element that is not
in A. In this case, we write B ⊂ A. That is,
B ⊂ A ⇔ (∀x)(x ∈ B =⇒ x ∈ A) ∧ (A 6= B)
Propositional Logic and Set Theory Open propositions and quantifiers The concept of a set
Definition
Let A be a set. The power set of A, P(A) is the set whose
elements are all A. That is
P(A) = {B | B ⊆ A}
Example
Find the power set of
(a) A = {∅, 0}.
(b) B = {a, b, c}
Definition
The union of two sets A and B, denoted by A ∪ B,is the set of all
elements that are either in A or in B (or in both sets). That is,
A ∪ B = {x | (x ∈ A) ∨ (x ∈ B)}
Definition
The intersection of two sets A and B, denoted by A ∩ B,is the set
of all elements that are in A and B . That is,
A ∩ B = {x | (x ∈ A) ∧ (x ∈ B)}
Definition
The difference of two sets A and B, denoted by A − B,is the set of
all elements in A but not in B . That is,
Propositional Logic and Set Theory Open propositions and quantifiers The concept of a set
Definition
The difference of two sets A and B, denoted by A − B, is the set
of all elements in A but not in B. This set is also called the
relative complement of B with respect to A. Mathematically,
A − B = {x | (x ∈ A) ∧ (x ∈
/ B)}
Definition
: Let A be a subset of a universal set U. The absolute complement
(or simply complement) of A, denoted by A0 (or Ac or Ā), is
defined to be the set of all elements of U that are not in A. That is
A0 = {x : x ∈ U ∧ x ∈
/ A}
Definition
The symmetric difference of two sets A and B, denoted by A4B is
the set
A4B = (A − B) ∪ (B − A)
Example
Propositional Logic and Set Theory Open propositions and quantifiers The concept of a set
Theorem
For any two sets A and B, the following holds.
(a) (A0 )0 = A
(b) A0 = U − A
(c) A − B = A ∩ B 0
(d) (A ∪ B)0 = A0 ∩ B 0 , (A ∩ B)0 = A0 ∪ B 0
(DeMorgan’s law)
(e) A ⊆ B =⇒ B 0 ⊆ A0
Propositional Logic and Set Theory Open propositions and quantifiers The concept of a set
Theorem
For any three sets A, B and C , the following holds.
(a) A ∪ B = B ∪ A (∪ is commutative)
(b) A ∩ B = B ∩ A (∩ is commutative)
(c) (A ∪ B) ∪ C = A ∪ (B ∪ C ) (∪ is associative)
(d) (A ∩ B) ∩ C = A ∩ (B ∩ C ) (∩ is associative)
(e) A ∪ (B ∩ C ) = (A ∪ B) ∩ (A ∪ C ) (∪ is distributive
over ∩)
(f) A ∩ (B ∪ C ) = (A ∩ B) ∪ (A ∩ C ) (∩ is distributive
over ∪)
Propositional Logic and Set Theory Open propositions and quantifiers The concept of a set
Venn diagrams
Example
Consider the venn diagram below, and find A ∩ B, A\B, A4B.
Function
Getachew Bitew
Department of Mathematics
Addis Ababa University
2021/22
Function
Out lines
1 Function
The real number system and arithmetic operations
Equations and Inequalities: Linear and Quadratic
Review of relations and functions
Real Valued functions and their properties
Polynomial function
Rational Functions and their Graphs
Exponential function
Logarithm function
Function
Definition
The set of natural numbers is given by N = {1, 2, 3, · · · }.
The set of integers is given by
Z = {· · · , −3, −2, −1, 0, 1, 2, 3, · · · }.
The set
n a of rational numbers iso given by
Q= : a ∈ Z ∧ 0 6= b ∈ Z .
b
A number which can not be written as the quotient of two integers
is an irrational number.
Definition
The set of real numbers denoted by R can be described as the
union of the set of rational and irrational numbers. That is,
Inverses:
8. For addition: Each real number a has a unique
additive inverse, represented by −a which has
the property that a + −a = −a + a = 0
9. For Multiplication: Each real number a, except
0 has a unique additive inverse, represented by
1
which has the property that
a
1 1
a. = .a = 1
a a
Closure properties:
10. For addition: The sum of two real numbers is a
real number.
11. For Multiplication: The product of two real
numbers is a real number.
Subtraction and division are defined
by:
1
x − y = x + (−y ) and x ÷ y = x. , where y 6= 0.
y
Function
Let a and b be two real numbers such that a < b, then the
intervals which are subsets of R with end points a and b are
denoted and defined as below:
(i) (a, b) = {x : a < x < b} open interval from a to b,
(ii) [a, b] = {x : a ≤ x ≤ b} closed interval from a to b,
(iii) (a, b] = {x : a < x ≤ b} open-closed interval from a
to b,
(iv) [a, b) = {x : a ≤ x < b} closed-open from interval
from a to b,
Function
Example
1
3x − 5 = 0, x = 5, x + 8 = 0 are linear equations.
2
Example
Solve for x
(a) 820x = 10x + 30(50 − x)
(b) 3(2x + 1) = 2(1 − 5x) + 6x + 11
Example
Find the solution set of
8x + 3 5
(a) − 5(x + 2) = −3 x +
2 6
(b) 5x − 2(x − 1) + 4 = 3(x + 2)
(c) 6 + 3(1 − x) = 2(1 − 5x) + 7x
Function
Example
A computer discount store held an end of summer sale on two
types of computers. They collected Birr 41,800 on the sale of 58
computers. If one type sold for Birr 600 and the other type sold for
Birr 850, how many of each type were sold?
Example
2x − 7 > 9, 5x ≤ 4, 1 − x ≥ 10 are examples of linear inequalities.
Example
Find the solution set of
(a) 5x + 8(20 − x) ≥ 2(x − 5)
(b) 3x − 5(x + 2) ≥ 0
(c) x − 4(x + 1) ≥ −13 − (x − 2)
Function
Example
3x 2 + x + 1 = 0, x 2 = 4, x 2 + 6x = 0 are quadratic equations.
Example
Solve the following equations
(a) 4x 2 + 10x = 6 (b) 5x 2 − 6 = 8 (c) (x − 2)2 = 6
Example
Solve the following equations using quadratic formula
(a) x 2 − 8x = −6 (b) x 2 − 5x + 6 = 0
(c) x 2 + 4x + 4 = 0 (d) x 2 + x + 1 = 0
Function
Example
2x 2 + 5x − 3 > 0, x 2 + 5x + 6 ≤ 0, x − x 2 ≥ 2 are examples of
linear inequalities.
Note that a.b > 0 if and only if both a and b are either positive or
negative. We determine solution of the quadratic inequalities by
examining the sign of the factors. After putting the inequality in
the standard form, we will examine the sign of each factor of the
expression for the various values of x. This process is called sign
analysis.
Function
Example
Solve the following quadratic inequalities
(a) 2x 2 + 5x − 3 > 0 (b) x 2 − 5x + 6 ≤ 0
(c) x 2 − 2x − 2 < 0
Function
Cartesian Product
Definition
Suppose A and B are sets. The Cartesian product of A and B,
denoted by A × B, is the set which contains every ordered pair
whose first coordinate is an element of A and second coordinate is
an element of B. That is,
A × B = {(a, b) : a ∈ Aandb ∈ B}
Example
Let A = {1, 2} and B = {x, y }. Find A × B and B × A.
Definition (Relation)
Let A and B are sets, any subset of A × B is called a relation from
A into B.
Example
1 Let A = {1, 3, 5, 7} and B = {6, 8}. Let R be the relation
”less than” from A into B. Then
R = {(1, 6), (1, 8), (3, 6), (3, 8), (5, 6), (5, 8)}
2 Let A = {1, 2, 3, 4, 5} and B = {a, b, c}. The following are
relations from A into B.
(i) R1 = {(1, a)}
(ii) R2 = {(2, b), (3, b), (4, c), (5, a)}
Function
Definition
Let R be a relation from A into B. Then
(a) the domain of R, denoted by Dom(R), is the set of
the first coordinates of the elements of R. That is
Dom(R) = {a : (a, b) ∈ R}
Range(R) = {b : (a, b) ∈ R}
Example
1 If R = {(1, 6), (3, 6), (3, 8), (5, 6), (5, 8)} is the relation from
A = {1, 3, 5, 7} into B = {6, 8, 10}. Then find Dom(R),
Range(R) and Codomain(R).
2 Let R be a relation on A = {1, 2, 3, 4, 5} defined by
R = {(a, b) : a, b ∈ A, a is a factor of b}. Find the domain
and range of R.
Remark
1 A relation R on a set A is called
Example
Let R = {(a, b) : a, b ∈ N, a + 2b = 11} be a relation on N. Find
(a) Dom(R) (b) Range(R) (c) R −1
Definition (Functions)
A function is a relation in which each element of the domain
corresponds to exactly one element of the range.
Example
Determine whether the following relations are functions or not.
(a) R = {(5, −2), (3, 5), (3, 7), (5, 6), (5, 8)}
(b) R = {(2, 4), (3, 4), (6, 8)}
(c) R = {(−1, 1), (1, 1), (−2, 4), (2, 4), (−3, 9), (3, 9)}
Definition
A relation f from A into B is called a function from A into B,
denoted by
f : A → B or
if and only if
(i) Dom(f ) = A
(ii) No element of A is mapped by f to more than one
element in B. That is, if (x, y ) ∈ f and (x, z) ∈ f ,
then y = z.
Remark
If (x, y ) ∈ f , then we write as f (x) = y . In this case, y is
called the image of x, and x is called the pre-image of y under
f.
The symbol f (x) is read as ”f of x”.
Function
Example
1 Let A = {1, 2, 3, 4} and B = {1, 6, 8, 11, 15}. which of the
following are functions from A to B.
(a) f defined by
f (1) = 1, f (2) = 6, f (3) = 8, f (4) = 8.
(b) f defined by f (1) = 1, f (2) = 6, f (3) = 15.
(c) f defined by
f (1) = 6, f (2) = 6, f (3) = 6, f (4) = 6.
(d) f defined by f (1) = 1, f (2) = 6, f (2) =
8, f (3) = 8, f (4) = 11.
2 Is f (x) = x 2 a function from R to R?
Function
Example
Let A = {1, 2, 3} and B = {1, 2, 3, · · · 10}. Determine Dom(f ),
Range(f ) and Codomain(f ), given that f : A → B is a function
defined by f (x) = x 2 .
Example
Determine the domain for the following functions.
2x
(a) f (x) = −3x + 5 (b) f (x) =
√ 3x −5
(c) f (x) = 3x − x 2
Function
Operations of functions
Let f (x) and g (x) be functions.
1 (f + g )(x) = f (x) + g (x) The sum of two functions.
2 (f − g )(x) = f (x) − g (x) The difference of two functions.
3 (f .g )(x) = f (x).g (x) The product of two functions.
f f (x)
4 (x) = The quotient of two functions(provided
g g (x)
g (x) 6= 0).
Function
Example
1 Let f = {(2, z), (3, q)} and g = {(a, 2), (b, 3), (c, 5)}. Find
fog and its domain.
2 Given f (x) = 5x 2 − 3x + 2 and g (x) = 4x + 3 find fog (−2),
gof (−2), fog (x) and gof (x)
x 2
3 If f (x) = and g (x) = , find fog (x), gof (x) and
x +1 x −1
their domains.
Function
Example
x 2 − 25
The functions f (x) = and g (x) = x + 5 are not equal.
x −5
Why?
Function
Types of functions
Definition
A function f : A → B is called one to one, often written 1 − 1, if
and only if for all x1 , x2 ∈ A, f (x1 ) = f (x2 ) implies x1 = x2 . In
other words, no two elements of A are mapped to one element of
B.
Example
Let A = {1, 2, 3, 4} and B = {1, 4, 7, 8}.
(i) f : A → B defined as
f (1) = 1, f (2) = 4, f (3) = 4, f (4) = 8 is not 1 − 1.
(ii) f : A → B defined as
f (1) = 4, f (2) = 7, f (3) = 1, f (4) = 8 is 1 − 1.
Definition
A function f : A → B is called an onto function(or f maps onto B )
Function
Definition
A function f : A → B is called an onto function(or f maps onto B )
if every element of B is image of some element in A, i.e,
Range(f ) = B.
Example
f : R → R defined by f (x) = 3x + 5 is onto.
f : R → R defined by f (x) = x 2 is not onto.
Definition
A function f : A → B is called said to be a 1 − 1 correspondence if
f is both 1 − 1 and on to.
Function
Inverse of a function
Definition
Let f is a function whose domain is A, and whose codomain is B.
Then f is invertible if there exists a function g with domain B and
codomain A, with property:
f (x) = y ⇔ g (y ) = x
Example
Find the inverse of the following functions, if exist.
x
(a) f (x) = x 3 f (x) =
x +2
Properties
If f : A → B and g : B → C are invertible,then
(a) (f −1 )−1 = f
(b) (f −1 of )(x) = x
(c) (fof −1 )(y ) = y
(d) (fog )−1 = g −1 of −1
Function
Polynomial function
Definition
A polynomial function is a function of the form
Example
f (x) = 2x 5 − 3x 4 − x 3 + 5x + 7 is a polynomial function of degree
5. g (x) = 2x −3 − 4x 2 + 10 is not polynomial function (Why?)
Remark:
A polynomial of degree 1 is called a linear function.
A polynomial of degree 2 is called quadratic function.
A polynomial of degree 3 is called a cubic function.
Properties
The domain of the polynomial function is the set of real
number.
The graph of a polynomial is a smooth unbroken curve. The
word smooth means that the graph does not have any sharp
corners as turning points.
Function
Definition
The zero (sometimes called roots) of a function f is (are) the
value(s) of x such that f (x) = 0.
Example
x = −2 and x = −3 are the zeros of a quadratic function
f (x) = x 2 + 5x + 6.
Example
Determine the quotient, and remainder obtained when
p(x) = x 4 − 1 is divided by d(x) = x 2 + 2x
Example
Find the remainder found in dividing P(x) = x 3 − x 2 + 3x − 1 by
(a) x − 2 (b) x − 3.
Example
Which of the following is a factor of f (x) = x 3 + 3x 2 − 4x − 12?
(a) x − 2 (b) x + 3 (b) x + 2
Example
Show that 2x 4 − 3x 2 + 5x − 7 = 0 has atleast one real root on
[1, 2].
Example
Factorize the following polynomial functions.
(a) f (x) = x 3 − x62 − 16x
(b) f (x) = 3x 2 − 10x + 8
(c) f (x) = 2x 4 + 8x 3 + 10x 2
Example
Find all the zeros of the function p(x) = 2x 3 + 3x 2 − 23x − 12.
Function
Definition
n(x)
A rational function is a function of the form f (x) = , where
d(x)
n(x) and d(x) are polynomial functions and d(x) 6= 0.
Example
1 2+x x 5 + 2x 3 − x + 1
f (x) = , g (x) = 2 and h(x) = are
x x + 5x + 6 x 2 + 3x
rational functions.
n(x)
Note that the domain of the rational function f (x) = is
d(x)
{x : d(x) 6= 0}.
Function
Example
Find the domain and the zero(s) of the following functions.
3x − 5 1
(a) f (x) = 2 (b) f (x) = 3
x − x − 12 x − 4x
Informal definition of limits
x approaches a+ , x approaches of a− , x approaches to +∞, x
approaches to −∞.
Graph of rational functions
To sketch the graph of a function, the following information are
important.
Domain, intercepts, asymptotes, Maximum and minimum values,
etc. Define the following!
Domain?
Intercept: the x intercept, y intercept.
Asymptotes: Vertical asymptote(s), Horizontal asymptote(s),
Oblique asymptote(s).
Function
Example
Sketch the graphs of
1 1
(a) f (x) = (b) g (x) = , where n is positive integer.
x (x − a)n
Example
Find the Horizontal asymptote(s) of
3x 3 − x 2 + 5x − 9
(a) f (x) = 4
2x − 5x 3 + x 2 + x − 6
3x 3 − x 2 + 5x − 9
(b) g (x) = 3
2x + 4x 2 + 5x + 2
−x 2 + 4x + 3
(c) h(x) = 3
5x − 3x 2 + 7x + 8
Function
Example (Exercise)
Sketch the graphs of
x +2 x 2 + 3x + 2
(a) f (x) = (b) g (x) =
x −1 x2 − 1
Function
Exponential function
Definition
For a natural number n and a real number x, the nth power of x is
defined as
x n = x.x.
| {z · · · .x}
n times
Example
25 = 2 × 2 × 2 × 2 × 2 = 32
1 3 1 1 1 −1 × −1 × −1 1
− =− ×− ×− = =−
3 3 3 3 3×3×3 27
Function
Example
x
1
f (x) = 2x , g (x) = and h(x) = e x are exponential functions.
3
Function
Example
x
1
Sketch the graphs of (a) f (x) = 3x (b) g (x) =
3
Example (Exercise)
Sketch the graphs of (a) f (x) = 3x + 1 (b) g (x) = 3x+1
(c) g (x) = −9−x + 3
Function
Logarithm function
Example
f (x) = log2 x, g (x) = log 1 x are logarithm functions.
2
Function
Example
Sketch the graphs of (a) f (x) = log2 x (b) g (x) = log 1 x
2
Definition
Common Logarithm: f (x) = log10 x is called common logarithm
function. We simply write as f (x) = log x.
Natural Logarithm: f (x) = loge x is called natural logarithm
function. We simply write as f (x) = ln x.
Matrix, Determinant and Systems of linear equations
Getachew Bitew
Department of Mathematics
Addis Ababa University
2021/22
Matrix, Determinant and Systems of linear equations
Out lines
Matrix
Definition
A matrix with m rows and n columns is a rectangular array of
numbers of the form
a11 a12 . . . a1n
a21 a22 . . . a2n
. . .
,
. . .
. . .
am1 am2 . . . amn
Definition
A matrix with a single column (or an n × 1 matrix) is called a
column vector(or column matrix). A matrix with single row( or
1 × n matrix) is called a row vector( or row matrix).
Matrix, Determinant and Systems of linear equations
Example
5
A = 6 is a column vector(matrix) and B = 1 2 3 is
11
a row vector(matrix).
Definition
An m × n matrix A = (aij ) is said to be the zero (null) matrix if
aij = 0 for all i, j.
Example
0 0
0 0
O= is a 2 × 2 zero matrix, O = 0 0 is a 3 × 2
0 0
0 0
zero matrix.
Matrix, Determinant and Systems of linear equations
Definition
A matrix A = (aij )m×n is called a square matrix of order n( or an n
square matrix) if m=n.
Example
5 4 1
A = −1 0 2 is a square matrix.
0 3 −6
Definition
The entries a11 , a22 , a33 , ...ann are called the main (principal)
diagonal elements of a square matix (aij )n .
Matrix, Determinant and Systems of linear equations
Example
content...
Matrix, Determinant and Systems of linear equations
Equality of Matrices
Definition
Two matrices A and B are said to be equal( written as A = B) if
they have the same size and their corresponding elements are
equal.
Example
1 2 −1 1 2 w
A = 2 −3 4 and B = 2 x 4 are equal if and
0 −4 5 y −4 z
only if w = −1, x = −3, y = 0, z = 5.
Matrix, Determinant and Systems of linear equations
Matrix algebra(operations)
Matrix algebra
αA = (αaij )m×n
Example
3 −2 1
Let A = . Find 3A.
0 4 2
Matrix, Determinant and Systems of linear equations
Matrix algebra(operations)
Addition of Matrices
Definition
Let A = (aij )m×n and B = (bij )m×n be two matrices. The sum of
A and B, denoted by A + B is defined by
Example
−3 5 −1 4 −4 −6
Let A = and B = . Find
1 −1 7 5 11 4
A + B and B + A
Matrix, Determinant and Systems of linear equations
Matrix algebra(operations)
Properties
Theorem
Let A, B, C be m × n matrices and α, β be constants. Then
(a) + is commutative
(b) + is associative
(c) Existence of additive identity
(d) Existence of an additive inverse matrix
(e) scalar multiplication is distributive over addition.
(f) (α + β)A = αA + βA
(g) (αβ)A = α(βA) = β(αA)
(h) 0A = O, αO = O
Matrix, Determinant and Systems of linear equations
Matrix algebra(operations)
Multiplication of Matrices
Definition
Let A = (aij )m×n and B = (bij )n×p matrices. Then the matrix
product AB is defined as C = (cij )m×p with entries
cij = ai1 b1j + ai2 b2j + ai3 b3j + ... + ain bnj
Xn
= aik bkj , for 1 ≤ i ≤ m, 1 ≤ j ≤ p
k=1
Example
−1 3
0 −5
Let A = 1 −2 , B =
,
−3 2
0 4
1 −3 4
C= . Then find AB, BA, AC and CA (if exist).
−2 0 1
Matrix, Determinant and Systems of linear equations
Matrix algebra(operations)
Matrix algebra(operations)
Transpose of matrix
Definition
The transpose of a matrix A = (aij )m×n , is the matrix
At = (aji )n×m .
Example
5 −4 7
Find At for A = 0 6 −10 .
−4 3 1
Matrix algebra(operations)
Example
content...
Matrix, Determinant and Systems of linear equations
Matrix algebra(operations)
Example
Usingelementary row
operations, transform the matrix
3 12 6
A = 1 1 −1 to an upper triangular matrix.
1 2 3
Matrix, Determinant and Systems of linear equations
Matrix algebra(operations)
Example
content...
Matrix, Determinant and Systems of linear equations
Matrix algebra(operations)
Definition
A matrix A = (aij )m×n is a row reduced echelon form of a matrix if
(a) A is a row echelon form
(b) If a column contains a leading 1, then all other
entries in that column are zero
Example
content...
Remark: We apply a sequence of elementary operations on a
matrix A to obtain its row echelon or row reduced echelon form.
Example
Find
a row echelon androw reduced forms of the matrix
−1 2 −5
A = 2 −1 6
1 1 3
Matrix, Determinant and Systems of linear equations
Matrix algebra(operations)
Rank of a matrix
Definition
The rank of a matrix A, denoted by rank(A), is the number of non
zero rows(columns) of its equivalent row echelon form of a matrix.
Example
Find the rank
of the following
matrices.
1 1 2 1 2
(a) A = 2 2 5 (b) B = −2 4
3 3 2 0 −3
Matrix, Determinant and Systems of linear equations
Matrix algebra(operations)
Inverse of a Matrix
Definition
Let A be a square matrix of size n. The matrix A is said to be
invertible (non-singular) if there exist a square matrix B of size n
such that AB = BA = In .
Example
2
− 35
5 1 3
Verify that B = 1 1 is an inverse of A = .
5 5 −1 2
Example
Find the determinants of the following
matrices.
−3 5 1 2
(a) A = −2 (b) A = (c) A =
1 4 3 6
Matrix, Determinant and Systems of linear equations
Definition
Let A = (aij )n be a matrix and Aij be an n − 1 × n − 1 sub matrix
of A obtained from A by deleting the i th row and the j th column.
(a) The minor of aij ,denoted by Mij is the determinant of
Aij .
(b) the cofactor of aij , denoted by Cij is defined as
Cij = (−1)i+j Mij
(c) Matrix of Cofactors of a matrix, denoted by C is a
matrix C = (Cij )n .
Example
1 −1 2
Let A = −2 0 5 . Find M11 , M12 , M22 , M32 ,
−3 4 3
C11 , C12 , C22 , C32
Matrix, Determinant and Systems of linear equations
Definition
For a square matrix A = (aij )n ,
Pn
(a) det(A) = ai1 Ci1 +ai2 Ci2 +....+ain Cin = k=1 aik Cik ,
where, 1 ≤ i ≤ n.
(Cofactor expansion along the i th row)
(b) det(A) = a1j C1j +a2j C2j +....+anj Cnj = nk=1 akj Ckj ,
P
where, 1 ≤ j ≤ n.
(Cofactor expansion along the j th column).
Example
content...
Matrix, Determinant and Systems of linear equations
Properties of determinant
det(A) = 0
det(AB) = det(A)det(B)
Adjoint of a matrix
Definition
Let A be n × n matrix and Cij denote the cofactor of aij . The
adjoint of A, denoted by adj(A), is the transpose of the matrix of
cofactors, C = (Cij )n .
Corollary
If A is an invertible matrix, then A−1 = 1
det(A) adj(A)
Matrix, Determinant and Systems of linear equations
Example
Find the inverse
of each ofthe following matrices(if
exist).
2 3 −4 1 2 2
(a) A = 0 −4 2 (b) B = 1 3 1
1 −1 5 1 1 3
Matrix, Determinant and Systems of linear equations
Definition
A system of m linear equations in n unknowns x1 , x2 , ...xn is a set
of linear equations given by
AX = B (1)
t
where A = (aij )m×n , X = x1 x2 . . . xn , and
t
B = b1 b2 . . . bm
A matrix A of the system (1) is called the coefficient matrix,
and the matrix obtained by adjoining the column vector B at
the end to the matrix A is called the augmented matrix of
the system, denoted by M = (A|B) or M = (A : B).
If B = O, the system (1) is called homogenous; otherwise, it
is called non homogenous.
Matrix, Determinant and Systems of linear equations
Example
Given a system
2x1 + x2 − 5x3 = 5
x2 + x2 − 4x3 = 0
−5x1 − 6x3 = 12
Determine
(a) The coefficient and the augmented matrices.
(b) The matrix form of the system.
Matrix, Determinant and Systems of linear equations
Example
Using Gaussian elimination method, solve the system of linear
equations.
x + 2y + z = 3
2x + 3y − z = −6
3x − 2y − 4z = −2
Matrix, Determinant and Systems of linear equations
Theorem
Let A be an invertible n × n matrix, Axi denote the matrix
obtained from A by replacing the i th column of A with the n-
vector B. If |A| =
6 0, the linear system AX = B, where
t
X = x1 x2 . . . xn has a unique solution given by
det(Axi )
xi = det(A) where i = 1, 2, 3, ..., n
[Link]’s rule:
Example
Using Cramer’s rule, solve the system of linear equations.
2x1 − x2 = 0
−x1 + 2x2 − x3 = 0
−x2 + x3 = 1
Matrix, Determinant and Systems of linear equations
4. Inverse method:
Theorem
If A is an invertible matrix, the linear system AX = B has a unique
solution, which is given by
X = A−1 B