Wednesday, November 29, 2023

17.8 - Properties of Invertible Functions

In the previous section, we saw two solved examples related to invertible functions. We saw composite of composite functions also. In this section, we will see two more solved examples. We will also see a new property of invertible functions.

Solved example 17.27
Consider two functions:

f: {1,2,3}→{a,b,c} defined as:
f(1) = a, f(2) = b, f(3) = c

g: {a,b,c}→{apple, ball, cat} defined as:
g(a) = apple, g(b) = ball, g(c) = cat.

I. Show that, f, g and (gf) are invertible.
II. Find out f-1, g-1 and (gf)-1.
III. Show that (gf)-1 = f-1g-1

Solution:
Part (I): Proving that f, g and (gf) are invertible.
1. f is a function. Domain is {1,2,3} and codomain is {a,b,c}.
• We know that f is a set. The elements of this set are ordered pairs of the form (x,y).
• Based on the given data, we can write all the ordered pairs in f:
f = {(1,a), (2,b), (3,c)}
• We see that:
   ♦ Each element in the domain has a unique image. So f is one-one.
   ♦ All elements in the codomain are images. So f is onto.
• Since f is both one-one and onto, it is invertible.

2. g is a function. Domain is {a,b,c} and codomain is {apple, ball, cat}.
• We know that g is a set. The elements of this set are ordered pairs of the form (x,y).
• Based on the given data, we can write all the ordered pairs in g:
g = {(a,apple), (b,ball), (c,cat)}
• We see that:
   ♦ Each element in the domain has a unique image. So g is one-one.
   ♦ All elements in the codomain are images. So g is onto.
• Since g is both one-one and onto, it is invertible.

3. (gf)(x) = g(f(x))
• For (gf),
   ♦ domain is the domain of f which is {1,2,3}
   ♦ codomain is the codomain of g which is {apple, ball, cat}
• So we get:
(gf)(1) = g(f(1)) = g(a) = apple
(gf)(2) = g(f(2)) = g(b) = ball
(gf)(3) = g(f(3)) = g(c) = cat

• We know that (gf) is a set. The elements of this set are ordered pairs of the form (x,y).
• Based on the above results, we can write all the ordered pairs in (gf):
(gf) = {(1,apple), (2,ball), (3,cat)}
• We see that:
   ♦ Each element in the domain has a unique image. So (gf) is one-one.
   ♦ All elements in the codomain are images. So (gf) is onto.
• Since (gf) is both one-one and onto, it is invertible.

Part (II): Finding f-1, g-1 and (gf)-1.
1. Finding f-1:
(i) In part (I), we saw that:
f = {(1,a), (2,b), (3,c)}
• So we can write the reverse of f. We will call it p.
• Since f is one-one and onto, the reverse can be easily written:
p = {(a,1), (b,2), (c,3)}
• The domain of p is {a,b,c}. And codomain is {1,2,3}

(ii) Now we have both f and p. We can calculate (p∘f)
(pf) means, output of f is used as the input of p.
• The two functions are:
f: {1,2,3}→{a,b,c}
p: {a,b,c}→{1,2,3}
• We know that, (p∘f) directly connects the domain of f to the codomain of p. So (pf) is from {1,2,3} to {1,2,3}.
• When the input is 1, we get:
(pf)(1) = p(f(1)) = p(a) = 1
• When the input is 2, we get:
(pf)(2) = p(f(2)) = p(b) = 2
• When the input is 3, we get:
(pf)(3) = p(f(3)) = p(c) = 3

• So whatever input we give, the output will be the same. That means, (p∘f) is an identity function.
• The inputs are taken from {1,2,3}. So we can write:
(pf) = I{1,2,3}.

(iii) Similarly, we can calculate (f∘p)
(f∘p) means, output of p is used as the input of f.
• The two functions are:
f: {1,2,3}→{a,b,c}
p: {a,b,c}→{1,2,3}
• We know that, (f∘p) directly connects the domain of p to the codomain of f. So (f∘p) is from {a,b,c} to {a,b,c}.
• When the input is a, we get:
(f∘p)(a) = f(p(a)) = f(1) = a
• When the input is 2, we get:
(fp)(b) = f(p(b)) = f(2) = b
• When the input is 3, we get:
(fp)(c) = f(p(c)) = f(3) = c

• So whatever input we give, the output will be the same. That means, (f∘p) is an identity function.
• The inputs are taken from {a,b,c}. So we can write:
(f∘p) = I{a,b,c}.

(iv). Let us write a summary:
• We are given a function f: {1,2,3}→{a,b,c}
• We wrote the reverse function p: {a,b,c}→{1,2,3}
• From (ii), we got: (p∘f) = I{1,2,3}
• From (iii), we got: (f∘p) = I{a,b,c}
• So f is invertible.
• Also, the inverse of f = f-1 = p
• That means:
The inverse of f: {1,2,3}→{a,b,c} is:
p: {a,b,c}→{1,2,3}

2. Finding g-1:
(i) In part (I), we saw that:
g = {(a,apple), (b,ball), (c,cat)}
• So we can write the reverse of g. We will call it q.
• Since g is one-one and onto, the reverse can be easily written:
q = {(apple,a), (ball,b), (cat,c)}
• The domain of q is {apple, ball, cat}. And codomain is {a,b,c}

(ii) Now we have both g and q. We can calculate (q∘g)
(q∘g) means, output of g is used as the input of q.
• The two functions are:
g: {a,b,c}→{apple, ball, cat}
q: {apple, ball, cat}→{a,b,c}
• We know that, (q∘g) directly connects the domain of g to the codomain of q. So (q∘g) is from {a,b,c} to {a,b,c}.
• When the input is a, we get:
(q∘g)(a) = q(g(a)) = q(apple) = a
• When the input is b, we get:
(q∘g)(b) = q(g(b)) = q(ball) = b
• When the input is c, we get:
(qg)(c) = q(g(c)) = q(cat) = c

• So whatever input we give, the output will be the same. That means, (q∘g) is an identity function.
• The inputs are taken from {a,b,c}. So we can write:
(q∘g) = I{a,b,c}.

(iii) Similarly, we can calculate (g∘q)
(g∘q) means, output of q is used as the input of g.
• The two functions are:
g: {a,b,c}→{apple, ball, cat}
q: {apple, ball, cat}→{a,b,c}
• We know that, (g∘q) directly connects the domain of q to the codomain of g. So (g∘q) is from {apple, ball, cat} to {apple, ball, cat}.
• When the input is apple, we get:
(g∘q)(apple) = g(q(apple)) = g(a) = apple
• When the input is 2, we get:
(gq)(ball) = g(q(ball)) = g(b) = ball
• When the input is 3, we get:
(gq)(cat) = g(q(cat)) = g(c) = cat

• So whatever input we give, the output will be the same. That means, (g∘q) is an identity function.
• The inputs are taken from {apple, ball, cat}. So we can write:
(g∘q) = I{apple, ball, cat}.

(iv). Let us write a summary:
• We are given a function g: {a,b,c}→{apple, ball, cat}
• We wrote the reverse function q: {apple, ball, cat}→{a,b,c}
• From (ii), we got: (q∘g) = I{a,b,c}
• From (iii), we got: (g∘q) = I{apple, ball, cat}
• So g is invertible.
• Also, the inverse of g = g-1 = q
• That means:
The inverse of g: {a,b,c}→{apple, ball, cat} is:
q: {apple, ball, cat}→{a,b,c}

3. Finding (gf)-1:
(i) In part (I), we saw that:
(gf) = {(1,apple), (2,ball), (3,cat)}
• So we can write the reverse of (gf). We will call it r.
• Since (gf) is one-one and onto, the reverse can be easily written:
r = {(apple,1), (ball,2), (cat,3)}
• The domain of r is {apple, ball, cat}. And codomain is {1,2,3}

(ii) Now we have both (gf) and r. We can calculate (r∘(gf))
(r(gf)) means, output of (gf) is used as the input of r.
• The two functions are:
(gf): {1,2,3}→{apple, ball, cat}
r: {apple, ball, cat}→{1,2,3}
• We know that, (r∘(gf)) directly connects the domain of (gf) to the codomain of r. So (r(gf)) is from {1,2,3} to {1,2,3}.
• When the input is 1, we get:
(r(gf))(1) = r((gf)(1)) = r(apple) = 1
• When the input is 2, we get:
(r(gf))(2) = r((gf)(2)) = r(ball) = 2
• When the input is 3, we get:
(r(gf))(3) = r((gf)(3)) = r(cat) = 3

• So whatever input we give, the output will be the same. That means, (r∘(gf)) is an identity function.
• The inputs are taken from {1,2,3}. So we can write:
(r(gf)) = I{1,2,3}.

(iii) Similarly, we can calculate ((gf)∘r)
((gf)∘r) means, output of r is used as the input of (gf).
• The two functions are:
(gf): {1,2,3}→{apple, ball, cat}
r: {apple, ball, cat}→{1,2,3}
• We know that, ((gf)∘r) directly connects the domain of r to the codomain of (gf). So ((gf)∘r) is from {apple, ball, cat} to {apple, ball, cat}.
• When the input is apple, we get:
((gf)∘r)(apple) = (gf)(r(apple)) = (gf)(1) = apple
• When the input is 2, we get:
((gf)r)(ball) = (gf)(r(ball)) = (gf)(2) = ball
• When the input is 3, we get:
((gf)r)(cat) = (gf)(r(cat)) = (gf)(3) = cat

