Relations and Functions
Relations and Functions
YouTubeChannel: MATH TV
RELATIONS AND FUNCTIONS
Eg) { (-2, -1), (-1, 2), (0, 5), (1, 8), (2, 11) }
The set of first elements of the ordered pairs is called the DOMAIN
and these are usually represented by x.
The set of second elements of the ordered pairs is called the RANGE
and these are usually represented by y.
Mapping Diagram x → 3x + 5
{ (-2, -1), (-1, 2), (0, 5), (1, 8), (2, 11) }
-2 -1
-1 2
0 5
1 8
2 11
Relation on A Graph
Ordered Pairs: {(-2, -1), (-1, 2), (0, 5), (1, 8), (2, 11)}
FUNCTIONS
A is fully defined only after the domain itself is defined, and the
definition of the range therefore depends on the definition of the
domain. When the domain is not stated, it is assumed to be x ∈ 𝑹, i.e.
the full set of real numbers.
Types of Relation
𝑓 (𝑥 ) = 3𝑥 + 5 or 𝑦 = 3𝑥 + 5
Many-to-One(A Function)
The mapping diagram and the graph of the relation based on the
domain:{𝑥: −2 ≤ 𝑥 ≤ 2} which produces the ordered pairs
(−2,4), (−1,1), (0,0), (1,1), (2,4) would appear.
𝑥 → 𝑥2
-2
-1 0
0 1
1 4
2
In the case of the quadratic relation above, two different elements in
the domain mapped to the same (1) element in the range, but each
element is mapped onto one and only one element in the range.
Domain → Range
0 -2
-1
1 0
1
4 2
44
In this case each element in the domain is mapped to two (many)
elements in the range and relation 𝑥 → ±√𝑥 is not a function.
𝑓 (𝑥 ) = 3𝑥 + 1 i.e. 𝑓 = 3𝑥 + 1
→ 𝑥 = 3𝑓 −1 + 1
→ 𝑥 − 1 = 3𝑓 −1
𝑥−1
→ = 𝑓 −1
3
𝑥−1
i.e. 𝑓 −1(𝑥) =
3
𝑥−1
𝑓 (𝑥 ) = 3𝑥 + 1 𝑓 −1(𝑥 ) =
3
-2 -5 -2 -5
-1 -2 -1 -2
0 1 0 1
1 4 1 4
2 7 2 7
Class Work
Find the Inverse Function of the following:
1. 𝑔(𝑥 ) = 3𝑥 + 2
4𝑥+5
2. 𝑓 (𝑥 ) =
𝑥+2
Composite functions
That is, apply g(x) first and then apply f(x) to the result of g(x).
𝑥 → 𝑔 𝑔(𝑥) →𝑓 𝑓𝑔(𝑥)
Example
Then 𝑓𝑖𝑛𝑑 𝑔𝑓 (𝑥 ) 𝑖. 𝑒. 𝑔 𝑜𝑓 𝑓 𝑜𝑓 𝑥
i.e. 𝑔𝑓(𝑥) = 6𝑥 − 1
i.e. f of g of x
i.e. fg(x) = 6x + 3
Note:- 𝑔𝑓 ≠ 𝑓𝑔
Class Work
𝐿𝑒𝑡 𝑓 (𝑥 ) = 2𝑥 + 5 𝑎𝑛𝑑 𝑔(𝑥 ) = 3𝑥 − 1
1. Find fg(2) and gf(−1)
Method 1
Method 2
𝑓𝑔(𝑥) = 2(3𝑥 − 1) + 5 = 6𝑥 + 3
Question 2
2𝑥−7
Given the function 𝑓 (𝑥 ) = 𝑎𝑛𝑑 𝑔(𝑥 ) = √𝑥 + 3
𝑥+1
a) Evaluate 𝑔(6)
b) Evaluate 𝑓𝑔(6)
c) Find 𝑓 −1 (−1), 𝑔−1(−1), 𝑔𝑓(𝑥)
Question 3
Redraw the sketch and show inverse function, 𝑓 −1(𝑥), Draw the line
which represents the relationship between
𝑓 (𝑥 ) 𝑎𝑛𝑑 𝑓 −1(𝑥 ), 𝑎𝑛𝑑 𝑠𝑡𝑎𝑡𝑒 𝑤ℎ𝑎𝑡 𝑡ℎ𝑒 𝑟𝑒𝑙𝑎𝑡𝑖𝑜𝑛𝑠ℎ𝑖𝑝 𝑖𝑠.
Using Inverse Function to Solve Equations
Also 𝑓 −1(𝑓 (𝑥 )) = 𝑥
Example
4𝑥+5 4𝑥+5
Given 𝑓(𝑥) = find 𝑓 −1(𝑥) and hence solve the equation =3
𝑥 +2 𝑥 +2
Undefined Function
Steps
Classwork
𝟏. 𝑓(𝑥 ) = 3𝑥 − 4, 𝑓𝑖𝑛𝑑 𝑓 −1(𝑥 ) 𝑎𝑛𝑑 ℎ𝑒𝑛𝑐𝑒 𝑠𝑜𝑙𝑣𝑒 3𝑥 − 4 = 5
4𝑥 + 5
𝟐. 𝐹𝑖𝑛𝑑 𝑡ℎ𝑒 𝑣𝑎𝑙𝑢𝑒 𝑜𝑓 𝑥 𝑓𝑜𝑟 𝑤ℎ𝑖𝑐ℎ 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛 ℎ(𝑥 ) = 𝑖𝑠 𝑢𝑛𝑑𝑒𝑓𝑖𝑛𝑒𝑑.
2𝑥 − 3
3. 𝑎) 𝐺𝑖𝑣𝑒𝑛 𝑡ℎ𝑒 𝑐𝑜𝑚𝑝𝑜𝑠𝑖𝑡𝑒 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛, 𝑠𝑢𝑐ℎ 𝑡ℎ𝑎𝑡: −
𝑓𝑔(𝑥 ) = 3(2𝑥 − 1)2 + 2 𝑓𝑖𝑛𝑑 𝑡ℎ𝑒 𝑠𝑖𝑛𝑔𝑙𝑒 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛𝑠 𝑔(𝑥 ) 𝑎𝑛𝑑 𝑓(𝑥)
𝑏) 𝐹𝑖𝑛𝑑 𝑔−1(𝑥 )𝑎𝑛𝑑 𝑓 −1(𝑥 ), 𝑎𝑛𝑑 ℎ𝑒𝑛𝑐𝑒 𝑓𝑖𝑛𝑑 (𝑓𝑔)−1(𝑥 )
Functions terminologies and their meanings
Written (−3,2) are used for open ends. Solution Set {𝑥: −3 < 𝑥 < 2}
Written [−3,2] are used for open ends. Solution Set {𝑥: −3 ≤ 𝑥 ≤ 2}
Half open: An interval that contains one endpoint but not the other
Written (−3,2] are used for open ends. Solution Set {𝑥: −3 < 𝑥 ≤ 2}
Let set A= {𝑎, 𝑏, 𝑐, 𝑑} Map to set B= {1,2,3,4,5} such that the relation of
f is given as 𝑓: 𝑨 → 𝑩
Domain: Set A is the domain and it contains the elements from which
the input values for relation f can be taken.
Range: The range is the actual set of output values that are used from
the codomain B. The range can therefore be a subset of the Co-domain
or the entire codomain.
a 1
b 2
c 3
d 4
5
a 1
b 2
c 3
d 4
5
a 1
b 2
c 3
d 4
5
b → 4 and d→ 4
a 1
b 2
c 3
d 4
5
a 1
b 2
c 3
d
b→ 3 and c → 3 (many-to-one) so it is many to one
Bijective Functions
a 1
b 2
c 3
d 4
y axis
Horizontal Line HL
x axis
3𝑥−1
Example: 𝑓 (𝑥 ) = , determine if f(x) is one-to-one.
2𝑥+1
HL
Steps
1. Solve if f(a)=b
Properties of 𝒇
Many-to-One Function
No Inverse
Range is: 𝑓(𝑥) ≥ 0
Properties of 𝒇
Many-to-One Function
No Inverse
Range is: 0 ≤ 𝑓(𝑥) ≤ 4
Properties of 𝒇
One-to-One Function
Has Inverse, 𝑓 −1(𝑥 ) = √𝑥 + 1
Range is: 𝑓(𝑥) ≥ 0
Properties of 𝒇−𝟏
One-to-One Function
Has Inverse, 𝑓 (𝑥 ) = (𝑥 − 1)2
Domain is: 𝑥 ≥ 0
Range is: 𝑓 −1(𝑥) ≥ 1
Inverse of a Quadratic Function
𝐵𝑦 𝐶𝑜𝑚𝑝𝑙𝑒𝑡𝑖𝑛𝑔 𝑡ℎ𝑒 𝑠𝑞𝑢𝑎𝑟𝑒 𝑓𝑖𝑛𝑑 𝑡ℎ𝑒 𝑣𝑎𝑙𝑢𝑒 𝑜𝑓 𝑘 𝑓𝑜𝑟 𝑤ℎ𝑖𝑐ℎ 𝑓 (𝑥 ) ℎ𝑎𝑠 𝑎𝑛 𝑖𝑛𝑣𝑒𝑟𝑠𝑒.
𝐻𝑒𝑛𝑐𝑒 𝑓𝑖𝑛𝑑 𝑓 −1𝑎𝑛𝑑 𝑠𝑡𝑎𝑡𝑒 𝑖𝑡𝑠 𝑑𝑜𝑚𝑎𝑖𝑛 𝑎𝑛𝑑 𝑟𝑎𝑛𝑔𝑒
𝑺𝒐𝒍𝒖𝒕𝒊𝒐𝒏: 𝑓(𝑥 ) = 𝑥 2 − 4𝑥 + 5 = (𝑥 − 2)2 + 1
i.e. 𝑘 = 2
So 𝑓 (𝑥 ) = (𝑥 − 2)2 + 1
Domain of 𝑓: 𝑥 ≥ 𝑥𝑡 … … … 𝑥 ≥ 2
Range of 𝑓: 𝑓 ≥ 𝑦𝑡 … … … 𝑓 ≥ 1
Now, 𝑓 −1(𝑥 ) = √𝑥 − 1 + 2
Domain of 𝑓 −1 : 𝑥 ≥ 1
Range of 𝑓 −1: 𝑓 −1 ≥ 2
Increasing and Decreasing Function
The gradient of the line AB, 𝑚𝐴𝐵 , will indicate whether 𝑓(𝑥 ) is
increasing or decreasing on the interval 𝑎 < 𝑥 < 𝑏
𝑓 (𝑏) − 𝑓(𝑎)
𝑚𝐴𝐵 =
𝑏−𝑎
𝐼𝑓 𝑚𝐴𝐵 > 0 𝑡ℎ𝑒𝑛 𝑓 (𝑥 ) 𝑖𝑠 𝑖𝑛𝑐𝑟𝑒𝑎𝑠𝑖𝑛𝑔 𝑖𝑛 𝑡ℎ𝑒 𝑖𝑛𝑡𝑒𝑟𝑣𝑎𝑙 𝑎 < 𝑥 < 𝑏.
𝐼𝑓 𝑚𝐴𝐵 < 0 𝑡ℎ𝑒𝑛 𝑓 (𝑥 ) 𝑖𝑠 𝑖𝑛𝑐𝑟𝑒𝑎𝑠𝑖𝑛𝑔 𝑖𝑛 𝑡ℎ𝑒 𝑖𝑛𝑡𝑒𝑟𝑣𝑎𝑙 𝑎 < 𝑥 < 𝑏.
1. 𝑦 = 𝑓(𝑥 ) + 𝑎
2. 𝑦 = 𝑓(𝑥 − 𝑎)
3. 𝑦 = −𝑓(𝑥)
4. 𝑦 = 𝑓(−𝑥 )
5. 𝑦 = 𝑓 −1(𝑥 )
6. 𝑦 = |𝑓(𝑥)|
7. 𝑦 = 𝒂𝑓 (𝑥 )
This is a one-way stretch of the curve 𝑦 = 𝑓(𝑥) by a factor of 𝒂
𝑝𝑎𝑟𝑎𝑙𝑙𝑒𝑙 𝑡𝑜 𝑡ℎ𝑒 𝑦 direction
8. 𝑦 = 𝑓(𝒂𝑥)
1
This is a one-way stretch of the curve 𝑦 = 𝑓(𝑥) by a factor of
𝑎
𝑝𝑎𝑟𝑎𝑙𝑙𝑒𝑙 𝑡𝑜 𝑡ℎ𝑒 𝑥 direction