Showing posts with label commutative binary operation. Show all posts
Showing posts with label commutative binary operation. Show all posts

Monday, January 1, 2024

17.13 - More Miscellaneous Examples

In the previous section, we saw some miscellaneous examples. In this section, we will see a few more miscellaneous examples.

Solved example 17.47
Let A = {1,2,3}. Then show that the number of relations containing (1,2) and (2,3) which are reflexive and transitive but not symmetric is three.
Solution:
1. The fig.17.12 below shows all the 9 possible pairs.

Fig.17.12

2. We need to pick suitable pairs from the above nine and form various relations.
• The relations thus formed should:
    ♦ be reflexive
    ♦ be transitive
    ♦ contain (1,2) and (2,3)
    ♦ not be symmetric.

3. The pairs in the diagonal yellow cells are to be included because, the relation should be reflexive.
4. The relation should be transitive. Also (1,2) and (2,3) must be present. So (1,3) also must be present. Thus the three red cells will be present.
5. The relation should not be symmetric. So all green cells must be avoided. If we include the green cells, then:
(1,2) will get the symmetric pair (2,1)
(1,3) will get the symmetric pair (3,1)
(2,3) will get the symmetric pair (3,2)
6. So the smallest relation possible is obtained by including yellow and red.
We get: R1 = {(1,1),(2,2),(3,3),(1,2),(1,3),(2,3)}
7. In (5), we wrote that, all greens must be avoided.
In fact, it is true that, we must not include the three greens together. But we can pick (2,1) and (3,2) one by one.
8. Picking (2,1) and adding it to R1, we get:
R2 = {(1,1),(2,2),(3,3),(1,2),(1,3),(2,3),(2,1)}
9. Picking (3,2) and adding it to R1, we get:
R3 = {(1,1),(2,2),(3,3),(1,2),(1,3),(2,3),(3,2)}
10. We cannot add (3,1) to R1. This is because, it will group with (1,2). So we will be forced to add (3,2) to maintain transitivity. This will give:
R4 = {(1,1),(2,2),(3,3),(1,2),(1,3),(2,3),(3,1),(3,2)}
11. Now, (2,3) will group with (3,1) and force us to include (2,1)
This will give:
R5 = {(1,1),(2,2),(3,3),(1,2),(1,3),(2,3),(3,1),(3,2),(2,1)}
This contain all greens.
So R4 and R5 are not possible.
12. In (10), we wrote that, the green (3,1) must never be added.
Can we add the remaining two greens together?
We get: R6q = {(1,1),(2,2),(3,3),(1,2),(1,3),(2,3),(2,1),(3,2)}
Here, (3,2) will group with (2,1) and force us to add (3,1).
So R6q is also not possible.
13. Thus the only possible relations are: R1, R2 and R3.
We can write:
The number of relations which satisfy the given conditions is three.

Solved example 17.48
Show that the number of equivalence relation in the set {1,2,3} containing (1,2) and (2,1) is two.
Solution:
1. The fig.17.13 below shows all the 9 possible pairs.

Fig.17.13

2. We need to pick suitable pairs from the above nine and form various relations.
• The relations thus formed should:
    ♦ be equivalence relations
    ♦ contain (1,2) and (2,1).
3. The pairs in the diagonal yellow cells are to be included because, the relation should be reflexive.
4. The pairs (1,2) and (2,1) in the red cells are to be included because, it is a given condition.
5. So the smallest relation is R1 = {(1,1), (2,2),(3,3),(1,2),(2,1)}
This is an equivalence relation.
6. Now there are four pairs remaining. If we add any one of those remaining pairs, we will be forced to add all of them.
For example, if we add (1,3), we get the group: (2,1), (1,3). Then we have to add (2,3) to make it transitive.
As a consequence, we are forced to add (3,2) to make it symmetric.
Also, when (1,3) is added, we have to add (3,1)
7. When the remaining four pairs are added, we get the universal relation.
It is an equivalence relation.
8. So there are two relations which satisfy the given conditions.
R1 and the universal relation.

Solved example 17.49
Show that the number of binary operations on {1,2} having 1 as identity and having 2 as the inverse of 2 is exactly one.
Solution:
1. A binary operation is a function.
• In our present case, the domain is {1,2} × {1,2}.
 ♦ That means, the domain is {(1,1),(1,2),(2,1),(2,2)}
 ♦ That means, the only possible input pairs are (1,1),(1,2),(2,1) and (2,2)