• So whatever input we give, the output will be the same. That means, ((gf)∘r) is an identity function.
• The inputs are taken from {apple, ball, cat}. So we can write:
((gf)∘r) = I{apple, ball, cat}.

(iv). Let us write a summary:
• We are given a function (gf): {1,2,3}→{apple, ball, cat}
• We wrote the reverse function r: {apple, ball, cat}→{1,2,3}
• From (ii), we got: (r∘(gf)) = I{1,2,3}
• From (iii), we got: ((gf)∘r) = I{apple, ball, cat}
• So (gf) is invertible.
• Also, the inverse of (gf) = (gf)-1 = r
• That means:
The inverse of (gf): {1,2,3}→{apple, ball, cat} is:
r: {apple, ball, cat}→{1,2,3}

Part III: Showing that, (gf)-1 = f-1g-1.
1. From part (II)(1), we have:
f-1 = p
Where p: {a,b,c}→{1,2,3}
• In set form, we can write:
f-1 = {(a,1), (b,2), (c,3)}


2. From part (II)(2), we have:
g-1 = q
Where q: {apple, ball, cat}→{a,b,c}
• In set form, we can write:
q-1 = {(apple,a), (ball,b), (cat,c)}

3. From part (II)(3), we have:
(gf)-1 = r
Where r: {apple, ball, cat}→{1,2,3}
• In set form, we can write:
(gf)-1 = {(apple,1), (ball,2), (cat,3)}

4. Now we can calculate f-1g-1.
(f-1∘g-1)(x) = f-1(g-1(x))
• For (f-1∘g-1),
   ♦ domain is the domain of g-1 which is {apple, ball, cat}
   ♦ codomain is the codomain of f-1 which is {1,2,3}
• So we get:
(f-1∘g-1)(apple) = f-1(g-1(apple)) = f-1(a) = 1
(f-1∘g-1)(ball) = f-1(g-1(ball)) = f-1(b) = 2
(f-1∘g-1)(cat) = f-1(g-1(cat)) = f-1(c) = 3

5. We can write the result in (4), in the form of a set:
(f-1g-1) = {(apple,1), (ball,2), (cat,3)}

6. Comparing the results in (3) and (5), we get:
(gf)-1 = (f-1g-1)


The result obtained in the above solved example 17.27 can be used in general. We can write:
If f: X→Y and g: Y→Z are two invertible functions, then (gf) is also invertible. The inverse of (gf) is (f-1g-1)

The proof can be written in 7 steps:
1. First we will write some basic details:
(i) Given that, f: X→Y is an invertible function.
• So we can write:
    ♦ f(x) = y
    ♦ f-1(y) = x
(ii) Given that, g: Y→Z is an invertible function.
• So we can write:
    ♦ g(y) = z
    ♦ g-1(z) = y
(iii) Note that, domain of g is same as codomain of f.

2. Now we recall an important property of inverse functions.
• If the inverse of f is f-1, then two conditions will be satisfied:
(i) (f-1f) = IX
(ii) (ff-1) = IY
Where
    ♦ X is the domain of f
    ♦ Y is the domain of f-1 

• Similarly, if the inverse of g is g-1, then two conditions will be satisfied:
(i) (g-1∘g) = IY
(ii) (g∘g-1) = IZ
Where
    ♦ Y is the domain of g
    ♦ Z is the domain of g-1

3. Next step is to determine the domain and codomain of the composite functions.
(i) Domain of (g∘f):
• (g∘f) connects the domain of f with the codomain of g.
    ♦ So the domain of (g∘f) is the domain of f, which is X.
    ♦ Also the codomain of (g∘f) is the codomain of g, which is Y. 
(ii) Domain of (f-1∘g-1):
• (f-1∘g-1) connects the domain of g-1 with the codomain of f-1.
    ♦ So the domain of (f-1∘g-1) is the domain of g-1, which is Z.
    ♦ Also the codomain of (f-1∘g-1) is the codomain of f-1, which is X. 

4. Now we can use the property mentioned in step (2).
• That is:
If the inverse of (gf) is (f-1g-1), then two conditions will be satisfied:
(i) (f-1g-1)(gf) = IX
(ii) (gf)(f-1g-1) = IZ
Where
    ♦ X is the domain of (gf)
    ♦ Z is the domain of (f-1g-1)

5. First we show that (f-1g-1)(gf) = IX.
$\begin{array}{ll}{}    &{(f^{-1} \circ g^{-1})(g \circ f)}    & {~=~}    &{\Bigl((f^{-1} \circ g^{-1}) \circ g \Bigr) \circ f ~\color {magenta}{\text{- - - (A)}}}    &{} \\
{}    &{}    & {~=~}    &{\Bigl(f^{-1} \circ (g^{-1} \circ g) \Bigr) \circ f ~\color {magenta}{\text{- - - (B)}}}    &{} \\
{}    &{}    & {~=~}    &{(f^{-1} \circ I_{Y}) \circ f ~\color {magenta}{\text{- - - (C)}}}    &{} \\
{}    &{}    & {~=~}    &{I_X ~\color {magenta}{\text{- - - (D)}}}    &{} \\
\end{array}               
$

◼ Remarks:
• Line marked as A:
Here we use the formula: h(gf) = (hg)f
• Line marked as B:
Here also, we use the formula: h(gf) = (hg)f
• Line marked as C:
Here we use the fact that: (g-1g) = IY
• Line marked as D:
We must simplify (f-1∘IY)f. This can be done in two steps:
(i) First we will determine (f-1∘IY)
• Here, the output of IY is used as the input for f-1.
• Also this function connects the domain of IY with the codomain of f-1.
    ♦ Domain of IY is Y
    ♦ Codomain of f-1 is X
So we get: (f-1∘IY) = f-1(IY) = f-1(y) = x.
(ii) Now we can determine (f-1∘IY)f
• Here, the output of f is used as the input for (f-1∘IY).
• Also this function connects the domain of f with the codomain of (f-1∘IY).
    ♦ Domain of f is X
    ♦ Codomain of (f-1∘IY) is also X
So we get: (f-1∘IY)f = IX.

6. In a similar way, we can show that:
(gf)(f-1g-1) = IZ.

7. So both conditions mentioned in (4) are satisfied.
• Therefore it is proved that:
If f: X→Y and g: Y→Z are two invertible functions, then (gf) is also invertible. The inverse of (gf) is (f-1g-1)  

Solved example 17.28
Let S = {1,2,3}. Determine whether the functions f: S→S defined as below have inverses. Find f-1 if it exists.
(a) f = {(1,1), (2,2), (3,3)}
(b) f = {(1,2), (2,1), (3,1)}
(c) f = {(1,3), (3,2), (2,1)}
Solution:
Part (a): f = {(1,1), (2,2), (3,3)}
• Here f is both one-one and onto. So f-1 exists.
• We can write: f-1 = {(1,1), (2,2), (3,3)}

Part (b): f = {(1,2), (2,1), (3,1)}
• Here f(2) = f(3) = 1.
So f is not one-one and onto. Therefore, f-1 does not exist.

Part (c): f = {(1,3), (3,2), (2,1)}
• Here f is both one-one and onto. So f-1 exists.
• We can write: f-1 = {(3,1), (2,3), (1,2)}


Link to a few more solved examples is given below:

Exercise 17.3


In the next section, we will see binary operations.

Previous

Contents

Next

Copyright©2023 Higher secondary mathematics.blogspot.com

Saturday, November 25, 2023

17.7 - Composite of Composite Functions

In the previous section, we saw invertible functions. We saw some solved examples also. In this section, we will see a few more solved examples. Based on those solved examples, we will see composite of composite functions.

Solved example 17.25

Let f: N→R be a function defined as f(x)=4x2+12x+15. Show that f: N→S, where, S is the range of f, is invertible. Find the inverse of f.  
Solution:
1. Based on the given data, we can write 5 points:
(i) f is a set. It contains ordered pairs of the form (x,y).
(ii) The domain of f is N. So x can be natural numbers only.
(iii) For every x, the corresponding y can be calculated using the equation y = 4x2+12x+15
(iv) Since y is calculated using this equation, it will also be a natural number.
(v) The y values thus calculated, forms the set S. Set S is the codomain. In this problem, it is specifically given that, S is the range. So codomain is the range. Recall that, range is a subset of codomain. Range will contain only the outputs.  

2. Now we have the details about f. So we can write the reverse of f. We will call it g.
g: S→N
• The details about g can be written in 5 steps:
(i) g is a set. It contains ordered pairs of the form (y,x)
(ii) The domain of g is set S. The set S is already formed when function f is defined.
(iii) Each element y in S was derived from an element x in N.
• So when we work in reverse from S to N, we can write:
Every element y in S will have a corresponding element x in N.
(iv) y was derived using the equation: y = 4x2+12x+15
We can bring x to the left side as follows:

