Professional Documents
Culture Documents
Department of Mathematics
Gebre Hiluf
ii
By Gebre Hiluf
ADU
Contents
3 Functions 27
3.1 Review of Relations and Functions . . . . . . . . . . . . . . . . . . . 27
3.2 Real-valued Functions and their properties . . . . . . . . . . . . . . . 32
3.3 Types of functions (one to one, onto) and inverse of a function . . . . 35
3.3.1 One-to- One Functions . . . . . . . . . . . . . . . . . . . . . . 35
3.3.2 Onto Functions . . . . . . . . . . . . . . . . . . . . . . . . . . 37
3.3.3 One-to-One Correspondence . . . . . . . . . . . . . . . . . . . 39
3.3.4 Inverse of Functions . . . . . . . . . . . . . . . . . . . . . . . 43
3.4 Polynomial and Rational Functions . . . . . . . . . . . . . . . . . . . 45
3.4.1 Polynomial Functions . . . . . . . . . . . . . . . . . . . . . . . 45
3.4.2 Rational Functions . . . . . . . . . . . . . . . . . . . . . . . . 65
By Gebre Hiluf
ADU
Chapter 1
Introduction
The term ’logic’ came from Greek word ’logos’, which means thought. There are
many thought processes such as reasoning, remembering, imagining. Reasoning is
a thought process in which inference takes place. Logic is the science of reasoning.
That is, the word logic refers to the use and study of correct (valid) reasoning. Logic
contains rules and techniques to formalize statements to make them precise. Logic
is studied by philosophers, mathematicians and computer scientists.
Any ’ formal system’ can be considered a logic if it is:
- a well-defined syntax ;
- a well-defined semantics;
æ The syntax of a logic defines the syntactically acceptable objects of the lan-
guage, which are properly called well-formed formulae.
The area of logic that deals with propositions is called Propositional Logic.
Logic has been studied through the ages to exercise the mind’s ability to reason.
Understanding logic will enable you to think clearly, communicate effectively, make
more convincing arguments, and develop patterns of reasoning that will help you
in making decisions. It will also help you detect the fallacies in the reasoning or
arguments of others such as advertisers and politicians.
Definition 1.1
A declarative sentence that is either true or false, but not both is called
proposition or statement. Sentences which are exclamatory, interrogative
or imperative in nature are not propositions.
Logical Values or Truth Values: There are two logical values, true denoted by
T or 1 and false denoted by F or 0 .
Example 1.1
Which of the following are statements? If it is a statement, determine if possible
whether it?s true or false.
(a). The sun rises in the East.
(b). 2 + 2 = 3.
(c). Is Ethiopia in Africa?
(d). Give me a cafe mocha!
(e). What a great book!
(f). Calvin Butterball is a math major.
(g). x + 1 = 2
(h). 4 + 5
By Gebre Hiluf
ADU
3 Chapter 1. Logic and Set Theory
Solution:
(a). ”The sun rises in the East.” is a statement. We can see that it is a general
truth. So it has a truth value of T.
(e). ”What a great book!” is not a statement - it?s an exclamatory sentence, i.e.
Some one is expressing an opinion.
(g). ”x + 1 = 2”
(h). ”4 + 5” is not a statement. It would be read ”Four plus five”, which is not a
sentence since it does n?t have a verb. (Things like ”4 + 5” are referred to as
terms or expressions.) Since proofs are composed of statements, you should
never have isolated phrases (like ”4 + 5” or ”(a + b)2 ”) in your proofs. Be
sure that every line of a proof is a statement. Read each line to yourself to
be sure.
By Gebre Hiluf
ADU
1.1. Definition and Examples of Proposition 4
Definition 1.2
Propositions whose truth or falsity do not depend on the truth or falsity of
any other propositions are called atomic propositions (or primitive or simple
statements).
Simple statement is a sentence that conveys only one idea. All of the above examples
of propositions are atomic.
æ Now, rather than write out propositions in full, we will abbreviate them by
using propositional variables
It is standard practice to use the lower-case English letters
p, q, r, . . .
Examples:
p: it is raining.
p represents the proposition ”it is raining”.
q: the streets are wet.
q represents the proposition ”the streets are wet”.
Proposition constructed using one or more propositions are called compound propo-
sition. The propositions are combined together using Logical Connectives or
Logical Operators
Truth Table
Since we need to know the truth value of a proposition in all possible scenarios, we
consider all the possible combinations of the propositions which are joined together by
Logical Connectives to form compound proposition. This compilation of all possible
scenarios in a tabular format is called a truth table.
By Gebre Hiluf
ADU
5 Chapter 1. Logic and Set Theory
1.2.1 Negation
It is an unary connective, that is it associated with only one statement. It is in the
sense of ”NOT” (not happening of the statement). That is, any proposition can be
prefixed by the word ?not? to form a second proposition called the negation of the
original.
Definition 1.3
If p is any proposition, then the negation of p is denoted by ¬p, which when
translated to simple English means:-
”It is not the case that p” or simply ”not p”.
The truth value of ¬p is the opposite of the truth value of p.
That is, ¬p is T if p is F, and ¬p is F if p T
p ¬p
T F
F T
By Gebre Hiluf
ADU
1.2. Logical Connectives 6
1.2.2 Conjunction ( ∧ )
Any two propositions can be combined to form a third proposition called the con-
junction of the original propositions. The nature of this connective is in the sense of
”and” (happening of both of the statements).
Definition 1.4
If p and q are arbitrary propositions, then the conjunction of p and q is written
p∧q
p q p∧q
T T T
T F F
F T F
F F F
1.2.3 Disjunction ( ∨ )
Any two propositions can be combined by the word ’ or ’ to form a third proposition
called the disjunction of the originals. The nature of this connective is in the sense
of ”OR” (happening of at least any one of the statements).
By Gebre Hiluf
ADU
7 Chapter 1. Logic and Set Theory
Definition 1.5
If p and q are arbitrary propositions, then the disjunction of p and q is written
p∨q
and will be true iff either p is true, or q is true, or both p and q are true.
p q p∨q
T T T
T F T
F T T
F F F
By Gebre Hiluf
ADU
1.2. Logical Connectives 8
1.2.4 Implication ( =⇒ )
One of the most frequently used types of statements in mathematics is the so-called
conditional statement. Given statements p and q, a statement of the form ”If
p then q” is called a conditional statement. It seems reasonable that the truth
value (true or false) of the conditional statement ”If p then q” depends on the
truth values of p and q. The statement ”If p then q” means that q must be true
whenever p is true. or ”whenever p is true, q is true too.”
Definition 1.6
If p and q are arbitrary propositions, then the conditional of p and q is written
p =⇒ q
and will be true iff either p is false or q is true. Or It is false when p is true and
q is false and true otherwise.
By Gebre Hiluf
ADU
9 Chapter 1. Logic and Set Theory
Example 1.2
Suppose that I say
(a). Suppose that both p and q are true. That is, it is not raining and Ribka is
riding her bike. In this case, it seems reasonable to say that I told the truth
and that is true.
(b). Suppose that p is true and q is false or that it is not raining and Ribka is not
riding her bike. It would appear that by making the statement, ”If it is not
raining, then Ribka is riding her bike”, that I have not told the truth. So in
this case, the statement is false.
(c). Now suppose that is p false and q is true or that it is raining and Ribka
is riding her bike. Did I make a false statement by stating that if it is not
raining, then Ribka is riding her bike? The key is that I did not make
any statement about what would happen if it was raining, and so
I did not tell a lie. So we consider the conditional statement, ”If it is not
raining, then Ribka is riding her bike,” to be true in the case where it is
raining and Ribka is riding her bike.
(d). Finally, suppose that both p and q are false. That is, it is raining and Ribka
is not riding her bike. As in the previous situation, since my statement was
p ⇒ q, I made no claim about what would happen if it was raining, and so
I did not tell a lie. So the statement cannot be false in this case and so we
consider it to be true.
By Gebre Hiluf
ADU
1.2. Logical Connectives 10
- If the moon is made of green cheese then you get a PhD in physics
True!
- If John has a smartphone then 2 + 3 = 6:
False if John does have a smartphone
True if he does NOT
• p implies q; • q when p;
• if p, q;
• q whenever p;
• p only if q;
• q follows from p
• p is sufficient for q;
• q if p; • q is necessary for p.
For Example, ”If It is raining, then streets are wet.” can be expressed as:
Raining implies streets are wet. Or Streets are wet whenever it is raining. Or
Streets being wet follows from there being a rain. and so on.
q =⇒ p is the converse of p =⇒ q
¬p =⇒ ¬q is the inverse of p =⇒ q
¬q =⇒ ¬p is the contra-positive of p =⇒ q
By Gebre Hiluf
ADU
11 Chapter 1. Logic and Set Theory
Definition 1.7
If p and q are arbitrary propositions, then the bi-conditional of p and q is written:
p ⇐⇒ q
and will be true if they have the same truth value , i.e, if either
1. p and q are both true; or
Example 1.3
Let
p: You buy an airline ticket.
q: You can take a flight.
p ⇔ q: You can take a flight if and only if you buy an airline ticket.
By Gebre Hiluf
ADU
1.3. Compound(or Complex) Proposition 12
Order of precedence
As a way of reducing the number of necessary parentheses, one may introduce prece-
dence rules: ¬ has higher precedence than ∧, ∧ higher than ∨ , and ∨ higher than
⇒.
Here is a table that shows a commonly used precedence of logical operators.
Examples:
By Gebre Hiluf
ADU
13 Chapter 1. Logic and Set Theory
The order of precedence determines which connective is the ”main connective” when
interpreting a non-atomic formula.
In most cases, it?s best for the sake of clarity to use parentheses even if they aren?t
required by the precedence rules.
Example 1.4
Write the following statement symbolically, and then make a truth table for the
statement. ”If I go to the mall or go to the movies, then I will not go to the gym.”
Solution:
Suppose we set
p: I go to the mall; q: I go to the movies; r: I will go to the gym
The proposition can then be expressed as ”If p or q, then not r,” or (p ∨ q) ⇒ ¬r.
p q r p∨q ¬r (p ∨ q) ⇒ ¬r
T T T T F F
T T F T T T
T F T T F F
T F F T T T
F T T T F F
F T F T T T
F F T F F T
F F F F T T
When building a truth table for a compound proposition, you need a row for every
possible combination of T0 s and F0 s for the component propositions.
Notice that a truth table for a statement involving n different propositions have 2n
rows (plus the header).
It is not always so clear cut how many columns one needs. If we have only three
propositions p, q, and r, you would, in theory, only need four columns: one for each
of p, q, and r, and one for the compound proposition under discussion, which is
(p ∨ q) ⇒ ¬r in above example.
By Gebre Hiluf
ADU
1.3. Compound(or Complex) Proposition 14
In practice, however, you will probably want to have a column for each of the suc-
cessive intermediate propositions used to build the
final one. In this example it is convenient to have a column for p ∨ q and a column
for ¬r, so that the truth value in each row in the column for (p ∨ q) ⇒ ¬r is easily
supplied from the truth values for p ∨ q and ¬r in that row.
Another reason why you should show the intermediate columns in your truth table is
for grading purposes. If you make an error in a truth table and do not give this extra
information, it will be difficult to evaluate your error and give you partial credit.
Equivalence of Propositions
Definition 1.9
Two propositions P and Q are logically equivalent if they always have the
same truth value
We write this as P ≡Q
Example 1.5
Show that
(i) The implication p ⇒ q is equivalent to ¬p∨q and its contra-positive ¬q ⇒ ¬p
(ii) neither the converse nor the inverse of an implication are equivalent to the
implication
Solution:
p q ¬p ¬q p⇒q ¬p ∨ q ¬q ⇒ ¬p
T T F F T T T
(i) T F F T F F F
F T T F T T T
F F T T T T T
By Gebre Hiluf
ADU
15 Chapter 1. Logic and Set Theory
By Gebre Hiluf
ADU
1.4. Tautology and Contradiction 16
Example 1.6
Show that ¬(p ∨ (¬p ∧ q)) ≡ (¬p ∧ ¬q)
Solution:
¬(p ∨ (¬p ∧ q)) given proposition
¬p ∧ ¬(¬p ∧ q) De Morgan’s law
¬p ∧ (¬¬p ∨ ¬q) De Morgan’s law
¬p ∧ (p ∨ ¬q) Double negation law
(¬p ∧ p) ∨ (¬p ∧ ¬p) Distributive law
F ∨ (¬p ∧ ¬q) Complement law
(¬p ∧ ¬q) ∨ F Commutative law
¬p ∧ ¬q Identity law
Example 1.7
Determine whether the following proposition is tautology, contradiction or neither.
(i) ¬p ∧ (q ⇒ p) (ii) (p ∧ q) ⇒ (p ∨ q) (iii) ¬q ∧ (p ∨ q)
Solution:
Let’s draw one truth table for all the three compound propositions
p q ¬p ¬q p ∧ q p ∨ q q ⇒ p ¬p ∧ (q ⇒ p) (p ∧ q) ⇒ (p ∨ q) ¬q ∧ (p ∧ 75q)
T T F F T T T F T F
T F F T F T T F T F
F T T F F T F F T F
F F T T F F T T T F
Column 9 indicates (p∧q) ⇒ (p∨q) is tautology, column ¬q∧(p∧q) is contradiction,
By Gebre Hiluf
ADU
17 Chapter 1. Logic and Set Theory
By Gebre Hiluf
ADU
1.6. The Concept of a Set and the Underlying Set Operation 18
Examples: the set of students in this room; the English alphabet may be viewed
as the set of letters of the English language; the set of natural numbers1; etc.
So sets can consist of elements of various natures: people, physical objects, numbers,
signs, other sets, etc. (We will use the words object or entity in a very broad way
to include all these different kinds of things.) A set is an ABSTRACT object; its
members do not have to be physically collected together for them to constitute a set.
By Gebre Hiluf
ADU
Chapter 2
Properties of Integers Z
All the properties of natural numbers listed in theorem 1 also hold for integers. In
addition to them the following properties hold.
am < bm if m > 0
am > bm if m < 0
Rational Numbers
Definition 2.1
The set of rational numbers, denoted by Q, is defined as
na o
Q= : a, b ∈ Z and b 6= 0
b
a
Note that Z ⊂ Q, because 1
= a, ∀a ∈ Z
By Gebre Hiluf
ADU
21 Chapter 2. Real and Complex Number system
a
3. If b
is rational number and m is non-zero integer
a a×m a a÷m
= and =
b b×m b b÷m
.
3 3×5 15 36 36 ÷ 12 3
For example: = = = =
4 4×5 20 60 60 ÷ 12 5
.
i: If the division process ends (the remainder is zero). The decimal is called
terminating
ii: If the division process does not terminate (the remainder never become zero )
Examples
Every Terminating decimal d can be expressed as fraction (or rational, i.e a ratio of
two integers) using the formula given below.
10n × d
d=
10n
where n is the number of digits after the decimal point
Example 2.1
Express the decimal number d = 2.128 as a fraction
Solution:
Since n = 3
103 × 2.128 2128 266
d = 2.128 = 3
= =
10 1000 125
By Gebre Hiluf
ADU
2.1. The Real Number System 22
Every repeating decimal can also be expressed as fraction using the following formula
d × (10k+p − 10k )
d= ,
10k+p − 10k
where k = no of non repeating and p = no of repeating digits after the decimal point
Example 2.2
Express the decimal number d = 0.375 as a fraction
Solution:
Since k = 1 and p = 2
Irrational Numbers
Definition 2.2
A decimal number that is neither terminating nor repeating is called irrational
number.
Example 2.3
The following are some examples irrational numbers
i. π = 3.14159265358 · · ·
ii. 0.1611661116111116 · · ·
iii. e = 2.718281828459 · · ·
√
iv. a if a is not perfect square natural number like 2, 3, 5, 6, . . .
By Gebre Hiluf
ADU
23 Chapter 2. Real and Complex Number system
Definition 2.3
The set of real number, denoted by R, can be described as union of rational and
irrational numbers.
Example 2.4
Decide whether the following sets are bounded above, bounded below or bounded
or none of the these.
a) A = {x : x2 ≤ 1} d) A = {x : x3 < 27}
Solution:
a) A = {x : x2 ≤ 1} = {x : −1 ≤ x ≤ 1}
√ or [−1, 1]
the upper bounds of this can be 1, 3, 100 etc. and the lower bounds can
be −1, −5, −1000, etc.
By Gebre Hiluf
ADU
2.1. The Real Number System 24
d) A = {x : x3 < 27}
e) A = {x : x2 < 6}
f) A = {x : x2 > 2}
Definition 2.5
Let A be a nonempty subset of R
A number M0 is a least upper bound (lub) of A if
1. M0 is an upper bound of A
1. m0 is a lower bound of A
The lub of A is also called supremum of A (supA). The glb of A is also called infi-
mum of A (infA).
• If a set has a maximum, then the maximum is also the supremum, but the
converse is not true.
• A finite set always has a maximum (which is also a supremum), but an infinite
set need not have a maximum.
By Gebre Hiluf
ADU
25 Chapter 2. Real and Complex Number system
Example 2.5
The following can be taken as examples for justifications of the above remarks
a) If A = { n1 : n = 1, 2, 3, . . . }, then 1 is both max and sup of A.
By Gebre Hiluf
ADU
2.2. Complex Number System 26
By Gebre Hiluf
ADU
Chapter 3
Functions
An ordered pair the pair of elements that occur in particular( or fixed) order
and enclosed in brackets.
In an ordered pair (a, b) : a is called the first component and b is called second
component.
Definition 3.2: Equality of Ordered Pairs
Two ordered pairs are equal if and only if the corresponding first components
are equal and corresponding second components are equal. i.e,
Example 3.1
Find the value of x and y if (2x − 3, y + 1) = (x + 5, 7)
3.1. Review of Relations and Functions 28
Solution:
By equality of ordered pairs, we have 2x − 3 = x + 5 and y + 1 = 7
⇒ 2x − x = 5 + 3 ⇒ x = 8 and y = 7 − 1 ⇒ y = 6
Note:
2. Both elements of ordered pair can be the same like (2, 2), (5, 5) etc.
A × B = {(x, y) : x ∈ A and y ∈ B}
Example 3.2
a) If A = {7, 8} and B = {2, 4, 6}, find A × B
Solution:
A × B = {(7, 2); (7, 4); (7, 6); (8, 2); (8, 4); (8, 6)}
b) If A × B = {(p, x); (p, y); (p, z); (q, x); (q, y); (q, z)}, then find A and B.
Solution:
A is the set of all first entries in ordered pairs in A × B. Similarly
B is the set of all second entries in ordered pairs in A × B.
Thus A = {p, q} and B = {x, y, z}
By Gebre Hiluf
ADU
29 Chapter 3. Functions
Note
i. A × B 6= B × A
ii. If either A or B are null sets, then A × B will also be an empty set. i.e, if
A = ∅ or B = ∅, then A × B = ∅
Relation
If A and B are two nonempty sets, then the relation R is a subset of A × B.
If (a, b) ∈ R, then we write it aRb and is read as ’a is related to b’.
Representation of Relations
The relation from set A to set B can be expressed in different forms:
R = {(a, b) : a ∈ A, b ∈ B, a . . . b }
The three dots will be replaced by the rule which associates a and b.
iii. Arrow diagram Draw two circles representing set A and set B.
Example 3.3
(a) Given A = {3, 4, 7, 10} , B = {5, 2, 8, 1} and the relation R from A to B is
defined as ’is less than’, can be represented in roster form as
R = {(3, 5), (3, 8), (4, 5), (4, 8), (7, 8)}
By Gebre Hiluf
ADU
3.1. Review of Relations and Functions 30
(c) The relation in (b) can be represented in arrow diagram form as follows
Each ordered pair of a relation R has two parts,an x-value and a y- value
Function
Definition 3.4: Function
A function from a set A to B, written f : A −→ B, is a relation f ⊂ A × B
such that that every element of A is assigned to exactly one element of B.
In logical notation
1. (∀x ∈ A) (∃y ∈ B)[(x, y) ∈ f ]
( No element of the domain must left unmapped.)
2. (x, y1 ) ∈ f ∧ (x, y2 ) ∈ f =⇒ y1 = y2
(No element of the domain may map to more than one element of )
By Gebre Hiluf
ADU
31 Chapter 3. Functions
The second condition says each x can have only one y, but it CAN be the same y as
another x gets assigned to.
For instance, it can be seen that the following is a function
Notation: f (x) read as ’f of x’ describes the out put( function value at x). It tells
us the name of the function f and the variable x.
For example, f (x) = 2x3 − 3x + 6 to find function value replace each instance of x
with the value given inside the parenthesis.
By Gebre Hiluf
ADU
3.2. Real-valued Functions and their properties 32
Domain of a function f (x) is the set of all values of x for which f (x) is defined.
There are two reasons why domains are restricted.
- you can not take the square( or other even) root of negative number, as the
result will be a real number.
p
n
(for an even natural n, expression ∈ R if expression ≥ 0)
f : A −→ B and f (x) = y
Here
A =Domain of f
B =Codomain of f
y =preimage of x under
x =preimage of y under f
range =subset of B with preimages
By Gebre Hiluf
ADU
33 Chapter 3. Functions
Example 3.4
Let f : Z −→ Z, f (x) = x2
Its Domain is Z, its Codomain is Z as well, but its range is {0, 1, 4, 9, 16, . . . }
Definition 3.6
Let A be a set. The mapping
f : A −→ R
Examples
Definition 3.7: : Even and Odd functions
Let f : (A ⊂ R) −→ R. We say f is
even if and only if the following holds true
Its graph is symmetric about the y−axis. i.e, for each point (x, y) on the graph
of f , (−x, y) is also on the graph of f .
Its graph is symmetric about the origin . i.e, for each point (x, y) on the graph
of f , (−x, −y) is also on the graph of f .
By Gebre Hiluf
ADU
3.2. Real-valued Functions and their properties 34
.
parity if it is either even or odd.
Example 3.5
examples of even and odd functions
A function f (x) periodic if the function values repeat at regular intervals of the
independent variable x. The regular interval is referred as the period
In other words
Let f : (A ⊂ R) −→ R. We say f is
p-periodic (0 6= p ∈ R) if and only if
x ∈ A ⇒ [x ± p ∈ A ∧ f (x ± p) = f (x)]
Example 3.6
Examples of periodic functions
By Gebre Hiluf
ADU
35 Chapter 3. Functions
Definition 3.9
Example 3.7
Let f : R −→ R show that
1. f (x) = 2x − 7 is increasing 2. f (x) = −4x + 3 is decreasing
Solution:
jk””
kakaka
kakka
kuku
jjja
By Gebre Hiluf
ADU
3.3. Types of functions (one to one, onto) and inverse of a function 36
Example 3.8
Let the function f : Z −→ Z be defined by f (x) = 2x + 1. Show that f is
one-to-one function.
Solution:
Suppose that x1 and x2 are arbitrary integers and f (x1 ) = f (x2 ). We need to show
that x1 = x2 .
Since f (x1 ) = f (x1 ), it follows that
Example 3.9
Let the function f : Z −→ Z be defined by f (x) = 3x2 + 2. Show that f is not
one-to-one.
Solution:
To show that f is not one-to-one, We need to find x1 6= x2 such that f (x1 ) = f (x2 ).
However, this is straight forward, we can take −1 and , and we get
By Gebre Hiluf
ADU
37 Chapter 3. Functions
Example 3.10
Prove that the function f : N −→ N be defined by f (n) = n2 is one-to-one.
Solution:
Let a, b ∈ N such that f (a) = f (b)
a2 − b 2 = 0
=⇒ (a − b)(a + b) = 0
=⇒ a = b or a = −b
Since the domain of f is the set of natural numbers, both a and b must be non
negative.
Thus a = b
This shows ∀a∀b[f (a) = f (b) =⇒ a = b] which shows f is injective on N.
f : A −→ B is onto ⇐⇒ ∀y ∈ B, ∃x ∈ A, f (x) = y
By Gebre Hiluf
ADU
3.3. Types of functions (one to one, onto) and inverse of a function 38
Example 3.11
Let the function f : Z −→ Z be defined by f (x) = 2x + 1. Show that f is not
onto.
Solution:
To show that f is not onto, we need to find y ∈ Z such that there does not exist
x ∈ Z with f (x) = y.
But, this straight forward, we can take y = 2.
1
Then if f (x) = 2x + 1 = 2, then x = ∈
/Z
2
Example 3.12
Let the function f : Z −→ Z be defined by f (x) = x + 5. Show that f is onto.
Solution:
Suppose that y ∈ Z is an arbitrary integer. We need to show that there exists
x ∈ Z such that f (x) = y
take x = y − 5 ∈ Z
Then f (x) = x + 5 = (y − 5) + 5 = y
It follows that f is onto
Example 3.13
Is the function f : R −→ R defined by f (x) = x2 + 2x surjective?
Solution:
No, the number y = −2 ∈ R has no pre-image since it can be easily shown
Example 3.14
Determine if the function f : R −→ R be defined by f (x) = x3 + 1 is surjection.
Solution:
We want show (WTS) for any y ∈ R there exists an x ∈ R such that x3 + 1 = y.
p
Solving for x gives x= 3 y−1
By Gebre Hiluf
ADU
39 Chapter 3. Functions
Definition 3.12
Example 3.15
Consider the f : R −→ R, f (x) = 4x + +1. Show that f is bijection.
Solution:
one to one (1-1). To show one-to-oneness of f , take x1 , x2 ∈ R.
4x1 + 1 = 4x2 + 1
=⇒ 4x1 = 4x2 =⇒ x1 = x2
Onto. Let y ∈ R such that f (x) = y. That is 4x + 1 = y
y−1
Solving for x we have, x = ∈R
4
y−1
f (x) = 4x + 1 = 4( )+1=y+1−1=y
4
This shows f is R onto R. and therefore, f is bijective.
By Gebre Hiluf
ADU
3.3. Types of functions (one to one, onto) and inverse of a function 40
Example 3.16
Show that f : R −→ A = [0, ∞), f (x) = x2 is not bijection.
Solution:
f is onto because for any y ∈ [0, ∞), ∃x ∈ R such that y = x2
√
Expressing x interms of y yields x = ± y,
√
And f (x) = x2 = (± y)2 = y
But f is not 1 − 1. Because x and x have the same image x2 , in particular
Example 3.17
Show that f : N −→ N, f (n) = n2 is not bijection.
Solution:
to show f is one to one. We will show m 6= m =⇒ f (m) 6= f (n) by proving its
contra-positive. f (m) = f (n). So
f (m) = f (n) =⇒ m2 = n2
m2 − n2 = 0 =⇒ (m − n)(m + n) = 0 =⇒ m = n or m = −n
By m = −n is not possible since we are assuming m, n are positive numbers.
Hence, we conclude m = n and so f is 1-1 on N
Compositions of Functions
Sometimes it is possible to combine functions when the input of( domain ) of one
function is a subset or equal to the range of another function. In this case, the out
put of one function is the input of the subsequent function.
By Gebre Hiluf
ADU
41 Chapter 3. Functions
Definition 3.13
Let g : A −→ B and f : B −→ C be functions.
We define a new function f ◦ g : A −→ C by declaring that
(f ◦ g)(x) = f (g(x))
Example 3.18
Let f, g : R −→ R be functions given by
Solution:
The previous example shows that while it is possible to create compositions in both
directions, resulting functions are not necessarily equal. In other words, the commu-
tative law does not hold for the composition of the functions.
In general, f ◦ g 6= g ◦ f
Theorem 3.1
Let h : A −→ B, g : B −→ C, and f : C −→ D are functions, then
(f ◦ (g ◦ h)) = ((f ◦ g) ◦ h)
Example/s
By Gebre Hiluf
ADU
3.3. Types of functions (one to one, onto) and inverse of a function 42
Theorem 3.2
Let g : A −→ B and f : B −→ B be arbitrary bijections. Then f ◦ g is a
bijection.
Proof
However, there are examples of f and g with f ◦ g is both 1-1 and onto but f is not
1-1 and g is not onto.
Definition 3.14
By Gebre Hiluf
ADU
43 Chapter 3. Functions
Theorem 3.3
Let f : A −→ B be a function. Then IB ◦ f = f = f ◦ IA
f −1 : B −→ A
i. f −1 (f (x)) = x, ∀x ∈ A
ii. f (f −1 (y)) = y, ∀y ∈ B
By Gebre Hiluf
ADU
3.3. Types of functions (one to one, onto) and inverse of a function 44
Theorem 3.4
Proof
Theorem 3.5
Let f : A −→ B.be a function. If f has an inverse g, then f must be a
bijection and the inverse is unique.
Proof
Example 3.19
x
Suppose f : R − {2} −→ R − {1} defined by f (x) = . Find its inverse.
x−2
By Gebre Hiluf
ADU
45 Chapter 3. Functions
Solution:
The function f −1 (x) = 2x
x−1
Example 3.20
Let f, g ∈ R2 be given by f (x) = 2x + 1 and g(x) = 12 x − 12 . Then g is the inverse
of f .
1 1 1 1
(f ◦ g)(x) = f (g(x)) = f x− =2 x− +1=x
2 2 2 2
1 1 1
(g ◦ f )(x) = g(f (x)) = g(2x + 1) = (2x + 1) = (2x + 1) − = x
2 2 2
Example 3.21
√
Let f : R −→ [0, ∞) and g : [0, ∞) −→ R be given by f (x) = x2 and g(x) = x.
Then g is not the inverse of f .
Solution: √
Although we have f (g(x)) = (√ x)2 = x, so f ◦ g = I[0,∞) .
When we consider g(f (x)) 2
p= x = x, we always get the positive square root,
for example g(f (−2)) = (−2)2 = 2
By Gebre Hiluf
ADU
3.4. Polynomial and Rational Functions 46
Definition 3.16
Let n be a non-negative integer and let an , an−1 , . . . , a2 , a1 , a0 be real numbers
with an 6= 0. Then the function defined by
Example 3.22
Let f (x) = 3x5 + 6x4 − 2x3 + 7x − 6. Then
3, 6, −2, 1, 7, −6 are coefficients
Notice that
ä For small degree polynomial the following names are usually used. Polynomial
of degree 1, 2, 3, 4, and 5 are called linear, quadratic, cubic, quartic
and quintic respectively.
By Gebre Hiluf
ADU
47 Chapter 3. Functions
Example 3.23
f (x) = 4x − 7 is linear
We usually write the terms in the polynomial from the largest to the smallest degree,
sometimes called the standard form of the polynomial.
Example 3.24
Find the degree, leading coefficient, leading term and constant term of the following
polynomial functions
(a) f (x) = 4x5 − 3x2 + 2x − 5 (c) h(x) = 4−x
5
Solution:
(d) It may seem that we have some work a head of us to get p(x) in the form of the
definition. However it is possible to glean the information requested about
k(x) with out multiplying out the entire expression (2x − 1)3 (x − 2)2 (3x + 2).
The leading term is the product of the leading terms of the factors of k(x)
(2x)3 x2 (3x) = 24x6 . So the degree of p is 6 , the leading coefficient of p is
24, and the constant term of f is obtained by multiplying the constant terms
from each factor (−1)3 (−2)2 (2) = −8.
By Gebre Hiluf
ADU
3.4. Polynomial and Rational Functions 48
Many functions in mathematics are constructed out of simpler ’building block’ func-
tions. In this section we consider some of the ways polynomial functions can be
combined to obtain new function.
If f and g are two polynomial functions and c is a fixed number, then we can construct
new functions using f + g, f − g, cf, f.g, fg .
To add or subtract two polynomials, we collect like term. That is, we add or subtract
the coefficients of the corresponding like terms. Like terms are terms that have the
same power of the variable.
Example 3.25
(a) If f (x) = 3x2 + x3 − x − 2 and g(x) = x3 − 2x2 + 1, then find f (x) + g(x)
(b) If p(t) = 2t3 − 5t2 + t − 7 and q(t) = 6t2 − t3 + 8t + 9, then find p(t) − q(t)
Solution
(a) Write f (x) in standard form f (x) = x3 − 3x2 − x − 2 and then operate
By Gebre Hiluf
ADU
49 Chapter 3. Functions
2. (Scalar) Multiples
Example 3.26
If f (x) = 2x3 + x − 3, then 10f (x) = 20x3 + 10x − 30
Example 3.27
If f (x) = 2x2 + x − 3 and g(x) = −x2 + 4x + 5, then
When we divide 47 by 5 we get ”9 with 2 left over ” and we write in various forms
47 2
5
=9+ 5
47 ÷ 5 equal 9 remainder 2
47 ÷ 5 = 9 25
47 = 9 × 5 + 2
By Gebre Hiluf
ADU
3.4. Polynomial and Rational Functions 50
We will use the same terminology when discussing polynomial division. The division
of the polynomial f (x) by the polynomial d(x) also produces a quotient q(x) and a
remainder r(x) and so we can write as
f (x) = d(x)q(x) + r(x)
+ The key idea in performing the division polynomial functions is to keep work-
ing with leading terms as in the following example
Example 3.28
Divide the polynomial f (x)5x4 − 7x3 + 2x − 4 by d(x) = x − 2 and the express the
division in the form f (x) = d(x)q(x) + r(x)
Solution:3
5x + 3x2 + 6x + 14 quotient
x − 2 )5x − 7x + 0.x + 2x − 4 (divide x2 into 5x4 , giving 5x3 )
4 3 2
The degree of the remainder is less than the degree of the divisor, since otherwise,
we would continue the division process.
In general, we can now write as
f (x) = d(x)q(x) + r(x)
where r(x) = 0 or 0 ≤ degree(r(x)) < degree(d(x))
By Gebre Hiluf
ADU
51 Chapter 3. Functions
Example 3.29
Divide the polynomial f (x)5x4 − 7x3 + 2x − 4 by d(x) = x2 − 2 and the express
the division in the form f (x) = d(x)q(x) + r(x)
Solution:
Arrange the dividen and the divisor
5x2 + 3x2 + 6x + 14
in descending powers of x
x2 − 2 ) 5x4 − 7x3 + 0.x2 + 2x − 4
Insert (with 0 coefficient) missing terms
5x4 + 0x3 − 5x2
Divide the first term of the dividen by
− 7x3 + 5x2 + 2x − 4
the first term of the divisor
−7x3 + 0.x2 + 14x
Multiply the divisor by 5x2 , line up
5x2 − 16x − 4
liketerms and then subtract
5x2 + 0.x − 10
Repeat the process until the degree of the
− 16x + 8
remainder is less than that of the divisor.
Proof
+ We should keep in mind that Remainder Theorem says nothing at all about
the quotient q(x) and works when we are dividing by a linear factor (x − a).
By Gebre Hiluf
ADU
3.4. Polynomial and Rational Functions 52
Example 3.30
Find the remainder when f (x) = x4 − 3x2 − 10x + 2 is dividing by
(a) (x − 3) (b) (x + 4) (c) (2x − 1)
Solution:
Example 3.31
The polynomial f (x) = x5 −7x3 +ax+1 has remainder 13 after dividing by (x−1).
Find the value of the coefficient a .
Solution:
The remainder is
By Gebre Hiluf
ADU
53 Chapter 3. Functions
Proof
Note that
Example 3.32
Which of the following are factors of f (x) = x3 − 6x2 + 11x − 6?
(a) (x − 2) (b) (x + 1) (c) (x − 1)
Solution:
Notice that since (x − 2) & (x − 1) are both factors f (x) then so is their product
(x − 2)(x − 1) = x2 − 3x + 2. We could thus find the third factor by long division.
x−3
2
x − 3x + 2 ) x − 6x2 + 11x − 6
3
x3 − 3x2 + 2x
− 3x2 + 9x − 6
−3x2 + 9x − 6
0
3 2
So we have f (x) = x − 6x + 11x − 6 = (x − 1)(x − 2)(x − 3)
Alternative method
Since f (2) = 0 & f (1) = 0, and f (x) has degree 3, we can write
By Gebre Hiluf
ADU
3.4. Polynomial and Rational Functions 54
Example 3.33
The polynomial f (x) = 3x6 − 5x3 + ax2 + bx + 10 is divisible by x + 1 and x − 2.
Find the values of the coefficients a and b.
Solution:
f (x) is divisible by x + 1 is a factor of f (x) which implies f (−1) = 0
Example 3.34
Factorize the polynomial f (x) = x3 + 4x2 − 7x − 10
Solution:
Search for one linear, by checking the numbers a = 1, −1, 2, −2 . . . until we find
an integer a such that f (a) = 0.
Next we use long division to divide f (x) by (x + 1) and to obtain f (x) = (x+)(x2 +
3x − 10)
Now the quadratic q(x) = x2 + 3x − 10 can be factored, using our knowledge of
quadratics as (x + 5)(x − 2). (That is two number whose sum is 3 and product
−10 are 5 and −2.)
Therefore, the complete factorization of f (x) is f (x) = (x + 1)(x + 5)(x − 2)
By Gebre Hiluf
ADU
55 Chapter 3. Functions
Example 3.35
By firstly removing the obvious common factor, factorize the polynomial
f (x) = 2x6 − 22x5 + 78x4 − 90x3
Solution:
f (x) = 2x6 − 22x5 + 78x4 − 90x3 = 2x3 (x3 − 11x2 + 39x − 45).
So the quotient q(x) = x3 − 22x2 + 39x − 45
q(1) = 1 − 11 + 39 − 45 = −16 ≤ 0, q(−1) = −1 − 11 − 39 − 45 6= 0,
q(3) = 27 − 99 + 117 − 45 = 0 =⇒ (x − 3) is a factor of q(x)
x2 − 8x + 15
x − 3 |x3 − 11x2 + 39x − 45
x3 − 3x2
− 8x2 + 39x − 45
−8x2 + 24x
15x − 45
15x − 45
0
One of the main methods of solving quadratic equations was the method of factoring.
Similarly, one of the main application of factoring polynomials is to solve polynomial
equations.
Example 3.36
Find the zeros of f (x) = x3 + 4x2 − 7x − 10
Solution:
We factored this in the earlier example f (x) = x3 + 4x2 − 7x − 10 as (x + 1)(x +
5)(x − 2)
By Gebre Hiluf
ADU
3.4. Polynomial and Rational Functions 56
Since (x + 1), (x + 5) and (x − 2) are factors of f (x), −1, −5, 2 are zeros of f (x).
Example 3.37
Find the the zeros of the polynomial f (x) = x4 + 7x3 − 2x2 − 7x + 1
Solution:
The polynomial f (x) = x4 + 7x3 − 2x2 − 7x + 1 has factorization f (x) = (x − 1)(x +
1)(x2 + 7x − 1)
+ A polynomial function can not have more zeros than its degree( n degree poly-
nomial has at most n zeros.)
When a polynomial function f (x) is factored completely, the same factor (x−a) may
occur more than once. In this case a is called a repeated or a multiple zero of f (x).
Definition 3.18
Example 3.38
Given the polynomial function f (x) = (x − 1)3 (x + 3)( x − 4), which is factorized
completely.
By Gebre Hiluf
ADU
57 Chapter 3. Functions
Example 3.39
Factor f (x) = 4x3 − 5x2 − 7x + 2 completely, and find all its zeros.
Solution:
p (factors of 2): ±1, ±2 q (factors of 4): ±1, ±2, ±4
p 1 1 1 2 2 2 1 1 1 1
= ± , ± , ± , ± , ± , ± = 1, −1, 2, −2, , − , , −
q 1 2 4 1 2 4 2 2 4 4
In some cases, you can rewrite a polynomial in x in the form au2 +bu+c. For example,
by letting u = x2 the expression x4 − 16x2 + 60 can be written as (x2 )2 − 16x2 + 60
or u2 − 16u + 60 . This new, but equivalent, expression is said to be in quadratic
form.
Example 3.40
Write each of the following expressions in quadratic form, if possible
(a) x4 +13x2 +36 x4 +13x2 +36 = (x2 )2 +13x2 +36 (x2 )2 = x4
By Gebre Hiluf
ADU
3.4. Polynomial and Rational Functions 58
(c) 12x8 − x2 + 10
Example 3.41
Solve the following polynomial equation x4 − 13x2 + 36 = 0
Solution:
4 2
x − 13x + 36 = 0 Original equation
(x2 )2 − 13(x2 ) + 36 = 0 Quadratic form
(x2 − 9)(x2 − 4) = 0 Factor the trinomial
(x − 3)(x + 3)(x − 2)(x + 2) = 0 Factor the difference of squares
x = 3, x = −3, x = 2, or x = −2 the Zero Product Property
As the figure suggests, the graph of f (x) = xn has the same general shape as the
graph of y = x2 when n is even and the same general shape as the graph of y = x3
By Gebre Hiluf
ADU
59 Chapter 3. Functions
when n is odd.
However, as the degree n becomes larger, the graphs become flatter around the
origin and steeper elsewhere.
The graph of a polynomial function of the form f (x) = a(x − h)n + k is obtained
by applying transformation to the graph of the monomial y = xn
Parameter Transformation
k • Vertical translation up or down (if k > 0 or k < 0 respectively )
• (x, y) → (x, y + k)
h • Horizontal translation left or right (if h > 0 or h < 0 respectively )
• (x, y) → (x + h, y)
a • Vertical strecth about x-axis by a factor of |a|
• For a > 0, the graph is also reflected in x-axis
• (x, y) → (x, ay)
n
X n(n + 1)
i= . (3.1)
i=1
2
Example 3.42
Sketch the graphs of the following functions (a) q(x) = x2 − 3
(b) p(x) = (x − 1)3 (c) g(x) = 3x4 (d) r(x) = −x5
Solution:
The graph of
q(x) = x2 − 3 is the
(a) graph of y = x2 shifted
downward 3 units, as shown in
the figure.
By Gebre Hiluf
ADU
3.4. Polynomial and Rational Functions 60
The graph of
p(x) = (x − 1)3 is the
(b) graph of y = x3 shifted to the
right 1 unit, as shown in the fig-
ure.
The graph of
r(x) = −x5 is the reflection of
(d)
graph of y = x5 in the x-axis, as
shown in the figure.
For any polynomial the end behavior is determined by the term that contains the
highest power of x, because when x is large, the other terms are relatively insignifi-
cant in size.
By Gebre Hiluf
ADU
61 Chapter 3. Functions
Proof
Geometrically, the Theorem says that if we graph y = f (x) using a graphing cal-
culator, and continue to ‘zoom out’, the graph of it and its leading term become
indistinguishable. Below are the graphs of y = 4x3 − x + 5 and y = 4x3 in two
different windows.
For polynomials the degree determines the end behavior of the graph. If the degree
is an even number the graph will begin and end in the same location, either both up
or both down (depending on the leading coefficient). If the degree is an odd number,
the graph will begin and end in different locations, either starting down and ending
up or starting up and ending down (depending on the leading coefficient).
The following box shows the four possible types of end behavior, based on the highest
power and the sign of its coefficient.
By Gebre Hiluf
ADU
3.4. Polynomial and Rational Functions 62
(i) c is a zero of f
If f (x) is a polynomial and f (a) and f (b) have opposite signs, then there exits
at least one value c between a and b for which f (c) = 0.
By Gebre Hiluf
ADU
63 Chapter 3. Functions
1. Zeros. Factor the polynomial to find all its real zeros; these are the
x-intercepts of the graph.
4. Graph. Plot the intercepts and other points found in the table. Sketch
a smooth cure that passes through these points and exhibits the required
end behavior.
Example 3.43
Sketch the graph of the polynomial function f (x) = (x + 2)(x − 1)(x − 3).
Solution:
The zeros are x = −2, 1 and 3. These determine the intervals (−∞, −2), (−2, 1), (1, 3), and (3, ∞).
Using test points in these intervals, we get the information in the following sign
diagram.
The polynomial f has degree 3 and leading coefficient 1. Thus, f has odd degree
and positive leading coefficient, so the end behavior of P is similar to x3 :
y → −∞ as x → −∞ and y → ∞ as x → ∞
Downward ( left ) Upward( Right )
Plotting a few additional points and connecting them with a smooth curve helps
us to complete the graph.
By Gebre Hiluf
ADU
3.4. Polynomial and Rational Functions 64
By Gebre Hiluf
ADU
65 Chapter 3. Functions
Example 3.44
Sketch the graph of the polynomial function f (x) = x2 (x − 1)3 (x + 2)4 (x + 1)
Solution:
The zeros of f are −2, −1, 0,and1, with multiplicities 4, 1, 2 and 3, respectively.
The zeros 1 and −1 have odd multiplicities, so the graph crosses the x-axis at the
x-intercepts −1 and 1. But the zeros 0 and −2 have even multiplicities, so the
graph does not cross the x-axis at the x-intercepts 0 and −2.
The polynomial f has degree 10 and leading coefficient 1. Thus, f has even de-
gree and positive leading coefficient, so the end behavior of f is similar to x2 :
y → ∞ as x → −∞ and y → ∞ as x → ∞
Upward ( left ) Upward( Right )
With this information and a table of values, we sketch the graph.
x f (x)
−3 1152
−2 0
−1.5 1.099
−1 0
−0.5 −8.543
0 0
0.5 1.831
1 0
2 3072
By Gebre Hiluf
ADU
3.4. Polynomial and Rational Functions 66
p(x)
A quotient of two polynomials p(x) and q(x), for which q(x) is not zero, is
q(x)
called a rational expression.
The top ,p(x), is called numerator and the bottom, q(x), is called denominator.
Example 3.45
Which one of the following is rational expression. √
x−2 1 x2 − 5x + 6 4 − x2
(a) (b) (c) (d)
2x2 − 12x x4 − 16 4 x+2
Solution:
All except (d) are rational expressions
In general, an algebraic expression may not be defined for all values of the variable.
The domain of an expression is the set of real numbers that the variable is permitted
to have.
1.
P ·R P P P ·R
= and = where R 6= 0
Q·R Q Q Q·R
So, the Fundamental Principle tells us two things. First, it tells us that if we have
the same thing multiplied on top and bottom of a fraction, we are allowed to cancel
it out. The second thing it tells us is that we can multiply top and bottom of a
fraction by any non-zero thing that we want.
To Reduce a Rational Expression to Lowest Terms
Factor the numerator and denominator completely.
By Gebre Hiluf
ADU
67 Chapter 3. Functions
By Gebre Hiluf
ADU