Uploaded by feyix77768

DMS Functions NOTES

advertisement
Module - 3
Relations and Functions : Cartesian Products and
Relations: Computer Recognition – Zero-One Matrices
and
Directed
Graphs,
Properties
of
Relations,
Equivalence Relations and Partitions, Partial Orders –
Hasse Diagrams.
Functions – Plain and One-to-One, Onto Functions. The
Pigeon-hole
Principle,
Inverse Functions.
Function
Composition
and
Functions
›
Let ๐ด and ๐ต be non empty sets. Then function (or mapping) from ๐ด to ๐ต
such that for each ๐‘Ž in ๐ด, there exists unique ๐‘ in ๐ต such that ๐‘Ž, ๐‘ ∈ ๐‘“.
Then we write ๐‘ = ๐‘“(๐‘Ž). Here ๐‘ is called image of ๐‘Ž and ๐‘Ž is called
preimage of ๐‘ under ๐‘“.
›
A function from ๐ด to ๐ต is denoted by ๐‘“: ๐ด → ๐ต. The pictorial
representation of ๐‘“ is as below
๐‘“
๐‘“
Is a Function
is a relation not a function
๐‘“
›
Every function is relation but every relation is not a function.
โˆต If ๐‘… is a relation from ๐ด to ๐ต then an element ๐ด can be related to two
elements of ๐ต under ๐‘….
But under function, an element of ๐‘Ž can be related only one element of ๐ต
Functions Cont..
๐‘“
๐‘“
›
For the function ๐‘“: ๐ด → ๐ต, ๐ด is called domain of ๐‘“ and ๐ต is called codomain of ๐‘“.
›
The subset of ๐ต consisting of the images of all elements of ๐ด under ๐‘“ is
called range of ๐’‡ and denoted by ๐‘“(๐ด).
Note: 1. Every ๐‘Ž in ๐ด belong to some pair ๐‘Ž, ๐‘ ∈ ๐‘“ and if ๐‘Ž, ๐‘1 ∈ ๐‘“ and ๐‘Ž, ๐‘2 ∈ ๐‘“
then ๐‘1 = ๐‘2.
2.
An element ๐‘ ∈ ๐ต need not have a preimage in ๐ด, under ๐‘“.
Functions Cont…
Note: 3. Two different elements of ๐ด can have same image in ๐ต under ๐‘“.
4.
The statements ๐‘Ž, ๐‘ ∈ ๐‘“ if ๐‘Ž๐‘“๐‘ and ๐‘ = ๐‘“(๐‘Ž) are equivalent.
5.
If ๐‘” is a function from ๐ด to ๐ต, then ๐‘“ = ๐‘”, iff ๐‘“ ๐‘Ž = ๐‘” ๐‘Ž , ∀๐‘Ž ∈ ๐ด
6.
The range of ๐‘“: ๐ด → ๐ต is
๐‘“ ๐ด ๐‘–๐‘  ๐‘ ๐‘ข๐‘๐‘ ๐‘’๐‘ก ๐‘œ๐‘“ ๐ต.
7.
For ๐‘“: ๐ด → ๐ต, if ๐ด1 ⊆ ๐ด and ๐‘“ ๐ด1 is defined by ๐‘“ ๐ด1 = {๐‘“(๐‘ฅ)|๐‘ฅ ∈ ๐ด1 )} then
๐‘“(๐ด1 ) ⊆ ๐‘“(๐ด). Here, ๐‘“(๐ด1 ) is called the image of ๐ด1 under ๐‘“.
8.
For ๐‘“: ๐ด → ๐ต, if ๐‘ ∈ ๐ต and ๐‘“ −1 ๐‘ is defined by๐‘“ −1 ๐‘ = ๐‘ฅ ∈ ๐ด ๐‘“ ๐‘ฅ = ๐‘}
then๐‘“ −1 ๐‘ ⊆ ๐ด). Here, ๐‘“ −1 ๐‘ is called the preimage of ๐‘ under ๐‘“.
9.
For ๐‘“: ๐ด → ๐ต, if ๐ต1 ⊆ ๐ต and ๐‘“ −1 (๐ต1 ) is defined by๐‘“ −1 (๐ต1 ) = ๐‘ฅ ∈ ๐ด ๐‘“ ๐‘ฅ =
(๐ต1 } then๐‘“ −1 ๐‘ ⊆ ๐ด). Here, ๐‘“ −1 ๐‘ is called the preimage of ๐ต1 under ๐‘“.
given
by
๐‘“ ๐ด = ๐‘“ ๐‘ฅ
๐‘ฅ∈๐ด }
and
Types of Functions
1.
Identity Function:- A function on set ๐ด is an identity function, if the image
of every element of ๐ด(under f) is itself and is denoted by IA.
i.e. ๐‘“: ๐ด → ๐ด is such that ๐‘“(๐‘Ž) = ๐‘Ž, ∀๐‘Ž ∈ ๐ด. In case of identity function,
๐‘“(๐ด) = ๐ด.
2.
Constant Function:- A function ๐‘“: ๐ด → ๐ต is called constant function, if
๐‘“ ๐‘Ž = ๐‘, ∀๐‘Ž ∈ ๐ด.
i.e. ๐‘“ is constant function if the image of every element of ๐ด is same in B.
In this case ๐‘“ ๐ด = {๐‘}.
3.
Onto Function (Surjective):- A function ๐‘“: ๐ด → ๐ต is said to be Onto
function from ๐ด to ๐ต, if every element ๐‘ of ๐ต there exists an element ๐‘Ž of
๐ด such that ๐‘“(๐‘Ž) = ๐‘.
i.e. ๐‘“ is Onto function from ๐ด to ๐ต, if every element ๐‘ of ๐ต has a preimage
in ๐ด. (no elements in ๐ต should be free).
Types of Functions
4.
One-to-One Function (Injective):- A function ๐‘“: ๐ด → ๐ต is said to be One-toOne function from ๐ด to ๐ต, if different elements of ๐ด have different images
in ๐ต under ๐‘“.
i.e., If ๐‘“(๐‘Ž1) = ๐‘“(๐‘Ž2) then ๐‘Ž1 = ๐‘Ž2, where ๐‘Ž1, ๐‘Ž2 ∈ ๐ด
(Or) If ๐‘Ž1 ≠ ๐‘Ž2, then ๐‘“(๐‘Ž1) ≠ ๐‘“(๐‘Ž2)
5.
One-to-One Correspondence (Bijective):- A function ๐‘“: ๐ด → ๐ต is said to be
One-to-One correspondence, if ๐’‡ is both one-one ant onto function from ๐ด
to ๐ต.
A function ๐‘“: ๐ด → ๐ต is a bijective function then every element of ๐ด has
unique image in ๐ต and every element of ๐ต has a unique preimage in ๐ด.
Types of Functions
Note:
› If ๐‘“: ๐ด → ๐ต, |๐ด| = ๐‘š, |๐ต| = ๐‘›, then there are ๐’๐’Ž functions from ๐ด to ๐ต
๐’!
and if ๐‘š ≤ ๐‘›, then there are
one-to-one functions from A to B.
๐’−๐’Ž!
›
Let ๐ด and ๐ต be finite sets with |๐ด| = ๐‘š, |๐ต| = ๐‘›, where ๐‘š ≥ ๐‘›, then
number of onto functions from ๐ด to ๐ต is given by the formula
๐’
๐’๐’๐’•๐’ ๐’‡๐’–๐’๐’„๐’•๐’Š๐’๐’๐’” = เท −๐Ÿ
๐’Œ ๐’๐‘ช
๐’−๐’Œ
(๐’ − ๐’Œ)๐’Ž
๐’Œ=๐ŸŽ
›
If ๐‘š < ๐‘›, then there are no onto functions from ๐ด to ๐ต.
Problems on Functions
1.
Let A = {1, 2, 3, 4}, determine whether the following relations on A are
functions.
i.
f = {(2,3) (1,4)(2,1)(3,2)(4,4)}
ii. g = {(2,1) (3,4) (1,4)(2,1) (4,4)
i.
We see that ๐Ÿ, ๐Ÿ‘ ∈ ๐’‡ and ๐Ÿ, ๐Ÿ ∈ ๐’‡, that is element 2 is related to
two different elements 3 and 1, under ๐‘“.
∴ ๐’‡ is not a function
ii.
We see that under ๐‘”, every element of ๐ด is related unique element in
๐ด
∴ ๐’ˆ is a function from ๐‘จ → ๐‘จ
Range of g is ๐‘” (๐ด) = { 1, 4}
(2,1) appears twice. This has no special significance.
Problems on Functions
2.
Let A = {0, ±๐Ÿ, ±๐Ÿ, ±๐Ÿ‘}, consider ๐’‡: ๐‘จ → ๐‘น (where R is the set of real
numbers) defined by ๐’‡ ๐’™ = ๐’™๐Ÿ‘ − ๐Ÿ๐’™๐Ÿ + ๐Ÿ‘๐’™ + ๐Ÿ, find the range of ๐’‡.
๐’‡ ๐ŸŽ =๐Ÿ
๐’‡ ๐Ÿ = ๐Ÿ๐Ÿ‘ − ๐Ÿ ๐Ÿ
๐’‡ ๐Ÿ =๐Ÿ•
๐Ÿ
+๐Ÿ‘ ๐Ÿ + ๐Ÿ = ๐Ÿ‘
๐’‡ −๐Ÿ = −๐Ÿ๐Ÿ
๐’‡(−๐Ÿ‘) = −๐Ÿ“๐Ÿ‘
∴ Range of ๐’‡ = −๐Ÿ“๐Ÿ‘, −๐Ÿ๐Ÿ, −๐Ÿ“, ๐Ÿ, ๐Ÿ‘, ๐Ÿ•, ๐Ÿ๐Ÿ—
๐’‡ −๐Ÿ = −๐Ÿ“
๐’‡ ๐Ÿ‘ = ๐Ÿ๐Ÿ—
Problems on Functions
3.
Let ๐‘จ = {๐Ÿ, ๐Ÿ, ๐Ÿ‘, ๐Ÿ’, ๐Ÿ“, ๐Ÿ”} and ๐‘ฉ = {๐Ÿ”, ๐Ÿ•, ๐Ÿ–, ๐Ÿ—, ๐Ÿ๐ŸŽ}. If a function ๐’‡: ๐‘จ → ๐‘ฉ is
defined by ๐’‡ = { ๐Ÿ, ๐Ÿ•) ๐Ÿ, ๐Ÿ• ๐Ÿ‘, ๐Ÿ– ๐Ÿ’, ๐Ÿ” ๐Ÿ“, ๐Ÿ— ๐Ÿ”, ๐Ÿ— . Determine ๐’‡−๐Ÿ (๐Ÿ”) and
๐’‡−๐Ÿ (๐Ÿ—). If ๐‘ฉ๐Ÿ = {๐Ÿ•, ๐Ÿ–} and ๐‘ฉ๐Ÿ = {๐Ÿ–, ๐Ÿ—, ๐Ÿ๐ŸŽ}. Find ๐’‡−๐Ÿ (๐‘ฉ๐Ÿ) and ๐’‡−๐Ÿ (๐‘ฉ๐Ÿ).
By definition: ๐’‡−๐Ÿ ๐’ƒ = {๐’™ ∈ ๐‘จ | ๐’‡(๐’™) = ๐’ƒ}
∴ ๐’‡−๐Ÿ ๐Ÿ” = {๐’™ ∈ ๐‘จ | ๐’‡(๐’™) = ๐Ÿ”} = {4}
∴ ๐’‡−๐Ÿ ๐Ÿ— = {๐’™ ∈ ๐‘จ | ๐’‡(๐’™) = ๐Ÿ—} = {5, 6}
I๐Ÿ ๐‘ฉ๐Ÿ ⊆ ๐‘ฉ ๐’ƒ๐’š ๐’…๐’†๐’‡๐’Š๐’๐’Š๐’•๐’Š๐’๐’ ๐’‡−๐Ÿ (๐‘ฉ๐Ÿ ) = {๐’™ ∈ ๐‘จ | ๐’‡ ๐’™ = ๐‘ฉ๐Ÿ }
For ๐‘ฉ๐Ÿ = ๐Ÿ•, ๐Ÿ– , ๐’‡ ๐’™ = ๐‘ฉ๐Ÿ , when ๐’‡ ๐’™ = ๐Ÿ• and ๐’‡ ๐’™ = ๐Ÿ–
From the definition of f, we can say that ๐’‡(๐’™) = ๐Ÿ• when ๐’™ = ๐Ÿ and ๐’™ = ๐Ÿ
And ๐’‡(๐’™) = ๐Ÿ– when ๐’™ = ๐Ÿ‘.
∴ ๐’‡−๐Ÿ ๐‘ฉ๐Ÿ = {1, 2, 3}
Similarly ๐’‡−๐Ÿ (๐‘ฉ๐Ÿ ) = {๐’™ ∈ ๐‘จ | ๐’‡(๐’™) ∈ ๐‘ฉ๐Ÿ } = {๐Ÿ‘, ๐Ÿ“, ๐Ÿ”}
4.
Problems on Functions
Assume that A = {1, 2, 3…,14}. Define a relation R from A to A by R = {(x, y):
3x – y = 0, such that x, y ∈ A}. write down its range, domain, and codomain.
3x – y = 0
y = 3x
๐‘‹
๐‘Œ = 3๐‘‹
๐‘Šโ„Ž๐‘’๐‘กโ„Ž๐‘’๐‘Ÿ ๐‘ฅ, ๐‘ฆ ∈ ๐‘…
1
3
Yes
2
6
Yes
3
9
Yes
4
12
Yes
5
15
๐‘๐‘œ
6
18
๐‘๐‘œ
∴ ๐‘… = { 1,3 2,6 3,9 4,12 }
Domain of R = set of all first elements of the ordered pairs = { 1, 2, 3, 4}
Range of R = set of all second elements of the ordered pairs = {3, 6, 9 ,12}
Co domain of R = A = {1, 2, 3, . . . . . 14}
6.
Problems on Functions
The function ๐’‡: ๐’ × ๐’ is defined by ๐’‡ ๐’™, ๐’š = ๐Ÿ๐’™ + ๐Ÿ‘๐’š. Verify that ๐’‡ is ๐’๐’๐’•๐’
+
but not ๐’๐’๐’† − ๐’๐’๐’†. ๐ˆ๐Ÿ ๐€ = ๐ŸŽ, ๐ง ๐ง ∈ ๐’ }, ๐’‡๐’Š๐’๐’… ๐’‡(๐‘จ).
๐“๐š๐ค๐ž ๐š๐ง๐ฒ ๐’ ∈ ๐’, we note that
๐’ = ๐Ÿ’๐’ – ๐Ÿ‘๐’ = ๐Ÿ(๐Ÿ๐’) + ๐Ÿ‘ (−๐’) = ๐’‡(๐Ÿ๐’, −๐’)
Thus, every ๐’ ∈ ๐’, has a preimage ๐’‡(๐Ÿ๐’, −๐’) ∈ ๐’ under f. Therefore, ๐’‡ is onto
function.
Next we check that ๐’‡ ๐ŸŽ, ๐Ÿ = ๐Ÿ × ๐ŸŽ + ๐Ÿ‘ × ๐Ÿ = ๐Ÿ”
and ๐’‡ ๐Ÿ‘, ๐ŸŽ = ๐Ÿ × ๐Ÿ‘ + ๐Ÿ‘ × ๐ŸŽ = ๐Ÿ”
Thus, ๐’‡(๐ŸŽ, ๐Ÿ) = ๐’‡(๐Ÿ‘, ๐ŸŽ), but (๐ŸŽ, ๐Ÿ) ≠ (๐Ÿ‘, ๐ŸŽ). Therefore, f is not one-to-one.
For any ๐ŸŽ, ๐’ = ๐Ÿ โˆ™ ๐ŸŽ + ๐Ÿ‘๐’ = ๐Ÿ‘๐’
+
Therefore ๐Ÿ ๐€ = ๐Ÿ‘๐ง ๐ง ∈ ๐’ } = {๐Ÿ‘, ๐Ÿ”, ๐Ÿ—, ๐Ÿ๐Ÿ . . . . . }
5.
Problems on Functions
Let ๐‘จ = ๐Ÿ, ๐Ÿ, ๐Ÿ‘, ๐Ÿ’ ๐š๐ง๐ ๐‘ฉ = {1, 2, 3, 4, 5, 6}
i.
Find how many functions are there from A to B. How many of these are 11 ? How many are onto?
ii. Find how many function B to A? How many of these are 1-1 ? How many
are onto?
Here |A| = m = 4 and |B| = n = 6
i.
The number of possible functions from A to B is ๐’๐’Ž = ๐Ÿ”๐Ÿ’ = ๐Ÿ๐Ÿ๐Ÿ—๐Ÿ”
The number of 1-1 function possible from A to B is
๐’!
๐Ÿ”!
๐Ÿ”!
=
=
๐’−๐’Ž!
๐Ÿ”−๐Ÿ’!
๐Ÿ!
= ๐Ÿ‘๐Ÿ”๐ŸŽ
There is no onto functions from A to B (โˆต ๐’Ž < ๐’)
ii.
The number of possible functions from B to A is ๐’Ž๐’ = ๐Ÿ’๐Ÿ” = ๐Ÿ’๐ŸŽ๐Ÿ—๐Ÿ”
There is no one-one functions from A to B (โˆต ๐’Ž > ๐’)
The number of onto functions from B to A
P(6,4) = σ๐Ÿ’๐’Œ=๐ŸŽ −๐Ÿ ๐’Œ ๐Ÿ’๐‘ช๐Ÿ’−๐’Œ (๐Ÿ’ − ๐’Œ)๐Ÿ” =๐Ÿ’๐Ÿ” − ๐Ÿ’ × ๐Ÿ‘๐Ÿ” + ๐Ÿ” × ๐Ÿ๐Ÿ” − ๐Ÿ’ =1560
Problems on Functions
7.
๐Ÿ‘๐’™ − ๐Ÿ“
Let ๐’‡: ๐‘น → ๐‘น defined by แ‰Š
−๐Ÿ‘๐’™ + ๐Ÿ
i.
Determine ๐Ÿ ๐ŸŽ , ๐Ÿ −๐Ÿ , ๐Ÿ
๐’‡๐’๐’“
๐’‡๐’๐’“
๐’™>๐ŸŽ
๐’™≤๐ŸŽ
๐Ÿ“
๐Ÿ‘
Find ๐’‡−๐Ÿ ๐ŸŽ , ๐’‡−๐Ÿ ๐Ÿ , ๐’‡−๐Ÿ ๐Ÿ‘ , ๐’‡−๐Ÿ −๐Ÿ‘ , ๐’‡−๐Ÿ −๐Ÿ”
iii. What are ๐’‡−๐Ÿ [−๐Ÿ“, ๐Ÿ“], and ๐’‡−๐Ÿ −๐Ÿ”, ๐Ÿ“ ?
ii.
i.
› ๐’‡ ๐ŸŽ = −๐Ÿ‘ × ๐ŸŽ + ๐Ÿ = ๐Ÿ
› ๐’‡ −๐Ÿ = −๐Ÿ‘ × −๐Ÿ + ๐Ÿ = ๐Ÿ’
๐Ÿ“
๐Ÿ“
› ๐’‡
= ๐Ÿ‘× −๐Ÿ“=๐ŸŽ
๐Ÿ‘
ii.
›
๐Ÿ‘
ii.
๐’‡−๐Ÿ ๐’ƒ = ๐’™ ∈ ๐‘น ๐’‡ ๐’™ = ๐’ƒ}
๐’‡−๐Ÿ ๐ŸŽ = ๐’™ ∈ ๐‘น ๐’‡ ๐’™ = ๐ŸŽ}
๐Ÿ‘๐’™ – ๐Ÿ“ = ๐ŸŽ
›
๐’™>๐ŸŽ
›
›
๐’™ =
๐Ÿ“
๐Ÿ‘
Thus ๐’‡−๐Ÿ ๐ŸŽ =
possible
๐Ÿ“
๐’‡−๐Ÿ ๐’ƒ = ๐’™ ∈ ๐‘น ๐’‡ ๐’™ = ๐’ƒ
๐’‡−๐Ÿ ๐ŸŽ = ๐’™ ∈ ๐‘น ๐’‡ ๐’™ = ๐ŸŽ}
−๐Ÿ‘๐’™ + ๐Ÿ = ๐ŸŽ
๐Ÿ
๐Ÿ‘
๐’™≤๐ŸŽ
๐’™ = > ๐ŸŽ not possible
Problems on Functions
7.
Let ๐’‡: ๐‘น → ๐‘น defined by แ‰Š
๐Ÿ‘๐’™ − ๐Ÿ“
−๐Ÿ‘๐’™ + ๐Ÿ
๐’‡๐’๐’“
๐’‡๐’๐’“
๐Ÿ“
๐Ÿ‘
i.
Determine ๐Ÿ ๐ŸŽ , ๐Ÿ −๐Ÿ , ๐Ÿ
ii.
Find ๐’‡−๐Ÿ ๐ŸŽ , ๐’‡−๐Ÿ ๐Ÿ , ๐’‡−๐Ÿ ๐Ÿ‘ , ๐’‡−๐Ÿ −๐Ÿ‘
What are ๐’‡−๐Ÿ [−๐Ÿ“, ๐Ÿ“], and ๐’‡−๐Ÿ −๐Ÿ”, ๐Ÿ“ ?
iii.
ii.
๐’™>๐ŸŽ
๐’™≤๐ŸŽ
๐’‡−๐Ÿ ๐Ÿ = ๐’™ ∈ ๐‘น ๐’‡ ๐’™ = ๐Ÿ} = ๐ŸŽ, ๐Ÿ
๐Ÿ– −๐Ÿ
๐’‡−๐Ÿ ๐Ÿ‘ = ๐’™ ∈ ๐‘น ๐’‡ ๐’™ = ๐Ÿ‘} = ๐Ÿ‘ , ๐Ÿ‘
๐’‡−๐Ÿ −๐Ÿ‘ = ๐’™ ∈ ๐‘น ๐’‡ ๐’™ = −๐Ÿ‘} =
๐Ÿ
๐Ÿ‘
iii. ๐’‡−๐Ÿ [−๐Ÿ“, ๐Ÿ“] = ๐’™ ∈ ๐‘น ๐’‡ ๐’™ ∈ [−๐Ÿ“, ๐Ÿ“]}
iii. ๐’‡−๐Ÿ [−๐Ÿ“, ๐Ÿ“] = ๐’™ ∈ ๐‘น ๐’‡ ๐’™ ∈ [−๐Ÿ“, ๐Ÿ“]}
›
›
›
›
›
›
›
›
›
›
›
›
๐Ÿ๐จ๐ซ ๐Ÿ ๐ฑ = ๐Ÿ‘๐ฑ − ๐Ÿ“ ๐ฑ > ๐ŸŽ
−๐Ÿ“ ≤ ๐Ÿ‘๐ฑ − ๐Ÿ“ ≤ ๐Ÿ“
Add 5 throughout
0 ≤ ๐Ÿ‘๐ฑ ≤ ๐Ÿ๐ŸŽ
÷ by 3
๐Ÿ๐ŸŽ
0 ≤ ๐ฑ≤ ๐Ÿ‘
๐Ÿ’ ๐Ÿ๐ŸŽ
∴ ๐’‡−๐Ÿ [−๐Ÿ“, ๐Ÿ“] = − ,
๐Ÿ‘ ๐Ÿ‘
›
๐Ÿ๐จ๐ซ ๐Ÿ ๐ฑ = −๐Ÿ‘๐ฑ + ๐Ÿ, ๐ฑ ≤ ๐ŸŽ
−๐Ÿ“ ≤ −๐Ÿ‘๐ฑ + ๐Ÿ ≤ ๐Ÿ“
Add -1 throughout
−๐Ÿ” ≤ −๐Ÿ‘๐ฑ ≤ ๐Ÿ’
÷ by 3
๐Ÿ’
−๐Ÿ ≤ −๐ฑ ≤ ๐Ÿ‘
× ๐’ƒ๐’š − ๐Ÿ
๐Ÿ’
๐Ÿ’
๐Ÿ ≥ ๐ฑ ≥ − ๐Ÿ‘ i.e. , − ๐Ÿ‘ ≤ ๐ฑ ≤ ๐Ÿ
Problems on Functions
8.
๐’™ + ๐Ÿ• ๐’Š๐’‡ ๐’™ ≤ ๐ŸŽ
A function f: R → R is defined as follows ๐’‡ ๐’™ = −๐Ÿ๐’™ + ๐Ÿ“ ๐’Š๐’‡ ๐ŸŽ < ๐’™ < ๐Ÿ‘
๐’™ − ๐Ÿ ๐’Š๐’‡ ๐’™ ≥ ๐Ÿ‘
find the following ๐’Š ๐’‡−๐Ÿ ๐Ÿ’
9.
๐’Š๐’Š ๐’‡−๐Ÿ ๐Ÿ–
๐’Š๐’Š๐’Š ๐’‡−๐Ÿ −๐Ÿ“, −๐Ÿ
The functions ๐’‡:๐‘น→๐‘น and ๐’ˆ:๐‘น→๐‘น are defined by ๐’‡(๐’™) = ๐Ÿ‘๐’™ + ๐Ÿ• for all
๐’™ ∈ ๐‘น, and g ๐’™ = ๐’™(๐’™๐Ÿ‘ − ๐Ÿ) for all ๐’™ ∈ ๐‘น. Verify that f is ๐’๐’๐’† − ๐’•๐’ −
๐’๐’๐’† ๐›๐ฎ๐ญ ๐’ˆ is not.
10. In each of the following cases A function ๐’‡: ๐‘น → ๐‘น is given. Determine
whether ๐’‡ is one-to-one or onto. If f is not ๐’๐’๐’•๐’, find its range.
i. ๐’‡ ๐’™ = ๐Ÿ๐’™ − ๐Ÿ‘
ii. ๐’‡(๐’™) = ๐’™๐Ÿ‘
iii. ๐’‡ ๐’™ = ๐’™๐Ÿ + ๐’™
11. Let ๐‘จ = {๐Ÿ, ๐Ÿ, ๐Ÿ‘, ๐Ÿ’, ๐Ÿ“, ๐Ÿ”, ๐Ÿ•} and ๐‘ฉ = {๐’˜, ๐’™, ๐’š, ๐’›}. Find the number of onto
functions from ๐‘จ ๐’•๐’ ๐‘ฉ.
Problems on Functions
11. Let ๐‘จ = {๐Ÿ, ๐Ÿ, ๐Ÿ‘} and ๐‘ฉ = {๐Ÿ, ๐Ÿ, ๐Ÿ‘, ๐Ÿ’, ๐Ÿ“}. Find whether the following
functions from ๐‘จ ๐’•๐’ ๐‘ฉ are (๐’‚) ๐’๐’๐’† − ๐’•๐’ − ๐’๐’๐’† (๐’ƒ) ๐’๐’๐’•๐’
i. ๐’‡ = { ๐Ÿ, ๐Ÿ , ๐Ÿ, ๐Ÿ‘ , ๐Ÿ‘, ๐Ÿ’ }
ii. ๐’ˆ = {(๐Ÿ, ๐Ÿ), (๐Ÿ, ๐Ÿ), (๐Ÿ‘, ๐Ÿ‘)}
12. Let ๐‘จ = ๐‘น and ๐‘ฉ = ๐’™ ๐’™ ๐’Š๐’” ๐’“๐’†๐’‚๐’ ๐’‚๐’๐’… ๐’™ ≥ ๐ŸŽ }. Is the function ๐’‡: ๐‘จ → ๐‘ฉ
defined by ๐’‡(๐’‚) = ๐’‚๐Ÿ an onto function ? A one-to-one function?
Composition Functions
Composition Function:- Consider 3 non empty sets ๐ด, ๐ต, ๐ถ and the function
๐‘“: ๐ด → ๐ต and ๐‘”: ๐ต → ๐ถ. The composition (product) of these two functions are
defined as ๐‘” โ—ฆ ๐‘“: ๐ด → ๐ถ.
๐’ˆโ—ฆ๐’‡ ๐’‚ =๐’ˆ ๐’‡ ๐’‚
∀๐’‚ ∈ ๐‘จ
๐‘”โ—ฆ๐‘“
๐‘Ž
๐ด
๐‘“
๐‘“(๐‘Ž)
๐‘”
๐ถ
๐ต
Note: For ๐’‡: ๐‘จ → ๐‘จ, ๐’‡๐Ÿ = ๐’‡,
๐‘ป๐’‰๐’–๐’”, ๐’‡๐Ÿ = ๐’‡
๐‘”(๐‘“(๐‘Ž))
๐’‡๐Ÿ = ๐’‡ โ—ฆ ๐’‡,
๐’‡๐’ = ๐’‡ โ—ฆ ๐’‡๐’−๐Ÿ
๐’‡๐Ÿ‘ = ๐’‡ โ—ฆ ๐’‡๐Ÿ
Problems on Composition Functions
Note: Composition Function need not be commutative ๐’‡ โ—ฆ ๐’ˆ ≠ ๐’ˆ โ—ฆ ๐’‡
1. Let ๐’‡: ๐‘จ → ๐‘ฉ, ๐’ˆ: ๐‘ฉ → ๐‘ช ๐’‚๐’๐’… ๐’‰: ๐‘ช → ๐‘ซ be functions. Then
๐’‰ โ—ฆ ๐’ˆ โ—ฆ ๐’‡ = ๐’‰ โ—ฆ (๐’ˆ โ—ฆ ๐’‡)
Solution:
› Since ๐‘“: ๐ด → ๐ต, ๐‘”: ๐ต → ๐ถ ๐‘Ž๐‘›๐‘‘ โ„Ž: ๐ถ → ๐ท, We have both
โ„Ž โ—ฆ ๐‘” โ—ฆ ๐‘“ and โ„Ž โ—ฆ (๐‘” โ—ฆ ๐‘“) are functions from A to D.
›
For any x ∈ ๐ด,
โ„Ž โ—ฆ ๐‘” โ—ฆ ๐‘“ ๐‘ฅ = โ„Ž โ—ฆ ๐‘” ๐‘“(๐‘ฅ) = โ„Ž โ—ฆ ๐‘” ๐‘ฆ where ๐‘ฆ = ๐‘“ ๐‘ฅ
= โ„Žโ—ฆ๐‘” ๐‘ฆ =โ„Ž ๐‘” ๐‘ฆ
= โ„Ž(๐‘ง) where ๐‘ง = ๐‘” ๐‘ฆ
(1)
[โ„Ž โ—ฆ (๐‘” โ—ฆ ๐‘“)](x) = โ„Ž (๐‘” โ—ฆ ๐‘“)(x) = โ„Ž ๐‘”(๐‘“ ๐‘ฅ ) = โ„Ž ๐‘” ๐‘ฆ
›
๐’‰ โ—ฆ ๐’ˆ โ—ฆ ๐’‡ ๐’™ = ๐’‰ โ—ฆ ๐’ˆ โ—ฆ ๐’‡ ๐’™ for every x ∈ A
›
๐’‰โ—ฆ๐’ˆ โ—ฆ๐’‡ = ๐’‰โ—ฆ ๐’ˆโ—ฆ๐’‡
= โ„Ž(๐‘ง)
⇒ Composition of three fn is associative
(2)
Problems on Composition Functions
2.
Consider the functions ๐’‡ and ๐’ˆ defined by ๐’‡ ๐’™ = ๐’™๐Ÿ‘ ๐š๐ง๐ ๐’ˆ ๐’™ = ๐’™๐Ÿ +
๐Ÿ ∀๐’™ ∈ ๐‘น, ๐…๐ข๐ง๐ ๐’ˆ โ—ฆ ๐’‡ , ๐’‡ โ—ฆ ๐’ˆ , ๐’‡๐Ÿ ๐’‚๐’๐’… ๐’ˆ๐Ÿ.
Solution:
› ๐’ˆโ—ฆ๐’‡ ๐’™ = ๐’ˆ ๐’‡ ๐’™
= ๐’ˆ ๐’™๐Ÿ‘ = ๐’™๐Ÿ‘
›
๐’‡โ—ฆ๐’ˆ ๐’™ = ๐’‡ ๐’ˆ ๐’™
= ๐’‡ ๐’™๐Ÿ + ๐Ÿ = ๐’™๐Ÿ + ๐Ÿ
›
๐’‡โ—ฆ๐’‡ ๐’™ = ๐’‡ ๐’‡ ๐’™
= ๐’‡ ๐’™๐Ÿ‘ = ๐’™๐Ÿ‘
›
๐’ˆโ—ฆ๐’ˆ ๐’™ =๐’ˆ ๐’ˆ ๐’™
๐Ÿ‘
๐Ÿ
+ ๐Ÿ = ๐’™๐Ÿ” + ๐Ÿ .
๐Ÿ‘
= ๐ฑ๐Ÿ” + ๐Ÿ + ๐Ÿ‘๐ฑ๐Ÿ’ + ๐Ÿ‘๐ฑ๐Ÿ
= ๐’™๐Ÿ—.
= ๐’ˆ ๐’™๐Ÿ + ๐Ÿ = ๐’™๐Ÿ + ๐Ÿ
๐Ÿ
+ ๐Ÿ = ๐’™๐Ÿ’ + ๐Ÿ + ๐Ÿ๐’™๐Ÿ.
Problems on Composition Functions
3. Let ๐’‡, ๐’ˆ, ๐’‰ be functions from ๐’ × ๐’ defined by ๐’‡ ๐’™ = ๐’™ – ๐Ÿ, ๐’ˆ ๐’™ =
๐ŸŽ ๐’Š๐’‡ ๐’™ ๐’Š๐’” ๐’†๐’—๐’†๐’
๐Ÿ‘๐’™, and ๐’‰ ๐’™ =
.
๐Ÿ ๐’Š๐’‡ ๐’™ ๐’Š๐’” ๐’๐’…๐’…
๐ƒ๐ž๐ญ๐ž๐ซ๐ฆ๐ข๐ง๐ž ๐Ÿ โ—ฆ ๐’ˆ โ—ฆ ๐’‰ ๐’™ ๐š๐ง๐ ๐’‡ โ—ฆ ๐’ˆ โ—ฆ ๐’‰ ๐’™ ๐š๐ง๐ ๐ฏ๐ž๐ซ๐ข๐Ÿ๐ฒ ๐ญ๐ก๐š๐ญ [๐Ÿ
โ—ฆ ๐’ˆโ—ฆ๐’‰ ] = ๐’‡โ—ฆ๐’ˆ โ—ฆ๐’‰
Solution:
› We have ๐’ˆ โ—ฆ ๐’‰ ๐’™ = ๐’ˆ ๐’‰ ๐’™
›
›
›
›
›
๐Ÿ โ—ฆ ๐’ˆ โ—ฆ ๐’‰ ๐’™ = ๐’‡ ๐Ÿ‘๐’‰ ๐’™
= ๐Ÿ‘๐’‰ ๐’™ − ๐Ÿ =
We have ๐’‡ โ—ฆ ๐’ˆ ๐’™ = ๐’‡ ๐’ˆ ๐’™
๐’‡โ—ฆ๐’ˆ โ—ฆ๐’‰ ๐’™= ๐’‡โ—ฆ๐’ˆ ๐’‰ ๐’™
From (1) and (2)
๐Ÿโ—ฆ ๐’ˆโ—ฆ๐’‰ =
= ๐Ÿ‘๐’‰ ๐’™
๐’‡โ—ฆ๐’ˆ โ—ฆ๐’‰
−๐Ÿ ๐’Š๐’‡ ๐’™ ๐’Š๐’” ๐’†๐’—๐’†๐’
.
๐Ÿ ๐’Š๐’‡ ๐’™ ๐’Š๐’” ๐’๐’…๐’…
(1)
= ๐’‡ ๐Ÿ‘๐’™ = ๐Ÿ‘๐’™ − ๐Ÿ
−๐Ÿ ๐’Š๐’‡ ๐’™ ๐’Š๐’” ๐’†๐’—๐’†๐’
= ๐Ÿ‘๐’‰ ๐’™ − ๐Ÿ =
. (2)
๐Ÿ ๐’Š๐’‡ ๐’™ ๐’Š๐’” ๐’๐’…๐’…
Invertible Functions
Invertible Function:- A function ๐‘“: ๐ด → ๐ต is said to be invertible function. If
there exists a function ๐‘”: ๐ต → ๐ด. Such that ๐‘” โ—ฆ ๐‘“ = ๐ผ๐ด and ๐‘“ โ—ฆ ๐‘” = ๐ผ๐ต , where
๐ผ๐ด is the identity function on ๐ด and ๐ผ๐ต is the identity function on ๐ต. then ๐‘” is
called inverse of ๐‘“ and is denoted by ๐‘” = ๐‘“ −1 .
๐‘“
๐‘
๐‘Ž
๐‘” = ๐‘“ −1
๐ด
๐ต
Note:› If ๐‘“ is invertible function, then ๐‘“ ๐‘Ž = ๐‘ and ๐‘Ž = ๐‘“ −1 ๐‘ are equivalent.
› A function ๐‘“: ๐ด → ๐ต is said to be invertible function iff it is ono-to-one and
onto.
› A function ๐‘“: ๐ด → ๐ต and ๐‘”: ๐ต → ๐ด are invertible functions then ๐‘” โ—ฆ ๐‘“ is
also invertible and (๐‘” โ—ฆ ๐‘“)−1 = ๐‘“ −1 โ—ฆ ๐‘”−1
Problems on Invertible Functions
1. A function ๐‘“: ๐ด→๐ต is invertible iff it is one-to-one and onto
Solution:› Let ๐‘“: ๐ด → ๐ต be a invertible function then there exist a unique function
๐‘”: ๐ต → ๐ด such that ๐‘” โ—ฆ ๐‘“ = ๐ผ๐ด and ๐‘“ โ—ฆ ๐‘” = ๐ผ๐ต .
›
›
›
›
›
›
›
TPT, ๐‘“ ๐‘–๐‘  ๐‘œ๐‘›๐‘’ − ๐‘œ๐‘›๐‘’ ๐‘“๐‘ข๐‘›๐‘๐‘ก๐‘–๐‘œ๐‘›
Let ๐‘“ ๐‘Ž1 = ๐‘“ ๐‘Ž2
๐‘” ๐‘“ ๐‘Ž1 = ๐‘” ๐‘“ ๐‘Ž2
๐‘” โ—ฆ ๐‘“ ๐‘Ž1 = ๐‘” โ—ฆ ๐‘“ ๐‘Ž2
๐ผ๐ด ๐‘Ž1 = ๐ผ๐ด ๐‘Ž2
๐‘Ž1 = ๐‘Ž2
∴ ๐’‡ ๐’Š๐’” ๐’๐’๐’† − ๐’๐’๐’† ๐’‡๐’–๐’๐’„๐’•๐’Š๐’๐’
›
›
›
›
›
TPT, ๐‘“ ๐‘–๐‘  ๐‘œ๐‘›๐‘ก๐‘œ ๐‘“๐‘ข๐‘›๐‘๐‘ก๐‘–๐‘œ๐‘›
Take any ๐‘ ∈ ๐ต, then ๐‘”(๐‘) ∈ ๐ด
and ๐‘ = ๐ผ๐ต ๐‘ = ๐‘“ โ—ฆ ๐‘” = ๐‘“{๐‘” ๐‘ }
Thus, ๐‘ is the image of an element ๐‘”(๐‘) ∈ ๐ด under ๐‘“
∴ ๐’‡ ๐’Š๐’” ๐’๐’๐’•๐’ ๐’‡๐’–๐’๐’„๐’•๐’Š๐’๐’
Problems on Invertible Functions
1. A function ๐‘“: ๐ด→๐ต is invertible iff it is one-to-one and onto
Solution:› Conversely, suppose ๐‘“ is 1 − 1 and ๐‘œ๐‘›๐‘ก๐‘œ, ∴ ๐‘–๐‘ก ๐‘–๐‘  ๐‘๐‘–๐‘—๐‘’๐‘๐‘ก๐‘–๐‘ฃ๐‘’ ๐‘“๐‘ข๐‘›๐‘๐‘ก๐‘–๐‘œ๐‘›
›
∴ for every ๐‘ ∈ ๐ต there exists a unique a ∈ ๐ด such that ๐‘“(๐‘Ž) = ๐‘
›
Consider function ๐‘”: ๐ต → ๐ด defined by ๐‘”(๐‘) = ๐‘Ž
›
Then ๐‘“ โ—ฆ ๐‘”
›
›
๐‘ =๐‘“ ๐‘” ๐‘
๐‘” โ—ฆ ๐‘“ (๐‘Ž) = ๐‘” ๐‘“ ๐‘Ž
= ๐‘“ ๐‘Ž = ๐‘ = ๐ผ๐ต (๐‘)
= ๐‘”(๐‘) = ๐‘Ž = ๐ผ๐ด (๐‘Ž)
∴ ๐’‡ ๐’Š๐’” ๐’Š๐’๐’—๐’†๐’“๐’•๐’Š๐’ƒ๐’๐’† ๐’˜๐’Š๐’•๐’‰ ๐’ˆ ๐’‰๐’‚๐’” ๐’•๐’‰๐’† ๐’Š๐’๐’—๐’†๐’“๐’”๐’†
Problems on Invertible Functions
2.
If ๐’‡: ๐‘จ → ๐‘ฉ and ๐’ˆ: ๐‘ฉ → ๐‘ช are invertible functions, then prove that ๐’ˆ โ—ฆ ๐’‡ is
also invertible and (๐’ˆ โ—ฆ ๐’‡)−๐Ÿ = ๐’‡−๐Ÿ โ—ฆ ๐’ˆ−๐Ÿ
Solution:› Suppose ๐‘“ and ๐‘” are invertible
› ∴ ๐‘“ and ๐‘” are 1-1 and onto function
› ๐‘” โ—ฆ ๐‘“ is also1−1 and onto function
› ๐’ˆ โ—ฆ ๐’‡ ๐ข๐ฌ invertible
›
›
›
Next we have ๐‘“: ๐ด → ๐ต and ๐‘”: ๐ต → ๐ถ and ๐‘” โ—ฆ ๐‘“ โˆถ A → C
∴ ๐‘“ −1 : ๐ต → ๐ด, ๐‘”−1 : ๐ถ → ๐ต and ๐‘™๐‘’๐‘ก โ„Ž = ๐‘“ −1 โ—ฆ ๐‘”−1 : ๐ถ → ๐ด
Consider โ„Ž โ—ฆ ๐‘” โ—ฆ ๐‘“ = (๐‘“ −1 โ—ฆ ๐‘”−1 ) โ—ฆ ๐‘” โ—ฆ ๐‘“ = ๐‘“ −1 โ—ฆ (๐‘”−1 โ—ฆ ๐‘”) โ—ฆ ๐‘“
= ๐‘“ −1 โ—ฆ ๐ผ๐ต โ—ฆ ๐‘“ = ๐‘“ −1 โ—ฆ ๐‘“ = ๐ผ๐ด
(1)
›
Consider (๐‘” โ—ฆ ๐‘“) โ—ฆ โ„Ž = ๐‘” โ—ฆ ๐‘“ โ—ฆ (๐‘“ −1 โ—ฆ ๐‘”−1 ) = ๐‘” โ—ฆ (๐‘“ −1 โ—ฆ ๐‘“) โ—ฆ ๐‘”
= ๐‘”−1 โ—ฆ ๐ผ๐ด โ—ฆ ๐‘” = ๐‘”−1 โ—ฆ ๐‘” = ๐ผ๐ต
(2)
›
›
From (1) and (2) h is the inverse of (๐‘” โ—ฆ ๐‘“)
i.e. โ„Ž = (๐‘” โ—ฆ ๐‘“) −1
›
Thus, (๐‘” โ—ฆ ๐‘“) −1 = ๐‘“ −1 โ—ฆ ๐‘”−1
Problems on Invertible Functions
3.
Let A = B = C = R, and ๐’‡: ๐‘จ → ๐‘ฉ and ๐’ˆ: ๐‘ฉ → ๐‘ช be defined by ๐’‡ ๐’‚ = ๐Ÿ๐’‚ +
๐Ÿ
๐Ÿ ๐š๐ง๐ ๐’ˆ ๐’ƒ = ๐’ƒ, ∀๐’‚ ∈ ๐‘จ, ∀๐’ƒ ∈ ๐‘ฉ.
๐Ÿ‘
Compute ๐’ˆ โ—ฆ ๐’‡ and show that ๐’ˆ โ—ฆ ๐’‡ is invertible. Find (๐’ˆ โ—ฆ ๐’‡)−๐Ÿ
Pigeon Hole Principle
›
Statement: If ′๐‘š′ pigeons occupy ′๐‘›′ pigeon holes and if ๐‘š > ๐‘› then two
or more pigeons occupy the same pigeon hole.
OR
› If ′๐‘š′ pigeons occupy ′๐‘›′ pigeon holes and if ๐‘š > ๐‘› then atleast one
pigeon hole must contain two or more pigeons in it.
Generalized Pigeon hole principles
› If ′๐‘š′ pigeons occupy ′๐‘›′ pigeon holes and if ๐‘š > ๐‘› then at least one
pigeon hole must contain ๐‘ + 1 or more pigeons in it.
›
Where ๐‘ =
๐‘š−1
๐‘›
Problems on Pigeon Hole Principle
1.
ABC is a equilateral triangle whose sides are of length 1cm each. If we
select 5 points inside triangle . Prove that at least 2 of these points are
such that the distance between them is less than ½ cm.
Solution:A
•
•
D
B
E
F
C
Consider Equilateral triangle ABC, whose sides are
of length 1cm each.
Consider the triangle DEF formed from the
midpoints of the sides AB, AC and BC respectively.
•
DEF Triangle divides triangle ABC into 4 small
equilateral triangle whose length of each side is
1/2cm.
•
Let us treat 5 points as pigeons and 4 small
equilateral triangles as pigeon holes.
•
Then by pigeon hole principle, at least one small
triangle contains 2 or more points and distance
between such points is less than 1/2cm.
Problems on Pigeon Hole Principle
2.
A bag contains 12 pair of socks (each pair in different color). If a person
draws the socks one by one at random. Determine at most how many
draws are required to get at least one pair of matched socks.
Solution:› Let ‘n’ be the number of draws
›
For ๐ง ≤ ๐Ÿ๐Ÿ, it is possible that socks drawn are at different . โˆต there are 12
colors
›
For ๐’ = ๐Ÿ๐Ÿ‘, all socks cannot have different colors –atleast two must have
same colors.
›
Let us treat 13 as the number of pigeons and 12 colors as 12 pigeon holes.
›
∴ at most 13 draws are required to have at least 1 pair of socks of the same
color.
Problems on Pigeon Hole Principle
3.
If 5 colors are used to paint 26 doors. Prove that atleast 6 doors will have
same color.
Solution:› Consider 26 doors as pigeons and 5 colors as pigeon holes
›
By generalized Pigeon hole principle, at least 1 color must be assigned to
p+1 or more pigeons
›
i.e. ๐‘ + 1 =
›
∴ at least 6 doors will have same color
๐‘š−1
๐‘›
+1=
26−1
5
+ 1 =5+ 1 = 6
Problems on Pigeon Hole Principle
4.
Prove that if 30 dictionaries in a library contain total of 61,327 pages, the
at least one of the dictionaries must have at least 2045 pages.
Solution:› Consider 61327 pages as pigeons, i.e. m = 61327
›
and 30 dictionaries as pigeon holes n = 30
›
By generalized Pigeon hole principle, at least 1 dictionary must contain
p+1 or more pages
›
i.e. ๐‘ + 1 =
›
๐‘‡โ„Ž๐‘–๐‘  ๐‘๐‘Ÿ๐‘œ๐‘ฃ๐‘’๐‘  ๐‘กโ„Ž๐‘’ ๐‘Ÿ๐‘’๐‘ž๐‘ข๐‘–๐‘Ÿ๐‘’๐‘‘ ๐‘Ÿ๐‘’๐‘ ๐‘ข๐‘™๐‘ก.
๐‘š−1
๐‘›
+1=
61327−1
30
+ 1 = 2045
Problems on Pigeon Hole Principle
5.
How many persons must have chosen on order that atleast five of them
will have birthdays in the same calendar of month.
›
Let ๐‘š be the number of persons. Number of months over which the
birthdays are distributed is n =12.
›
The least number of persons having birthday in the same month is
›
5=๐‘+1
›
๐‘+1=5⇒
›
๐‘š − 1 = 48 ⇒ 49
›
∴ number of persons in 49.
๐‘š−1
๐‘›
+1=5⇒
๐‘š−1
12
=4
Download