$$\begin{array}{ll}{}    &{y}    & {~=~}    &{4x^2 + 12x + 15}    &{} \\
{\implies}    &{y}    & {~=~}    &{4x^2 + 12x + 9 + 6}    &{} \\
{\implies}    &{y}    & {~=~}    &{(2x + 3)^2 + 6}    &{} \\
{\implies}    &{(2x+3)^2}    & {~=~}    &{y-6}    &{} \\
{\implies}    &{2x+3}    & {~=~}    &{\sqrt{y-6}}    &{} \\
{\implies}    &{x}    & {~=~}    &{\frac{\sqrt{y-6}~-~3}{2}~\color{magenta}{\text{- - - (I)}}}    &{} \\
\end{array}               
$$


◼ Remarks:
• Line marked as I:
Here we must note two points (a) and (b):
(a) Input x must be natural numbers. So the smallest input possible is ‘1’.
• We have y = 4x2+12x+15.
So the smallest possible output corresponding to the smallest possible input will be:
y = 4(1)2+12(1)+15 = 31.
• This value of y is greater than ‘6’. So (y-6) will never become -ve. Therefore we can apply the square root $\sqrt{y-6}$.

(b) When we apply the square root, we usually write: $\pm \sqrt{y-6}$
• But in the present case, the -ve sign is not applicable because, x is a natural number. It cannot be -ve.


• So when working in reverse, the x corresponding to y can be obtained as: $x = \frac{\sqrt{y-6}~-~3}{2}$
(v) Based on this, we can define g as follows:
g: S→N is defined as: $x~=~g(y)~=~ \frac{\sqrt{y-6}~-~3}{2}$
• The inputs for g are taken from S. The outputs will be present in N.

3. Now we have both f and g. We can calculate (g∘f)
• (gf) means, output of f is used as the input of g.
• The two functions are: f: N→S and g: S→N
• We know that, (g∘f) directly connects the domain of f to the codomain of g. So (gf) is from N to N.
• We denoted the inputs from N as x. So we are calculating (gf)(x).
• We get:
$$\begin{array}{ll}{}    &{(g \circ f)(x)}    & {~=~}    &{g(f(x))}    &{} \\
{}    &{}    & {~=~}    &{g(4x^2 + 12x + 15)}    &{} \\
{}    &{}    & {~=~}    &{\frac{\sqrt{(4x^2 + 12x + 15) -6}~-~3}{2}}    &{} \\
{}    &{}    & {~=~}    &{\frac{\sqrt{(4x^2 + 12x + 9)}~-~3}{2}}    &{} \\
{}    &{}    & {~=~}    &{\frac{\sqrt{(2x + 3)^2}~-~3}{2}}    &{} \\
{}    &{}    & {~=~}    &{\frac{(2x + 3)~-~3}{2}}    &{} \\
{}    &{}    & {~=~}    &{\frac{2x}{2}}    &{} \\
{}    &{}    & {~=~}    &{x}    &{} \\
\end{array}               
$$

• So whatever input x we give, the output will be the same x. That means, (g∘f) is an identity function.
• The inputs are taken from N. So we can write:
(gf) = IN.

4. Similarly, we can calculate (f∘g)
• (f∘g) means, output of g is used as the input of f.
• The two functions are: g: S→N and f: N→S
• We know that, (f∘g) directly connects the domain of g to the codomain of f. So (f∘g) is from S to S.
• We denoted the inputs from S as y. So we are calculating (f∘g)(y).
• We get:
$$\begin{array}{ll}{}    &{(f \circ g)(y)}    & {~=~}    &{f(g(y))}    &{} \\
{}    &{}    & {~=~}    &{f \left(\frac{\sqrt{y-6} - 3}{2} \right)}    &{} \\
{}    &{}    & {~=~}    &{4 \left[\frac{\sqrt{y-6} - 3}{2} \right]^2 ~+~12 \left[\frac{\sqrt{y-6} - 3}{2} \right] ~+~15 }    &{} \\
{}    &{}    & {~=~}    &{(\sqrt{y-6} - 3)^2 ~+~6(\sqrt{y-6} - 3) ~+~15 }    &{} \\
{}    &{}    & {~=~}    &{(\sqrt{y-6})^2 ~-~ 6 \sqrt{y-6} ~+~ 9 ~+~ 6\sqrt{y-6} ~-~ 18 ~+~15 }    &{} \\
{}    &{}    & {~=~}    &{y-6 ~-~ 6 \sqrt{y-6} ~+~ 9 ~+~ 6\sqrt{y-6} ~-~ 18 ~+~15 }    &{} \\
{}    &{}    & {~=~}    &{y-6 ~+~ 9  ~-~ 18 ~+~15 }    &{} \\
{}    &{}    & {~=~}    &{y}    &{} \\
\end{array}               
$$
• So whatever input y we give, the output will be the same y. That means, (f∘g) is an identity function.
• The inputs for (fg) are taken from Y. So we can write:
(f∘g) = IY.

5. Let us write a summary:
• We are given a function f: N → S
• We wrote the reverse function g: S → N
• From (3), we got: (g∘f) = IX
• From (4), we got: (f∘g) = IY
• So f is invertible.
• Also, the inverse of f = f-1 = g
• That means:
The inverse of $y = f(x) = 4x^2 + 12x + 15$ is:
$x = g(y) = \frac{\sqrt{y-6}~-~3}{2}$

Solved example 17.26
Consider f: N→N, g: N→N and h: N→R defined as:
f(x) = 2x,
g(y) = 3y+4 and
h(z) = sin z
for all x, y and z in N.
Show that h(gf) = (hg)f.
Solution:
1. (gf) = g(f(x)) = g(2x) = 3(2x) + 4 = 6x+4
• (gf) connects the domain of f with the codomain of g. So (gf) is from N to N.
• The inputs taken from the domain of f are denoted as x.
• So we can write:
(gf): N→N is defined as:
(gf)(x) = 6x + 4 for all x∈N

2. Now we can find h(gf)
h(gf) = h((gf)(x)) = h(6x+4) = sin(6x+4)
• h(gf) connects the domain of (gf) with the codomain of h. So h(gf) is from N to R.
• The inputs taken from the domain of (gf) are denoted as x.
• So we can write:
h(gf): N→R is defined as:
(h(gf))(x) = sin(6x + 4) for all x∈N

3. (hg) = h(g(y)) = h(3y+4) = sin(3y+4)
• (hg) connects the domain of g with the codomain of h. So (h∘g) is from N to R.
• The inputs taken from the domain of g are denoted as y.
• So we can write:
(h∘g): N→R is defined as:
(h∘g)(y) = sin(3y+4) for all y∈N

4. Now we can find (h∘g)f
(hg)f = (hg)(f(x)) = (hg)(2x) = sin(3(2x) + 4) = sin(6x+4)
• (hg)f connects the domain of f with the codomain of (hg). So (hg)f is from N to R.
• The inputs taken from the domain of f are denoted as x.
• So we can write:
(hg)f: N→R is defined as: (hg)f(x) = sin(6x + 4) for all x∈N

5. From (2) and (4), we see that:
(h(gf))(x) = ((hg)f)(x) for all x∈N.


The result obtained in the above solved example 17.26 can be used in general. We can write:
If f: X→Y, g: Y→Z and h: Z→S are functions, then
h(gf) = (hg)f

The proof can be written in 5 steps:
1. We are given:
    ♦ f: X→Y
    ♦ g: Y→Z
    ♦ h: Z→S
So we can write:
    ♦ f(x) = y
    ♦ g(y) = z
    ♦ h(z) = s

2. We have to prove that: h(gf) = (hg)f

3. First we consider the LHS. We will determine (gf) in the LHS.
• (gf) connects the domain of f with the codomain of g.
• That means, (gf) is from X to Z.
• The inputs will be from X. The outputs should be in Z.
• So we get:
(gf)(x) = g(f(x)) = g(y) = z

4. Now we can determine h(gf)
• h∘(g∘f) connects the domain of (g∘f) with the codomain of h.
•  That means, h∘(g∘f) is from X to S.
• The inputs will be from X. The outputs should be in S.
• So we get:
h∘(g∘f)(x) = h((g∘f)(x)) = h(z) = s

5. Next we consider the RHS. We will determine (h∘g) in the RHS.
• (h∘g) connects the domain of g with the codomain of h.
• That means, (h∘g) is from Y to S.
• The inputs will be from Y. The outputs should be in S.
• So we get:
(h∘g)(y) = h(g(y)) = h(z) = s

6. Now we can determine (h∘g)∘f
• (h∘g)∘f connects the domain of f with the codomain of (h∘g).
•  That means, (h∘g)∘f is from X to S.
• The inputs will be from X. The outputs should be in S.
• So we get:
((h∘g)∘f)(x) = (h∘g)(f(x)) = (h∘g)(y) = s

7. Let us compare the results:
• From (4) we get:
h∘(g∘f)(x) = h((g∘f)(x)) = h(z) = s
• From (6) we get:
((h∘g)∘f)(x) = (h∘g)(f(x)) = (h∘g)(y) = s
• Results are the same. So we can write:
h∘(g∘f)(x) = ((h∘g)∘f)(x) for all x∈X.


In the next section, we will see two more solved examples.

Previous

Contents

Next

Copyright©2023 Higher secondary mathematics.blogspot.com

 

