Basic Mathematics I - Lecture 5.
Basic Mathematics I - Lecture 5.
Function: it is a special type of relation where each element in the first set (called the domain) is
related to exactly one element in the second set (called the codomain). In other words, for every
input, there is only one unique output.
Notations
𝐹 = function
𝑋 = the independent variable
𝑌 = the dependent variable
𝐹(𝑥), 𝑔(𝑥), 𝑎𝑛𝑑 ℎ(𝑥) = 𝑣𝑎𝑙𝑢𝑒 𝑜𝑓 𝑡ℎ𝑒 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛 𝑎𝑡 𝑥
Examples of functions
i. 𝑓(𝑥) = 𝑥2
ii. 𝑓(𝑥) = 𝑥2 + 1
iii. 𝑓(𝑥) = 3𝑥3 + 2𝑥2 + 4𝑥 + 1
Example 1
Let X = {apple, banana, orange} and Y = {red, yellow, orange}.
Example 2
Determine whether each of the following mappings is a function or not.
x 𝑦 𝑥 𝑦 𝑥 𝑦
-4
-10 -2
2
-3 3 -2
-12 -0
3
-2 6 -1
4 1
4
-1 7 0
5 2
5
0
3
6
6
2
42
3
Basic Mathematics I University of Juba
Yes, it’s a function. Yes, it’s a function. Not a function.
Note that the third mapping is not a function because there is no way 1 can have two
outputs, say 3 & 4.
Domain of a function
It is the set of all values of the independent variable for which the function is defined. If
𝑥 is not in the domain of 𝑓, then we say that 𝑓 is independent at 𝑥. If 𝑥 is in the domain
of 𝑓, we say that 𝑓 is defined at 𝑥.
Example 1
Let 𝑦 ≥ 𝑥2 with the domain of −2 ≤ 𝑥 ≤ 2. Determine the relationship between domain and
range
Solution
Domain Range
−2
−1 0
0 {1}
1 4
{2}
Example 2
a) 𝑥2 + 𝑦 = 1, 𝑡ℎ𝑖𝑠 𝑤𝑖𝑙𝑙 𝑏𝑒 𝑦 = 1 − 𝑥2
b) −𝑥 + 𝑦2 = 1, 𝑡ℎ𝑖𝑠 𝑤𝑖𝑙𝑙 𝑏𝑒 𝑦2 = 1 + 𝑥, 𝑡ℎ𝑒𝑛 𝑦 = √1 + 𝑥
Evaluating a function
Example 1
a. 𝑔(2)
b. 𝑔(𝑡)
c. 𝑔(𝑥 − 2)
43
Basic Mathematics I University of Juba
Solution
a. 𝑔(𝑥) = −𝑥2 + 4𝑥 + 1
𝑔(2) = −(22) + 4× 2 + 1 = −4 + 8 + 1 = 5
b. 𝑔(𝑡) = −(𝑡2) + 4 × 𝑡 + 1 = −𝑡2 + 4𝑡 + 1
c. 𝑔(𝑥 − 2) = −(𝑥 − 2)2 + 4(𝑥 − 2) + 1 = −𝑥2 + 4𝑥 − 4 + 4𝑥 − 8 + 1 = −𝑥2 + 8𝑥 – 11
(𝑓𝑔)(𝑥) = 𝑓(𝑥)𝑔(𝑥)
iv) Quotient
𝑓 𝑓(𝑥)
( ) (𝑥) =
𝑔 𝑔(𝑥)
Example 1
Solution
(𝒇 + 𝒈)(𝒙) = 𝑓(𝑥) + 𝑔(𝑥)
= (1 + √𝑥 − 2 ) + (𝑥 − 3) = 𝑥 − 2 + √𝑥 − 2
= (1 + √𝑥 − 2 ) − (𝑥 − 3)
44
Basic Mathematics I University of Juba
= 1 + √𝑥 − 2 − 𝑥 + 3 = 4 − 𝑥 + √𝑥 − 2
(𝒇𝒈)(𝒙) = 𝑓(𝑥)𝑔(𝑥)
= (1 + √𝑥 − 2 )(𝑥 − 3)
= 𝑥 − 3 + 𝑥√𝑥 − 2 − 3√𝑥 − 2
Or = (1 + √𝑥 − 2 )(𝑥 − 3) as before
𝒇 𝑓(𝑥) 1 + √𝑥 − 2
( ) (𝒙) = =
𝒈 𝑔(𝑥) 𝑥−3
(𝟕𝒇)(𝒙) = 7𝑓(𝑥)
= 7(1 + √𝑥 − 2 ) = 7 + 7√𝑥 − 2
Example 2
Solution
Composite functions
Example 1
45
Basic Mathematics I University of Juba
Find the following;
a. (𝑓. 𝑜. 𝑔)(𝑥)
b. (𝑔. 𝑜. 𝑓)(𝑥)
Solution
Example 2
a. (𝑓. 𝑜. 𝑔)(5)
b. (𝑓. 𝑜. 𝑔)(𝑥)
c. (𝑔. 𝑜. 𝑓)
d. (𝑔. 𝑜. 𝑔)
Solution
i. (𝑓. 𝑜. 𝑓. 𝑜. 𝑓)(𝑥)
ii. (𝑔. 𝑜. 𝑔. 𝑜. 𝑔)(𝑥)
iii. (𝑓. 𝑜. 𝑔. 𝑜. 𝑓)(𝑥)
Solution
Inverse functions are functions that “reverse” each other. For example, if 𝑓 takes 𝑎 and 𝑏, then
the inverse, 𝑓 −1, must take 𝑏 to 𝑎.
𝑎 → (𝑓) → 𝑏 → (𝑓−1) → 𝑎
Given the function 𝑓(𝑥), 𝑡ℎ𝑒𝑛 𝑤𝑒 𝑐𝑎𝑛 𝑓𝑖𝑛𝑑 𝑡ℎ𝑒 𝑖𝑛𝑣𝑒𝑟𝑠𝑒 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛 𝑎𝑠 𝑓 −1 (𝑥)
47
Basic Mathematics I University of Juba
Steps to follow when determining the inverse of a function
i. First replace 𝑓(𝑥) with 𝑦
ii. Replace every 𝑥 with 𝑦 and 𝑦 with 𝑥
iii. Solve 𝑦
iv. Replace y with 𝑓 −1 (𝑥)
Example 1
Solution
𝑓 (𝑥) = 3𝑥 − 2
𝑦 = 3𝑥 − 2
𝑥 = 3𝑦 − 2
𝑥+2 𝑥 2
3𝑦 = 𝑥 + 2, 𝑦= = 3+3
3
𝟏 𝟐
𝑓 −1 (𝑥) = 𝒙+
𝟑 𝟑
Example 2
Solution
𝑓 (𝑥) = √6𝑥 + 2
𝑦 = √6𝑥 + 2
𝑥 2 = 6𝑦 + 2
1 1
6𝑦 = 𝑥 2 − 2, 𝑦 = 6 𝑥2 + 3
48
Basic Mathematics I University of Juba
𝟏 𝟐 𝟏
𝑓 −1 (𝑥) = 𝒙 +
𝟔 𝟑
Example 3
1
Given 𝑓 (𝑥) = 2𝑥 + 3, and 𝑔(𝑥) = 2 (𝑥 − 3),
Obtain:
a) (𝑓. 𝑜. 𝑔)(𝑥)
b) (𝑔. 𝑜. 𝑓)(𝑥)
Solution
1
a) (𝑓. 𝑜. 𝑔)(𝑥) = 𝑓(𝑔(𝑥) = 𝑓( (𝑥 − 3)
2
1
= 2. ( (𝑥 − 3) + 3)
2
=𝒙
b) (𝑔. 𝑜. 𝑓)(𝑥) = 𝑔(𝑓(𝑥) = 𝑔(2𝑥 + 3)
1
= [(2𝑥 + 3) − 3]
2
3 3
=𝑥+2−2
=𝒙
Practice Questions
A a
B b
C c
D d
50
Basic Mathematics I University of Juba