• The range is {1,2}
 ♦ That means, the output will be either 1 or 2
2. Let us see what happens when each of the pairs mentioned in (1) are given as input.
(i) First we input (1,1)
• So the operation is 1∗1
• Given that, 1 is the identity (e).
• Recall that, if e is the identity, then:
a∗e = a = e∗a for all a ∈{1,2}
• So we can write:
1∗1 = 1 = 1∗1 (Here we apply e to the element 1)
• That means:
For the input (1,1), the output is 1
(ii) Next we input (1,2)
• So the operation is 1∗2
Here also, since ‘1’ is the identity, we can write:
2∗1 = 1 = 1∗2 (Here we apply e to the element 2)
• That means:
For the input (1,2), the output is 1
(iii) Next we input (2,1)
• So the operation is 2∗1
We already saw that, for this operation, the result is 1
• That means:
For the input (2,1), the output is 1
(iv) Finally, we input (2,2)
So the operation is 2∗2
• Here we cannot use the property of identity because, identity is ‘1’. This operation does not involve ‘1’.
• So we use the property of inverse.
• Given that, 2 is the inverse of 2.
• Recall that, if b is the inverse of a, then:
a∗b = e = b∗a for all a ∈{1,2}
• So we can write:
2∗2 = 1 = 2∗2 (Here we apply the inverse ‘2’  to the element 2)
• That means:
For the input (2,2), the output is 1
3. Now consider the given operation:
The operation has ‘1’ as identity and ‘2’ as the inverse of 2.
• We will denote this operation as '∗'. We used this operation and found out the outputs for all possible inputs.
4. Our next task is to prove that, ∗ is unique. It can be done in steps.
(i) In step (2), we saw the inputs and the corresponding outputs. We can write them as a set:
∗ = {[(1,1),1], [(1,2),1], [(2,1),1], [(2,2),1]}
(ii) Suppose that, ∗' is another operation having 1 as identity and having 2 as the inverse of 2.
• Here also, we will get the same set. That means:
∗' = {[(1,1),1], [(1,2),1], [(2,1),1], [(2,2),1]}
• The same set is obtained because, all possible inputs are already present in ∗.
(iii) Since both sets are same, we can write: ∗ = ∗'.
Therefore, ∗is unique.

Solved example 17.50
Consider the identity function IN : N → N defined as IN(x) = x ∀ x ∈ N.
Show that although IN is onto but IN + IN : N → N defined as
(IN + IN ) (x) = IN (x) + IN (x) = x + x = 2x is not onto.
Solution:
1. Consider the function
IN : N → N defined as IN(x) = x ∀ x ∈ N.
• Let y be any element in the codomain N
Then we can write: IN(x) = x = y
• So it is clear that:
   ♦ If we want any ‘y’ (in the codomain N) to be an image,
   ♦ we need to pick an ‘x’ (from the domain N) in such a way that,
   ♦ that ‘x’ is equal to 'y'.
• In this way, all y in the codomain can become an image. So this function is an onto function.

2. Consider the function
IN + IN : N → N defined as
(IN + IN ) (x) = IN (x) + IN (x) = x + x = 2x.
• Let y be any element in the codomain N
Then we can write: (IN + IN )(x) = 2x = y
• So it is clear that:
   ♦ If we want any ‘y’ (in the codomain N) to be an image,
   ♦ we need to pick an ‘x’ (from the domain N) in such a way that,
   ♦ that ‘x’ is equal to 'y/2'.
• Suppose that, y = 3. Then y/2 = 1.5.
• This 1.5 is not present in the domain N. So all elements in the codomain N cannot become images. That means, this function is not an onto function.

Solved example 17.51
Consider a function $f:~\left[0,\frac{\pi}{2} \right] \to R$ given by f(x) = sin x and another function $g:~\left[0,\frac{\pi}{2} \right] \to R$ given by g(x) = cos x. Show that f and g are one-one. But (f+g) is not one-one.
Solution:
1. Both f and g have the same domain.
• We can use any real number from 0 to $\frac{\pi}{2}$ (both included) as the input.
2. First consider f.
• In a 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 a one-one function.
• 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}    &{\sin x_1}    & {~=~}    &{\sin x_2}    &{} \\
{\Rightarrow}    &{x_1}    & {~=~}    &{x_2}    &{} \\
\end{array}$