Saturday, November 18, 2023

17.6 - Invertible Function

In the previous section, we saw properties of composite functions. In this section, we will see invertible functions.

First we will see a solved example.

Solved example 17.22
Let f: {1,2,3}  →  {a,b,c}  be  one-one  and  onto  function given by f(1) = a, f(2) = b and f(3) = c. Show that there exists a function g: {a, b, c} → {1, 2, 3}such that gf = IX and fg = IY, where, X =  {1, 2, 3} and Y = {a, b, c}.
Solution:
1. We have two sets:
• X = {1,2,3}
• Y = {a,b,c}
2. We have a function which is one-one and onto:
• f: X→Y defined by:
    ♦ f(1) = a
    ♦ f(2) = b
    ♦ f(3) = c
3. We can think about a new function in the reverse order. This function is also one-one and onto:
• g: Y→X defined by:
    ♦ g(a) = 1
    ♦ g(b) = 2
    ♦ g(c) = 3
4. Now we can calculate (gf)
• Recall that, (gf) means, output of f is used as the input of g.
    ♦ (gf)(1) = g(f(1)) = g(a) = 1
    ♦ (gf)(2) = g(f(2)) = g(b) = 2
    ♦ (gf)(3) = g(f(3)) = g(c) = 3
• We see that:
Whatever input we give for the function (gf), the output will be the same. So (gf) is an identity function.
• But we must specify the domain for the identity function. We see that, the input values for (gf) are taken from the set X. So the domain is X. That means, it is an identity function on set X.
• We can write: (gf) = IX.
5. Similarly, we can calculate (f∘g)
• Recall that, (f∘g) means, output of g is used as the input of f.
    ♦ (f∘g)(a) = f(g(a)) = f(1) = a
    ♦ (f∘g)(b) = f(g(b)) = f(2) = b
    ♦ (f∘g)(c) = f(g(c)) = f(3) = c
• We see that:
Whatever input we give for the function (f∘g), the output will be the same. So (f∘g) is an identity function.
• But we must specify the domain for the identity function. We see that, the input values for (f∘g) are taken from the set Y. So the domain is Y. That means, it is an identity function on set Y.
• We can write: (f∘g) = IY.


The result obtained from the above solved example, can be applied in general. It can be written in 2 steps:
1. We have a function f: X→Y
• The function f, is one-one and onto.
2. Then there exists another function g: Y→X such that:
    ♦ (g∘f) = IX
    ♦ (f∘g) = IY


The converse is also true. It can be written in 2 steps:
1. There exists two functions: f: X→Y and g: Y→X
• The two functions together satisfy two conditions:
    ♦ (g∘f) = IX
    ♦ (f∘g) = IY
2. Then f is both one-one and onto.


Now we can write about invertible function. It can be written in 4 steps:
1. We have a function f: X→Y
2. There exists another function g: Y→X such that:
    ♦ (g∘f) = IX
    ♦ (f∘g) = IY
3. Then f is an invertible function.
4. The function g is called inverse of f.
Inverse of f is denoted as: f-1.
5. Note the subscripts X and Y in step(2)
    ♦ X is the domain of the original function f.
    ♦ Y is the domain of the inverse function g.


Checking whether a function is invertible or not

This can be written in 4 steps:
1. Consider the condition:
    ♦ (g∘f) = IX
    ♦ (f∘g) = IY
2. This condition can be satisfied only if f is one-one and onto.
3. So we can write:
• If f is invertible, then it will be one-one and onto.
• Conversely, if f is one-one and onto, then it will be invertible.
4. This information can be used to prove a function to be invertible.
• All we need to do is: prove that, it is one-one and onto.
• This is especially helpful in situations where we do not need to find f-1.

Solved example 17.23
Let f: N → Y be a function defined as f(x) = 4x + 3, where, Y = {y ∈ N : y = 4x + 3 for some x ∈ N}.
Show that f is invertible. Find the inverse.
Solution:
1. Based on the given data, we can write 5 points:
(i) f is a set. It contains ordered pairs of the form (x,y).
(ii) The domain of f is N. So x can be natural numbers only.
(iii) For every x, the corresponding y can be calculated using the equation y = 4x + 3
(iv) Since y is calculated using this equation, it will also be a natural number.
(v) The y values thus calculated, forms the set Y. Set Y is the codomain.
• The codomain Y will not contain natural numbers like 1, 2, 8, 9 etc., This is because, these numbers do not satisfy the equation y = 4x + 3.
• Since the codomain in this case contain only the outputs, we can say that, codomain is same as the range.

2.Now we have the details about f. So we can write the reverse of f. We will call it g.
g: Y→N
• The details about g can be written in 5 steps:
(i) g is a set. It contains ordered pairs of the form (y,x)
(ii) The domain of g is set Y. The set Y is already formed when function f is defined.
(iii) Each element y in Y was derived from an element x in N.
• So when we work in reverse from Y to N, we can write:
Every element y in Y will have a corresponding element x in N.
(iv) y was derived using the equation: y = 4x + 3
• So when working in reverse, the x corresponding to y can be obtained as: $x = \frac{y-3}{4}$
(v) Based on this, we can define g as follows:
g: Y→N is defined as: $x~=~g(y)~=~ \frac{y-3}{4}$
• The inputs for g are taken from Y. The outputs will be present in N.

3. Now we have both f and g. We can calculate (g∘f)
• (gf) means, output of f is used as the input of g.
• The two functions are: f: N→Y and g: Y→N
• We know that, (g∘f) directly connects the domain of f to the codomain of g. So (gf) is from N to N.
• We denoted the inputs from N as x. So we are calculating (gf)(x).
• We get:
$$\begin{array}{ll}{}    &{(g \circ f)(x)}    & {~=~}    &{g(f(x))}    &{} \\
{}    &{}    & {~=~}    &{g(4x+3)}    &{} \\
{}    &{}    & {~=~}    &{\frac{[(4x+3)-3]}{4}}    &{} \\
{}    &{}    & {~=~}    &{\frac{4x}{4}}    &{} \\
{}    &{}    & {~=~}    &{x}    &{} \\
\end{array}               
$$

• So whatever input x we give, the output will be the same x. That means, (g∘f) is an identity function.
• The inputs are taken from N. So we can write:
(gf) = IN.

4. Similarly, we can calculate (f∘g)
• (f∘g) means, output of g is used as the input of f.
• The two functions are: g: Y→N and f: N→Y
• We know that, (f∘g) directly connects the domain of g to the codomain of f. So (f∘g) is from Y to Y.
• We denoted the inputs from Y as y. So we are calculating (f∘g)(y).
• We get:
$$\begin{array}{ll}{}    &{(f \circ g)(y)}    & {~=~}    &{f(g(y))}    &{} \\
{}    &{}    & {~=~}    &{f \left(\frac{y-3}{4} \right)}    &{} \\
{}    &{}    & {~=~}    &{f \left(4 \times \frac{y-3}{4} + 3 \right)}    &{} \\
{}    &{}    & {~=~}    &{f \left(y-3 + 3\right)}    &{} \\
{}    &{}    & {~=~}    &{y}    &{} \\
\end{array}               
$$
• So whatever input y we give, the output will be the same y. That means, (f∘g) is an identity function.
• The inputs for (fg) are taken from Y. So we can write:
(f∘g) = IY.

5. Let us write a summary:
• We are given a function f: N → Y
• We wrote the reverse function g: Y → N
• From (3), we got: (g∘f) = IX
• From (4), we got: (f∘g) = IY
• So f is invertible.
• Also, the inverse of f = f-1 = g
• That means:
The inverse of $f(x) = 4x + 3$ is:
$g(y) = \frac{y-3}{4}$

Solved example 17.24
Let Y = {n2 : n∈N} ⊂ N. Consider f: N→Y as f(n) = n2. Show that f is invertible. Find the inverse of f.
Solution:
1. Based on the given data, we can write 5 points:
(i) f is a set. It contains ordered pairs of the form (x,y).
(ii) The domain of f is N. So x can be natural numbers only.
(iii) For every x, the corresponding y can be calculated using the equation y = x2
(iv) Since y is calculated using this equation, it will also be a natural number.
(v) The y values thus calculated, forms the set Y. Set Y is the codomain.
• The codomain Y will not contain natural numbers like 2, 5, 7, 8 etc., This is because, these numbers do not satisfy the equation y = x2, where x is a natural number.
• Since the codomain in this case contain only the outputs, we can say that, codomain is same as the range.

2. Now we have the details about f. So we can write the reverse of f. We will call it g.
g: Y→N
• The details about g can be written in 5 steps:
(i) g is a set. It contains ordered pairs of the form (y,x)
(ii) The domain of g is set Y. The set Y is already formed when function f is defined.
(iii) Each element y in Y was derived from an element x in N.
• So when we work in reverse from Y to N, we can write:
Every element y in Y will have a corresponding element x in N.
(iv) y was derived using the equation: y = x2
• So when working in reverse, the x corresponding to y can be obtained as: $x = \sqrt{y}$
(v) Based on this, we can define g as follows:
g: Y→N is defined as: $x~=~g(y)~=~ \sqrt{y}$
• The inputs for g are taken from Y. The outputs will be present in N.

