Unit 3
Unit 3
Chapter Three
Functions
Mekashaw Ali(Ph.D.)
Example 1
For A = {2, 4} and B = {−1, 3}, we have
(a) A × B = {(2, −1), (2, 3), (4, −1), (4, 3)}, and
(b) B × A = {(−1, 2), (−1, 4), (3, 2), (3, 4)}.
Dr. Mekashaw Ali Mathematics for Natural January 31, 2025 3 / 96
Definition (Equality of Ordered Pairs)
Two ordered pairs (a, b) and (c, d) are equal if and only if a = c and
b = d.
Example 2
If A = {1, 2, 3} and B = {a, b}, then form a relation from:
1 A to B
2 B to A
3 A to A
4 B to B
Dr. Mekashaw Ali Mathematics for Natural January 31, 2025 4 / 96
Definition Let R be a relation from A into B. Then
(a) the domain of R, denoted by Dom(R), is the set of first
coordinates of the elements of R, i.e.,
Dom(R) = {a ∈ A : (a, b) ∈ R}
Range(R) = {b ∈ B : (a, b) ∈ R}
Remark:
i) A relation R on a set A is called
(a) universal relation if R = A × A
(b) identity relation if R = {((a, a) : a ∈ A)}
(c) void or empty relation if R = ∅
R −1 = {(y , x ) : (x , y ) ∈ R}
Example 4
Let R be a relation defined on N by R = {(a, b) | a, b ∈ N, a + 2b = 11}.
Then find:
a) R
b) R −1
c) Dom(R) and Range(R)
d) Dom(R)−1 and Range(R)−1
e) The codomain of R and R −1
Dr. Mekashaw Ali Mathematics for Natural January 31, 2025 7 / 96
Functions
Definition (Function)
Example 5
Determine whether the following relations are functions.
a) R = {(5, 2), (5, 3), (3, 7)}
b) R(2, 4), (3, 4), (6, 4)
c) R = {(x , y ) : y = |x |}
d) R = {(x , y ) : x = |y |}
√
e) R = {(x , y ) : y = x }
f) R = {(x , y ) : y if the father of x
Dr. Mekashaw Ali Mathematics for Natural January 31, 2025 8 / 96
Definition (Function)
if and only if
1 Dom(f ) = A
2 No element of A is mapped by f to more than one element in
B, i.e., if (x , y ) ∈ f and (x , z) ∈ f , then y = z.
Q1: n
Let f be
the subset of Qo× Z defined by
p
f = q , p | p, q ∈ Z, q ̸= 0 . Is f a function? (NO) Verify!!
Q2: Let f be the subset of Z × Z defined by
f = {(mn, m + n) | m, n ∈ Z}. Is f a function? (NO) Verify!!
For a function f : A → B:
1 The set A is called the domain of f .
2 The set B is called the codomain of f .
3 The set {f (x ) | x ∈ A} of all images of elements of A is called the
range of f .
Example 6
Let A = {1, 2, 3} and B = {1, 2, . . . , 10}. Let f : A → B be the
correspondence which assigns to each element in A its square. Thus, we
have f (1) = 1, f (2) = 4, f (3) = 9. Therefore, f is a function and
Dom(f ) = {1, 2, 3}, the codomain of f is {1, 2, . . . , 10} and
Ran(f ) = {1, 4, 9}.
Solution:
a) It is a function and Dom(f ) = R
b) It is a function and Dom(f ) = R ̸= { 53 }
c) It is NOT a function. Because (−2, 4), (2, 4) can be elements of f.
Example 8
√
Find the domain of the function y = 3x − x 2 .
Example 9
1. The function f : R → R defined by f (x ) = x 2 + 3x + 7, x ∈ R is a
real valued function.
2. The function f : R → R defined as f (x ) = |x | is also a real valued
function.
√
3. The function f : R → C defined by f (x ) = x 2 + 3x + 7 + i x , x ∈ R
is NOT a real valued function.
Note:
Dom(f ± g) = Dom(f ) ∩ Dom(g)
Dom(f × g) = Dom(f ) ∩ Dom(g)
(Dom(f /g) = Dom(f ) ∩ Dom(g)) \{g(x ) = 0}
Dr. Mekashaw Ali Mathematics for Natural January 31, 2025 13 / 96
Example 10
√ √
Let f (x ) = x + 1 and g(x ) = 9 − x 2 , with respective domains [−1, ∞)
and [−3, 3].
Solution:
Formula Domain
√ √
(f + g)(x ) = f (x ) + g(x ) = x +1+ 9 − x2 [−1, 3]
√ √
(f − g)(x ) = f (x ) − g(x ) = x + 1 − 9 − x2 [−1, 3]
√ √
(f · g)(x ) = f (x ) · g(x ) = x + 1 · 9 − x 2 [−1, 3]
√
f (x )
f
g (x ) = g(x ) =
√ x +1 [−1, 3)
9−x 2
3 3
√ 3
f (x ) = (f (x )) = x + 1 = (x + 1)3/2 [−1, ∞)
In (f ◦ g)(x ) = f (g(x ))
g(x ) is in the domain of f .
Domain of f ◦ g ⊆ Domain of g.
Range of f ◦ g ⊆ Range of f .
Two functions are said to be equal if and only if the following two
conditions hold:
1 The functions have the same domain.
2 Their functional values are equal at each element of the
domain.
Example 12
1 Let f : Z → Z ∪ {0} and g : Z → Z ∪ {0} be defined by
f (n) = {(n, n2 )} for n ∈ Z and g(n) = {(n, |n|2 )} for n ∈ Z. Now, for
all n ∈ Z, f (n) = n2 = |n|2 = g(n). Thus, f = g.
x 2 −25
2 Let f (x ) = x −5 , x ∈ R and g(x ) = x + 5, x ∈ R. The functions
f and g are not equal because Dom(f ) ̸= Dom(g).
Solution:
Let x1 , x2 ∈ R such that f (x1 ) = f (x2 ). This implies: 3x1 + 5 = 3x2 + 5
Subtracting 5 from both sides, we get: 3x1 = 3x2 . Dividing both sides by
3, we have: x1 = x2 Therefore, f is one-to-one.
Horizontal Line Test (HLT) is used to identify 1-1 function using
their graphs.
i.e. A function f : A → B is one-to-one, if and only if any horizontal line
crosses its graph at most once.!!!
Solution: f (x ) and n(x ) are 1-1, but g(x ) and m(x ) are Not.
Range(f ) = B.
Example 18
Show whether the following functions are injective, surjective, both
injective and surjective function.
a. Let f : R → R given by f (x ) = −4x + 3
b. Let f : (0, ∞) → R given by f (x ) = logx4
c. Let f : R → [0, ∞) given by f (x ) = x 2
d. Let f : R → R given by f (x ) = |x + 2|
e. Let f : R → (0, ∞) given by f (x ) = 3x
Dr. Mekashaw Ali Mathematics for Natural January 31, 2025 25 / 96
Example 19 (Which of the following sets of values represent an
injective, surjective, bijective function?)
Inverse of a function
Definition
f −1 = {(y , x ) : (x , y ) ∈ f }
.
Thus, Dom(f ) = Ran(f −1 ) and Dom(f −1 ) = Ran(f )
Example 20
1. Find f −1 with its domain and range for the following given functions.
a. y = x3
x
b. y=
x +2
x −2
2. Find the range of f if f (x ) = 3x +1 .
√
Ans: 1 a f −1 (x ) = 3
x b. f −1 (x ) = 2x
1−x . 2. Ran(f ) = R\{ 13 }
y = an x n + an−1 x n−1 + . . . + a1 x + a0 , an ̸= 0.
Thus;
i. Each ai is assumed to be a real number, and n is a
non-negative integer.
ii. an is called the leading coefficient.
iii. n is called degree of the polynomial.
iv. a0 is called the constant term.
Dr. Mekashaw Ali Mathematics for Natural January 31, 2025 29 / 96
Remark:
1 The domain of a polynomial function is always the set of real
numbers.
2 A polynomial of degree 0 is called a constant function.
3 A polynomial of degree 1 is called a linear function.
4 A polynomial of degree 2 is called a quadratic function.
5 A polynomial of degree 3 is called a cubic function.
Example 21
Find the degree, leading coefficient, and constant term of the following
polynomial functions:
3
1 f (x ) = 3x 3 − 9x 2 + 5x + 2
2 h(x ) = −5x 4 + 8x 3 + 2x 2 − 3x + 7
3 g(x ) = −2 + 3x 2 + 52 x 2 − x 4 + 4x 5 + 5x
1
4 g(x ) = 2 x 4 + 2 − 2 + x + x4 + 1
Note:
i. A polynomial function over integers can be a polynomial function
over rational number and real number.
ii. A polynomial function over rational number can be a polynomial
function over real number.
Dr. Mekashaw Ali Mathematics for Natural January 31, 2025 34 / 96
Example 23
Identify the following polynomial functions as polynomial functions over
integers, polynomial functions over rational numbers, or polynomial
functions over real numbers:
√ 3
1 f (x ) = 5x − 6x + 10
11 − x − 9
2 g(x ) = 3x 5 + 2x 4 − 23x 3 + 25x 2 − 45
3 k(x ) = 3.5x 4 + 45 x 3 + 2x 2 − 55
Solution:
1. A polynomial function over rational number and real number.
2. A polynomial function over integers, rational number and real number.
3. A polynomial function over rational number and real number.
Definition
Let f and g be two polynomial functions. Then,
a. (f + g)(x ) = f (x ) + g(x ) for all real numbers x .
b. (f − g)(x ) = f (x )g(x ) for all real numbers x .
c. (f × g)(x ) = f (x ) × g(x ) for all real numbers x .
f f (x )
d.
g (x ) = g(x ) for all real numbers x and g(x ) ̸= 0.
Example 24
Let f (x ) = 4x 3 + 4x 2 − x + 4 and g(x ) = 2x − 1 be two polynomials.
Then find f + g, f − g, f × g and f ÷ g.
If f (x ) and d(x ) are polynomials such that d(x ) ̸= 0, and the degree
of d(x ) is less than or equal to the degree of f (x ), then there exist
unique polynomials q(x ) and r (x ) such that
f (x ) = d(x ) · q(x ) + r (x )
Example 25
Let f (x ) = x 4 + 1 and d(x ) = x 2 + 2x , then find polynomials q(x ) and
r (x ) such that f (x ) = d(x ) · q(x ) + r (x )
Dr. Mekashaw Ali Mathematics for Natural January 31, 2025 38 / 96
The Remainder Theorem
When a polynomial p(x ) of degree at least 1 is divided by x − r , then
the remainder is p(r ).
Location Theorem
Let f be a polynomial function and a and b be real numbers such
that a < b. If f (a)f (b) < 0, then there is at least one zero of f
between a and b.
Definition
For a polynomial function f (x ) and a real number c, if f (c) = 0 then
c is a zero of f .
Example 27
1 Find the zeros of f (x ) = (x − 2)(3x + 4)(1 − 4x ).
2 Determine the zeros of f (x ) = x 4 − 13x 2 + 36.
3 If x = 1 is one zero of f (x ) = −x 3 − 6x 2 + 11x − 6, then find the rest
of the real zeros and rewrite f (x ) as a product of its factors.
where the ri are complex numbers (possible real and not necessarily
distinct).
Example 28
Example 29
√
Let r (x ) = x 4 + 2x 3 − 9x 2 + 26x − 20. Given that 1 − 3i is a zero, find
the other zero of r (x ).
Dividing r (x ) by x 2 − 2x + 4, we obtain
r (x ) = (x 2 − 2x + 4)(x 2 + 4x − 5).
√ √
Thus, the zeros of r (x ) are 1 − 3i, 1 + 3i,, -5 and 1.
Q1: If 2 − 3i is a root of p(x ) = 2x 3 − 5x 2 + 14x + 39, find the remaining
zeros of p(x ).
Example 30
Find all the zeros of the function p(x ) = 2x 3 + 3x 2 − 23x − 12.
1 3 2 3 4 6 12
±1, ±2, ±3, ±4, ±6, ±12 and ± , ± , ± , ± , ± , ± , ±
2 2 1 1 1 1 1
We may check these possible roots by substituting the values into p(x ).
Now p(1) = −30 and p(−1) = 12. Since p(−1) is positive, by location
theorem, p(x ) has a root between −1 and 1. Since p( −1
2 ) = 0, then
−1
(x + 2) is a factor of p(x ). And, therefore, the zeros of p(x ) are 2 , −4,
and 3.
Dr. Mekashaw Ali Mathematics for Natural January 31, 2025 47 / 96
Rational Functions and their Graphs
Definition
Given two polynomials p(x ) and q(x ) with q(x ) ̸= 0, an
p(x )
expression that can be expressed in the form is called a
q(x )
rational expression.
p(x )
In a rational expression , the polynomial p(x ) is called the
q(x )
numerator and q(x ) is called the denominator.
p(x )
The domain of is {x ∈ R : q(x ) ̸= 0}.
q(x )
2x 2 + x
5 √
x2 + 1
Example 33
Find the vertical, horizontal or oblique asymptotes to the graph of each of
the following functions (if any):
1
1 f (x ) = x −2
x +1
2 g(x ) = x 2 +3x +2
3x 2 +1
3 h(x ) = x 2 +4x +4
3
4 l(x ) = x x+3x
2 +1
+1
3 2 +x +1
5 m(x ) = x +xx +2
Example 34
1
Sketch the graph of the rational function f (x ) =
x2
Solution:
Domain R\{0}
x-intercept: No and y-intercept: No
Asymptote(s): VA: x=0 line, HA: y=0 line, Hole: No, OA: No
Dr. Mekashaw Ali Mathematics for Natural January 31, 2025 52 / 96
1
Figure: Graph of f (x ) =
x2
Solution:
Domain: x 2 + 5x + 6 = 0 =⇒ x = −2 or x = −3. Thus,
Dom(g) = {x ∈ R | x ̸= −2, −3}.
Intercepts: (−1, 0) is the x-intercept and 0, 61 is the y-intercept of
the graph of g(x ).
Symptote(s): x = −2 and x = −3 are vertical asymptotes and the
line y = 0 is a horizontal asymptote to the graph of g(x ).
Solution:
Domain: Dom(l) = {x ∈ R | x ̸= −2}.
Intercepts: (−1, 0) is the x-intercept and 0, 41 is the y-intercept of
the graph of l(x ).
Symptote(s): The line x = −2 is vertical asymptotes. Again, The
degree of x 3 + 1 is 3, the degree of x 2 + 4x + 4 is 2 and 3 > 2.
Then, using long division we can write:
x3 + 1 12x + 17
2
= (x − 4) + 2
x + 4x + 4 x + 4x + 4
Therefore, the line y = x − 4 is an oblique asymptote to
the graph of l(x ).
Dr. Mekashaw Ali Mathematics for Natural January 31, 2025 56 / 96
x3 + 1
Figure: Graph of f (x ) =
x 2 + 4x + 4
xn = x| · x{z· · · x}
n factors each equal to x
Note: 00 is undefined.
1 x m · x n = x m+n
2 (x m )n = x mn
xm
3
xn = x m−n
4 (xy )n = x n y n
n
x xn
5 = n, y ̸= 0
y y
m
Definition (Rational Exponent a n )
1 m √
If a n is a real number, then a n = n
am (i.e., the nth root of a raised
to the mth power).
Example 37
√ √
a. 4 3 ×4 12
√ √
2 5 ×2 20
b. √
8 5
Example 38
a f (x ) = 2x
b g(x ) = 3−x
x
1
c h(x ) = 2 are examples of exponential function.
Example 39
x
3
Sketch the graphs of f (x ) = 2x and g(x ) = .
2
x
3
Figure: Graphs of f (x ) = 2x and g(x ) = using the same co-ordinate
2
system.
Dr. Mekashaw Ali Mathematics for Natural January 31, 2025 62 / 96
Basic Properties
The graph of f (x ) = b x , b > 1 has the following basic properties:
x
x 3
Figure: Graphs of f (x ) = 2 and g(x ) = using the same co-ordinate
2
system.
Definition
For a > 0, a ̸= 1, and c > 0:
Note: The value of loga c is the answer to the question: “To what
power must b be raised to produce c?”.
1. logb (xy
) = logb x + logb y
x
2. logb y = logb x − logb y
(k n )
3. For any real number k, logb = n · logkb
4. logbb = 1
5. log1b = 0
logxb
6. logxa = logab ... change of base law
7. b logxb =x
8. logxb k = 1
k logxb
Example 42
Sketch the graphs of f (x ) = logx2 and g(x ) = logx3 .
2
Figure: Graphs of f (x ) = logx2 and g(x ) = logx3 using the same co-ordinate
2
system.
Dr. Mekashaw Ali Mathematics for Natural January 31, 2025 69 / 96
Basic Properties
The graph of y = logb x (b > 1) has the following properties:
Figure: Graphs of f (x ) = logx1 and g(x ) = logx2 . using the same co-ordinate
2 3
system.
Example 44
1 Evaluate log10000
10 .
2 Find the inverse of f (x ) = ln(x − 1).
Example 45
2x
1 1
a. 27 = 9
b. 3−x = 81
2 −2
c. 2x =4
2
d. 7x +x = 49
e. 36(x +2) = 9x +2
2x −1 2x
27 3 32
f. 3 8 =2 243
The two measures that are most frequently used are degree and
radian.
Dr. Mekashaw Ali Mathematics for Natural January 31, 2025 76 / 96
Rule of conversion
1 To convert radians to degrees, multiply the given degree
180◦
measure by π .
Example 46
1 convert the following to radian measure.
a. 90◦ b. 270◦
2 convert the following to radian measure.
π 3π
a. b.
6 5
Name of
Abbreviation Definition
function
y
Sine θ sin θ sin θ = r
x
Cosine θ cos θ cos θ = r
y
Tangent θ tan θ tan θ = x
r
Cosecant θ csc θ csc θ = y
r
Secant θ sec θ sec θ = x
x
Cotangent θ cot θ cot θ = y
Example 47
Sketch the graph of y = sin θ on [−3600 , 3600 ] or [−2π, 2π]
Example 48
Sketch the graph of y = tan θ on [−3600 , 3600 ]
Definition 49
Definition (Periodic Function)
A function y = f (x ) is called periodic if there exists a number p such that
f (x + p) = f (x ) for all x in the domain of f . The smallest such number p
is called the period of the function.
1
A= (maximum value of f (x ) − minimum value of f (x )) .
2
Definition 51
Definition (Frequency of a periodic function)
The number of complete cycles a sine or cosine graph makes on an
interval of length equal to 2π is called its frequency.
1
1 csc x = sin x
1
2 sec x = cos x
1
3 cot x = tan x
sin x
4 tan x = cos x
cos x
5 cot x = sin x
6 sin2 x + cos2 x = 1
7 1 + tan2 x = sec2 x
8 1 + cot2 x = csc2 x
e x − e −x e x + e −x
sinh x = cosh x =
2 2
Example 53
Using definitions, show that:
1 cosh2 x − sinh2 x = 1
2 sinh(x + y ) = cosh x sinh y + sinh x cosh y
3 sinh(x + y ) = sinh y cosh x + cosh y sinh x
Dr. Mekashaw Ali Mathematics for Natural January 31, 2025 90 / 96
Graph of y = cosh x
sinh x ex − e −x
tanh x = = (The domain of tanh x is R)
cosh x ex + e −x
cosh x ex + e −x
coth x = = x (The domain of coth x is R \ {0})
sinh x e − e −x
1 2
sechx = = x (The domain of sechx is R)
cosh x e + e −x
1 2
cschx = = x (The domain of cschx is R \ {0})
sinh x e − e −x