• So f is a one-one function.

◼ Let us see an example:
• We know that $\frac{\pi}{6}$ lies between 0 and $\frac{\pi}{2}$.
• If we use $\frac{\pi}{6}$ as the input, we will get:
output = $f \left(\frac{\pi}{6} \right) ~=~\sin \left(\frac{\pi}{6} \right)~=~\frac{1}{2}$
• Only the input $\frac{\pi}{6}$ will give $\frac{1}{2}$ as the output. We will never find another input value (from 0 to $\frac{\pi}{2}$) which will give $\frac{1}{2}$ as the output.

3. Next, consider g.
• In a one-one function, if g(x1) is to be equal to g(x2), then x1 must be equal to x2. This condition can be used to prove that, a given function is a one-one function.
• In our present case, suppose that, g(x1) is equal to g(x2). Then we can write:
$\begin{array}{ll}{}    &{g(x_1)}    & {~=~}    &{g(x_2)}    &{} \\
{\Rightarrow}    &{\cos x_1}    & {~=~}    &{\cos x_2}    &{} \\
{\Rightarrow}    &{x_1}    & {~=~}    &{x_2}    &{} \\
\end{array}$

• So g is a one-one function.

◼ Let us see an example:
• We know that $\frac{\pi}{6}$ lies between 0 and $\frac{\pi}{2}$.
• If we use $\frac{\pi}{6}$ as the input, we will get:
output = $g \left(\frac{\pi}{6} \right) ~=~\cos \left(\frac{\pi}{6} \right)~=~\frac{\sqrt{3}}{2}$
• Only the input $\frac{\pi}{6}$ will give $\frac{\sqrt{3}}{2}$ as the output. We will never find another input value (from 0 to $\frac{\pi}{2}$) which will give $\frac{\sqrt{3}}{2}$ as the output.

4. Finally, we consider (f+g).
• We have: (f+g)(x) = sin x + cos x
• We want to prove that, (f+g) is not a one-one function.
• Let us use 0 as the input. We get:
(f+g)(0) = sin 0 + cos 0 = (0+1) = 1  
• Let us use $\frac{\pi}{2}$ as the input. We get:
$(f+g) \left(\frac{\pi}{2} \right)~=~\sin \left(\frac{\pi}{2} \right)~+~ \cos \left(\frac{\pi}{2} \right)~=~ (1+0)~=~1$
• So ‘1’ is the image of both 0 and $\frac{\pi}{2}$
Therefore, (f+g) is not a one-one function.


The link below gives a few more solved examples

Miscellaneous Exercise 17 


In the next chapter, we will see inverse trigonometric functions.

Previous

Contents

Next

Copyright©2023 Higher secondary mathematics.blogspot.com

Saturday, December 9, 2023

17.10 - Commutative and Associative Properties

In the previous section, we saw the basics of binary operations. We saw some solved examples also. In this section, we will see a few more solved examples. We will also see some properties of binary operations.

Solved example 17.33
Show that the ∨: R × R → R given by (a,b) → max {a,b} and the ∧: R × R → R given by (a,b) → min {a,b} are binary operations.
Solution:
Part (i): ∨: R × R → R given by (a,b) → max {a,b}
1. R × R will contain ordered pairs of the form (a,b), where a and b are two real numbers.
2. (a,b) is the input. Output will be the largest among a and b.
• So the output will be a real number. It will be a unique number in the codomain R.
3. So we can write:
    ♦ The given operation,
    ♦ carries the element (a,b) of the domain R×R,
    ♦ to an unique element of the codomain R
• Therefore, the given operation is a binary operation.

Part (ii): ∨: R × R → R given by (a,b) → min {a,b}
1. R × R will contain ordered pairs of the form (a,b), where a and b are two real numbers.
2. (a,b) is the input. Output will be the smallest among a and b.
• So the output will be a real number. It will be a unique number in the codomain R.
3. So we can write:
    ♦ The given operation,
    ♦ carries the element (a,b) of the domain R×R,
    ♦ to an unique element of the codomain R
• Therefore, the given operation is a binary operation.


• Let us write some examples related to the above solved example:
    ♦ ∨(5,9) = 9
    ♦ ∧(5,9) = 5
    ♦ ∨(5,-9) = 5
    ♦ ∧(5,-9) = -9
