6. Math 121 Notes Functions
6. Math 121 Notes Functions
6 FUNCTIONS
Consider the sets N and D defined by
The set N contains some Ghanaian names based on the day of birth: Afi is a female born
on Friday, Yao is a male born on Thursday, Ama is a female born on Saturday and Ami is a
female born on Saturday. The members of the set D are days of the week. Computing the
set N × D, we obtain
{(Afi, Mon), (Afi, Tue), (Afi, Wed), (Afi, Thu), (Afi, Fri), (Afi, Sat), (Afi, Sun)
(Yao, Mon), (Yao, Tue), (Yao, Wed), (Yao, Thu), (Yao, Fri), (Yao, Sat), (Yao, Sun)
(Ama, Mon), (Ama, Tue), (Ama, Wed), (Ama, Thu), (Ama, Fri), (Ama, Sat), (Ama, Sun)
(Ami, Mon), (Ami, Tue), (Ami, Wed), (Ami, Thu), (Ami, Fri), (Ami, Sat), (Ami, Sun)}
S D
N
Mon
Tue
Wed
Yao Thu
Afi Fri
Ama Sat
Ami Sun
bvnormenyo@ug.edu.gh 1
6 FUNCTIONS
Definition 6.2 (Function). Let A and B be sets. A function (also called a map) f from
A to B, denoted by f : A −→ B, is a subset of A × B such that
1. if (a1 , b1 ), (a1 , b2 ) ∈ f then b1 = b2 , and
F1
A B
a 1
b 2
c 3
d 4
F2
A B
a 1
b 2
c 3
d 4
In Figure 6.3, F2 is not a function since the first axiom in Definition 6.2 fails to hold.
Two elements 3, 4 ∈ B have been assigned to the element d ∈ A. That is, (d, 3), (d, 4) ∈ F2
and 3 ̸= 4. However, the second axiom holds for F2 . That is, for every x ∈ A there exists
y ∈ B such that y = f (x).
bvnormenyo@ug.edu.gh 2
6 FUNCTIONS
F3
A B
a 1
b 2
c 3
d 4
The relation F3 shown in Figure 6.4 is a function from A to B. Every element in A has
been assigned exactly one element of B. Note that c, d ∈ A have been assigned the same
element 3 ∈ B. This does not flout any of the axioms in Definition 6.2.
Consider a function f : A −→ B. The set A is called the domain of f and the set B
is called the codomain of f . If (a, b) ∈ f , then b = f (a) is called the image of a under
f or the value of f at a, and a is called a pre-image of b. It is important to know the
difference between f and f (a). The set
{b | (a, b) ∈ f } = {b | b = f (a) for some a ∈ A}
= {f (a) | a ∈ A}
is called the image of A under f or the image of f or the range of f . In Figure 6.4,
the range of the function F3 is the set {1, 2, 3}.
Example 6.1. Let A = {x, y, z} and B = {2, 4, 6}. Decide whether each of the following is
a function mapping A into B.
1. S1 = {(x, 6), (x, 2), (z, 4)}.
2. S2 = {(x, 4), (y, 4), (z, 4)}.
Solution. Let A = {x, y, z} and B = {2, 4, 6}.
1. The relation S1 from A to B is not a function. This is because for all k ∈ B, (y, k) ∈
/ S1 .
In other words, no element of B has been assigned to y. Another reason why S1 is not
a function is that (x, 6), (x, 2) ∈ f but 6 ̸= 2. That is, two distinct elements 6, 2 ∈ B
have been assigned to x.
2. The relation S2 from A to B defines a function. Every element of A has been assigned
exactly one element of B.
■
Definition 6.4 (Image of a set). Let A and B be sets, and let f : A −→ B be a function.
Let P ⊆ A. The image of P under f , denoted f (P ), is the set defined by
f (P ) = {b ∈ B | b = f (p) for some p ∈ P }
= {f (p) | p ∈ P }.
The range of f (also called the image of f ) is the set f (A).
bvnormenyo@ug.edu.gh 3
6 FUNCTIONS
Definition 6.5 (Inverse image of a set). Let A and B be sets, and let f : A −→ B be a
function. Let Q ⊆ B. The inverse image of Q under f , denoted f −1 (Q), is the set defined
by
f −1 (Q) = {a ∈ A | f (a) ∈ Q}.
h
X Y
0 a
1 b
2 c
3 d
4 e
f
We find that h(M ) = {c, f, e}, h−1 (N ) = {0, 2, 1} and h−1 (K) = { }. ■
f (a1 ) = f (a2 ) =⇒ a1 = a2 .
Definition 6.6 states that a function f is one-to-one if no two distinct elements in the
domain of f have the same image. We can also characterize a one-to-one function by con-
sidering the contrapositive of the above implication, which is the following:
a1 ̸= a2 =⇒ f (a1 ) ̸= f (a2 ).
To show that a function f : A −→ B is not one-to-one, we must show that there exists
a1 , a2 ∈ A such that f (a1 ) = f (a2 ) and a1 ̸= a2 . In other words, we must show that two
distinct element in the domain of f have the same image.
Example 6.3. Let the sets X and Y be given by X = {1, 2, 3} and Y = {a, b, c, d}. Define
the functions f and g from X to Y by
bvnormenyo@ug.edu.gh 4
6 FUNCTIONS
2. g = {(1, a), (2, b), (3, d)}.
Determine the injectivity, or otherwise of f and g.
Solution. Let X = {1, 2, 3} and Y = {a, b, c, d}.
1. The function f may be represented diagrammatically as follows:
f
X Y
1 a
2 b
3 c
d
g
X Y
1 a
2 b
3 c
d
Here no two distinct elements of X have the same image. Hence, the function g is
injective.
■
Definition 6.7 (Onto function). Let A and B be sets. A function f : A −→ B is onto
(or surjective) if for every b ∈ B, there exists a ∈ A such that (a, b) ∈ f . That is, the range
of f is equal to the codomain B of f .
NB: To show that a function f : A −→ B is not onto, we must show that there exists b ∈ B
such that for all a ∈ A, f (a) ̸= b (that is, (a, b) ∈
/ f ).
Example 6.4. Let X = {1, 2, 3}, Y = {a, b, c, d}, A = {1, 2, 3, 4} and B = {a, b, c}. Define
the functions F : X −→ Y and G : A −→ B by
bvnormenyo@ug.edu.gh 5
6 FUNCTIONS
1. F = {(1, a), (2, b), (3, c)}
2. G = {(1, a), (2, b), (3, b), (4, c)}.
Determine whether F and G are surjective, or not.
Solution. Let X = {1, 2, 3}, Y = {a, b, c, d}, A = {1, 2, 3, 4} and B = {a, b, c}.
1. The function F may be represented diagrammatically as follows:
F
X Y
1 a
2 b
3 c
d
The function F is not onto. To see this, choose d ∈ Y and observe that for all x ∈ X,
f (x) ̸= d. Another way to see that F is not onto is to observe that the range of F is
{a, b, c}, which is not equal to the codomain Y . [We note that F is one-to-one.]
2. The function G may be represented diagrammatically as follows:
G
A B
1 a
2 b
3 c
4
The function G is onto, since the range of G is equal to the codomain of G. In other
words, for every y ∈ B there exists x ∈ A such that y = f (x). [We notice that G is
not one-to-one.]
■
Definition 6.8 (Bijective function). Let A and B be sets, and let f : A −→ B be a
function. If f is both injective and surjective then f is called a bijective function.
Example 6.5. Let the sets X and Y be given by X = {1, 2, 3} and Y = {a, b, c}. Define
the function f by f = {(1, a), (2, b), (3, c)}. Determine whether f is bijective, or not.
bvnormenyo@ug.edu.gh 6
6 FUNCTIONS
f
X Y
1 a
2 b
3 c
Solution. Let X = {1, 2, 3} and Y = {a, b, c}. Figure 6.10 is a diagrammatic representation
of f . We see that for all m, n ∈ X, m ̸= n implies f (m) ̸= f (n). Hence, f is one-to-one.
Also, we find that for every y ∈ Y there exists x ∈ X such that y = f (x). Hence, f is onto.
Therefore, we deduce that f is bijective. ■
Definition 6.9 says that if f : A −→ B and g : A −→ B are functions, then f = g if and only
if f (x) = g(x) for all x ∈ A.
NB: The statement “f (x) = g(x) for all x ∈ A” is not a statement about equivalent formulas
for f and g, because the functions f and g might not be given by formulas at all. It is rather
a statement about the equality of various elements in the codomain.
f g
A B C
g◦f
The domain of the composite function g ◦ f is the set of all x satisfying the following two
conditions:
1. x is in the domain of f
The composition of functions is not commutative, that is, g ◦ f ̸= f ◦ g for any two functions
f and g. However, the composition of functions is associative, that is (g ◦ f ) ◦ h = f ◦ (g ◦ h).
bvnormenyo@ug.edu.gh 7
6 FUNCTIONS
Example 6.6. Let the sets X, Y and Z be given by X = {1, 2, 3}, Y = {a, b, c, d} and
Z = {w, x, y, z}. Let the function g : X −→ Y be given by g = {(1, b), (2, c), (3, a)}, and the
function f : Y −→ Z by f = {(a, x), (b, x), (c, z), (d, w)}.
1. Find f ◦ g.
Solution. We have that g = {(1, b), (2, c), (3, a)} and f = {(a, x), (b, x), (c, z), (d, w)}.
1. We find that the function f ◦ g : X −→ Z is given by f ◦ g = {(1, x), (2, z), (3, x)}.
That is, f (a) = b if and only if f −1 (b) = a. Thus, f (f −1 (b)) = b for all b in the domain of
f −1 , and f −1 (f (a)) = a for all a in the domain of f .
f f −1
X Y Y X
1 a a 1
2 b b 2
3 c c 3
(a) f : X −→ Y (b) f −1 : Y −→ X
bvnormenyo@ug.edu.gh 8
6 FUNCTIONS
f
X Y Y X
1 a a 1
2 b b 2
c c
(a) (b)
Figure 6.13: Inverse not possible because f is 1-1 but not onto.
g
X Y Y X
1 a a 1
2 b b 2
3 3
(a) (b)
Figure 6.14: Inverse not possible because g is onto but not 1-1.
Functions as equations
(a) x2 + y = 4
(b) x2 + y 2 = 4
Solution.
(a) We have that y = 4 − x2 . We notice that for each value of x ∈ R there is exactly one
value of y ∈ (−∞, 4). Hence, the equation defines y as a function of x.
√
(b) The equation x2 + y 2 = 4 yields y = ± 4 − x2 , from which we see that y has two
values for each x ∈ (−2, 2). Hence, the equation does not define y as a function of x.
Definition 6.12 (The graph of an equation). The graph of an equation in two variables
x and y is the set of all points in the xy-plane whose coordinates (x, y) satisfy the equation.
The vertical line test: If any vertical line intersects the graph of an equation in more than
one point, then the equation does not define y as a function of x.
bvnormenyo@ug.edu.gh 9
6 FUNCTIONS
Example 6.8. Using the vertical line test, determine whether the following equations define
y as a function of x.
(a) x2 + y = 4
(b) x2 + y 2 = 4
Solution.
(a) No vertical line intersects the graph of y = 4 − x2 at more than one point. Refer to
Figure 6.15.
y
4
x
−3 −2 −1 1 2 3
−1
−2
(b) The line x = 0 meets the graph of x2 + y 2 = 4 at (0, −2) and (0, 2). This is shown in
Figure 6.16. The equation x2 + y 2 = 4 does not define y as a function of x.
y
x
−2 −1 1 2
−1
−2
■
Definition 6.13 (Operations on functions). Let f and g be functions with domains A
f
and B, respectively. Then the functions f + g, f − g, f g and are defined as follows:
g
(f + g)(x) = f (x) + g(x) domain = A ∩ B
(f − g)(x) = f (x) − g(x) domain = A ∩ B
(f g)(x) = f (x)g(x) domain = A ∩ B
f f (x)
(x) = domain = {x ∈ A ∩ B | g(x) ̸= 0}
g g(x)
bvnormenyo@ug.edu.gh 10
6 FUNCTIONS
Example 6.9. Find the domain of the following functions.
1
(a) F (x) = √
x−3
s
(b) g(s) =
s2 + 4
√
x−2
(c) h(x) =
x−5
√ 8
(d) K(t) = t + 2
t +t−2
Solution.
G(x) √
(a) Let F (x) = , where G(x) = 1 and H(x) = x − 3. We see that Dom(G) = R,
H(x) √
since G is a polynomial function. Because x − 3 is defined if x − 3 ≥ 0, we find that
Dom(H) = [3, ∞). Hence, we get
j(s)
(b) Let g(s) = , where J(s) = s and k(s) = s2 + 4. Since j and k are polynomial
k(s)
functions, we arrive at Dom(j) = Dom(k) = (−∞, ∞). Because s2 + 4 ̸= 0 for all
s ∈ R, the domain of g is given by Dom(g) = (−∞, ∞) ∩ (−∞, ∞) = (−∞, ∞).
f (x) √
(c) Let h(x) = , where f (x) = x − 2 and g(x) = x − 5. We have that Dom(f ) =
g(x)
[2, ∞) and Dom(g) = (−∞, ∞). Because g(5) = 0, we get
√ 8
(d) Let K(t) = F (t) + G(t), where F (t) = t and G(t) = . We find that
+t−2t2
Dom(F ) = [0, ∞) and Dom(G) = (−∞, −2) ∪ (−2, 1) ∪ (1, ∞). It follows that
bvnormenyo@ug.edu.gh 11
6 FUNCTIONS
1
3. F (x) = √
x−3
Solution.
x−5 5+y
1. Let y = . Making x the subject, we get x = . For real values of x, we must
x+1 1−y
have that y ̸= 1. Hence, the range of f is (−∞, 1) ∪ (1, ∞). The graph of f is shown
in Figure 6.17.
y
10
x
−10 −5 5 10
−5
−10
s
2. Let y = g(s). Then, we get y = , which can be expressed as ys2 − s + 4y = 0.
+4 s2
For real values of s, 1 − 4(y)(4y) ≥ 0, that is, 1 − 16y 2 ≥ 0. To solve the inequality
1 − 16y 2 ≥ 0, we obtain the sketch in Figure 6.18, which is a sketch of the graph of
the quadratic function Q given by Q(y) = 1 − 16y 2 . This leads us to conclude that the
range of g is [− 41 , 14 ].
1 1
−
4 4
Figure 6.18:
NB: To solve the inequality 1 − 16y 2 ≥ 0, we can check to see which of the intervals
(−∞, − 14 ), (− 14 , 14 ) or ( 41 , ∞) satisfy the inequality 1 − 16y 2 ≥ 0. To achieve this,
we choose one value from each interval to verify the inequality. Let us choose −1 ∈
(−∞, − 41 ), 0 ∈ (− 14 , 41 ) and 1 ∈ ( 14 , ∞). We notice that 1 − 16y 2 < 0 for y = −1, 1, but
1 − 16y 2 > 0 for y = 0. So the required interval is [− 41 , 14 ], where we have taken into
account equality.
The graph of g is shown in Figure 6.19.
bvnormenyo@ug.edu.gh 12
6 FUNCTIONS
y
0.3
0.2
0.1
s
−10−8 −6 −4 −2 2 4 6 8 10
−0.1
−0.2
−0.3
x
2 4 6 8 10 12 14
■
Example 6.11. Find (f ◦ g)(x) and the domain of f ◦ g given that
2 3
(a) f (x) = and g(x) =
x−1 x
4 x
(b) f (x) = − and g(x) =
x x−1
√
(c) f (x) = x − 2 and g(x) = 1 − 2x.
Solution. (a) We have that
2 2 2x
(f ◦ g)(x) = f [g(x)] = = 3 = .
g(x) − 1 x
−1 3−x
The domain of g is (−∞, 0)∪(0, ∞). Furthermore, the domain of f is (−∞, 1)∪(1, ∞).
bvnormenyo@ug.edu.gh 13
6 FUNCTIONS
The domain of f ◦ g is given by
4 . x 4(1 − x)
(f ◦ g)(x) = f [g(x)] = − = −4 = .
g(x) x−1 x
The domain of g is (−∞, 1) ∪ (1, ∞), and the domain of f is (−∞, 0) ∪ (0, ∞).
The domain of f ◦ g is given by
2. g(x) = x2
Solution.
bvnormenyo@ug.edu.gh 14
6 FUNCTIONS
1. The domain of f is R. Now, let a, b ∈ R. Suppose that f (a) = f (b). Then, we have
that
2a + 1 = 2b + 1
2a = 2b
a = b.
■
Horizontal line test: A function is one-to-one if and only if no horizontal line intersects
its graph more than once.
We can use Example 6.12 to illustrate the use of the horizontal line. The graphs of f
and g are capture in Figure 6.21. We observe that no horizontal line intersects the graph of
f more than once. On the other hand, the graph of g is intersected by the horizontal line
y = 4 at two points, namely, (−2, 4) and (2, 4).
y y
4 4
2 2
x x
−4 −2 2 4 −4 −2 2 4
−2 −2
−4 −4
Definition 6.14 (Inverse function). Let f be a one-to-one function with domain A and
range B. Then its inverse function f −1 has domain B and range A, and is defined by
for any y ∈ B.
To find the inverse function f −1 of a 1-1 function f having domain A and range B:
1. Interchange the variables x and y in y = f (x) to obtain x = f (y), which defines the
inverse function f −1 implicitly.
2. If possible, solve the implicit equation for y in terms of x to obtain the explicit form
of f −1 , that is, y = f −1 (x)
bvnormenyo@ug.edu.gh 15
6 FUNCTIONS
−1
(a) f (f (x)) = x for all x ∈ A
(b) f (f −1 (x)) = x for all x ∈ B
NB: The graph of a function f and the graph of its inverse f −1 are symmetric with respect
to the line y = x.
y y
8 8
6 6
4 4
2 2
x x
−8 −6 −4 −2
−2 2 4 6 8 −8 −6 −4 −2
−2 2 4 6 8
−4 −4
−6 −6
−8 −8
Figure 6.22:
Definition 6.15 (Even function). The function f is an even function if f (−x) = f (x) for
all x in the domain of f .
NB: The graph of an even function is symmetric with respect to the y-axis.
Definition 6.16 (Odd function). The function f is an odd function if f (−x) = −f (x) for
all x in the domain of f .
NB: The graph of an odd function is symmetric with respect to the origin. A graph is
symmetric with respect to the origin if, for every point (x, y) on the graph, the point (−x, −y)
is also on the graph.
Example 6.14. Determine whether the given function is odd, even or neither.
(a) K(x) = x2 + 2
(b) H(x) = x3 + x
(c) J(x) = x2 − x
bvnormenyo@ug.edu.gh 16
6 FUNCTIONS
Solution.
(b) We obtain H(−x) = (−x)3 + (−x) = −x3 − x = −(x3 + x) = −H(x), which implies
that H is an odd function.
(c) We get J(−x) = (−x)2 − (−x) = x2 + x, from which we see that J(−x) ̸= J(x) and
J(−x) ̸= −J(x). Hence, J is neither an even function nor an odd function.
y y y
8 8 8
6 6 6
4 4 4
2 2 2
x x x
−4 −2 −2 2 4 −4 −2 −2 2 4 −4 −2 −2 2 4
−4 −4 −4
−6 −6 −6
−8 −8 −8
Figure 6.23:
x
−2 −1 1 2
bvnormenyo@ug.edu.gh 17
6 FUNCTIONS
Then, f ◦ g : X −→ Z is given by
x ∈ M ∩ g1−1 (A)
(f1 ◦ g1 )(x), if
x ∈ N ∩ g2−1 (A)
(f ◦ g )(x),
1 2 if
(f ◦ g)(x) =
(f2 ◦ g1 )(x), if x ∈ M ∩ g1−1 (B)
(f2 ◦ g2 )(x), x ∈ N ∩ g2−1 (B)
if
Example 6.16. Let the functions f and g be given by
( (
2x + 1, if x ≤ 0 −x, if x < 2
f (x) = 2
and g(x) =
x, if x > 0 2, if x ≥ 2.
(a) Compute the following:
i. (g ◦ f )(0)
ii. (g ◦ f )(2)
√
iii. (g ◦ f )( 2)
iv. (g ◦ f )(1)
v. (g ◦ f )(−1)
(b) Find g ◦ f .
(c) Sketch the graphs of f and g.
Solution.
(a) We have the following:
i. (gof )(0) = g[f (0)] = g(1) = −1
ii. (gof )(2) = g[f (2)] = g(4) = 2
√ √
iii. (gof )( 2) = g[f ( 2)] = g(2) = 2
iv. (gof )(1) = g[f (1)] = g(1) = −1
v. (gof )(−1) = g[f (−1)] = g(−1) = 1
(b) We have that
−(2x + 1), if x ≤ 0, f (x) < 2
−x2 ,
if x > 0, f (x) < 2
(g ◦ f )(x) =
2, if x ≤ 0, f (x) ≥ 2
x > 0, f (x) ≥ 2
2,
−(2x + 1), if x ≤ 0, 2x + 1 < 2
−x2 ,
if x > 0, x2 < 2
=
2, if x ≤ 0, 2x + 1 ≥ 2
x > 0, x2 ≥ 2
2,
−(2x + 1), if x ≤ 0 √
= −x2 , if 0 < x < 2
√
2, if x ≥ 2.
bvnormenyo@ug.edu.gh 18
6 FUNCTIONS
y y
3 3
2 2
1 1
x x
−3 −2 −1 1 2 3 −3 −2 −1 1 2 3 4 5 6
−1 −1
−2 −2
−3 −3
(a) The graph of f . (b) The graph of g.
Figure 6.25:
The graph of any quadratic function is called a parabola. If a > 0 the parabola opens
upward. If a < 0 the parabola opens downward. The maximum or minimum point on the
parabola is called the vertex of the parabola. Parabolas are symmetric to a line called the
axis of symmetry.
Definition 6.19 (The standard form of the quadratic function). The standard form
of the quadratic function Q is
In standard form, given by Equation 6.3, the parabola has vertex at (h, k) and has axis of
symmetry x = h. To obtain the standard form of the quadratic function Q(x) = ax2 + bx + c
with a ̸= 0, we complete the squares. To complete the squares, we proceed as follows:
2 2 b c
Q(x) = ax + bx + c = a x + x +
a a
2 2 !
2 b b b c
=a x + x+ − +
a 2a 2a a
2 !
4ac − b2
b
=a x+ +
2a 4a2
2
4ac − b2
b
=a x+ + .
2a 4a
bvnormenyo@ug.edu.gh 19
6 FUNCTIONS
2
An equation of the form ax + bx + c = 0 with a ̸= 0 is called a quadratic equation. This
equation can be solved using the standard form obtained above. We obtain
2
b2 − 4ac
b
a x+ =
2a 4a
2 2
b b − 4ac
x+ =
2a 4a2
r
b b2 − 4ac
x+ =± 2
2a 4a
√
b b2 − 4ac
x=− ± ,
2a 2a
bvnormenyo@ug.edu.gh 20
6 FUNCTIONS
y
9
x
−5 −2 1
Solution. We first solve the equation 5 − 4x − x2 = 0 to find where the graph of f (x) =
5 − 4x − x2 cuts the x-axis. We then obtain a rough sketch of the graph of f (x) = 5 − 4x − x2
showing the x-intercepts. Next, we shade the portion of the x axis corresponding to f (x) < 0.
This is shown in Figure 6.27. We deduce that x ∈ (−∞, −5) ∪ (1, ∞).
−5 1
Figure 6.27:
Alternatively, after obtaining the x-intercepts we construct Table 6.1. From this table,
we notice that x ∈ (−∞, −5) ∪ (1, ∞).
Table 6.1:
Example 6.19. Determine the quadratic function with vertex (1, −5) and whose y-intercept
is −3.
Solution. Let the quadratic function be given by Q(x) = ax2 + bx + c with a ̸= 0. Since Q
has vertex (1, −5), we must have that Q(x) = a(x − 1)2 − 5, in standard form. Since the
y-intercept is −3, Q(0) = −3. This gives us a − 5 = −3, and so a = 2. Hence, the quadratic
function is Q(x) = 2(x − 1)2 − 5 = 2x2 − 4x − 3. ■
Definition 6.20 (Cubic function). A cubic function is any function f of the form
where a, b, c ∈ R and a ̸= 0.
bvnormenyo@ug.edu.gh 21
6 FUNCTIONS
If a > 0, the graph of f falls to the left and rises to the right. If a < 0 the graph of f
rises to the left and falls to the right. At a zero of even multiplicity, the graph of f touches
the x-axis. At a zero of odd multiplicity, the graph of f crosses the x-axis. The maximum
number of turning points is 2.
Example 6.20. Solve the following inequalities:
1. −x3 + 2x2 + x − 2 ≥ 0
2. x3 + 5x2 + 3x − 9 < 0
Solution.
1. Let G(x) = −x3 + 2x2 + x − 2 = (x − 1)(x + 1)(2 − x). We obtain a rough sketch of
the graph of G in Figure 6.28. Since G(x) ≥ 0, we consider the portion of the graph
above the x-axis. From Figure 6.28, we deduce that x ∈ (−∞, −1] ∪ [1, 2].
−1 1 2
Figure 6.28:
Alternatively, we can construct Table 6.2 from which we get x ∈ (−∞, −1] ∪ [1, 2].
Interval Sign of G(x)
(−∞, −1) +ve
(−1, 1) −ve
(1, 2) +ve
(2, ∞) −ve
Table 6.2:
−3 1
Figure 6.29:
can construct Table 6.3 from which we get x ∈ (−∞, −3) ∪ (−3, 1).
bvnormenyo@ug.edu.gh 22
6 FUNCTIONS
Interval Sign of G(x)
(−∞, −3) −ve
(−3, 1) −ve
(1, ∞) +ve
Table 6.3:
Definition 6.21 (Polynomial function). Let n be a nonnegative integer and let an , an−1 ,
. . ., a2 , a1 , a0 , be real numbers, with an ̸= 0. The function defined by
p(x)
R(x) = (6.6)
q(x)
where p and q are polynomial functions and q is not the zero polynomial.
4x + 5
Example 6.21. Solve the inequality ≥ 3.
x+2
Solution. For x ̸= −2, (x + 2)2 ∈ R+ . Thus, we get
We obtain a sketch of the graph of y = (x + 2)(x − 1). See Figure 6.30. Consequently, we
see that x ∈ (−∞, −2) ∪ [1, ∞).
−2 1
Figure 6.30:
■
NB: The following are some important properties of the absolute value function (or the
modulus function): Let k be a real constant. For all x ∈ R,
bvnormenyo@ug.edu.gh 23
√ 6 FUNCTIONS
iii. |x| = x2
Example 6.22. Solve the inequalities
(a) |2 − 3x| > 7
x+1
(b) ≤1
x−1
Solution.
(a) We note that the inequality |2 − 3x| > 7 implies that 2 − 3x < −7 or 2 − 3x > 7.
Consequently, we arrive at x < −5/3 or x > 3.
Alternatively, we may proceed as follows. Squaring both sides of the inequality
|2 − 3x| > 7, we get (2 − 3x)2 > 49. This gives us (3x + 5)(x − 3) > 0. We obtain
a rough sketch of the graph of f (x) = 3x2 − 4x − 15, which is shown in Figure 6.31.
From the sketch, we obtain x < −5/3 or x > 3.
5 3
−
3
Figure 6.31:
x+1 x+1
(b) The inequality ≤ 1 gives us −1 ≤ ≤ 1, which can be seen as the two
x−1 x−1
x+1 x+1
inequalities ≤ 1 and ≥ −1.
x−1 x−1
x+1
Now, we consider the inequality ≥ −1. For x ̸= 1, we multiply both sides by
x−1
2
(x − 1) and simplify to get x(x − 1) ≥ 0. We obtain a rough sketch of f (x) = x(x − 1),
shown in Figure 6.32, from which we deduce that x ∈ (−∞, 0] ∪ (1, ∞).
0 1
Figure 6.32:
bvnormenyo@ug.edu.gh 24
6 FUNCTIONS
We find the intersection of (−∞, 1) and (−∞, 0] ∪ (1, ∞), which gives us x ∈ (−∞, 0].
x+1
Alternative solution: Squaring both sides of ≤ 1, we obtain the inequality
x−1
(x + 1)2
≤ 1. It follows that
(x − 1)2
x2 + 2x + 1 ≤ x2 − 2x + 1
4x ≤ 0
x ≤ 0,
that is, x ∈ (−∞, 0].
■
Partial fractions
h(x)
We require that the fraction which is to be split into partial fractions be a proper
k(x)
h(x)
fraction. That is, deg(h(x)) < deg(k(x)). If is improper (that is, deg(h(x)) ≥
k(x)
h(x)
deg(k(x))), then we first express as
k(x)
h(x) r(x)
= q(x) + (6.8)
k(x) k(x)
r(x)
where q(x) is the quotient and r(x) is the remainder. We then split into partial fractions.
k(x)
F (x)
Let be a proper fraction to be resolved into partial fractions.
G(x)
1. Suppose that G(x) has a linear factor ax + b with multiplicity 1. That is, ax + b
F (x)
is a non-repeated linear factor in the denominator. Then, in partial fractions,
G(x)
includes the term
A
,
ax + b
where A is a constant to be determined.
2. Suppose that G(x) has a linear factor ax + b with multiplicity n ≥ 2. That is, ax + b is
F (x)
a repeated linear factor in the denominator. Then, in partial fractions, includes
G(x)
the n terms
A1 A2 A3 An
, 2
, 3
,..., ,
ax + b (ax + b) (ax + b) (ax + b)n
where A1 , A2 , A3 , . . . , An are constants to be determined.
3. Suppose that G(x) has an irreducible quadratic factor ax2 + bx + c with multiplicity 1.
That is, ax2 + bx + c is a non-repeated irreducible quadratic factor in the denominator.
F (x)
Then, in partial fractions, includes the term
G(x)
Ax + B
,
ax2 + bx + c
bvnormenyo@ug.edu.gh 25
6 FUNCTIONS
where A and B are constants to be determined.
4. Suppose that G(x) has an irreducible quadratic factor ax2 + bx + c with multiplicity
n ≥ 2. That is, ax2 +bx+c is a repeated irreducible quadratic factor in the denominator.
F (x)
Then, in partial fractions, includes the terms
G(x)
A1 x + B1 A2 x + B2 A3 x + B3 An x + Bn
2
, 2 2
, 2 3
,...,
ax + bx + c (ax + bx + c) (ax + bx + c) (ax2 + bx + c)n
where A1 , A2 , . . . , An , B1 , B2 , . . . , Bn are constants to be determined.
3x + 7
Example 6.23. Express in partial fractions.
x(x + 2)(x − 1)
3x + 7
Solution. Let F (x) = . We can expressed F (x) as
x(x + 2)(x − 1)
A B C
F (x) = + +
x x+2 x−1
A(x + 2)(x − 1) + Bx(x − 1) + Cx(x + 2)
= ,
x(x + 2)(x − 1)
where A, B and C are constants to be determined. This implies that
D = 6A − 3B + 2C = 1.
E = −3C + 6B + 2D − 2 = 0.
Therefore, we obtain
3 + 2x 1 x+2 x
2 2
= + + 2 .
(2 − x)(x + 3) 7(2 − x) 7(x + 3) (x + 3)2
2
■
x3 + 3x − 1
Example 6.25. Express in partial fractions.
(x2 + 1)(x − 1)2
x3 + 3x − 1
Solution. Let R(x) = . In partial fractions, R(x) is expressible as
(x2 + 1)(x − 1)2
Ax + B C D
R(x) = 2
+ +
x +1 x − 1 (x − 1)2
(Ax + B)(x − 1)2 + C(x2 + 1)(x − 1) + D(x2 + 1)
= ,
(x2 + 1)(x − 1)2
where A, B, C and D are constants to be determined. We observe that
x3 + 3x − 1 −(x + 2) 3 3
2 2
= + + .
(x + 1)(x − 1) 2(x + 1) 2(x − 1) 2(x − 1)2
2
Definition 6.23 (The exponential function). The exponential function f with base b is
defined by
f (x) = bx (6.14)
for every x ∈ R where b is a positive constant other than 1 (b > 0 and b ̸= 1).
y y
1 1
x x
1 1
(a) Graph of y = ax , 0 < a < 1. (b) Graph of y = ax , a > 1.
Figure 6.33:
Definition 6.24 (The logarithmic function). For x > 0 and b > 0 with b ̸= 1, the
logarithmic function to the base b, denoted by y = logb x, is defined by
y = logb x ⇐⇒ x = by .
The logarithmic function with base e is called the natural logarithmic function. The
function f (x) = loge x is usually written as f (x) = ln x.
Transformations of functions
Vertical shifts: Let f be a function and c a positive real number.
• The graph of y = f (x) + c is the graph of y = f (x) shifted c units vertically upward.
• The graph of y = f (x) − c is the graph of y = f (x) shifted c units vertically downward.
bvnormenyo@ug.edu.gh 28
6 FUNCTIONS
y y
1 1
x x
1 1
Figure 6.34:
Vertical stretching and shrinking: Let f be a function and c a positive real number.
2. If 0 < c < 1, the graph of y = cf (x) is the graph of y = f (x) vertically shrunk by
multiplying each of its y-coordinates by c.
Horizontal stretching and shrinking: Let f be a function and c a positive real number.
1. If 0 < c < 1, the graph of y = f (cx) is the graph of y = f (x) horizontally stretched by
1
multiplying each of its x-coordinates by .
c
2. If c > 1, the graph of y = f (cx) is the graph of y = f (x) horizontally shrunk by
1
multiplying each of its x-coordinates by .
c
Reflection about the x-axis: The graph of y = −f (x) is the graph of y = f (x) reflected
about the x-axis.
Reflection about the y-axis: The graph of y = f (−x) is the graph of y = f (x) reflected
about the y-axis.
EXERCISE SIX
1. Let X = {a, b, c} and Y = {a, b, c}. Which of the following subsets of X × Y are
functions X −→ Y ?
bvnormenyo@ug.edu.gh 29
6 FUNCTIONS
(d) {(a, 1), (b, 3)}
(e) {(c, 1), (a, 2), (b, 3), (c, 2)}
(f) {(a, 3), (c, 3), (b, 3)}
w w 1
w 1 1
x 1 x 2
2 x
y 2 y 2
y 3
z 3 z 3
3
4 4
(a) (b) (c) (d)
Figure 6.35:
bvnormenyo@ug.edu.gh 30
6 FUNCTIONS
3
(b) f
(c) f 4 and deduce an expression for f 5 . In each case, obtain the domain.
10. Let X and Y be sets and f : X −→ Y a function. Prove that f is one-to-one if and
only if f (A ∩ B) = f (A) ∩ f (B) for all subsets A, B of X.
11. For the given functions f and g, find the following composite functions and their
domains.
i. f ◦ g
ii. g ◦ f
iii. f ◦ f
iv. g ◦ g
x−5 x+2
(a) f (x) = ; g(x) =
x+1 x−3
x+3
(b) f (x) = 6x − 3; g(x) =
6
√
(c) f (x) = x; f (x) = 2x + 3
12. The roots of the quadratic equation x2 + px + q = 0 are α and β. Find in terms of p
and q, the quadratic equation whose roots are a3 − pa2 and β 3 − pβ 2 .
13. If the roots of the quadratic equation ax2 + bx + c = 0 differ by 1, show that they are
a−b a−b
and − , and prove that b2 = a(a + 4c).
2a 2a
14. The roots of 2x2 − x − 3 = 0 are α and β. Find the equations whose roots are
α+1 β+1
(a) , (e)α2 , β 2
β+1 α+1 1 1
(b) α3 , β 3 (f)1 − , 1 −
α β α β
(c) , (g)α − β, β − α
β α 1 1
(d)α + 2, β + 2 (h) ,
α β
15. Let a be the remainder when a polynomial f (x) is divided by (x − a). Let b be a
remainder when f (x) is divided by (x − β)(β ̸= α). Find the remainder when f (x) is
divided by (x − α)(x − β) in terms of a, b, α, and β
16. The equation 3x3 + 6x2 − 4x + 7 has roots α, β, γ. Find the equations with roots
1 1 1
(a) , ,
α β γ
(b) β + γ, γ + α, α + β
17. Find the relationship between a, b and c such that the equations x2 − ax + b = 0 and
ax2 + x − c = 0 have a common root.
bvnormenyo@ug.edu.gh 31
6 FUNCTIONS
18. Solve the following equations given that each has a repeated root.
20. Find the values of a for which the expression (2a + 3)x2 − 6x + 4 − a is a perfect square.
25. Solve the following inequalities and show the results on a number line.
1−x
(a) 2 −
3
(b) |1 − 3x| > 1
2x − 1 1
(c) ≤
3 6
x+1 x−1
(d) − ≤1
2 3
26. Prove that if x2 > k(x + 1) for all real x then −4 < k < 0.
27. By completing the square or otherwise, prove that the inequality x2 − 2px + q > 0
holds for all values of x if and only if q > p2 .
bvnormenyo@ug.edu.gh 32
6 FUNCTIONS
2
3x + 1
29. Use the substitution y = x + 1 to express in the form
(x + 1)3
A B C
+ 2
+ .
x + 1 (x + 1) (x + 1)3
bvnormenyo@ug.edu.gh 33