Docsity

Binary Operations: Commutative and Associative Functions on Sets, Essays (high school) of Econometrics and Mathematical Economics

Toggle sidebar
bg1
Section 1: (Binary) Operations
It is assumed that you learned in Math 250 about sets and mathematical induction, the content
of Section 0, and we will begin with binary operations. Technically:
Def: For a set S, any function S×S→Sis a (binary) operation. (Such creatures as “unary
operations” exist, i.e., functions S→S, as well as “ternary”, S×S×S→S, etc., but we are only
interested in the binary ones, so we will usually drop the “binary” part of the term.)
So we know many, many (binary) operations on R; for example, (a, b)7→ a3+ sin(3b+ 7). But
of course the term is intended to capture under a single word some familiar ideas that have some
things in common while still not being identical:
•Addition, multiplication and subtraction of real numbers are all operations on R. (Division
is not, because division by 0 isn’t defined, so division is only a function R×(R− {0})→R.)
•Addition of n-vectors and cross-product of 3-vectors are operations on Rnand R3. (Dot
product is not, because it is a function Rn×Rn→R.)
•Addition of matrices of the same dimensions, and multiplication of square matrices of the
same dimension are operations on Mm×n(R) and Mn×n(R) respectively.
•“Pointwise” addition and multiplication of real-valued functions on some common set (e.g.,
an interval in the real line) is an operation on the set of such functions: The function f+g
is defined on the common domain by (f+g)(x) = f(x) + g(x) for every xin the domain.
We might talk about these in calculus I, discussing definite integrals: For integrable functions
f, g on the interval [a, b], Rb
a(f+g)(x)dx =Rb
af(x)dx +Rb
ag(x)dx.
•For any positive integer n, two operations on the set Zn={0,1,2, . . . , n−2, n −1}of possible
remainders on long division by n, called “integers modulo n” are addition and multiplication
modulo n: For a, b in Zn,a⊕band abare the remainders when the integers a+band a·b
are computed in the usual way in Zand then divided by n. (It is assumed that you learned
about Znin Math 250.)
•Compositions of functions from a set Xto itself is an operation: If f , g are functions X→X,
then f◦gis defined on Xby (f◦g)(x) = f(g(x)) for every xin X;
•On a finite set, an operation can be displayed in a table — we can even say it is defined by
the table: On a set S={a, b, c, d},
∗a b c d
a a b c d
b d c b a
c c c d d
d d d c c
means
a∗a=a a ∗b=b a ∗c=c a ∗d=d
b∗a=d b ∗b=c b ∗c=b b ∗d=a
c∗a=c c ∗b=c c ∗c=d c ∗d=d
d∗a=d d ∗b=d d ∗c=c d ∗d=c
In other words, the head of a given row is the first operand, the head of a column is the
second operand, and the entry at that point in the table (where row and column meet) is the
result.
pf3
pf4

Partial preview of the text

Download Binary Operations: Commutative and Associative Functions on Sets and more Essays (high school) Econometrics and Mathematical Economics in PDF only on Docsity!

Section 1: (Binary) Operations

It is assumed that you learned in Math 250 about sets and mathematical induction, the content of Section 0, and we will begin with binary operations. Technically:

Def: For a set S, any function S × S → S is a (binary) operation. (Such creatures as “unary operations” exist, i.e., functions S → S, as well as “ternary”, S × S × S → S, etc., but we are only interested in the binary ones, so we will usually drop the “binary” part of the term.)

So we know many, many (binary) operations on R; for example, (a, b) 7 → a^3 + sin(3b + 7). But of course the term is intended to capture under a single word some familiar ideas that have some things in common while still not being identical:

  • Addition, multiplication and subtraction of real numbers are all operations on R. (Division is not, because division by 0 isn’t defined, so division is only a function R × (R − { 0 }) → R.)
  • Addition of n-vectors and cross-product of 3-vectors are operations on Rn^ and R^3. (Dot product is not, because it is a function Rn^ × Rn^ → R.)
  • Addition of matrices of the same dimensions, and multiplication of square matrices of the same dimension are operations on Mm×n(R) and Mn×n(R) respectively.
  • “Pointwise” addition and multiplication of real-valued functions on some common set (e.g., an interval in the real line) is an operation on the set of such functions: The function f + g is defined on the common domain by (f + g)(x) = f (x) + g(x) for every x in the domain. We might talk about these in calculus I, discussing definite integrals: For integrable functions f, g on the interval [a, b],

∫ (^) b a (f^ +^ g)(x)dx^ =^

∫ (^) b a f^ (x)dx^ +^