3. Now we have both f and g. We can calculate (g∘f)
• (gf) means, output of f is used as the input of g.
• The two functions are: f: N→Y and g: Y→N
• We know that, (g∘f) directly connects the domain of f to the codomain of g. So (gf) is from N to N.
• We denoted the inputs from N as x. So we are calculating (gf)(x).
• We get:
$$\begin{array}{ll}{}    &{(g \circ f)(x)}    & {~=~}    &{g(f(x))}    &{} \\
{}    &{}    & {~=~}    &{g(x^2)}    &{} \\
{}    &{}    & {~=~}    &{\sqrt{x^2}}    &{} \\
{}    &{}    & {~=~}    &{x}    &{} \\
\end{array}               
$$

• So whatever input x we give, the output will be the same x. That means, (g∘f) is an identity function.
• The inputs are taken from N. So we can write:
(gf) = IN.

4. Similarly, we can calculate (f∘g)
• (f∘g) means, output of g is used as the input of f.
• The two functions are: g: Y→N and f: N→Y
• We know that, (f∘g) directly connects the domain of g to the codomain of f. So (f∘g) is from Y to Y.
• We denoted the inputs from Y as y. So we are calculating (f∘g)(y).
• We get:
$$\begin{array}{ll}{}    &{(f \circ g)(y)}    & {~=~}    &{f(g(y))}    &{} \\
{}    &{}    & {~=~}    &{f \left(\sqrt{y}\right)}    &{} \\
{}    &{}    & {~=~}    &{y}    &{} \\
\end{array}               
$$
• So whatever input y we give, the output will be the same y. That means, (f∘g) is an identity function.
• The inputs for (fg) are taken from Y. So we can write:
(f∘g) = IY.

5. Let us write a summary:
• We are given a function f: N → Y
• We wrote the reverse function g: Y → N
• From (3), we got: (g∘f) = IX
• From (4), we got: (f∘g) = IY
• So f is invertible.
• Also, the inverse of f = f-1 = g
• That means:
The inverse of $f(x) = x^2$ is:
$g(y) = \sqrt{y}$


In the next section, we will see a few more solved examples.

Previous

Contents

Next

Copyright©2023 Higher secondary mathematics.blogspot.com

Wednesday, November 15, 2023

17.5 - Properties of Composite Functions

In the previous section, we saw composition of functions. We saw some solved examples also. In this section, we will see a few more solved examples. Those solved examples will help us to learn the properties of composition of functions.

Solved example 17.18
Show that if f: A → B and g: B → C are one-one, then gf: A → C is also one-one
Solution:
1. In an one-one function, if (gf)(x1) is to be equal to (gf)(x2), then x1 must be equal to x2. This condition can be used to prove that, a given function is an one-one function.
2. In our present case, suppose that, (gf)(x1) is equal to (gf)(x2). Then we can write:

$\begin{array}{ll}{}    &{(g \circ f)(x_1)}    & {~=~}    &{(g \circ f)(x_2)}    &{} \\
{\implies}    &{g(f(x_1))}    & {~=~}    &{g(f(x_1))}    &{} \\
{\implies}    &{f(x_1)}    & {~=~}    &{f(x_2)~\color{magenta}{\text{- - - (I)}}}    &{} \\
{\implies}    &{x_1}    & {~=~}    &{x_2~\color{magenta}{\text{- - - (II)}}}    &{} \\
\end{array}$

◼ Remarks:
• Line marked as I:
We get this result because, g is one-one.
• Line marked as II:
We get this result because, f is one-one.

Solved example 17.19
Show  that  if  f: A  →  B  and  g: B  →  C  are  onto,  then  gf: A  →  C  is also onto
Solution:
1. Given that g is onto. So for every element z of C, there will be a pre-image y in B.
    ♦ We can write: g(y) = z
2. Given that f is onto. So for every element y of B, there will be a pre-image x in A.
    ♦ We can write: f(x) = y
3. So we get: (f∘g)(x) = g(f(x)) = g(y) = z
• Taking the first and last items, we get: (f∘g)(x) = z
• That means, for every element z of C, there is a pre-image in A.
• Therefore, (g∘f) is an onto function

Solved example 17.20
Consider functions f and g such that composite gf is defined and is one-one. Are f and g both necessarily one-one.
Solution:
We will check this using an example. It can be written in 6 steps:
1. We have two sets:
• A = {1,2,3,4}
• B = {1,2,3,4,5,6}
2. We have two functions:
• f: A→B is defined by: f(x) = x
• g: B→B is defined by:
    ♦ g(x) = x, for x = 1,2,3,4
    ♦ g(5) = 5
    ♦ g(6) = 5
3. Based on the above steps, we can draw the Venn diagrams as shown in fig.17.9 below:

Fig.17.9

4. From the Venn diagram, we see that:
• (g∘f) is one-one.
• f is one-one.
• g is not one-one.
5. So we can write:
Even if the composite function (g∘f) is one-one, it is not necessary for both f and g to be one-one.
6. Let us see a comparison between the two solved examples:
(i) In a previous solved example 17.18, we see that:
If both f and g are one-one, then (g∘f) will be one-one.
(ii) In the present solved example 17.20, we see that:
If (g∘f) is one-one, then it is not necessary for both f and g to be one-one.

Solved example 17.21
Are f and g both necessarily onto, if (g∘f) is onto?
Solution:
We will check this using an example. It can be written in 6 steps:
1. We have two sets:
• A = {1,2,3,4}
• B = {1,2,3}
2. We have two functions:
• f: A→A is defined by:
    ♦ f(x) = x, for x = 1,2
    ♦ f(3) = 3
    ♦ f(4) = 3
• g: A→B is defined by:
    ♦ g(x) = x, for x = 1,2
    ♦ g(3) = 3
    ♦ g(4) = 3
3. Based on the above steps, we can draw the Venn diagrams as shown in fig.17.10 below:

Fig.17.10

4. From the Venn diagram, we see that:
• (g∘f) is onto.
• f is not onto.
• g is onto.
5. So we can write:
Even if the composite function (g∘f) is onto, it is not necessary for both f and g to be onto.
6. Let us see a comparison between the two solved examples:
(i) In a previous solved example 17.19, we see that:
If both f and g are onto, then (g∘f) will be onto.
(ii) In the present solved example 17.21, we see that:
If (g∘f) is onto, then it is not necessary for both f and g to be onto.


• In general, it can be proved that:
    ♦ If (gf) is one-one, then f is one-one.
    ♦ If (gf) is onto, then g is onto.



In the next section, we will see Invertible function.

Previous

Contents

Next

Copyright©2023 Higher secondary mathematics.blogspot.com

 

Tuesday, November 14, 2023

17.4 - Composition of Functions

In the previous section, we completed a discussion on one-one and onto functions. In this section, we will see Composition of functions.

Composition of functions

Composition of functions can be explained using an example. It can be written in 8 steps:
1. The display board of a textile shop reads: 14% discount on all items.
2. A person wants to buy a shirt. The marked price of the shirt is Rs 400/-. He wants to know whether he can afford it. He has to consider both the discount and the tax. The tax is to be paid at the rate of 8%.
3. For solving this problem, first we consider the discount.
• We know that:
If x is the marked price, then the cost after 14% discount will be 0.86x
• We can write this as a function: f(x) = 0.86x
This function can be used for all items in that shop.
    ♦ Input ‘x’ is the marked price.
    ♦ Output ‘f(x)’ is the cost after discount.
• In our present case, we can put x1 = 400
So the cost after discount = f(x1) = 0.86 × 400 = 344
4. Next we consider the tax.
• We know that:
If x is the cost of an item, the payment to be made considering 8% tax will be 1.08x
• We can write this as a new function: g(x) = 1.08x
This function can be used for all items in that shop.
    ♦ Input ‘x’ is the cost after discount.
    ♦ Output ‘g(x)’ is the payment to be made.
    ♦ In our present case, we can put x2 = 344
So the payment = g(x2) = 1.08 × 344 = 371.52
5. Note that, we did two separate calculations:
(i) In the first calculation, we found out the cost after discount.
(ii) In the second calculation, we found out the payment to be made after considering the tax.
6. The two calculations can be done together. It can be explained in 4 steps:
(i) Output of the first function is the input of the second function.
• Output of the first function is 0.86x. Here x is the marked price.
(ii) So input of the second function is 0.86x
• The second function is: g(x) = 1.08x
So we get: g(0.86x) = 1.08(0.86x) = 0.9288x
• Check:
0.9288 × 400 = 371.52
This is the same result that we obtained in (4)
(iii) Now we can write the general form:
• From the above steps, it is clear that:
    ♦ Output of f
    ♦ is the
    ♦ Input of g  
• Using symbols, this can be written in two ways:
    ♦ (gf)(x)
    ♦ g(f(x))
We can use any one of the above two ways. Both are read as "g of f of x"
(iv) Note that, the small circle between g and f should not be a filled circle. Then it would look like a dot. If it is a dot, then it means multiplication.
7. (gf)(x) is actually a function. It can be plotted just like any other function. The plot in our present case is the magenta line in fig.17.6 below:

Fig.17.6

An explanation of the graph can be written in 5 steps:
(i) Draw the three graphs:
    ♦ f(x) = 0.86x
    ♦ g(x) = 1.08x
    ♦ (gf)(x) = 0.9288x
