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