Definition (Page 19). An operation on a set S is a relationship (rule, correspondence) that assigns to each ordered pair of elements of S a uniquely determined element of S. Thus, an operation is a mapping from the Cartesian product of S with S, denoted by S×S=S2, to S. For instance, +:Z2Z defined by (a,b)a+b, is the operation of addition on the integers, and :Z2Z defined by (a,b)ab the operation of subtraction on the integers.

Example 3.1. Multiplication is an operation on the set of positive integers, (m,n)mn where mn has the usual meaning, m times n. Division is not an operation on the set of positive integers since m÷n is not necessarily a positive integer.

Definition (Page 20). To have an operation α on a set S, it is necessary that if a,bS then α(a,b)S. This property of an operation is referred to as closure, or we say that S is closed with respect to the operation. Note how the language suggests a mapping may be an operation on one set but not another. If there is an established symbol for an operation, it is used. Otherwise, we may generically use or juxtaposition as in (a,b)ab or (a,b)ab to denote the operation, where it must be specified what ab or ab mean in each case.

Example 3.2. If be defined by mn=mn for all positive integers m and n, then is an operation on the set of positive integers. Notice that 23=23=8 but 32=32=9 so that, like subtraction, order matters.

Example 3.3. Let S be a nonempty set and M(S) the set of all mappings from S to S. That is, M(S)={αα:SS}. If α,βM(S) then βαM(S). Therefore, composition () is an operation on M(S) and (β,α)βα.

Example 3.4. We may specify an operation by means of a Cayley table, named after British Mathematician Arthur Cayley (1821-1895). The familiar multiplication table is an example. For operation , we put ab at the intersection of the horizontal row with a at the left and the vertical column with b at the top. The Cayley table for an operation on a set S has |S|2 entries in it. For instance, if |S|=3 then each way of filling 9 entries of the square with elements chosen from S is a distinct operation on S. If the nine entries are left unchanged but is changed to some other symbol, then the result is not a different operation.

Example 3.5. Let M(2,R) be the set of all 2×2 matrices with real numbers as entries. Then matrix addition and matrix multiplication are operations on M(2,R) as follows: [abcd]+[wxyz]=[a+wb+xc+yd+z] and [abcd][wxyz]=[aw+byax+bzcw+dycx+dz] More generally, for any positive integer n, both matrix multiplication and matrix addition are operations on the set of all n×n matrices with real numbers as entries, denoted by M(n,R).

Definition (Page 21). A mapping α:S2S which we refer to as an operation is more precisely called a binary operation on S. A mapping α:SS such as aa is a unary operation on S. A mapping α:S3S such as (a,b,c)a(b+c) is a ternary operation on S. In general, a mapping α:SnS is an n-ary operation on S. The value n is the so-called "arity" of the operation. In this text, the word "operation" refers to binary operation, since other arities are not discussed.

Definition (Page 21). The notion of operation is so fundamental in algebra that algebra could almost be defined as the study of operations, with binary operations being most important. However, such a definition is too general to be of much use. In calculus, for example, it is not all functions f:RR that are of interest, but only those having certain properties such as continuity or differentiability. In the same way, the operations of interest in algebra usually possess certain special properties. Some important ones follow.

Definition (Page 21). Associative Law. An operation on a set S is said to be associative if it satisfies the condition a(bc)=(ab)c for all a,b,cS.

Example (Page 21). Addition and multiplication on R are associative but subtraction on R and the operation defined in Example 3.2 are not.

Note (Page 21). If the equation given by the Associative Law fails for even one triple (a,b,c) then the operation is not associative.

Definition (Page 21). An element e in a set S is an identity (or identity element) for an operation on S if ea=ae=a for each aS.

Guevara Note 3.1. The identity element is unique if it exists. (Problem 3.23c)

Example (Page 22). The identity element for addition of integers is 0 and the identity for multiplication of integers is 1. Note, by definition, if, for some aS, either ea=a but aea, or ae=a but eaa, then e is not an identity element for operation on S.

Definition (Page 22). Assume that is an operation on S, with identity e, and that aS. An element b in S is an inverse of a relative to if ab=ba=e.

Guevara Note 3.2. Contrast the language. A mapping is not required to have an identity element to be an operation, but to be an identity element e, the equation given in the definition of identity must hold for every aS. Similarly, elements of S need not have inverses for a mapping to be an operation on S. However, unlike the identity element, an inverse may exist for some elements and not others. Also, when it exists, there is only one identity for all elements of S, whereas each element of S may have its own distinct inverse.

Example 3.6. Relative to addition on the set of integers, each integer has an inverse, its negative: a+(a)=(a)+a=0 for each integer a. Note that the inverse must be in the operation's set. For instance, relative to addition on the set of nonnegative integers, no element has an inverse but 0: The inverse of a positive integer is negative.

Example 3.7. Relative to multiplication on the set of real numbers, each non-zero real number has an inverse, its reciprocal: a(1/a)=(1/a)a=1. Multiplication on the set of integers is also an operation, but only 1 and 1 have inverses.

Definition (Page 22). Commutative Law. An operation on a set S is said to be commutative if ab=ba for all a,bS.

Example (Page 22). Addition and multiplication of integers are commutative.