(ii) We want the payment amount when the marked price is 400. So draw a vertical cyan dashed line through 400 on the x-axis.
• This vertical line meets f(x) at a point. Draw a horizontal cyan dashed line through this meeting point.
• This horizontal cyan dashed line meets the y-axis at 344. This is the price after discount.
(iii) We want the payment amount when the cost is 344. So draw a vertical brown dashed line through 344 on the x-axis.
• This vertical line meets g(x) at a point. Draw a horizontal brown dashed line through this point.
• This horizontal brown dashed line meets the y-axis at 371.52. This is the payment amount.
(iv) The horizontal cyan dashed line and vertical brown dashed line, together with the axes, form a square. Why?
(v) In practice, we need not plot f(x) and g(x). All we need is the plot of (gf)(x).
• This is because:
The vertical dashed line through 400 meets the magenta line at the white dot. The horizontal dashed line through this white dot meets the y-axis at the same 371.52.
8. (gf)(x) can be explained using set theory also. It can be written in 5 steps:
(i) We write set M which contains the marked prices of the various items in the shop. This is shown in fig.17.7(a) below:

Fig.17.7
 
(ii) Each element of M becomes input of the function f. The outputs are the costs after discount. These outputs become elements of set D. Let us see an example:
• 735 is an input for function f. We get: f(735) = 0.86 × 735 = 632.1
• So there is an arrow connecting 735 (in set M) and 632.1 (in set D).
• We can define the function f using sets M and D:
f: M→D defined as f(x) = 0.86x
(iii) Each element of D becomes input of the function g. The outputs are the payment amounts. These outputs become elements of set P. Let us see an example:
• 632.1 is an input for function g. We get: g(632.1) = 1.08 × 632.1 = 682.668
• So there is an arrow connecting 632.1 (in set D) and 682.668 (in set P).
• We can define the function g using sets D and P:
g: D→P defined as g(x) = 1.08x
(iv) Instead of applying two separate functions, we can apply the single function (g∘f). This is shown in fig.17.7(b) above. Let us see an example:
• (g∘f)(735) = 0.9288 × 735 = 682.668
We get the same result as above.
• We see an arrow directly connecting 725 (in set M) and 682.668 (in set P).
• We can define the function (gf) using sets M and P:
(gf): M→P defined as (gf)(x) = 0.9288x
• Note that, M is the domain of the first function and P is the codomain of the second function. So we can write:
The composite function connects the domain of the first function to the codomain of the second function.
(v) So it is clear that, by using composite functions, we can obtain the answers in a single step.    


Solved example 17.15
Let f : {2, 3, 4, 5} → {3, 4, 5, 9} and g : {3, 4, 5, 9} → {7, 11, 15} be functions defined as:
f(2) = 3,
f(3) = 4,
f(4) = f(5) = 5
and
g(3) = g(4) = 7,
g(5) = g(9) = 11.
Find gf.
Solution:
1. We can name the given sets as shown below:
A = {2, 3, 4, 5}
B = {3, 4, 5, 9}
C = {7, 11, 15}
• So the functions can be indicated as:
f : A → B
g : B → C
2. The Venn diagram is shown in fig.17.8(a) below:

Fig.17.8

Let us see an example from the diagram.
• Given that, f(3) = 4,
So there is an arrow connecting 3 (in set A) and 4 (in set B).
• Given that, g(4) = 7,
So there is an arrow connecting 4 (in set B) and 7 (in set C).
3. By following the arrows in fig.a, we get the connection between elements in A and C. This is shown in fig.b above.
• So we can write:
(gf)(2) = 7
(gf)(3) = 7
(gf)(4) = 11
(gf)(5) = 11

Alternate method:
(gf) means, "output of f" is used as "input of g".
1. Given that, f(2) = 3
So output of f for the input 2 is 3
• This 3 is the input for g.
• Given that, g(3) = 7
So when the input for (gf) is 2, the output will be 7
We can write: (gf)(2) = 7
2. Given that, f(3) = 4
• Given that, g(4) = 7
So (gf)(3) = 7
3. Given that, f(4) = 5
• Given that, g(5) = 11
So (gf)(4) = 11
4. Given that, f(5) = 5
• Given that, g(5) = 11
So (gf)(5) = 11

Solved example 17.16
Find gf and fg, if f : R → R and g : R → R are given by f(x) = cos x and g(x) = 3x2 . Show that gf ≠ fg.
Solution:
Part (i): Finding gf
1. gf means, "output of f" is used as "input of g".
2. Output of f is cos x.
So we can write:
gf = g(cos x) = 3(cos x)2 = 3 cos2x

Part (ii): Finding fg
1. f∘g means, "output of g" is used as "input of f".
2. Output of g is 3x2.
So we can write:
fg = f(3x2) = cos (3x2)

Part (iii): proving that, gf ≠ fg
1. We have: gf = 3 cos2x
Put x = 0. We get:
gf = 3 cos20  = 3 × 12 = 3
2. We have fg = cos (3x2)
Put x = 0. We get:
fg = cos (3 × 0) = cos 0 = 1
3. So we can write: gf ≠ fg

Solved example 17.17
Show that,
• if $f: R- \left \{\frac{7}{5} \right\}~\to~R- \left \{\frac{3}{5} \right\}$ is defined by $f(x)~=~\frac{3x+4}{5x-7}$
• and $g: R- \left \{\frac{3}{5} \right\}~\to~R- \left \{\frac{7}{5} \right\}$ is defined by $f(x)~=~\frac{7x+4}{5x-3}$,
• then fg = IA and gf = IB,
• where
    ♦ $A = R- \left \{\frac{3}{5} \right\}$
    ♦ $B = R- \left \{\frac{7}{5} \right\}$
    ♦ $I_A (x) = x, \forall x \in A$
    ♦ $I_B (x) = x, \forall x \in B$
Solution:
Details about identity function can be seen here.

Part (i): To prove that (f∘g)(x) = IA(x).
1. First we find (f∘g)
• (f∘g) means, "output of g" is used as "input of f".
Output of g is $\frac{7x+4}{5x-3}$.
So we get:
$$\begin{array}{ll}{}    &{(f \circ g)(x)}    & {~=~}    &{f \left(\frac{7x+4}{5x-3} \right)}    &{} \\
{}    &{}    & {~=~}    &{\frac{3\left(\frac{7x+4}{5x-3} \right)+4}{5\left(\frac{7x+4}{5x-3} \right)-3}}    &{} \\
{}    &{}    & {~=~}    &{\frac{21x+12 + 20x – 12}{35x + 20 -35x + 21}}    &{} \\
{}    &{}    & {~=~}    &{\frac{41x}{41}}    &{} \\
{}    &{}    & {~=~}    &{x}    &{} \\
\end{array}               
$$
2. We see that, (f∘g)(x) is an identity function. This is because, what ever input x we give, the output will be same as the input.
• But we need to specify the the set from which the input values can be taken. In other words, we need to specify the domain.
• We wrote that: $(f \circ g)(x)~=~f \left(\frac{7x+4}{5x-3} \right)$
• When x is $\frac{3}{5}$, the denominator will become zero. So x can be any real number other that $\frac{3}{5}$.
• That means, the domain is $R- \left \{\frac{3}{5} \right\}$
• But we are given that $A = R- \left \{\frac{3}{5} \right\}$.
So the domain is set A.
• We can write:
(f∘g)(x) is an identity function whose domain is A.
• Using symbols, we write this as:
(f∘g)(x) = IA(x).

Part (ii)
: To prove that (gf)(x) = IB(x)
1. First we find (gf)
• (gf) means, "output of f" is used as "input of g".
Output of f is $\frac{3x+4}{5x-7}$.
So we get:
$$\begin{array}{ll}{}    &{(g \circ f)(x)}    & {~=~}    &{g \left(\frac{3x+4}{5x-7} \right)}    &{} \\
{}    &{}    & {~=~}    &{\frac{7\left(\frac{3x+4}{5x-7} \right)+4}{5\left(\frac{3x+4}{5x-7} \right)-3}}    &{} \\
{}    &{}    & {~=~}    &{\frac{21x+28 + 20x – 28}{15x + 20 -15x + 21}}    &{} \\
{}    &{}    & {~=~}    &{\frac{41x}{41}}    &{} \\
{}    &{}    & {~=~}    &{x}    &{} \\
\end{array}               
$$
2. We see that, (gf)(x) is an identity function. This is because, what ever input x we give, the output will be same as the input.
• But we need to specify the the set from which the input values can be taken. In other words, we need to specify the domain.
• We wrote that: $(g \circ f)(x)~=~g \left(\frac{3x+4}{5x-7} \right)$
• When x is $\frac{7}{5}$, the denominator will become zero. So x can be any real number other that $\frac{7}{5}$.
• That means, the domain is $R- \left \{\frac{7}{5} \right\}$
• But we are given that $B = R- \left \{\frac{7}{5} \right\}$.
So the domain is set B.
• We can write:
(gf)(x) is an identity function whose domain is B.
• Using symbols, we write this as:
(gf)(x) = IB(x)


In the next section, we will see a few more solved examples. We will also see some important properties of composite functions.