• The above examples help us to get a better understanding about the max and min functions.


Now we will learn about operation table. We will learn it by analyzing an example. It can be written in 7 steps:
1. Consider the following function:
∨: A × A → A given by ∨(a,b) → max {a,b}
    ♦ Where A = {1,2,3}
2. At the top of the table, in the red cell, we write the function.
3. In the magenta cell, we write the symbol of the binary operation. In our present case, it is ‘∨’.
• This is shown in the fig.17.11(I) below:

Fig.17.11

4. Next we fill up the yellow row and yellow column.
• In the yellow column, we fill up the elements of A. They are filled from top to bottom.
    ♦ These elements are taken as ‘a’ of the function.
    ♦ In the table, these elements are denoted as ‘ai’.
• In the yellow row also, we fill up the elements of A. They are filled from left to right.
    ♦ These elements are taken as ‘b’ of the function.
    ♦ In the table, these elements are denoted as ‘aj’.
5. Now we fill up the green rows and columns.
    ♦ The row numbers are denoted by the letter i.  
    ♦ The column numbers are denoted by the letter j.
• Let us see an example: We want to fill the green cell with i = 1 and j = 2.
    ♦ When the row number i is 1, we see that, ai = a1 = 1.
    ♦ When the column number j is 2, we see that, aj = a2 = 2.
    ♦ When we have both ai and aj, we can find the largest among them. It is 2.
    ♦ So the cell should be filled with 2.
This is shown in fig.17.11(II) above. In this way, all green cells can be filled.
6. Note that, if set A has n elements, then the green cells will be arranged in n rows and n columns.
7. Now we will write about the general case. It can be written in 3 steps:
(i) Consider the binary operation *: A × A → A
where A = {a1, a2, a3, . . . an}
(ii) Since there are n elements in A, the green cells will be arranged in n rows and n columns.
(iii) The green cell at the intersection of the ith row and jth column will have the value: (ai * aj)

• The converse can be written in 3 steps:
(i) Given any binary operation table with n rows and n columns.
(ii) Based on that operation table, we can define a binary operation as follows:
*: A × A → A given by: (ai * aj) = value in the ith row and jth column.
(iii) Set A will have n elements.

Commutative binary operation

This can be explained in 6 steps:
1. We know that, two numbers a and b can be added in any order. We can write (a+b) or (b+a). Both will give the same answer.
• For example: (5+7) = (7+5) = 12
2. But for subtraction, order is important. (a-b) need not be equal to (b-a).
• For example: (5-7) ≠ (7-5)     
3. We know that, two numbers a and b can be multiplied in any order. We can write (ab) or (ba). Both will give the same answer.
• For example: (5 × 7) = (7 × 5) = 35
4. But for division, order is important. (a÷b) need not be equal to (b÷a).
• For example: (5÷7) ≠ (7÷5)
5. We can write a summary:
• ‘Addition of 5 and 7’ is meaningful.     
• ‘Subtraction of 5 and 7’ is meaningless.
    ♦ We must write:
        ✰ Subtract 7 from 5. 
        ✰ or   
        ✰ Subtract 5 from 7.    

• ‘Multiplication of 5 and 7’ is meaningful.     
• ‘Division of 5 and 7’ is meaningless.
    ♦ We must write:
        ✰ Divide 7 by 5. 
        ✰ or   
        ✰ Divide 5 by 7.

6.Based on the above steps, we can write:
A binary operation ∗ on the set X is called commutative, if a ∗ b = b ∗ a, for every a, b ∈ X


Let us see some solved examples:
Solved example 17.34
Show that +: R × R → R and ×: R × R → R are commutative binary operations, but –: R × R → R and ÷: R × R  → R are not commutative.
Solution:
Part (i):
1. Let (a,b) ∈ R × R
We can write: (a+b) = (b+a) for all a, b ∈ R.
So ‘+’ is a commutative binary operation.
2. Let (a,b) ∈ R × R
We can write: (a × b) = (b × a) for all a, b ∈ R.
So ‘×’ is a commutative binary operation.
Part (ii):
1. Consider (5,7) ∈ R × R
We have: (5 - 7) ≠ (7 – 5).
So ‘-’ is not a commutative binary operation.
2. Consider (5,7) ∈ R × R
We have: (5÷7) ≠ (7÷5).
So ‘÷’ is not a commutative binary operation.

