Invertible Functions and Binary Operations
Invertible Functions: Definition
The concept of an invertible function formalizes the idea of a function that can be "undone" or reversed. Not all functions have this property. An invertible function establishes a one-to-one correspondence between its domain and codomain, allowing for a unique mapping back from the codomain to the domain.
Definition of an Invertible Function
A function $f: A \to B$ is said to be invertible if there exists a function $g: B \to A$ such that the composition of $g$ with $f$ is the identity function on set $A$, and the composition of $f$ with $g$ is the identity function on set $B$.
Formally, $f: A \to B$ is invertible if there exists a function $g: B \to A$ such that:
- The composite function $g \circ f$ maps every element in $A$ back to itself. This means $g(f(x)) = x$ for all $x \in A$. The function $g \circ f$ is the identity function on the set $A$, denoted $I_A$.
$\mathbf{g \circ f = I_A}$
- The composite function $f \circ g$ maps every element in $B$ back to itself. This means $f(g(y)) = y$ for all $y \in B$. The function $f \circ g$ is the identity function on the set $B$, denoted $I_B$.
$\mathbf{f \circ g = I_B}$
If such a function $g$ exists, it is unique and is called the inverse function of $f$. The inverse function is denoted by $f^{-1}$.
So, if $f$ is invertible, its inverse $f^{-1}: B \to A$ satisfies:
- $f^{-1}(f(x)) = x$ for all $x \in A$.
- $f(f^{-1}(y)) = y$ for all $y \in B$.
The defining property of an inverse function can also be stated concisely: If $f(x) = y$ for some $x \in A$ and $y \in B$, then the inverse function maps $y$ back to $x$.
$\mathbf{f(x) = y \iff f^{-1}(y) = x}$
$\textsf{for all } x \in A, y \in B$
Important Note: The notation $f^{-1}(x)$ for the inverse function should not be confused with $\frac{1}{f(x)}$ (the reciprocal of $f(x)$), which is a completely different concept unless specifically noted by context (which is rare in this domain).
Condition for a Function to be Invertible (Bijective)
Not every function has an inverse. The existence of an inverse function is tied directly to the type of function it is (specifically, its injectivity and surjectivity).
Theorem: Invertibility and Bijectivity
A function $f: A \to B$ is invertible if and only if $f$ is bijective (meaning $f$ is both one-to-one/injective and onto/surjective).
This theorem provides a necessary and sufficient condition for a function to be invertible.
Proof of the Theorem:
We need to prove two implications:
1. If $f$ is invertible, then $f$ is bijective.
2. If $f$ is bijective, then $f$ is invertible.
Part 1: If $f$ is invertible, then $f$ is bijective.
Assume $f: A \to B$ is invertible. By definition, there exists a function $f^{-1}: B \to A$ such that $(f^{-1} \circ f)(x) = x$ for all $x \in A$ and $(f \circ f^{-1})(y) = y$ for all $y \in B$.
- Proof of Injectivity: Let $x_1, x_2 \in A$ such that $f(x_1) = f(x_2)$.
$f(x_1) = f(x_2)$
$\textsf{(Assume)}$
Apply $f^{-1}$ to both sides of the equation:
$f^{-1}(f(x_1)) = f^{-1}(f(x_2))$
By the definition of the inverse function ($(f^{-1} \circ f)(x) = x$), the left side is $x_1$ and the right side is $x_2$.
$x_1 = x_2$
Since $f(x_1) = f(x_2)$ implies $x_1 = x_2$, the function $f$ is one-to-one (injective).
- Proof of Surjectivity: Let $y$ be an arbitrary element in the codomain $B$. We need to show that there exists at least one element $x \in A$ such that $f(x) = y$.
Let $y \in B$
Since $f^{-1}: B \to A$, applying $f^{-1}$ to $y$ gives an element in $A$. Let $x = f^{-1}(y)$.
Let $x = f^{-1}(y)$
Now consider $f(x)$: $f(x) = f(f^{-1}(y))$.
By the definition of the inverse function ($(f \circ f^{-1})(y) = y$), $f(f^{-1}(y)) = y$.
$f(x) = y$
We have found an element $x \in A$ (specifically, $x = f^{-1}(y)$) such that $f(x) = y$. Since $y$ was an arbitrary element in $B$, this holds for all $y \in B$. Therefore, $f$ is onto (surjective).
Thus, if $f$ is invertible, it is both injective and surjective, i.e., $f$ is bijective.
Part 2: If $f$ is bijective, then $f$ is invertible.
Assume $f: A \to B$ is bijective. This means $f$ is both one-to-one and onto.
We need to show that an inverse function $g: B \to A$ exists that satisfies the conditions $g \circ f = I_A$ and $f \circ g = I_B$.
Let $y$ be any element in the codomain $B$. Since $f$ is onto, there exists at least one element $x \in A$ such that $f(x) = y$.
Since $f$ is also one-to-one, this element $x$ in $A$ is unique for that particular $y \in B$. For every $y \in B$, there is one and only one $x \in A$ such that $f(x) = y$.
This unique correspondence allows us to define a rule for a function $g: B \to A$. For each $y \in B$, define $g(y)$ to be that unique element $x \in A$ such that $f(x) = y$.
Define $g: B \to A$ such that for each $y \in B, g(y) = x \text{ where } f(x) = y$
Now let's verify the composition properties for this function $g$:
- Check $g \circ f = I_A$: Let $x \in A$. We need to show $(g \circ f)(x) = x$.
$(g \circ f)(x) = g(f(x))$
Let $f(x) = y$. By the way we defined $g$, $g(y)$ is the element in A that maps to $y$ under $f$. Since $f(x)=y$, this element is $x$.
$g(f(x)) = g(y) = x$
So, $(g \circ f)(x) = x$ for all $x \in A$. This means $g \circ f = I_A$.
- Check $f \circ g = I_B$: Let $y \in B$. We need to show $(f \circ g)(y) = y$.
$(f \circ g)(y) = f(g(y))$
Let $g(y) = x$. By the way we defined $g$, $x$ is the unique element in A such that $f(x) = y$.
$f(g(y)) = f(x) = y$
So, $(f \circ g)(y) = y$ for all $y \in B$. This means $f \circ g = I_B$.
Since we have defined a function $g: B \to A$ that satisfies both $g \circ f = I_A$ and $f \circ g = I_B$, the function $f$ is invertible, and $g$ is its inverse, $f^{-1}$.
Thus, if $f$ is bijective, it is invertible.
Combining Part 1 and Part 2, we conclude that a function $f$ is invertible if and only if it is bijective.
Example 1. Is the function $f: \mathbb{R} \to \mathbb{R}$ defined by $f(x) = x^2$ invertible?
Answer:
Given: Function $f: \mathbb{R} \to \mathbb{R}$ defined by $f(x) = x^2$.
To Determine: Is $f$ invertible?
Solution:
A function is invertible if and only if it is bijective. We need to check if $f$ is one-to-one and onto on the given domain ($\mathbb{R}$) and codomain ($\mathbb{R}$).
1. Is $f$ one-to-one (injective)? Check if $f(x_1) = f(x_2) \implies x_1 = x_2$ for all $x_1, x_2 \in \mathbb{R}$.
Let $f(x_1) = f(x_2) \implies x_1^2 = x_2^2 \implies x_1 = \pm x_2$.
Since $x_1 = x_2$ or $x_1 = -x_2$, we can have $x_1 \neq x_2$ while $f(x_1) = f(x_2)$. For example, $f(2) = 2^2 = 4$ and $f(-2) = (-2)^2 = 4$. Here $f(2) = f(-2)$ but $2 \neq -2$.
Thus, $f$ is not one-to-one.
2. Is $f$ onto (surjective)? Check if for every $y \in \mathbb{R}$ (codomain), there exists $x \in \mathbb{R}$ (domain) such that $f(x) = y$.
We need to check if $x^2 = y$ has a real solution $x$ for every real number $y$. If $y$ is a negative number (e.g., $y = -1$), the equation $x^2 = -1$ has no real solution for $x$.
Thus, the range of $f(x)=x^2$ on $\mathbb{R}$ is $[0, \infty)$, which is a proper subset of the codomain $\mathbb{R}$. $f$ is not onto.
Since $f$ is neither one-to-one nor onto on the specified domain and codomain, it is not bijective.
Therefore, the function $f(x) = x^2: \mathbb{R} \to \mathbb{R}$ is not invertible.
Example 2. Is the function $g: \mathbb{R} \to \mathbb{R}$ defined by $g(x) = 3x - 5$ invertible?
Answer:
Given: Function $g: \mathbb{R} \to \mathbb{R}$ defined by $g(x) = 3x - 5$.
To Determine: Is $g$ invertible?
Solution:
We check if $g$ is bijective on the given domain and codomain ($\mathbb{R}$).
1. Is $g$ one-to-one (injective)? Check if $g(x_1) = g(x_2) \implies x_1 = x_2$ for all $x_1, x_2 \in \mathbb{R}$.
Assume $g(x_1) = g(x_2)$.
$3x_1 - 5 = 3x_2 - 5$
Add 5 to both sides:
$3x_1 = 3x_2$
Divide both sides by 3:
$x_1 = x_2$
Since $g(x_1) = g(x_2)$ implies $x_1 = x_2$, $g$ is one-to-one.
2. Is $g$ onto (surjective)? Check if for every $y \in \mathbb{R}$ (codomain), there exists $x \in \mathbb{R}$ (domain) such that $g(x) = y$.
Let $y$ be an arbitrary real number in the codomain $\mathbb{R}$. We need to solve $g(x) = y$ for $x$:
$3x - 5 = y$
$3x = y + 5$
$x = \frac{y + 5}{3}$
For any real number $y$, the expression $\frac{y+5}{3}$ is always a real number. So, for every $y$ in the codomain $\mathbb{R}$, there exists a corresponding real number $x = \frac{y+5}{3}$ in the domain $\mathbb{R}$ such that $g(x)=y$.
Thus, $g$ is onto.
Since $g$ is both one-to-one and onto, it is bijective.
Therefore, the function $g(x) = 3x - 5: \mathbb{R} \to \mathbb{R}$ is invertible.
Finding the Inverse of a Function
If a function $f: A \to B$ is bijective, we know it is invertible and its inverse $f^{-1}: B \to A$ exists. We can find the rule for this inverse function using an algebraic procedure, especially for real functions defined by an equation.
Steps to Find the Inverse Function $f^{-1}(x)$:
-
Verify Invertibility:
First, confirm that the function $f: A \to B$ is indeed bijective (both one-to-one and onto) on the specified domain $A$ and codomain $B$. If it's not bijective, a strict inverse function does not exist (though sometimes invertible-like functions can be found by restricting the domain/codomain). -
Set up the Equation:
Write the equation for the function in the form $y = f(x)$. This represents the original mapping from an input $x$ in the domain to an output $y$ in the codomain. -
Interchange Variables:
Swap the roles of $x$ and $y$ in the equation. This step is crucial; it conceptually reverses the mapping. The equation becomes $x = f(y)$. Now, $x$ represents an input from the codomain of $f$ (which is the domain of $f^{-1}$), and $y$ represents the corresponding output in the domain of $f$ (which is the codomain of $f^{-1}$). -
Solve for the New y:
Algebraically solve the new equation ($x = f(y)$) to express $y$ in terms of $x$. Isolate $y$ on one side of the equation. This new expression for $y$ gives the rule for the inverse function, where the input is $x$ (from the original codomain) and the output is $y$ (mapping back to the original domain). -
Replace y with $f^{-1}(x)$:
Replace the variable $y$ in the final expression from step 4 with the standard notation for the inverse function, $f^{-1}(x)$. This gives the rule for the inverse function in terms of $x$. -
Specify Domain and Codomain of $f^{-1}$:
State the domain and codomain of the inverse function $f^{-1}$.- The domain of $f^{-1}$ is the codomain of the original function $f$. (Since $f$ is bijective, this is also the range of $f$).
- The codomain of $f^{-1}$ is the domain of the original function $f$.
Example 3. Find the inverse of the function $f: \mathbb{R} \to \mathbb{R}$ defined by $f(x) = 3x - 5$.
Answer:
Given: Function $f: \mathbb{R} \to \mathbb{R}$ defined by $f(x) = 3x - 5$.
To Find: The inverse function $f^{-1}(x)$.
Solution:
1. Verify Invertibility: From Example 2, we have already shown that the function $f(x) = 3x - 5: \mathbb{R} \to \mathbb{R}$ is bijective. Therefore, it is invertible, and its inverse $f^{-1}: \mathbb{R} \to \mathbb{R}$ exists.
2. Write $y = f(x)$:
$y = 3x - 5$
3. Interchange x and y:
$x = 3y - 5$
4. Solve for y:
Add 5 to both sides:
$x + 5 = 3y$
Divide by 3:
$y = \frac{x + 5}{3}$
5. Replace y with $f^{-1}(x)$:
$\mathbf{f^{-1}(x) = \frac{x + 5}{3}}$
6. Specify Domain/Codomain: The domain of $f$ was $\mathbb{R}$, and the codomain of $f$ was $\mathbb{R}$. Therefore, the domain of $f^{-1}$ is $\mathbb{R}$, and the codomain of $f^{-1}$ is $\mathbb{R}$.
The inverse function is $f^{-1}: \mathbb{R} \to \mathbb{R}$ defined by $f^{-1}(x) = \frac{x + 5}{3}$.
Verification (Optional but Recommended):
Check if $(f^{-1} \circ f)(x) = x$ for $x \in \mathbb{R}$:
$(f^{-1} \circ f)(x) = f^{-1}(f(x)) = f^{-1}(3x - 5)$
Substitute $3x-5$ into the rule for $f^{-1}$:
$f^{-1}(3x - 5) = \frac{(3x - 5) + 5}{3} = \frac{3x}{3} = x$
$\textsf{(Matches } I_{\mathbb{R}}\textsf{)}$
Check if $(f \circ f^{-1})(x) = x$ for $x \in \mathbb{R}$:
$(f \circ f^{-1})(x) = f(f^{-1}(x)) = f\left(\frac{x + 5}{3}\right)$
Substitute $\frac{x+5}{3}$ into the rule for $f$:
$f\left(\frac{x + 5}{3}\right) = 3\left(\frac{x + 5}{3}\right) - 5 = (x + 5) - 5 = x$
$\textsf{(Matches } I_{\mathbb{R}}\textsf{)}$
Both compositions yield the identity function, confirming the inverse is correct.
Example 4. Let $f: [0, \infty) \to [1, \infty)$ be defined by $f(x) = x^2 + 1$. Find the inverse function, if it exists.
Answer:
Given: Function $f: [0, \infty) \to [1, \infty)$ defined by $f(x) = x^2 + 1$. Domain $A=[0, \infty)$, Codomain $B=[1, \infty)$.
To Find: The inverse function $f^{-1}(x)$.
Solution:
1. Check Invertibility: We need to check if $f$ is bijective on $A=[0, \infty)$ and $B=[1, \infty)$.
- Injectivity: Let $x_1, x_2 \in [0, \infty)$ such that $f(x_1) = f(x_2)$.
$x_1^2 + 1 = x_2^2 + 1$
$x_1^2 = x_2^2$
$x_1 = \pm x_2$. Since $x_1, x_2$ are restricted to the domain $[0, \infty)$ (non-negative), the only possibility is $x_1 = x_2$.
So, $f$ is one-to-one on this domain. - Surjectivity: Let $y \in [1, \infty)$ (codomain). Can we find $x \in [0, \infty)$ (domain) such that $f(x) = y$? We need $x^2 + 1 = y$, which gives $x^2 = y - 1$.
For a real solution $x$, $y-1$ must be non-negative. Since $y$ is from the codomain $[1, \infty)$, $y \ge 1$, so $y-1 \ge 0$. Thus, $x^2 = y-1$ always has a real solution $x = \pm \sqrt{y-1}$.
We need the solution $x$ to be in the domain $[0, \infty)$ (non-negative). Since $y-1 \ge 0$, $\sqrt{y-1}$ is a real number and $\sqrt{y-1} \ge 0$. So, we choose the non-negative root: $x = \sqrt{y-1}$. This value of $x$ is always in the domain $[0, \infty)$ for any $y$ in the codomain $[1, \infty)$.
Thus, $f$ is onto on this codomain.
Since $f$ is both one-to-one and onto on the given domain and codomain, it is bijective and invertible.
2. Write $y = f(x)$:
$y = x^2 + 1$
3. Interchange x and y:
$x = y^2 + 1$
4. Solve for y:
$x - 1 = y^2$
$y = \pm \sqrt{x - 1}$
The inverse function $f^{-1}$ maps from the codomain of $f$ (which is $[1, \infty)$) to the domain of $f$ (which is $[0, \infty)$). The output $y$ of $f^{-1}$ must be in $[0, \infty)$, i.e., $y \ge 0$. Therefore, we must choose the non-negative square root:
$y = \sqrt{x - 1}$
5. Replace y with $f^{-1}(x)$:
$\mathbf{f^{-1}(x) = \sqrt{x - 1}}$
6. Specify Domain/Codomain: The domain of $f^{-1}$ is the codomain of $f$, which is $[1, \infty)$. The codomain of $f^{-1}$ is the domain of $f$, which is $[0, \infty)$.
The inverse function is $f^{-1}: [1, \infty) \to [0, \infty)$ defined by $f^{-1}(x) = \sqrt{x - 1}$.
Graphical Interpretation of Inverse Functions
The graph of the inverse function $f^{-1}$ is directly related to the graph of the original function $f$. If the point $(a, b)$ is on the graph of $f$, it means $f(a) = b$. Since $f$ is invertible, this implies $f^{-1}(b) = a$, so the point $(b, a)$ is on the graph of $f^{-1}$. The points $(a, b)$ and $(b, a)$ in the Cartesian plane are reflections of each other across the line $y = x$.
Therefore, the graph of $f^{-1}$ is the reflection of the graph of $f$ across the line $y = x$. This provides a visual way to understand and sometimes find inverse functions.