Previous

Contents

Next

Copyright©2023 Higher secondary mathematics.blogspot.com

Wednesday, November 8, 2023

17.3 - Prove A Function to be one-one or onto

In the previous section, we saw some different types of functions. We also saw solved examples demonstrating how to check whether a function is one-one or onto. In this section, we will see a few more solved examples.

Solved example 17.10
Show that the function
f : N → N, given by f (1) = f (2) = 1 and f (x) = x – 1,
for every x > 2,
is onto but not one-one.
Solution:
To get a better understanding about the given function, it can be written as a piecewise function:

$$f(x) =
\begin{cases}
1,  & \text{if $x$ is 1} \\[1.5ex]
1,  & \text{if $x$ is 2} \\[1.5ex]
x-1 & \text{if $x$ > 2}
\end{cases}$$

1. f is a function from N to N.
• We know that f is a set. The elements of this set are ordered pairs of the form (x,y).
2. We take x from the set N. Set N is the set of natural numbers.
3. For each x value, we get the corresponding y value. This y value is also from set N.
4. Given that: f (1) = f (2) = 1
So we can write:
• the first ordered pair in f will be: (1, 1)
• the second ordered pair in f will be: (2, 1)
5. We see that, "1" is the image of both 1 and 2.
So f is not one-one.
6. Next, we will prove that, f is onto. For that, we need to prove that, all elements in the codomain (N) will be an image.
• We already saw that, "1" will be an image. So we need not consider it again.
• We must show the general case for the infinite number of natural numbers coming after "1"  
7. Consider any natural number y (other than 1) from the set N.
• Choose the input x such that x = y+1
• y is not equal to 1. So y can be 2, 3, 4, 5, . . .
• Then x will be always greater than 2. So the condition applicable is: f(x) = x-1  
• We get:
$\begin{array}{ll}{}    &{f(x)}    & {~=~}    &{x-1}    &{} \\
{\Rightarrow}    &{f(y+1)}    & {~=~}    &{y+1-1}    &{} \\
{\Rightarrow}    &{f(y+1)}    & {~=~}    &{y}    &{} \\
\end{array}$
8. We can write:
• For every y in the set N, we have a (y+1). If we input that (y+1) in f, we will get y as the output.
• That means, every element in N will be an image. So f is an onto function.

Solved example 17.11
Show that the function f : R → R,
defined as f (x) = x2 , is neither one-one nor onto.
Solution:
1. Let us write some elements in f.
(i) When x = 0, f(x) = f(0) = 02 = 0
So we get the element (0,0)
(ii) When x = 1, f(x) = f(1) = 12 = 1
So we get the element (1,1)
(iii) When x = -1, f(x) = f(-1) = (-1)2 = 1
So we get the element (-1,1)
2. From (ii) and (iii) of the above step, we see that:
"1" is the image of both 1 and -1.
• So f is not an one-one function.
3. This will become more clear from the graph in fig.17.5 below.

Fig.17.5

Mark the points -1 and 1 on the x axis. Draw vertical green dashed lines upwards. Those vertical lines will meet the graph at two points. Through those points, draw a horizontal green dashed line. This horizontal line will meet the y axis at a point. This point "1" on the y axis is the image of both -1 and 1.

4. Next we prove that f is not on to.
• Pick the point "-1" from the codomain. This "-1" cannot be the image of any number in the domain. This is because, we are squaring the input x. The square cannot be -ve.
• That means, all elements of the codomain are not images. So f is not an onto function.
5. This will become more clear from the graph in fig.17.5 above.
• We see that:
We can draw a horizontal dashed line through any -ve y value. But such a line will never meet the graph. So we will not be able to find an x value such that, it's image is a -ve value.

Solved example 17.12
Show that f : N → N, given by
$$f(x) =
\begin{cases}
x+1,  & \text{if $x$ is odd} \\[1.5ex]
x-1, & \text{if $x$ is even}
\end{cases}$$
is both one-one and onto.
Solution:
• f is a function from N to N.
• We know that f is a set. The elements of this set are ordered pairs of the form (x,y).
• We take x from the set N. Set N is the set of natural numbers 1,2,3, . . .  up to infinity.
• For each x value, we get the corresponding y value. This y value is also from set N.

1. In an one-one function, if f(x1) is to be equal to f(x2), then x1 must be equal to x2. This condition can be used to prove that, a given function is an one-one function.
2. In our present case, suppose that, f(x1) is equal to f(x2). Then we can write:
$\begin{array}{ll}{}    &{f(x_1)}    & {~=~}    &{f(x_2)}    &{} \\
{\Rightarrow}    &{x_1 + 1}    & {~=~}    &{x_2 -1 ~~\color{green}{\text{- - - I}}}    &{} \\
{\Rightarrow}    &{x_2 - x_1}    & {~=~}    &{2}    &{} \\
\end{array}$

◼ Remarks:
• Line marked as I:
In this line, we assume that x1 is odd and x2 is even.
   ♦ Since x1 is odd, f(x) will be (x1 + 1)
   ♦ Also, since x2 is even, f(x) will be (x2 - 1)

• The difference between an odd number and an even number cannot be 2.
• So we can write:
The condition of “x1 is odd and x2 is even” is not possible. 

3. Again, suppose that, f(x1) is equal to f(x2), assuming x1 to be even and x2 to be odd. Then we can write:
$\begin{array}{ll}{}    &{f(x_1)}    & {~=~}    &{f(x_2)}    &{} \\
{\Rightarrow}    &{x_1 - 1}    & {~=~}    &{x_2 + 1 ~~\color{green}{\text{- - - I}}}    &{} \\
{\Rightarrow}    &{x_1 - x_2}    & {~=~}    &{2}    &{} \\
\end{array}$

◼ Remarks:
• Line marked as I:
In this line, we assume that x1 is even and x2 is odd.
   ♦ Since x1 is even, f(x) will be (x1 - 1)
   ♦ Also, since x2 is odd, f(x) will be (x2 + 1)

• The difference between an odd number and an even number cannot be 2.
• So we can write:
The condition of “x1 is even and x2 is odd” is not possible.

4. Based on (2) and (3), we can write:
Either x1 and x2 both must be odd.
Or x1 and x2 both must be even.
5. Suppose that, both x1 and x2 are odd. Then we can write:
$\begin{array}{ll}{}    &{f(x_1)}    & {~=~}    &{f(x_2)}    &{} \\
{\Rightarrow}    &{x_1 + 1}    & {~=~}    &{x_2 + 1}    &{} \\
{\Rightarrow}    &{x_1}    & {~=~}    &{x_2}    &{} \\
\end{array}$ 

6. Suppose that, both x1 and x2 are even. Then we can write:
$\begin{array}{ll}{}    &{f(x_1)}    & {~=~}    &{f(x_2)}    &{} \\
{\Rightarrow}    &{x_1 - 1}    & {~=~}    &{x_2 - 1}    &{} \\
{\Rightarrow}    &{x_1}    & {~=~}    &{x_2}    &{} \\
\end{array}$

7. From (5) and (6), it is clear that:
If f(x1) is equal to f(x2), then it implies that x1 = x2.
• So f is an one-one function.   

8. Next, we will prove that, f is onto.
• Suppose that, the input x value is odd. We know that, any odd number can be represented as (2r+1)
• So we get:
f(x) = f(2r+1) = (2r +1 + 1) = 2r+2
• But 2r +2 is an even number.
• So we can write:
By suitably varying the value of r in the input odd number, we can obtain all even numbers as outputs.

9. Suppose that, the input x value is even. We know that, any even number can be represented as (2r)
• So we get:
f(x) = f(2r) = 2r - 1
• But 2r - 1 is an odd number.
• So we can write:
By suitably varying the value of r in the input even number, we can obtain all odd numbers as outputs.

10. From (8) and (9), it is clear that:
All numbers in the codomain N can become images. So f is an onto function.

Solved example 17.13
Show that an onto function f : {1, 2, 3} → {1, 2, 3} is always one-one.
Solution:
1. Given that, f is onto.
So one or more arrows will be converging on each and every element of the codomain {1,2,3}
2. We have to prove that, f is one-one. That is., only one arrow will be converging on each and every element of the codomain {1,2,3}
3. f is a function. So a single arrow will be diverging from each and every element of the domain {1,2,3}
4. Suppose that, f is not one-one. Then there are two possibilities.
(i) All three arrows diverging from  the domain, converge on a single element in the codomain.
(ii) Two arrows diverging from the domain, converge on a single element in the codomain.
• The third arrow from the domain, converges on one of the two remaining elements in the codomain.
5. Consider the possibility written in 4(i).
• Here, two elements in the codomain are left without any converging arrows.
• This contradicts with the statement that we wrote in (1). So thus possibility can be ruled out.
6. Consider the possibility written in 4(ii).
• Here, one element in the codomain is left without any converging arrows.
• This contradicts with the statement that we wrote in (1). So thus possibility can be ruled out.
7. We see that, both the possibilities that we wrote in (4), are ruled out. So f is an one-one function.

