Lecture Notes on Introduction in Abstract Algebra
Lecture Notes on Introduction in Abstract Algebra
THIS LECTURE NOTES IS FOR THE COURSE MATH 232 USE ONLY. YOU ARE
NOT ALLOWED TO DISTRIBUTE THIS NOTES IN ANY MEANS.
PREPARED B Y
C RISTOVER N. V IDAL
Davao del Norte State College
New Visayas, Panabo City
Example 1.2.
• π is a real number.
• 103 bald eagles were born in the United States last year.
Non-examples:
Example 1.3.
• Wow!
Fact 1.5. The compound statement’s truth will depend on its components’ truth. If P and Q are
statements, then “P and Q ” is a true statement when both P and Q are true, and false
otherwise.
Notation 1.6.
• “P or Q ” will be denoted as “P ∨ Q ”.
Fact 1.9. if P and Q are statements, then “P or Q ” is a true statement when at least one
of P or Q is true and false when both P and Q are false.
1
1.2.1 Negation
Definition 1.12. The negation of a statement P is the statement “it is not the case that P ”,
which we can conveniently abbreviate as “not-P ”.
Example 1.14. The negation of “7 is a positive integer” is “it is not the case that 7 is a positive
integer”, which can be rewritten in a lesser awkward form “7 is not a positive integer”.
Fact 1.15. The negation of P is true exactly when P is false, and the negation of P is false
exactly when P is true.
Fact 1.16. The negation of the statement “P and Q ” is the statement “not-P or not-Q ”. In
symbols,
¬(P ∧ Q ) ≡ ¬P ∨ ¬Q.
The symbol “≡” means “is equivalent to” or “is the same with”.
Example 1.17. The negation of “2 is even and 3 is odd” is the statement “2 is odd or 3 is even.”
Fact 1.18. The negation of the statement “P or Q ” is the statement “not-P and not-Q ”. In
symbols,
¬(P ∨ Q ) ≡ ¬P ∧ ¬Q.
p
Example 1.19. The
p negation of “199 is prime or 3 is a rational number is the statement “199
is not prime and 3 is not a rational number”.
1.2.2 Quantifiers
Definition 1.20. The universal quantifier states that a property is true for all the items under
discussion.
Some grammatical variations of the universal quantifier:
Definition 1.21. The existential quantifier asserts that there exists at least one object with
specific properties.
Notation 1.23.
2
Example 1.24.
Fact 1.25. The negation of a statement with a universal quantifier is a statement with an
existential quantifier, i.e.(informally),
¬∀ ≡ ∃.
Example 1.26. The negation of the statement “All real numbers are rational” is the statement
“There exists a real number which is irrational”. In symbols,
¬(∀ x ∈ R, x ∈ Q) ≡ ∃ x ∈ R, x ∉ Q.
Fact 1.27. The negation of a statement with a universal quantifier is a statement with an
existential quantifier, i.e., (informally),
¬∃ ≡ ∀.
Example 1.28. The negation of the statement “There exists a positive integer” is the statement
“every integer is none-positive.” In symbols,
¬(∃ x ∈ Z, x > 0) ≡ ∀ x ∈ Z, x ≤ 0.
Example 1.30.
( c ∈ Z) ∧ ( d ∈ Z) =⇒ cd ∈ Z.
c, d ∈ Z =⇒ cd ∈ Z.
•
a ̸= 0 =⇒ a2 > 0.
Fact 1.31. “P =⇒ Q ” is a true statement when both P and Q are true and false when P is true
and Q is false.
3
Fact 1.34. The converse of a true statement is not necessarily true.
Example 1.35. “If the integer k is odd, then the integer k + 1 is even” is true, as its converse “If
the integer k + 1 is even, then the integer k is odd.
This facts can be expressed in a shorter form: " k is odd if and only if k + 1 is even."
P ⇐⇒ Q.
By definition,
P ⇐⇒ Q ≡ (P =⇒ Q ) ∧ (Q =⇒ P ).
Fact 1.38. “P if and only if Q ” is true exactly when both P =⇒ Q and Q =⇒ P are true.
• undefined terms - Objects which are the starting point of a discussion and are left as
undefined.
• axioms - Statements about the undefined terms that are assumed to be true.
• theorems - true statements about objects constructed from defining new terms (from the
undefined terms and axioms).
PROOF BY CONTRADICTION: (In my experience) The best way to get this is to see for your-
self that
¬(P =⇒ Q ) ≡ P ∧ (¬Q ).
Assume that ¬(P =⇒ Q ) is true and hope that you will derive contradicting statements, say
S ∧ ¬S . If this happens, it must be the case that ¬(P =⇒ Q ) is false and that P =⇒ Q is true.
Of course, you will assume that P ∧ (¬Q ) is true, equivalent to ¬(P =⇒ Q ).
Example 1.39. We want to prove the statement “If m2 is even, then m is even" using proof by
contradiction.
4
Solution:. We let
which is odd. However, we also assume that m2 is even. That is, m2 is simultaneously both odd
and even, a contradiction. In this case, the statement S ∧ (¬S ) is “ m2 is even, and m2 is odd”.
Thus, it must be the case that P ∧ ¬Q ≡ ¬(P =⇒ Q ) is false and that ¬¬(P =⇒ Q ) ≡ P =⇒ Q is
true.
Definition 1.42. A statement of the form “the following conditions are equivalent: P,Q, R, S, T ”
is called a multiconditional statement. It means that any one of the statements P,Q, R, S , or
T implies every other one. It is a shorthand for a list of biconditional statements; P ⇐⇒ Q ,
P ⇐⇒ R , etc.
Fact 1.43. To prove this multiconditional statement you need only prove P =⇒ Q , Q =⇒ R ,
R =⇒ S , S =⇒ T , and T =⇒ P .
5
• Q∗ - the set of nonzero rational numbers,
2.0.1 Sets
Definition 2.2. (intuitive approach) A set is some given collection of objects.
• A set S with only a finite number of elements is called a finite set; otherwise, S is called
an infinite set.
• x ∈ S and x ∉ S mean x is a member of the set S and x is not a member of the set S ,
respectively.
Definition 2.7. Let A and B be sets. If every member of A is a member of B and every member
of B is a member of A , then we say that A and B are the same or equal. In this case, we write
A = B.
Definition 2.9. The null set or empty set is the set with no elements. This set is usually denoted
by ∅.
There are two ways to describe sets:
A = { x| x ∈ S, P ( x)}
or
A = { x ∈ S | P ( x )}
meaning that A is the set of all elements x of S such that x satisfies the property P .
Example 2.10. N = { x| x ∈ Z, x > 0}, i.e., the set of all positive integers, that is, N = {1, 2, 3, . . .}.
6
2.0.2 Operations on Sets
Definition 2.11. The union of two sets A and B, written A ∪ B, is defined to be the set
A ∪ B = { x|( x ∈ A ) ∨ ( x ∈ B)}.
Definition 2.12. The intersection of two sets A and B, written A ∩ B, is defined to be the set
A ∩ B = { x|( x ∈ A ) ∧ ( x ∈ B)}.
Theorem 2.13. Let A and B be sets. Then the following statements hold:
i. A ⊆ A ∪ B and B ⊆ A ∪ B.
ii. A ∩ B ⊆ A and A ∩ B ⊆ B.
∩ni=1 or A 1 ∩ A 2 ∩ · · · ∩ A n = { x| x ∈ A i , ∀ i, 1 ≤ i ≤ n}.
For arbitrary indexing set I : We say that a set I is an index set for a collection of sets A if
for any α ∈ I , there exists a set A α ∈ A and A = { A α |α ∈ I }.
{ x|∃α ∈ I, where x ∈ A α }.
{ x| x ∈ A α , ∀α ∈ I }.
Definition 2.15. Given two sets A and B, the relative complement of B in A , denoted by the set
difference A \ B, is the set
A \ B = { x|( x ∈ A ) ∧ ( x ∉ B)}.
Example 2.16. Let A = {1, 2, 3, 4} and B = {3, 4, 5, 6}. Then A \ B = {1, 2}.
7
Example 2.18. Let A = {1, 2, 3} and B = {3, 4}. Then
A × B = {(1, 3), (1, 4), (2, 3), (2, 4), (3, 3), (3, 4)}.
Definition 2.19. For any set X , the power set of X , written P ( X ), is defined to be the set
{ A | A ⊆ X }.
P ( X ) = {∅, {1}, {2}, {3}, {1, 2}, {1, 3}, {2, 3}, {1, 2, 3}}.
• forward - means we look at the assumptions and derived series of implications or modus
ponens to arrive at the desired conclusion. Sometimes, you will prove statements unques-
tioningly (i.e., “mindlessly”) and be surprised that you reached the desired conclusion.
• backward - means we look at the desired conclusion and guess how to conclude. Yes!
proving is a lot of “guess work” and “experimenting”.
• forward-backward - means that if the above starting points somehow lead you to nothing,
try making a bridge between them.
Proving is sometimes hard, but it is okay. We all learn from our discomforts. The very first
step is to start using the forward-backward technique. You need definitions, equivalent state-
ments, and results or theorems to move forward or backward.
Vocab: Scratch - This means a very informal way of proving, usually using symbols. This is
only to organize your thoughts and see if your approach or plan of attack will work on proving
a given statement. However, you are expected to write beautiful formal proofs.
Solution:.
Again, we are asked to “Prove for sets A and B that A ⊆ B if and only if A ∪ B”.
Recall that P ⇐⇒ Q ≡ (P =⇒ Q ) ∧ (Q =⇒ P ). Thus,
( A ⊆ B ⇐⇒ A ∪ B = B) ≡ ( A ⊆ B =⇒ A ∪ B = B) ∧ ( A ∪ B = B =⇒ A ⊆ B)
To prove LHS, we prove RHS; this is valid since the statements are equivalent. We recall
that a compound statement P ∧ Q is true if P and Q are both true. Thus, we must show that (1.)
A ⊆ B =⇒ A ∪ B = B and (2.) A ∪ B = B =⇒ A ⊆ B is true.
Part (1.): A ⊆ B =⇒ A ∪ B = B.
Assume that A ⊆ B is true. We want to prove that A ∪ B = B from the assumption.
forward:
8
backward: what we want to show
( A ∪ B = B) ⇐⇒ ( A ∪ B ⊆ B) ∧ (B ⊆ A ∪ B).
That is, to prove LHS, we need to prove RHS by showing the statements A ∪ B ⊆ B and B ⊆ A ∪ B.
the bridge:
Recall that P ∨ Q true means that either P or Q is true. Thus, we need to consider the possible
cases, called proof by cases.
Case 1: x ∈ A , x ∈ A =⇒ x ∈ B, from (3). Hence, x ∈ B, by modus ponens.
Case 2: x ∈ B, x ∈ B =⇒ x ∈ B; thus, x ∈ B is called repeat or identity (this is valid).
In all two cases, x ∈ B. Implying that A ∪ B ⊆ B. Now, from Theorem (2.13), B ⊆ A ∪ B.
Again, from my experience, I prefer writing this in symbols - not verbose, which means fewer
distractions, and you should get used to it. Also, writing fewer words will save us time (we want
to cover all of the topics in the syllabus in one semester, of course!).
Scratch:
Part (1.): A ⊆ B =⇒ A ∪ B = B. Assume A ⊆ B, want
A ∪ B = B ⇐⇒ ( A ∪ B ⊆ B) ∧ (B ⊆ A ∪ B).
x ∈ A ∪ B =⇒ A ∪ B ⊆ B. (9)
A ∪ B ⊆ B Subproof-Cases: End
B ⊆ A ∪ B Subproof: Start
B ⊆ A ∪ B from Theorem (2.13). (10)
B ⊆ A ∪ B Subproof: End
(9) ∧ (10) =⇒ A ∪ B = B. (11)
9
′ ′
Exercise 2.22. For a subset A of a set S , let A denote the subset S \ A . A is called the
′ ′ ′
complement of A in S . Let A and B be subsets of S . Prove that ( A ∩ B) = A ∪ B , the DeMorgan’s
law.
Solution:. Recall that two sets A and B are equal, i.e. A = B if and only if A ⊆ B and B ⊆ A .
Use this facts to prove the statement. Continue on the board
A ∩ ( B ∪ C ) = ( A ∩ B ) ∪ ( A ∩ C ).
Solution:. Use the same approach as in the preceding exercises. Continue on the board
2.2 Exercises
1. Prove for sets A and B that A ⊆ B if and only if A ∩ B = A .
A ∆B = ( A ∪ B) \ ( A ∩ B).
i. if A ∩ B = ∅, then | A ∪ B| = | A | + |B|,
ii. | A \ B| = | A | − | A ∩ B|,
iii. | A ∪ B| = | A | + |B| − | A ∩ B|.
2.3 Integers
Theorem 2.24. Principle of Mathematical Induction Let S ⊆ Z# . Let n 0 ∈ S . Suppose S
satisfies either of the following conditions.
{ n ∈ Z# | n ≥ n 0 } ⊆ S.
10
Proof. Let S ( n) be the statement
n( n + 1)
1+2+···+ n = , n ≥ 1,
2
and
S = { n ∈ Z# |S ( n) is true }.
We want to show that S = { n ∈ Z# | n ≥ 1}.
Step 2: We assume that for n ≥ 1, S ( n) is true, then we need that S ( n + 1) is also true. With
S ( n) being true we have
¡ ¢
S ( n + 1) : 1 + 2 + · · · + n + ( n + 1) = 1 + 2 + · · · + n + ( n + 1)
n( n + 1)
= + ( n + 1)
2
n2 + 3 n + 2
=
2
( n + 1)[( n + 1) + 1]
= .
2
Thus, n + 1 ∈ S . Therefore, the claim is proved by the Principle of Mathematical Induction.
Theorem 2.26. (Division Algorithm) Let x, y ∈ Z with y ̸= 0. Then there exist unique integers q
and r such that x = q y + r , 0 ≤ r ≤ | y|.
Remark 2.27. The integer q is called the quotient of x and y on diving x by y, and the integer
r is called the remainder of x and y on dividing x by y.
Corollary 2.28. For any two integers x and y with y > 0, there exist unique integers q and r
such that x = q y + r , where 0 ≤ r < y.
Definition 2.29. Let x, y ∈ Z with x ̸= 0. Then x is said to divide y, or x is a divisor (or a
factsor) of y, written x| y, provided q ∈ Z such that y = qx exists. When x does not divide y, we
sometimes write x ̸ | y.
Fact 2.30. Let x, y, z be integers with x ̸= 0. Suppose x| y and x| z. Then for all integers s and t,
x|( s y + tz).
This can be proven directly.
x| y =⇒ ∃ q 1 ∈ Z, y = q 1 x (12)
x| z =⇒ ∃ q 2 ∈ Z, z = q 2 x (13)
11
Definition 2.31. Let x, y ∈ Z. A nonzero integer c is a common divisor of x and y if c| x and
c| y.
Definition 2.32. A nonzero integer d is called a greatest common divisor (gcd) of the integers
x and y if
i. d | x and d | y,
Finding gcd’s: The general method is given in the reference text. However, it is pretty tedious
and technical. Hence, we only demonstrate it in the following example and leave the reading to
the student.
Example 2.34. Consider the integers 45 and 126. Now
126 = 2 · 45 + 36
45 = 1 · 36 + 9
36 = 4 · 9 + 0.
Thus, 9 = gcd (45, 126). Also,
9 = 45 − 1 · 36
= 45 − 1 · (126 − 2 · 45)
= 3 · 45 + (−1) · 126.
Here s = 3 and t = −1.
Definition 2.35.
i. An integer p > 1 is called prime if the only divisors of p are ±1 and ± p.
12
2.3.1 Worked-Out Exercises
Exercise 2.43. By the principle of mathematical induction, prove that
Step 2: Assume that for n ∈ N with n ≥ 1, S ( n) is true. We want to show that S ( n + 1) is true.
Now,
With S ( n) true, we have that 9(32n+1 − (−1)n 2) ≡ 0 (mod 5). Also, 20 ≡ 0 (mod 5). Hence,
S ( n + 1) is true and that n + 1 ∈ S . Therefore, the claim is proved.
Exercise 2.45. Let a and b be integers such that gcd (a, 4) = 2 and gcd ( b, 4) = 2. Prove that
gcd (a + b, 4) = 4.
Solution:.
gcd (2, x) = 1, why? The gcd (2, x) is from the divisors of 2 and x. However, 2 is prime and only
has two divisors, namely 1 and itself, 2. If gcd (2, x) = 2, then a = 2 · 2 k = 4 k, k ∈ Z, contradicting
the statement that 4 ̸ |a.
With the same line of argument, b = 2 y, y ∈ Z such that gcd (2, y) = 1. Thus, x and y are both
odd integers.
13
Solution:.
Thus,
64 = 192 − 128
= 192 − (320 − 192)
= 192 · 2 + 320 · (−1)
= (512 − 320) · 2 + 320 · (−1)
= 512 · 2 + 320 · (−3).
2.3.2 Exercises
1. Determine gcd (90, 252). Find integers s and t such that
n( n + 1)(2 n + 1)
12 + 22 + 32 + · · · + n2 = , n = 1, 2, . . . .
6
5. Let a, b, and c be positive integers. Prove that gcd (ab, ac) = a · gcd ( b, c).
2.4 Relations
Definition 2.47. A binary relation or simply a relation R from a set A into set B is a subset of
A × B.
Notation 2.48. Let R be a relation from a set A into a set B. If ( x, y) ∈ R , we write xR y or
R ( x) = y.
Remark 2.49. If xR y, then we say that x is related to y or y is in relation with x with respect
to R or simply x related to y. if A = B, then we speak of a binary relation on A .
Example 2.50. Consider the set Z. Let R be the set of all ordered pairs ( m, n) of integers such
that m < n, i.e.,
R = {( m, n) ∈ Z × Z| m < n}.
Then, R is a binary relation on Z.
14
Definition 2.51. Let R be a relation from a set A into a set B. Then the domain of R , denoted
by D (R ), is defined to be the set
{ x|( x ∈ A ) ∧ ∃ y ∈ B, ( x, y) ∈ R }.
{ y|( y ∈ B) ∧ ∃ x ∈ A, ( x, y) ∈ R }.
Example 2.52. Let A = {4, 5, 7, 8, 9} and B = {16, 18, 20, 22}. Define R ⊆ A × B by
R = {(4, 16), (4, 20), (5, 20), (8, 16), (9, 18)}.
Then, R is a relation from A into B. Here, (a, b) ∈ R if and only if a| b, where a ∈ A and
b ∈ B. Note that for the domain of R , we have D (R ) = 4, 5, 8, 9 and for the range of R , we have
I (R ) = {16, 18, 20}.
Example 2.53. Let S = {( x, y)| x, y ∈ R, x2 + y2 = 1, y > 0}. Then, S is a binary relation on R . S is
the set of points in the Euclidean plane constituting the semicircle lying above the x-axis with
center (0, 0) and radius 1.
Definition 2.54. Let R be a binary relation on a set A . Then R is called
i. for all x ∈ A , [ x] ̸= ∅,
iv. A = ∪ x∈ A [ x], i.e., A is the union of all equivalence classes with respect to E .
15
i. for all B, C ∈ P , either B = C or B ∩ C = ∅.
ii. A = ∪B∈P B.
Example 2.62. Let A = {1, 2, 3, 4, 5, 6}. Let A 1 = {1, }, A 2 = {2, 4, 6}, and A 3 = {3, 5}. Then, P =
{ A 1 , A 2 , A 3 } is a partition of A . Continue on the board.
Example 2.63. Consider Z. Let A be the set of all even integers and B be the set of all odd
integers. Then, { A, B} is a partition of Z. Continue on the board.
Theorem 2.64. Let E be an equivalence relation on the set A . Then
P = {[ x]| x ∈ A }
is a partition of A .
Example 2.65. Consider the equivalence relation ≡n on Z as defined in the previous example.
Let Z n = {[ x]| x ∈ Z}. Then Z n is a partition of Z by Theorem (2.64). Suppose n = 6. Then we
claim that
Z6 = {[0], [1], [2], [3], [4], [5]}
and
[ i ] = {0 + i, ±6 + i, ±12 + i, . . .} = {6 q + i | q ∈ Z}, for all i ∈ Z.
Definition 2.66. Let R be a relation from a set A into a set B and S be a relation from B into
a set C . The composition of R and S , denoted by S ◦ R , is the relation from A into C defined by
for all x ∈ A , y ∈ C .
Definition 2.67. Let R be a relation from a set A into a set B. The inverse of R , denoted by
R −1 , is the relation form B into A defined by
xR −1 y if yRx
for all x ∈ B, y ∈ A .
16
2.4.2 Exercises
1. Let R be a relation on the set A = {1, 2, 3, 4, 5, 6, 7} defined by R = {(a, b) ∈ A × A |4|(a − b)}.
2. Which of the following relations E are equivalence relations on the set of integers Z?
i. x + z ≡n y + z,
ii. xz ≡n yz.
2.5 Functions
Definition 2.72. Let A and B be non-empty sets. A relation f from A into B is called a function
or mapping from A into B if
i. D ( f ) = A and
′ ′ ′ ′
ii. for all ( x, y), ( x , y ) ∈ f , x = x implies y = y . When ii. is satisfied by a relation f , we say
that f is well-defined or single-valued.
Notation 2.73. We use the notation f : A → B to denote a function f from a set A into a set B.
( x, y) ∈ f , we usually write f ( x) = y and say that y is the image of x under f and x is a pre-image
of y under f .
Example 2.74. Let f be the subset of Z × Z defined by
f = {( n, 2 n + 3)| n ∈ Z}.
17
Definition 2.77. Let f : A → B and g : A → B be two functions. f and g are equal denoted f = g
if and only if f ( x) = g( x), for all x ∈ A .
Example 2.78. Let f : Z → Z# and g : Z → Z# be defined by f = {( n, n2 )| n ∈ Z} and g = {( n, | n|2 | n ∈
Z)}. Now for all n ∈ Z,
f ( n) = n2 = | n|2 = g( n).
Hence, f = g.
Definition 2.79. Let f be a function from a set A into a set B. Then
′ ′ ′
i. f is called one-one if for all x, x ∈ A , f ( x) = f ( x ) implies x = x .
Definition 2.80. Let A be a non-empty set. The function i A : A → A defined by i A ( x) = x for all
x ∈ A is a one-one function of A onto A . i A is called the identity map on A .
Example 2.81. Consider the relation f from Z into Z defined by f ( n) = n2 , for all n ∈ N. Show
that f is a function, not one-one, and it is not onto Z, but onto {0, 1, 4, 9, . . .}.
Example 2.82. Consider the relation f from Z into Z defined for all n ∈ Z, f ( n) = 2 n. Show
that f is a function, not one-one, not onto Z, but onto E .
Definition 2.83. Let A , B, and C be non-empty sets and f : A → B and g : B → C . The compo-
sition ◦ of f and g, written g ◦ f , is the relation from A into C defined as follows:
z = g( y) = g( f ( x)).
Hence, ( g ◦ f )( x) = g( f ( x)).
Theorem 2.85. Suppose f : A → B and g : B → C . Then
g ◦ f = i A.
18
ii. f is called right invertible if there exists h : B → A such that
f ◦ h = iB.
f ( n) = 3 n,
and (
n
3 if n is a multiple of 3,
g ( n) =
0 if n is not a multiple of 3,
for all n ∈ Z. Show that g is not a right inverse of f and that g is a left inverse of f .
Theorem 2.91. Let A and B be sets and f : A → B. Then, the following assertions hold.
( x1 , x2 , . . . , xn ) = ( y1 , y2 , . . . , yn )
i. f ( x) = x + 4,
ii. f ( x) = x2 ,
for all x ∈ R.
Exercise 2.97.
19
i. Let f : Z → Z be a mapping defined by
(
x if x is even,
f ( x) =
2 x + 1 if xis odd
ii. Let f : Z → Z be the mapping defined by f ( x) = | x| + x, for all x ∈ Z. Find a right inverse of
f if one exists.
Exercise 2.98. Let X and Y be nonempty sets and f : X → Y . If T ⊆ X , then f (T ) denotes the
set { f ( x)| x ∈ T }. f (T ) is called the image of T under f . Prove that f is one-one if and only if
f ( A ∩ B ) = f ( A ) ∩ f (B )
2.5.2 Exercises
1. Determine which of the following mappings f : R → R are one-one and which are onto R:
i. f ( x) = x + 1,
ii. f ( x) = x3 ,
iii. f ( x) = | x| + x
for all x ∈ R.
3. For each of the mappings f : Z → Z given below, find a right inverse of f whenever one
exists.
i. f ( x) = x − 3,
ii. f ( x) = 2 x,
iii. (
x if x is even,
f ( x) =
x + 1 if x is odd
for all z ∈ Z.
i. f ( A ∪ B) = f ( A ) ∪ f (B),
ii. f ( A ∩ B) ⊆ f ( A ) ∩ f (B),
iii. f ( A \ B) ⊆ f ( A ) \ f (B) if f is one-one.
20
2.6 Binary Operations
Definition 2.99. Let S be a nonempty set. A binary operation on S is a function from S × S
into S .
Example 2.100. + is a binary operation on Z which assigns 3 to the pair (2, 1).
Notation 2.101. If ∗ is a binary operation on S , we write x ∗ y for ∗( x, y), where x, y ∈ S .
Definition 2.102. Since the image of ∗ is a subset of S , we say S is closed under ∗.
Example 2.103. Z is closed under + since adding two integers results to an integer. On the
other-hand, −-subtraction is not a binary operation of N, since 2, 5 ∈ N, but 2 − 5 = 3 ∉ N and we
say that N is not closed under −.
Definition 2.104. A mathematical system is an ordered ( n + 1)-tuple (S, ∗1 , . . . , ∗2 ), where S is
a nonempty set and ∗ i is a binary operation on S , i = 1, 2, . . . , n. S is called the underlying set of
the system.
Definition 2.105. Let (S, ∗) be a mathematical system. Then
Example 2.106. Consider the mathematical system (Z, +). Since addition of integers is asso-
ciative and commutative, + is associative and commutative.
Example 2.107. Let A be a nonempty set. Let S be the set of all functions on A , i.e.,
S = { f | f : A → A }.
Let + denote the usual addition of matrices and · denote the usual multiplication of matrices.
Is ( M2 (R), +, ·) a mathematical system? What else can we say from this system?
Example 2.109. Consider the mathematical system (Z, −), where − denotes the binary opera-
tion of subtraction on Z. Is − associative or commutative?
For a finite set S , a convenient way to define a binary operation is to use an operation or
multiplication table.
Example 2.110. Let S = {a, b, c}. Define ∗ on S by the following operation table.
∗ a b c
a c b a
b a a a
c b b b
To determine the element of S assigned to a ∗ b, we look at the intersection of the row labeled by
a and the column headed by b. We see that a ∗ b = b. Note that b ∗ a = a.
21
Definition 2.111. Let (S, ∗) be a mathematical system. An element e ∈ S is called an identity
of (S, ∗) if for all x ∈ S ,
e ∗ x = x = x ∗ e.
Example 2.112. Let S = { e, a, b}. Define ∗ on S by the following multiplication table
∗ e a b
e e a b
a a a a
b b a b
Is e an identity of (S, ∗).
Example 2.113.
Theorem 2.114. An identity element (if it exists) of a mathematical system (S, ∗) is unique.
2.6.2 Exercises
1. Which of the following are associative binary operations?
22