Solved example 17.35
Show that ∗ : R × R → R defined by a ∗ b = a + 2b is not commutative.
Solution:
1. Consider (5,7) ∈ R × R
2. We are going to calculate (a∗b). We get:
(a∗b) = (5∗7) = [5 + (2×7)] = [5 + 14] = 19
3. Next, we are going to calculate (b∗a). We get:
(b∗a) = (7∗5) = [7 + (2×5)] = [7 + 10] = 17
4. From (2) and (3), we see that: (a∗b) ≠ (b∗a).
So the given ‘∗’ is not a commutative binary operation.


Associative binary operation

This can be explained in 6 steps:
1. We know that, three numbers a, b and c can be added in any convenient groups.
• We can write (a+b) +c or a + (b+c). Both will give the same result. Rearranging the parentheses will not change the result.
• For example: (5+7) + 2 = 5 + (7+2) = 14
2. But for subtraction, we cannot rearrange the parentheses.
(a-b) - c need not be equal to a - (b-c).
• For example: (5-7) - 2 ≠ 5 - (7-2)     
3. We know that, three numbers a, b and c can be multiplied in any convenient groups.
• We can write (ab)c or a(bc). Both will give the same result. Rearranging the parentheses will not change the result.
• For example: (5 × 7) × 2 = 5 × (7 × 2) = 70
4. But for division, we cannot rearrange the parentheses.
(a÷b) ÷ c need not be equal to a ÷ (b÷c).
• For example: (5÷7)÷2 ≠ 5÷(7÷2)    
5. We can write a summary:
• For addition and multiplication, rearranging the parentheses will not change the result.
• For subtraction and division, rearranging the parentheses will change the result.
6. Based on the above steps, we can write:
A binary operation ∗ on the set X is called associative,
if (a ∗ b) ∗ c = a ∗ (b ∗ c), for all a, b, c ∈ X


Let us see some solved examples:
Solved example 17.36
Show that +: R × R → R and ×: R × R → R are associative binary operations, but – : R × R → R and ÷ : R × R → R are not associative.
Solution:
Part (i):
1. Let a, b, c ∈ R
We can write: (a+b) + c = a + (b+c) for all a, b, c ∈ R.
So ‘+’ is an associative binary operation.
2. Let (a,b) ∈ R × R
We can write: (ab)c = a(bc) for all a, b, c ∈ R.
So ‘×’ is an associative binary operation.
Part (ii):
1. Consider 5,7,2 ∈ R
We have: (5 - 7) - 2 ≠ 5 - (7 – 2).
So ‘-’ is not an associative binary operation.
2. Consider 5,7,2 ∈ R
We have: (5÷7)÷2 ≠ 5÷(7÷2).
So ‘÷’ is not an associative binary operation.

Solved example 17.37
Show that ∗ : R × R → R defined by a ∗ b = a + 2b is not associative.
Solution:
1. Let a= 5, b = 7 and c = 3.
2. We are going to calculate (a∗b)∗c.We get:
(a∗b) = (5∗7) = [5 + (2×7)] = [5 + 14] = 19
So (a∗b)∗c = 19∗3 = [19 + (2×3)] = [19 + 6] = 25
3. Next, we are going to calculate a∗(b∗c). We get:
(b∗c) = (7∗3) = [7 + (2×3)] = [7 + 6] = 13
So a∗(b∗c) = (5∗13) = 5 + (2×13)] = [5 + 26] = 31
4. From (2) and (3), we see that: (a∗b)∗c ≠ a∗(b∗c).
So the given ‘∗’ is not an associative binary operation.


Importance of associative property of binary operation

This can be written in 3 steps:
1. Suppose that, we are given the following expression:
a1 ∗ a2 ∗ a3 ∗ . . . ∗ an.
2. We see that parentheses are not present.
• But no doubts will arise because, associative property is valid for ‘∗’.
• Since no parentheses are present, we can straight away evaluate the expression by substituting the appropriate symbol in the place of ‘∗’
3. Due to the validity of the associative property, all algebraic expressions will contain parentheses where ever they are required.
4. Parentheses are compulsory in the following two situations:
(i) When subtraction or division occur.
(ii) When more than one type of operation occur.


In the next section, we will see identity of a binary operation.

Previous

Contents

Next

Copyright©2023 Higher secondary mathematics.blogspot.com