Summary for Competitive Exams
Invertible Function ($f: A \to B$): A function for which an inverse function $f^{-1}: B \to A$ exists such that $f^{-1} \circ f = I_A$ and $f \circ f^{-1} = I_B$.
- $f(x)=y \iff f^{-1}(y)=x$.
- Inverse function symbol $f^{-1}$ is not the reciprocal $1/f(x)$.
Condition for Invertibility: A function $f: A \to B$ is invertible IF AND ONLY IF it is bijective (One-to-One and Onto) on the specified domain and codomain.
Finding the Inverse Function ($f^{-1}$):
- Verify $f$ is bijective (on its given D/C).
- Write $y = f(x)$.
- Interchange $x$ and $y$: $x = f(y)$.
- Solve for $y$ in terms of $x$.
- Replace $y$ with $f^{-1}(x)$.
- Domain of $f^{-1}$ is Codomain of $f$. Codomain of $f^{-1}$ is Domain of $f$.
Graphical Method: Graph of $f^{-1}$ is the reflection of the graph of $f$ across the line $y=x$.
Binary Operations: Definition
In mathematics, operations like addition, subtraction, multiplication, and division are fundamental ways to combine two numbers to get a result. The concept of a binary operation generalizes this idea to any set. A binary operation on a set is a rule for combining any two elements of the set to produce a unique element that must also belong to the same set.
Definition of a Binary Operation
A binary operation $*$ on a non-empty set $S$ is a function that takes any ordered pair of elements from $S$ and assigns to it a unique element that is also in $S$.
Symbolically, a binary operation $*$ on a set $S$ is a function:
$\mathbf{*: S \times S \to S}$
The domain of the function is the Cartesian product $S \times S$ (all possible ordered pairs of elements from $S$), and the codomain is the set $S$ itself. For an ordered pair $(a, b) \in S \times S$, the unique element assigned by the operation $*$ is usually denoted by $a * b$ instead of $*(a, b)$.
Closure Property
A key requirement in the definition of a binary operation $*$ on a set $S$ is that the result of combining any two elements from $S$ must also be an element of $S$. This property is called the closure property.
For a rule $*$ to be a binary operation *on a set S*, the set S must be closed under $*$. If there exists at least one pair of elements $(a, b)$ from $S$ such that $a * b$ is not in $S$, then $*$ is not a binary operation *on S*.
Closure property: $\forall a, b \in S, a * b \in S$
Examples of Binary Operations:
Let's examine some common operations on various sets to see if they are binary operations on those sets.
-
Addition (+) on the set of Natural Numbers $\mathbb{N} = \{1, 2, 3, ...\}$:
Is $+$ a binary operation on $\mathbb{N}$? We need to check closure. Let $a, b \in \mathbb{N}$. Is $a+b$ always in $\mathbb{N}$? Yes, the sum of any two natural numbers is always a natural number.$1+2 = 3 \in \mathbb{N}$
So, + is a binary operation on $\mathbb{N}$.
-
Subtraction (-) on the set of Natural Numbers $\mathbb{N}$:
Is $-$ a binary operation on $\mathbb{N}$? We check closure. Let $a=3$ and $b=5$. Both $3 \in \mathbb{N}$ and $5 \in \mathbb{N}$. Calculate $a - b = 3 - 5 = -2$. Is $-2 \in \mathbb{N}$? No. Since we found at least one pair of elements from $\mathbb{N}$ whose difference is not in $\mathbb{N}$, subtraction is not a binary operation on $\mathbb{N}$.(However, subtraction is a binary operation on the set of Integers $\mathbb{Z}$, because the difference of any two integers is always an integer).
-
Multiplication ($\times$) on the set of Real Numbers $\mathbb{R}$:
Is $\times$ a binary operation on $\mathbb{R}$? We check closure. Let $a, b \in \mathbb{R}$. Is $a \times b$ always in $\mathbb{R}$? Yes, the product of any two real numbers is always a real number.$\sqrt{2} \times \pi = \sqrt{2}\pi \in \mathbb{R}$
So, $\times$ is a binary operation on $\mathbb{R}$.
-
Division ($\div$) on the set of Real Numbers $\mathbb{R}$:
Is $\div$ a binary operation on $\mathbb{R}$? We check closure and whether it's defined for all pairs. Let $a=5 \in \mathbb{R}$ and $b=0 \in \mathbb{R}$. The ordered pair is $(5, 0) \in \mathbb{R} \times \mathbb{R}$. Calculate $a \div b = 5 \div 0$. This is undefined. Since the operation is not defined for all ordered pairs in $\mathbb{R} \times \mathbb{R}$, $\div$ is not a binary operation on $\mathbb{R}$.(However, $\div$ is a binary operation on the set of non-zero real numbers $\mathbb{R} \setminus \{0\}$, because for any $a, b \in \mathbb{R} \setminus \{0\}$, $a/b$ is defined and is also in $\mathbb{R} \setminus \{0\}$).
-
Maximum operation ($\max$) on $\mathbb{R}$:
Define an operation $*$ by $a * b = \max(a, b)$. Is $*$ a binary operation on $\mathbb{R}$? We check closure. Let $a, b \in \mathbb{R}$. Is $\max(a, b)$ always in $\mathbb{R}$? Yes, the maximum of any two real numbers is a real number.$\max(7, -3) = 7 \in \mathbb{R}$
So, $\max$ is a binary operation on $\mathbb{R}$.
-
Concatenation on the set of strings:
Let $S$ be the set of all finite strings of characters (e.g., S = {"hello", "world", "a", "123", ""}). Define an operation $*$ by $s_1 * s_2 =$ concatenation of $s_1$ and $s_2$. Let $s_1, s_2 \in S$. Is $s_1 * s_2$ (the combined string) always a finite string? Yes. So, concatenation is a binary operation on the set of finite strings.
The definition of a binary operation requires that for *every* ordered pair of elements from the set, the operation produces a *unique* result *within* that set. This is strict.
Properties of Binary Operations (Closure, Commutativity, Associativity, Identity, Inverse)
Once we have established that a rule is a binary operation on a set $S$, we can further analyze the operation by examining several important properties it might possess. These properties reveal the algebraic structure of the set under the given operation.
Let $*$ be a binary operation on a set $S$ (meaning $S$ is closed under $*$ by definition).
Properties:
-
Closure Property:
As stated in the definition, a binary operation $*$ on $S$ implies that $S$ is closed under $*$. This means for all $a, b \in S$, the result $a * b$ is always an element of $S$.$\forall a, b \in S, a * b \in S$
When asked to check if a given operation is a binary operation *on a set S*, this closure property is the key thing to verify.
-
Commutativity:
A binary operation $*$ on a set $S$ is commutative if the order in which the two elements are combined does not affect the result.Condition: $\mathbf{a * b = b * a}$ for all $a, b \in S$.
If there exists even one pair of elements $a, b \in S$ such that $a * b \neq b * a$, then the operation is not commutative.
Examples:
- Standard addition (+) and multiplication ($\times$) on number sets like $\mathbb{Z}, \mathbb{Q}, \mathbb{R}$ are commutative ($a+b=b+a$, $a \times b = b \times a$).
- The maximum operation ($\max(a, b)$) on $\mathbb{R}$ is commutative ($\max(a, b) = \max(b, a)$).
- The operation $a * b = a+b-ab$ on $\mathbb{Q}$ (from Example 5 below) is commutative because $a+b-ab = b+a-ba$.
Counter-examples:
- Standard subtraction (-) on $\mathbb{Z}$: $3 - 5 = -2$, but $5 - 3 = 2$. Since $-2 \neq 2$, subtraction is not commutative on $\mathbb{Z}$.
- Standard division ($\div$) on $\mathbb{Q}^+$: $2 \div 4 = 1/2$, but $4 \div 2 = 2$. Since $1/2 \neq 2$, division is not commutative on $\mathbb{Q}^+$.
- Matrix multiplication is generally not commutative ($AB \neq BA$ for matrices A, B).
-
Associativity:
A binary operation $*$ on a set $S$ is associative if the way elements are grouped does not affect the result when combining three elements.Condition: $\mathbf{(a * b) * c = a * (b * c)}$ for all $a, b, c \in S$.
If there exists even one triplet of elements $a, b, c \in S$ such that $(a * b) * c \neq a * (b * c)$, then the operation is not associative.
Examples:
- Standard addition (+) and multiplication ($\times$) on number sets like $\mathbb{Z}, \mathbb{Q}, \mathbb{R}$ are associative ($(a+b)+c = a+(b+c)$, $(a \times b) \times c = a \times (b \times c)$).
Counter-examples:
- Standard subtraction (-) on $\mathbb{Z}$: $(8 - 5) - 2 = 3 - 2 = 1$. $8 - (5 - 2) = 8 - 3 = 5$. Since $1 \neq 5$, subtraction is not associative on $\mathbb{Z}$.
- Standard division ($\div$) on $\mathbb{Q}^+$: $(8 \div 4) \div 2 = 2 \div 2 = 1$. $8 \div (4 \div 2) = 8 \div 2 = 4$. Since $1 \neq 4$, division is not associative on $\mathbb{Q}^+$.
-
Existence of Identity Element:
An element $e \in S$ is called an identity element (or neutral element) for the binary operation $*$ on $S$ if, when combined with any element $a \in S$, it leaves $a$ unchanged. The identity element must work from both the left and the right.Condition: There exists an element $e \in S$ such that for all $a \in S$, $\mathbf{a * e = a}$ and $\mathbf{e * a = a}$.
- If such an identity element exists for an operation on a set, it is unique.
- Not every binary operation on every set has an identity element.
Examples:
- For standard addition (+) on $\mathbb{Z}$, the identity element is 0, because $a + 0 = a$ and $0 + a = a$ for all $a \in \mathbb{Z}$.
- For standard multiplication ($\times$) on $\mathbb{R}$, the identity element is 1, because $a \times 1 = a$ and $1 \times a = a$ for all $a \in \mathbb{R}$.
- For standard addition (+) on $\mathbb{N} = \{1, 2, 3, ...\}$, there is no identity element within the set $\mathbb{N}$. While $a+0=a$, $0 \notin \mathbb{N}$.
- For subtraction (-) on $\mathbb{Z}$, there is no identity element. If $e$ were the identity, $a - e = a$ for all $a$, implying $e=0$. But $e - a = 0 - a = -a$, which is not equal to $a$ for all $a$ (only for $a=0$). So 0 is a right identity but not a left identity. For an identity, it must work on both sides.
-
Existence of Inverse Element:
Suppose a binary operation $*$ on $S$ has an identity element $e$. An element $a \in S$ is said to have an inverse (or be invertible) with respect to $*$ if there exists an element $b \in S$ such that combining $a$ and $b$ (in either order) results in the identity element $e$.Condition: For a given $a \in S$, there exists an element $b \in S$ such that $\mathbf{a * b = e}$ and $\mathbf{b * a = e}$.
- The element $b$ is called the inverse of $a$ and is often denoted by $a^{-1}$. In the case of additive operations, the inverse of $a$ is often denoted as $-a$.
- The inverse of an element might not exist for all elements in the set $S$.
- If an inverse exists for an element $a$ with respect to an associative operation, that inverse is unique.
Examples:
- For standard addition (+) on $\mathbb{Z}$ (identity $e=0$), the inverse of an element $a \in \mathbb{Z}$ is $-a$, because $a + (-a) = 0$ and $(-a) + a = 0$. Since $-a$ is always an integer when $a$ is an integer, every element in $\mathbb{Z}$ has an additive inverse in $\mathbb{Z}$.
- For standard multiplication ($\times$) on $\mathbb{R}$ (identity $e=1$), the inverse of a non-zero element $a \in \mathbb{R}$ is $1/a$, because $a \times (1/a) = 1$ and $(1/a) \times a = 1$. If $a \neq 0$, then $1/a$ is always a real number. The element 0 does not have a multiplicative inverse in $\mathbb{R}$ (since $0 \times b = 0 \neq 1$).
- For standard multiplication ($\times$) on $\mathbb{N} = \{1, 2, 3, ...\}$ (identity $e=1$), only the element 1 has a multiplicative inverse in $\mathbb{N}$ (which is $1$ itself, $1 \times 1 = 1$). For any other element $a > 1$, its multiplicative inverse $1/a$ is not a natural number.
Example 5. Consider the operation $*$ defined on the set of integers $\mathbb{Z}$ by $a * b = a + b + 1$. Examine the properties: closure, commutativity, associativity, identity, and inverse.
Answer:
Given: Operation $a * b = a + b + 1$ on the set $\mathbb{Z}$.
To Examine: Properties of $*$.
1. Closure: Let $a, b \in \mathbb{Z}$. Is $a * b = a + b + 1$ always in $\mathbb{Z}$? Yes, the sum of two integers is an integer, and adding 1 results in an integer. So, $\mathbb{Z}$ is closed under $*$. $*$ is a binary operation on $\mathbb{Z}$.
2. Commutativity: Is $a * b = b * a$ for all $a, b \in \mathbb{Z}$?
$a * b = a + b + 1$
$b * a = b + a + 1$
Since addition of integers is commutative ($a+b = b+a$), $a+b+1 = b+a+1$. Yes, $*$ is commutative.
3. Associativity: Is $(a * b) * c = a * (b * c)$ for all $a, b, c \in \mathbb{Z}$?
LHS = $(a * b) * c = (a + b + 1) * c$
$= (a + b + 1) + c + 1$ (Applying the rule * to $(a+b+1)$ and $c$)
$= a + b + c + 2$
RHS = $a * (b * c) = a * (b + c + 1)$
$= a + (b + c + 1) + 1$ (Applying the rule * to $a$ and $(b+c+1)$)
$= a + b + c + 2$
Since LHS = RHS for all $a, b, c \in \mathbb{Z}$, yes, $*$ is associative.
4. Identity Element: Does there exist $e \in \mathbb{Z}$ such that $a * e = a$ and $e * a = a$ for all $a \in \mathbb{Z}$?
Consider $a * e = a$. Using the rule:
$a + e + 1 = a$
Subtract $a$ from both sides:
$e + 1 = 0$
$e = -1$
The potential identity element is $e = -1$. This is an integer, so it's in $\mathbb{Z}$.
Since the operation is commutative, we only need to check if $e * a = a$: $-1 * a = -1 + a + 1 = a$. This holds for all $a \in \mathbb{Z}$.
So, the identity element exists and is $e = -1$.
5. Inverse Element: For a given $a \in \mathbb{Z}$, does there exist $b \in \mathbb{Z}$ such that $a * b = e = -1$?
We need to solve for $b$ in the equation $a * b = -1$:
$a + b + 1 = -1$
Subtract $a$ and 1 from both sides:
$b = -1 - a - 1$
$b = -a - 2$
For any integer $a$, the expression $-a - 2$ is also an integer. So, for every $a \in \mathbb{Z}$, the element $b = -a - 2$ is in $\mathbb{Z}$ and satisfies $a * b = -1$.
Since the operation is commutative, we also have $b * a = -1$.
Therefore, every element $a \in \mathbb{Z}$ has an inverse under $*$. The inverse of $a$ is $a^{-1} = -a - 2$.
For example, the inverse of 5 is $-5 - 2 = -7$. Check: $5 * (-7) = 5 + (-7) + 1 = -2 + 1 = -1$. This is the identity element.
Summary for Competitive Exams
Binary Operation ($*$ on set $S$): A function $*: S \times S \to S$. Combines two elements of $S$ to yield a unique element in $S$. Must satisfy Closure.
Properties of Binary Operation ($*$ on $S$):
- Closure: $\forall a, b \in S, a * b \in S$. (Built into definition).
- Commutative: $\forall a, b \in S, a * b = b * a$.
- Associative: $\forall a, b, c \in S, (a * b) * c = a * (b * c)$.
- Identity Element ($e$): $\exists e \in S$ such that $\forall a \in S, a * e = e * a = a$. (Unique if exists).
- Inverse Element ($a^{-1}$): For $a \in S$, $\exists a^{-1} \in S$ such that $a * a^{-1} = a^{-1} * a = e$. (Requires identity $e$; unique for associative op if exists). Not all elements need inverses.
When examining an operation on a set, always check Closure first. If closed, proceed to check Commutativity, Associativity, existence of Identity, and then existence of Inverse for elements.