∫ (^) b a g(x)dx.

  • For any positive integer n, two operations on the set Zn = { 0 , 1 , 2 ,... , n − 2 , n − 1 } of possible remainders on long division by n, called “integers modulo n” are addition and multiplication modulo n: For a, b in Zn, a ⊕ b and a b are the remainders when the integers a + b and a · b are computed in the usual way in Z and then divided by n. (It is assumed that you learned about Zn in Math 250.)
  • Compositions of functions from a set X to itself is an operation: If f, g are functions X → X, then f ◦ g is defined on X by (f ◦ g)(x) = f (g(x)) for every x in X;
  • On a finite set, an operation can be displayed in a table — we can even say it is defined by the table: On a set S = {a, b, c, d},

∗ a b c d a a b c d b d c b a c c c d d d d d c c

means

a ∗ a = a a ∗ b = b a ∗ c = c a ∗ d = d b ∗ a = d b ∗ b = c b ∗ c = b b ∗ d = a c ∗ a = c c ∗ b = c c ∗ c = d c ∗ d = d d ∗ a = d d ∗ b = d d ∗ c = c d ∗ d = c

In other words, the head of a given row is the first operand, the head of a column is the second operand, and the entry at that point in the table (where row and column meet) is the result.

  • For a fixed set X, the family S = P(X) of all subsets of X have at least three natural operations on it. (The script P is because S is called the “power set” of X.): For subsets A, B of X,

A ∪ B = {x ∈ S : x ∈ A or x ∈ B or both} A ∩ B = {x ∈ S : x ∈ A and x ∈ B} A 4 B = {x ∈ S : x ∈ A or x ∈ B but not both} = (A ∪ B) − (A ∩ B)

These are called “union,” “intersection,” and “symmetric difference,” respectively. So if X = { 4 , 7 }, then P(X) = {∅, { 4 }, { 7 }, X}, and

∪ ∅ { 4 } { 7 } X ∅ ∅ { 4 } { 7 } X { 4 } { 4 } { 4 } X X { 7 } { 7 } X { 7 } X X X X X X

∩ ∅ { 4 } { 7 } X

X ∅ { 4 } { 7 } X

4 ∅ { 4 } { 7 } X

∅ ∅ { 4 } { 7 } X

{ 4 } { 4 } ∅ X { 7 }

{ 7 } { 7 } X ∅ { 4 }

X X { 7 } { 4 } ∅

  • etc., etc.

If we really think of binary operations as functions, it is reasonable to use “Polish notation” (named for mathematicians from Poland who first used it): denoting the sum of a and b by +(a, b). Some older calculators use “reverse Polish notation,” essentially (a, b)+: punching “5-Enter-3-Plus” to get the sum of 5 and 3. But of course most common is “infix” notation, putting the symbol for the operation between the operands: the sum of a and b is denoted a + b. Sometimes, especially if the operation is some kind of “multiplication”, we will simply denote it by juxtaposition: the “product” of a and b is denoted ab. We will do this a lot in learning about groups, because each group has only one operation, so it can’t be misunderstood.

Most operations are too badly behaved to have any good properties in common, though, so we usually impose at least one or two conditions to restrict to those that act a little more like our most familiar examples. The two usual conditions are

Def: An operation ∗ on a set S is commutative iff, for every two elements a, b of S, a ∗ b = b ∗ a (i.e., the function ∗ associates the ordered pairs (a, b) and (b, a) to the same element of S). And ∗ is associative iff, for all elements a, b, c of S, (a ∗ b) ∗ c = a ∗ (b ∗ c).

We know addition and multiplication of real numbers, addition of vectors and addition of ma- trices, pointwise addition and multiplication of functions all are both commutative and associative. Addition and multiplication modulo n are commutative and associative on Zn — in both cases, commutativity is easy because addition and multiplication in Z is commutative, and associativity is a bit more complicated to check because long division by n must be done twice on both sides of the equals sign. Multiplication of matrices is associative but not commutative. Composition of functions is associative (more on this below), but it is not commutative: If f, g : R → R are given by f (x) = x + 1 and g(x) = 2x, then (f ◦ g)(x) = 2x + 1 but (g ◦ f )(x) = 2x + 2, so f ◦ g 6 = g ◦ f.

Because associativity is more complicated to define, and usually also to check, it’s a bit surprising that it is more basic than commutativity; but it turns out that a non-commutative operation is

and because this works for every vector in R^2 , we get (AB)C = A(BC). So matrix multiplication is associative because it reflects composition of linear transformations, which is “naturally” associative.

Def: If S is a set and ∗ is an associative operation on S, then the pair (S, ∗) (or sometimes just S, if there is a natural choice for ∗) is called a semigroup.