Solved example 17.14
Show that a one-one function f : {1, 2, 3} → {1, 2, 3} must be onto.
Solution:
1. Given that, f is one-one.
So, if any element in the codomain {1,2,3} is an image, then it will have only one arrow converging on it.
2. We have to prove that, there is an arrow converging on each and every element in the codomain {1,2,3}.
3. f is a function. So a single arrow will be diverging from each and every element of the domain {1,2,3}
4. Suppose that, f is not onto. Then there are two possibilities.
(i) All three arrows diverging from  the domain, converge on a single element in the codomain.
(ii) Two arrows diverging from the domain, converge on a single element in the codomain.
The third arrow from the domain, converges on one of the two remaining elements in the codomain.
5. Consider the possibility written in 4(i).
This contradicts with the statement that we wrote in (1). So thus possibility can be ruled out.
6. Consider the possibility written in 4(ii).
This contradicts with the statement that we wrote in (1). So thus possibility can be ruled out.
7. We see that, both the possibilities that we wrote in (4), are ruled out. So f is  an onto function.


Link to a few more solved examples is given below:

Exercise 17.2


In the next section, we will see composition of functions and invertible functions.


Previous

Contents

Next

Copyright©2023 Higher secondary mathematics.blogspot.com

Sunday, November 5, 2023

17.2 - Types of Functions

In the previous section, we completed a discussion on relations. In this section, we will see functions.

We have seen the basics about functions in class 11. Details here. Now we will see different types of functions.

One-one function and many-one function

This can be explained in 2 steps:
1. Consider the function f1 in fig.17.2(a) below:

Fig.17.2

• We see that:
f1(1) = a, f1(2) = b, f1(3) = d, and f1(4) = c.
• Note that, if an element in X2 is an image, it has only one arrow converging on it.
• So each element in X1 has a unique image in X2.
• Such functions are called one-one functions.
• One-one functions are also called injective functions.
• We can write:
In one-one functions, [f(x1) = f(x2)] is possible only if x1 = x2.
• The function f4 in fig.17.2(d) is also a one-one function.

2. Consider the function in fig.17.2(b) above:
• We see that:
f2(1) = b, f2(2) = b, f2(3) = c, and f2(4) = d
• Note that, the image b in X2 has more than one arrows converging on it.
• So the elements 1 and 2 in X1 do not have unique images in X2. They have a common image, which is b.
• Such functions are called many-one functions.
• The function f2 in fig.(b) is a many-one function.
• The function f3 in fig.(c) is also a many-one function.

Onto function

This can be explained as follows:
• Consider the function f3 in fig.17.2(c) above.
• We see that:
f3(1) = a, f3(2) = a, f3(3) = b, and f1(4) = c,
• There is not even a single element in X3, which is not an image.
• Such functions are called onto functions.
• Onto functions are also called surjective functions.
• We can write:
In an onto function f: X⟶Y, the range will be same as set Y.
• We know that, set Y is called codomain. So we can write:
In an onto function, the range is same as the codomain. 
• The function f4 in fig.17.2(d) is also an onto function.

One-one and onto function

This can be explained as follows:
• If a function is both one-one and onto, then it is called an one-one and onto function.
• Such functions are also called bijective functions.
• The function f4 in fig.d above is an one-one and onto function.


Now we will see some solved examples

Solved example 17.7
Let A be the set of all 50 students of Class X in a school. Let f : A → N be function defined by f (x) = roll number of the student x. Show that f is one-one but not onto.
Solution:
1. f is a function from A to N.
• We know that f is a set. The elements of this set are ordered pairs of the form (x,y).
2. We take x from the set A. Set A contains names of all 50 students in class X.
3. For each x value, we get the corresponding y value from set N. Set N is the set of natural numbers 1,2,3, . . .  up to infinity.
4. We can write:
• the first ordered pair in f will be: (name of first student, 1)
• the second ordered pair in f will be: (name of second student, 2)
• the third ordered pair in f will be: (name of third student, 3)
• so on . . .
5. We see that:
No two names can have the same roll number. That means, no two elements in A has the same image in N
• So f is an one-one function.
6. We also see that:
The elements coming after 50, are not images of any element in A. That means, there are some elements in N, which cannot become an image of any element in A. So f is not onto.
7. Note two points I and II:
Point I: This is related to one-one functions
(i) In an one-one function,
   ♦ the image of any element in the domain
   ♦ cannot be the
   ♦ image of any other element in the domain.
• Let x1 and x2 be any two elements in the domain. If it is an one-one function, f(x1) has to be different from f(x2).
• In an one-one function, if f(x1) is to be equal to f(x2), then x1 must be equal to x2. This condition can be used to prove that, a given function is an one-one function.
(ii) To prove a function to be not one-one, we just need to pick a suitable element from the codomain and show that: It is the image of more than one elements in the domain.

[Recall that, to prove a statement to be true, we need to prove the general case. But to prove a statement to be false, it is sufficient to show an example using any convenient sample value]

Point II: This is related to onto functions
(i) To prove a function to be onto, we have to show that:
   ♦ each and every element of the codomain
   ♦ is an image.
(ii) To prove a function to be not onto, we just need to pick any suitable element of the codomain and show that: It is not an image.
In our present case, “51” is not an image.

Solved example 17.8
Show that the function f : N → N, given by f(x) = 2x, is one-one but not onto.
Solution:
• f is a function from N to N.
• We know that f is a set. The elements of this set are ordered pairs of the form (x,y).
• We take x from the set N. Set N is the set of natural numbers 1,2,3, . . .  up to infinity.
• For each x value, we get the corresponding y value. This y value is also from set N.

1. In an one-one function, if f(x1) is to be equal to f(x2), then x1 must be equal to x2. This condition can be used to prove that, a given function is an one-one function.
2. In our present case, suppose that, f(x1) is equal to f(x2). Then we can write:
$\begin{array}{ll}{}    &{f(x_1)}    & {~=~}    &{f(x_2)}    &{} \\
{\Rightarrow}    &{2 x_1}    & {~=~}    &{2 x_2}    &{} \\
{\Rightarrow}    &{x_1}    & {~=~}    &{x_2}    &{} \\
\end{array}$
• So f is an one-one function.
3. This will become more clear from the graph in fig.17.3 below. Mark any natural number say 5, on the x axis. Draw a vertical green dashed line upwards. This vertical line will meet the graph at a point. Through that point, draw a horizontal green dashed line. This horizontal line will meet the y axis at 10. This 10 is the image of 5. There is only one possible image for 5, which is 10.

Fig.17.3

 
4. To prove a function to be not onto, we just need to pick any suitable element of the codomain and show that: It is not an image.
• In our present case, let us pick "7" from the codomain.
• If it is an image, then we can write an equation:
2x = 7
• The solution of this equation is not a natural number.
• So "7" cannot be the image of any element in the domain.
• Therefore f is not an onto function.
• This will become more clear from the graph in fig.17.3 above. Mark any odd natural number say 7, on the y axis. Draw a horizontal magenta dashed line towards the right. This horizontal line will not meet the graph at any point. That means, 7 is not the image of any number in N.

Solved example 17.9
Prove that the function f : R → R, given by f (x) = 2x, is one-one and onto.
Solution:
• f is a function from R to R.
• We know that f is a set. The elements of this set are ordered pairs of the form (x,y).
• We take x from the set R. Set R is the set of real numbers.
• For each x value, we get the corresponding y value. This y value is also from set R.

1. In an one-one function, if f(x1) is to be equal to f(x2), then x1 must be equal to x2. This condition can be used to prove that, a given function is an one-one function.
2. In our present case, suppose that, f(x1) is equal to f(x2). Then we can write:
$\begin{array}{ll}{}    &{f(x_1)}    & {~=~}    &{f(x_2)}    &{} \\
{\Rightarrow}    &{2 x_1}    & {~=~}    &{2 x_2}    &{} \\
{\Rightarrow}    &{x_1}    & {~=~}    &{x_2}    &{} \\
\end{array}$
• So f is an one-one function.
3. This will become more clear from the graph in fig.17.4 below. Mark any number say $\sqrt{23} = 4.7958$, on the x axis. Draw a vertical green dashed line upwards. This vertical line will meet the graph at a point. Through that point, draw a horizontal green dashed line. This horizontal line will meet the y axis at a point. This point ($2 \sqrt{23}$) on the y axis is the image of $\sqrt{23}$. There is only one possible image for $\sqrt{23}$.

Fig.17.4


4. To prove a function to be onto, we have to show that:
   ♦ any element of the codomain
   ♦ is an image.
• In our present case, let "y" be any element of the codomain. Then we can write the equation:
2x = y
• "y" is an element of the codomain. The codomain is the set R. So "y" is a real number.
• Since "y" is a real number, we can surely find a real number "x" which is the solution of the equation 2x = y
• That means, we can pick any element "y" from the codomain. It will be an image.
• Therefore, f is an onto function.
• This will become more clear from the graph in fig.17.4 above. Mark any real number say -7, on the y axis. Draw a horizontal magenta dashed line towards the left. This horizontal line will meet the graph at a point. Through this point on the graph, draw a vertical magenta dashed line. This vertical line will meet the x axis at the point "-3.5". That means, there is a real number (-3.5) in R which has -7 as the image.


In the next section, we will see a few more solved examples.

Previous

Contents

Next

Copyright©2023 Higher secondary mathematics.blogspot.com