CHAPTER 4

RELATIONS AND FUNCTIONS

4.1 RELATIONS

A relation is an association between objects. A book on a table is an example of the relation of one object being on another. It is especially common to speak of relations among people. For example, one person could be the niece of another. In mathematics, there are many relations such as equals and less-than that describe associations between numbers. To formalize this idea, we make the next definition.

images DEFINITION 4.1.1

A set R is an (n-ary) relation if there exist sets A0, A1, ... , An−1 such that

images

In particular, R is a unary relation if n = 1 and a binary relation if n = 2. If RA × A for some set A, then R is a relation on A and we write (A, R).

The relation on can be represented as a subset of the Cartesian product of the set of all books and the set of all tables. We could then write (dictionary, desk) to mean that the

dictionary is on the desk. Similarly, the set {(2, 4), (7, 3), (0, 0)} is a relation because it is a subset of Z × Z. The ordered pair (2, 4) means that 2 is related to 4. Likewise, R × Q is a relation where every real number is related to every rational number, and according to Definition 4.1.1, the empty set is also a relation because ∅ = ∅ × ∅.

images EXAMPLE 4.1.2

For any set A, define

images

Call this set the identity on A. In particular, the identity on R is

images

and the identity on Z is

images

Notice that ∅ is the identity on ∅.

images EXAMPLE 4.1.3

The less-than relation on Z is defined as

images

Another approach is to use membership in the set of positive integers as our condition. That is,

images

Hence, (4, 7) ∈ L because 7 − 4 ∈ Z+. See Exercise 1 for another definition of L.

When a relation RA × B is defined, all elements in A or B might not be used. For this reason, it is important to identify the sets that comprise all possible values for the two coordinates of the relation.

images DEFINITION 4.1.4

Let RA × B. The domain of R is the set

images

and the range of R is the set

images

images EXAMPLE 4.1.5

If R = {(1, 3), (2, 4), (2, 5)}, then dom(R) = {1, 2} and ran(R) = {3, 4, 5}. We represent this in Figure 4.1 where A and B are sets so that {1, 2} ⊆ A and {3, 4, 5} ⊆ B. The ordered pair (1, 3) is denoted by the arrow pointing from 1 to 3. Also, both dom(R) and ran(R) are shaded.

images

Figure 4.1 R = {(1, 3), (2, 4), (2, 5)}.

images EXAMPLE 4.1.6

Let S = {(x, y) : |x| = yx, yR}. Notice that both (2, 2) and (−2, 2) are elements of S. Furthermore, dom(S) = R and ran(S) = [0, ∞).

The domain and range of a relation can be the same set as in the next two examples.

images EXAMPLE 4.1.7

If R = {(0, 1), (0, 2), (1, 0), (2, 0)}, then R is a relation on the set {0, 1, 2} with dom(R) = ran(R) = {0, 1, 2}.

images EXAMPLE 4.1.8

For the relation

images

both the domain and range equal R. First, note that it is clear by the definition of S that both dom(S) and ran(S) are subsets of R. For the other inclusion, take xR. Since (x, 1) ∈ S, x ∈ dom(S), and since (1, y) ∈ S, y ∈ ran(S).

Composition

Given the relations R and S, let us define a new relation. Suppose that (a, b) ∈ S and (b, c) ∈ R. Therefore, a is related to c through b. The new relation will contain the ordered pair (a, c) to represent this relationship.

images DEFINITION 4.1.9

Let RA × B and SB × C. The composition of S and R is the subset of A × C defined as

images

As illustrated in Figure 4.2, the reason that (a, c) ∈ R images S is because (a, b) ∈ S and (b, c) ∈ R. That is, a is related to c via R images S because a is related to b via S and then b is related to c via R. The composition can be viewed as the direct path from a to c that does not require the intermediary b.

images

Figure 4.2 A composition of relations.

images EXAMPLE 4.1.10

To clarify the definition, let

images

and

images

We have that R images S = {(0, 3), (0, 4), (0, 5)}. Notice that (0, 3) ∈ R images S because (0, 1) ∈ S and (1, 3) ∈ R. However, S images R is empty since ran(R) and dom(S) are disjoint.

images EXAMPLE 4.1.11

Define

images

and

images

Notice that R is the unit circle and S is the line with slope of 1 and y-intercept of (0, 1). Let us find R images S.

images

Therefore, R images S is the circle with center (−1, 0) and radius 1.

Example 4.1.10 shows that it is possible that S images RR images S. However, we can change the order of the composition.

images THEOREM 4.1.12

If RA × B, SB × C, and TC × D, then T images (S images R) = (T images S) images R.

PROOF

Assume that RA × B, SB × C, and TC × D. Then,

images

Inverses

Let RA × B. We know that R images IA = R and IB images R = R [Exercise 10(a)]. If we want IA = IB, we need A = B so that R is a relation on A. Then,

images

For example, if we again define R = {(2, 4), (1, 3), (2, 5)} and view it as a relation on Z, then R composed on either side by IZ yields R. To illustrate, consider the ordered pair (1, 3). It is an element of R images IZ because

images

and it is also an element of IZ images R because

images

Notice that not every identity relation will have this property. Using the same definition of R as above,

images

but

images

Now let us change the problem. Given a relation R on A, can we find a relation S on A such that R images S = S images R = IA? The next definition is used to try to answer this question.

images DEFINITION 4.1.13

Let R be a binary relation. The inverse of R is the set

images

For a relation S, we say that R and S are inverse relations if R−1 = S.

images EXAMPLE 4.1.14

Let L be the less-than relation on R (Example 4.1.3). Then,

images

This shows that less-than and greater-than are inverse relations.

We now check whether R images R−1 = R−1 images R = IA for any relation R on A. Consider R = {(2, 1), (4, 3)}, which is a relation on {1, 2, 3, 4}. Then,

images

and we see that composing does not yield the identity on {1, 2, 3, 4} because

images

and

images

The situation is worse when we define S = {(2, 1), (2, 3), (4, 3)}. In this case, we have that

images

but

images

and

images

Neither of these compositions leads to an identity, but at least we have that

images

and

images

This can be generalized.

images THEOREM 4.1.15

Iran(R)R images R−1 and Idom(R)R−1 images R for any binary relation R.

PROOF

The first inclusion is proved in Exercise 12. To see the second inclusion, let x ∈ dom(R). By definition, there exists y ∈ ran(R) so that (x, y) ∈ R. Hence, (y, x) ∈ R−1, which implies that (x, x) ∈ R−1 images R. images

Exercises

1. Let LZ × Z be the less-than relation as defined in Example 4.1.3. Prove that

images

2. Find the domain and range of the given relations.

(a) {(0, 1), (2, 3), (4, 5), (6, 7)}

(b) {((a, b), 1), ((a, c), 2), ((a, d), 3)}

(c) R × Z

(d) ∅ × ∅

(e) Q × ∅

(f) {(x, y) : x, y ∈ [0, 1] ∧ x < y}

(g) {(x, y) ∈ R2 : y = 3}

(h) {(x, y) ∈ R2 : y = |x|}

(i) {(x, y) ∈ R2 : x2 + y2 = 4}

(j) {(x, y) ∈ R2 : yimagesx ≥ 0}

(k) {(f, g) : ∃aR(f(x) = exg(x) = ax)}

(l) {((a, b), a + b) : a, bZ}

3. Write R images S as a roster.

(a) R = {(1, 0), (2, 3), (4, 6)}, S = {(1, 2), (2, 3), (3, 4)}

(b) R = {(1, 3), (2, 5), (3, 1)}, S = {(1, 3), (3, 1), (5, 2)}

(c) R = {(1, 2), (3, 4), (5, 6)}, S = {(1, 2), (3, 4), (5, 6)}

(d) R = {(1, 2), (3, 4), (5, 6)}, S = {(2, 1), (3, 5), (5, 7)}

4. Write R images S using abstraction.

(a) R = {(x, y) ∈ R2 : x2 + y2 = 1}

S = R2

(b) R = {(x, y) ∈ R2 : x2 + y2 = 1}

S = Z × Z

(c) R = {(x, y) ∈ R2 : x2 + y2 = 1}

S = {(x, y) ∈ R2 : (x − 2)2 + y2 = 1}

(d) R = {(x, y) ∈ R2 : x2 + y2 = 1}

S = {(x, y) ∈ R2 : y = 2x − 1}

5. Write the inverse of each relation. Use the abstraction method where appropriate.

(a) ∅

(b) IZ

(c) {(1, 0), (2, 3), (4, 6)}

(d) {(1, 0), (1, 1), (2, 1)}

(e) Z × R

(f) {(x, sin x) : xR}

(g) {(x, y) ∈ R2 : x + y = 1}

(h) {(x, y) ∈ R2 : x2 + y2 = 1}

6. Let RA × B and SB × C. Show the following.

(a) R−1 images S−1C × A.

(b) dom(R) = ran(R−1).

(c) ran(R) = dom(R−1).

7. Prove that if R is a binary relation, (R−1)−1 = R.

8. Prove that (S images R)−1 = R−1 images S−1 if RA × B and SB × C.

9. Let R, SA × B. Prove the following.

(a) If RS, then R−1S−1.

(b) (RS)−1 = R−1S−1.

(c) (RS)−1 = R−1S−1.

10. Let RA × B.

(a) Prove R images IA = R and IB images R = R.

(b) Show that if there exists a set C such that A and B are subsets of C, then R images IC = IC images R = R.

11. Let RA × B and SB × C. Show that S images R = ∅ if and only if dom(S) and ran(R) are disjoint.

12. For any relation R, prove Iran(R)R images R−1.

13. Let RA × B. Prove.

(a) images{xA : (x, b) ∈ R} = dom(R).

(b) images{yB : (a, y) ∈ R} = ran(R).

4.2 EQUIVALENCE RELATIONS

In practice we usually do not write relations as sets of ordered pairs. We instead write propositions like 4 = 4 or 3 < 9. To copy this, we will introduce an alternate notation.

images DEFINITION 4.2.1

Let R be a relation on A. For all a, bA,

images

and

images

For example, the less-than relation L (Example 4.1.3) is usually denoted by <, and we write 2 < 3 instead of (2, 3) ∈ L or (2, 3) ∈ <.

images EXAMPLE 4.2.2

Define the relation R on Z by

images

Therefore, for all a, bZ, a R b if and only if a divides b. Therefore, 4 R 8 but 8 images 4.

Relations can have different properties depending on their definitions. Here are three important examples using relations on A = {1, 2, 3}.

  • {(1, 1), (2, 2), (3, 3)} has the property that every element of A is related to itself.
  • {(1, 2), (2, 1), (2, 3), (3, 2)} has the property that if a is related to b, then b is related to a.
  • {(1, 2), (2, 3), (1, 3)} has the property that if a is related to b and b is related to c, then a is related to c.

These examples lead to the following definitions.

images DEFINITION 4.2.3

Let R be a relation on A.

  • R is reflexive if a R a for all aA.
  • R is symmetric when for all a, bA, if a R b, then b R a.
  • R is transitive means that for all a, b, cA, if a R b and b R c, then a R c.

Notice that the relation in Example 4.2.2 is not reflexive because 0 does not divide 0 and is not symmetric because 4 divides 8 but 8 does not divide 4, but it is transitive because if a divides b and b divides c, then a divides c.

When a relation is reflexive, symmetric, and transitive, it behaves very much like an identity relation (Example 4.1.2). Such relations play an important role in mathematics, so we name them.

images DEFINITION 4.2.4

A relation R on A is an equivalence relation if R is reflexive, symmetric, and transitive.

Observe that the relation in Example 4.2.2 is not an equivalence relation. However, any identity relation is an equivalence relation. We see this assumption at work in the next example.

images EXAMPLE 4.2.5

Let R be a relation on Z × (Z {0}) so that for all a, cZ and b, dZ {0},

(a, b) R (c, d) if and only if ad = bc.

To see that this is an equivalence relation, let (a, b), (c, d), and (e, f) be elements of Z × (Z {0}).

  • (a, b) R (a, b) since ab = ab.
  • Assume (a, b) R (c, d). Then, ad = bc. This implies that cb = da, so (c, d) R (a, b).
  • Let (a, b) R (c, d) and (c, d) R (e, f). This gives ad = bc and cf = de. Therefore, (a, b) R (e, f) because

    images

images EXAMPLE 4.2.6

Take mZ+ and let a, b, and c be integers. Define a to be congruent to b modulo m and write

images

That is,

images

For example, we have that 7 ≡ 1 (mod 3), 1 ≡ 13 (mod 3), and 27 ≡ 0 (mod 3), but 2 images 9 (mod 3) and 25 images 0 (mod 3). Congruence modulo m defines the relation

images

Observe that

images

Prove that Rm is an equivalence relation.

  • (a, a) ∈ Rm because aa (mod m).
  • Assume (a, b) ∈ Rm. This implies that m | ab. By Exercise 2.4.18, m | ba. Hence, (b, a) ∈ Rm.
  • Let (a, b), (b, c) ∈ Rm. Then a = b + mk and b = c + ml for some k, lZ. Substitution yields

    images

    Since the sum of two integers is an integer, (a, c) ∈ Rm.

Equivalence Classes

Let R be a relation on {1, 2, 3, 4} such that

images

Observe that 1 is related to 2 and 3, 2 is related to 4, and 3 and 4 are not related to any number. Combining the elements that are related to a particular element results in a set named by the next definition.

images DEFINITION 4.2.7

Let R be a relation on A with aA. The class of a with respect to R is the set

images

If R is an equivalence relation, [a]R is called an equivalence class. We often denote [a]R by [a] if the relation is clear from context.

Using R as defined in (4.1),

images

If R had been an equivalence relation on a set A, then [a]R would be nonempty for all aA because a would be an element of [a]R (Exercise 17).

images EXAMPLE 4.2.8

Let R be the equivalence relation from Example 4.2.5. We prove that

images

To see this, take (a, b) ∈ [(1, 3)]. This means that (1, 3) R (a, b), so b = 3a and a ≠ 0 because b ≠ 0. Hence, (a, b) = (a, 3a). Conversely, let n ≠ 0. Then, (1, 3) R (n, 3n) because 1 · 3n = 3 · n. Thus, (n, 3n) ∈ [(1, 3)].

images EXAMPLE 4.2.9

Using the notation of Example 4.2.6, let Rm be the relation defined by congruence modulo m. For all nZ, define

images

Therefore, when m = 5, the equivalence classes are:

images

In addition,

images

The collection of all equivalence classes of a relation is a set named by the next definition.

images DEFINITION 4.2.10

Let R be an equivalence relation on A. The quotient set of A modulo R is

images

Observe by Exercise 3 that it is always the case that

images

images EXAMPLE 4.2.11

Let mZ+. The quotient set Z/Rm is denoted by Zm. That is,

images

images EXAMPLE 4.2.12

Define the relation R on R2 by

images

R is an equivalence relation by Exercise 2. We note that for any (a, b) ∈ R2,

images

Therefore, the equivalence class of (a, b) is the line with a slope of 1 and a y-intercept equal to (0, ba). The equivalence classes of (0, 1.5) and (0, −1) are illustrated in the graph in Figure 4.3. The quotient set R2/R is the collection of all such lines. Notice that

images

Partitions

In Example 4.2.12, we saw that R2 is the union of all the lines with slope equal to 1, and since the lines are parallel, they form a pairwise disjoint set. These properties can be observed in the other equivalence relations that we have seen. Each set is equal to the union of the equivalence classes, and the quotient set is pairwise disjoint. Generalizing these two properties leads to the next definition.

images

Figure 4.3 Two equivalence classes in R2 when (a, b) R (c, d) if and only if ba = dc.

images DEFINITION 4.2.13

Let A be a nonempty set. The family images is a partition of A if and only if

  • imagesP(A),
  • images images = A,
  • images is pairwise disjoint.

To illustrate the definition, let A = {1, 2, 3, 4, 5, 6, 7} and define the elements of the partition to be A0 = {1, 2, 5}, A1 = {3}, and A2 = {4, 6, 7}. The family

images

is a subset of P(A), A = A0A1A2, and images is pairwise disjoint. Therefore, images is a partition of A. This is illustrated in Figure 4.4.

images

Figure 4.4 A partition of the set A = {1, 2, 3, 4, 5, 6, 7}.

images EXAMPLE 4.2.14

For each real number r ≥ 0, define Cr to be the circle with radius r centered at the origin. Namely,

images

Let images = {Cr : r ∈ [0, ∞)}. We claim that images is a partition of R2.

  • imagesP(R2) because CrR2 for all r ≥ 0.
  • To prove that R2 = images Cr, it suffices to show that R2images Cr, but this follows because if (a, b) ∈ R2, then

    images

  • To see that images is pairwise disjoint, let r, s ≥ 0 and assume that (a, b) is an element of CrCs. Then,

    images

    which implies that Cr = Cs.

The set Z5 is a family of subsets of Z, has the property that imagesZ5 = Z, and is pairwise disjoint. Hence, Z5 is a partition for Z. We generalize this result to the next theorem. It uses an arbitrary equivalence relation on a given set to define a partition for that set. In this case, we say that the equivalence relation induces the partition.

images THEOREM 4.2.15

If R is an equivalence relation on A, then A/R is a partition of A.

PROOF

Take a set A with an equivalence relation R.

  • Since an equivalence class is a subset of A, we have A/RP(A).
  • images A/R = A is (4.2).
  • Let [a], [b] ∈ A/R and assume that there exists y ∈ [a] ∩ [b]. In other words, a R y and b R y. Now take x ∈ [a]. This means that a R x. Since x R a and y R b by symmetry, we have that x R y, and then x R b by transitivity. Thus, x ∈ [b], which shows [a] ⊆ [b]. Similarly, [b] ⊆ [a], so [a] = [b]. images

The collection of equivalence relations forms a partition of a set. Conversely, if we have a partition of a set, the partition gives rise to an equivalence relation on the set. To see this, take any set A and a partition images of A. For all a, bA, define

images

To show that R is an equivalence relation, take a, b, and c in A.

  • Since aA and A = imagesimages, there exists Cimages such that aC. Therefore, a R a.
  • Assume a R b. This means that a, bC for some Cimages. This, of course, is the same as b, aC. Hence, b R a.
  • Suppose a R b and b R c. Then, there are sets C and D in images so that a, bC and b, cD. This means that CD ≠ ∅. Since images is pairwise disjoint, C = D. So, a and c are elements of C, and we have a R c.

This equivalence relation is said to be induced from the partition.

images EXAMPLE 4.2.16

The sets

images

form a collection that is a partition of Z. The equivalence relation that is induced from this partition is congruence modulo 5 (Example 4.2.9).

Exercises

1. For all a, bR {0}, let a R b if and only if ab > 0.

(a) Show that R is an equivalence relation on R {0}.

(b) Find [1] and [−3].

2. Define the relation S on R2 by (a, b) S (c, d) if and only if ba = dc. Prove that S is an equivalence relation.

3. Let S be an equivalence relation on A. Prove that A = images.

4. Prove that if C is an equivalence class for some equivalence relation R and aC, then C = [a].

5. For all a, bZ, let a R b if and only if |a| = |b|.

(a) Prove R is an equivalence relation on Z.

(b) Sketch the partition of Z induced by this equivalence relation.

6. For all (a, b), (c, d) ∈ Z × Z, define (a, b) S (c, d) if and only if ab = cd.

(a) Show that S is an equivalence relation on Z × Z.

(b) What is the equivalence class of (1, 2)?

(c) Sketch the partition of Z × Z induced by this equivalence relation.

7. Let A be a set and aA. Show that the given relations are not equivalence relations on P(A).

(a) For all C, DA, define C R D if and only if CD ≠ ∅.

(b) For all C, DA, define C S D if and only if aCD.

8. Let z, z′ ∈ C and write z = a + bi and z′ = a′ + b′i. Define z = z′ to mean that a = a′ and b = b′. Prove that R is an equivalence relation.

9. Find.

(a) [3]5

(b) [12]6

(c) [2]5 ∪ [27]5

(d) [4]7 ∩ [5]7

10. Let r be the remainder obtained when n is divided by m. Prove [n]m = [r]m.

11. Let c, mZ and suppose that gcd(c, m) = 1. Prove.

(a) There exists b such that bc ≡ 1 (mod m). (Notice that b is that multiplicative inverse of c modulo m.)

(b) If cacb (mod m), then ab (mod m).

(c) Prove that the previous implication is false if gcd(c, m) ≠ 1.

12. Prove that {(n, n + 1] : nZ} is a partition of R.

13. Prove that the following are partitions of R2.

(a) images = {{(a, b)} : a, bR}.

(b) images = {{(r, y) : yR} : rR}.

(c) images = {R × (n, n + 1] : nZ}.

14. Is {[n, n + 1] × (n, n + 1) : nZ} a partition of R2? Explain.

15. Let R be a relation on A and show the following:

(a) R is reflexive if and only if R−1 is reflexive.

(b) R is symmetric if and only if R = R−1.

(c) R is symmetric if and only if (A × A) R is symmetric.

16. Let R and S be equivalence relations on A. Prove or show false.

(a) RS is an equivalence relation on A.

(b) RS is an equivalence relation on A.

17. Prove for all relations R on A.

(a) R is reflexive if and only if ∀a(a ∈ [a]).

(b) R is symmetric if and only if ∀ab(a ∈ [b] ↔ b ∈ [a]).

(c) R is transitive if and only if ∀abc([b ∈ [a] ∧ c ∈ [b]] → c ∈ [a]).

(d) R is an equivalence relation if and only if ∀ab((a, b) ∈ R ↔ [a] = [b]).

18. Let R be a relation on A with the property that if a R b and b R c, then c R a. Prove that if R is also reflexive, R is an equivalence relation.

19. Define the relation R on C by a + bi R c + di if and only if

images

(a) Prove R is an equivalence relation on C.

(b) Graph [1 + i] in the complex plane.

(c) Describe the partition that R induces on C.

20. Let R and S be relations on A. The symmetric closure of R is S if RS and for all symmetric relations T on A such that RT, then ST. Prove the following.

(a) RR−1 is the symmetric closure of R.

(b) A symmetric closure is unique.

4.3 PARTIAL ORDERS

While equivalence relations resemble equality, there are other common relations in mathematics that we can model. To study some of their attributes, we expand Definition 4.2.3 with three more properties.

images DEFINITION 4.3.1

Let R be a relation on A.

  • R is irreflexive if a images a for all aA.
  • R is asymmetric when for all a, bA, if a R b, then b images a.
  • R is antisymmetric means that for all a, bA, if a R b and b R a, then a = b.

Notice that a relation on a nonempty set cannot be both reflexive and irreflexive. However, many relations have neither property. For example, consider the relation R = {(1, 1)} on {1, 2}. Since (1, 1) ∈ R, the relation R is not irreflexive, and R is not reflexive because (2, 2) ∉ R. Likewise, a relation on a nonempty set cannot be both symmetric and asymmetric.

images EXAMPLE 4.3.2

The less-than relation on Z is irreflexive and asymmetric. It is also antisymmetric. To see this, let a, bZ. Since a < b and b < a is false, the implication

images

is true. The ≤ relation is also antisymmetric. However, ≤ is neither irreflexive nor asymmetric since 3 ≤ 3.

images EXAMPLE 4.3.3

Let R = {(1, 2)} and S = {(1, 2), (2, 1)}. Both are relations on {1, 2}. The first relation is asymmetric since 1 R 2 but 2 images 1. It is also antisymmetric, but S is not antisymmetric because 2 S 1 and 1 S 2. Both the relations are irreflexive.

images EXAMPLE 4.3.4

Let R be a relation on a set A. We prove that

images

  • Assume that R is antisymmetric and take (a, b) ∈ RR−1. This means that (a, b) ∈ R and (a, b) ∈ R−1. Therefore, (b, a) ∈ R, and since R is antisymmetric, a = b.
  • Now suppose RR−1IA. Let (a, b), (b, a) ∈ R. We conclude that (a, b) ∈ R−1, which implies that (a, b) ∈ RR−1. Then, (a, b) ∈ IA. Hence, a = b.

As an equivalence relation is a generalization of an identity relation, the following relation is a generalization of ≤ on N. For this reason, instead of naming the relation R, it is denoted by the symbol images.

images DEFINITION 4.3.5

If a relation images on a set A is reflexive, antisymmetric, and transitive, images is a partial order on A and the ordered pair (A, images) is called a partially ordered set (or simply a poset). Furthermore, for all a, bA, the notation a images b means a images b but ab.

For example, ≤ and = are partial orders on R, but < is not a partial order on R because the relation < is not reflexive. Although = is a partial order on any set, in general an equivalence relation is not a partial order (Example 4.2.6).

images EXAMPLE 4.3.6

Divisibility (Definition 2.4.2) is a partial order on Z+. To prove this, let a, b, and c be positive integers.

  • a | a since a = a · 1 and a ≠ 0.
  • Suppose that a | b and b | a. This means that b = ak and a = bl, for some k, lZ+. Hence, b = blk, so lk = 1. Since k and l are positive integers, l = k = 1. That is, a = b.
  • Assume that we have a | b and b | c. This means that b = al and c = bk for some l, kZ+. By substitution, c = (al)k = a(lk): Hence, a | c.

images EXAMPLE 4.3.7

Let images be a collection of symbols and let images* denote the set of all strings over images (as on page 5). Use the symbol images to denote the empty string, the string of length zero. As with the empty set, the empty string is always an element of images*. For example, if images = {a, b, c}, then abc, aaabbb, c, and images are elements of images*. Now, take σ, τ ∈ images*. The concatenation of σ and τ is denoted by images and is the string consisting of the elements of σ followed by those of τ. For example, if σ = 011 and τ = 1010, then images = 0111010. Finally, for all σ, τ ∈ images*, define

images

Figure 4.5 A partial order defined on {0, 1}*.

images

It can be shown that images is a partial order on images* (Exercise 8) with the structure seen in Figure 4.5 for images = {0, 1}.

The partial order ≤ on R has the property that for all a, bR, either a < b, b < a, or a = b. As we see in Figure 4.5, this is not the case for every partially ordered set. We do, however, have the following slightly weaker property.

images THEOREM 4.3.8 [Weak-Trichotomy Law]

If images is a partial order on A, for all a, bA, at most one of the following are true:

a images b, b images a, or a = b.

PROOF

Let a, bA. We have three cases to consider.

  • Suppose a images b. This means that a images b and ab. If in addition b images a, by transitivity a images a, which is a contradiction.
  • That b images a precludes both a images b and a = b is proved like the first case.
  • If a = b, then by definition of images it is impossible for a images b or b images a to be true. images

Technically, subset is not a relation, but in a natural way, it can be considered as one. Let images be a family of sets. Define

images

Associate ⊆ with the relation S.

images EXAMPLE 4.3.9

Let A be a nonempty set. We show that (P(A), ⊆) is a partially ordered set. Let B, C, and D be subsets of A.

  • Since BB, the relation ⊆ is reflexive.
  • Since BC and CB implies that B = C (Definition 3.3.7), ⊆ is antisymmetric.
  • Since BC and CD implies BD (Theorem 3.3.6), we see that ⊆ is transitive.

This example is in line with what we know about subsets. For instance, if AB, then we conclude that BA and AB, which is what we expect from the weak-trichotomy law (4.3.8).

Bounds

Let images be a partial order on A with elements m and m′ such that a images m and a images m′ for all aA. In particular, this implies that m images m′ and mimages m, so since images is antisymmetric, we conclude that m = m′. Similarly, if m images a and mimages a for all aA, then m = m′. This argument justifies the use of the word the in the next definition.

images DEFINITION 4.3.10

Let (A, images) be a poset and mA.

  • m is the least element of A (with respect to images) if m images a for all aA.
  • m is the greatest element of A (with respect to images) if a images m for all aA.

There is no guarantee that a partially ordered set will have a least or a greatest element. In Example 4.3.9, the greatest element of P(A) with respect to ⊆ is A and the least element is ∅. However, in Example 4.3.7 (Figure 4.5), the least element of images* is images, but there is no greatest element.

images EXAMPLE 4.3.11

If A is a finite set of real numbers, A has a least and a greatest element with respect to ≤. Under the partial order ≤, the set Z+ also has a least element but no greatest element, and both {5n : nZ} and Z have greatest elements but no least elements. To show that B = {5n : nZ+} has a least element with respect to ≤, use the fact that the least element of Z+ is 1. Therefore, the least element of B is 5 because 5 ∈ B and 5(1) ≤ 5n for all nZ+.

Some sets will not have a least or greatest element with a given partial order but there will still be elements that are considered greater or lesser than every element of the set.

images DEFINITION 4.3.12

Let images be a partial order on A and BA.

  • uA is an upper bound of B if b images u for all bB. The element u is the least upper bound of B if it is an upper bound and for all upper bounds u′ of B, u images u′.
  • lA is a lower bound of B if l images b for all bB. The element l is the greatest lower bound of B if it is a lower bound and for all lower bounds l′ of B, limages l.

In the definition we can write the word the because the order is antisymmetric.

images EXAMPLE 4.3.13

The interval (3, 5) is a subset of R. Under the partial order ≤, both 5 and 10 are upper bounds of this interval, while 5 is a least upper bound. Also, 3 and −π are lower bounds, but 3 is the greatest lower bound.

images EXAMPLE 4.3.14

Assume that imagesP(Z). Since the elements of images are subsets of Z, we conclude that images imagesP(Z) (Definition 3.4.8). If Aimages, then Aimages images. Therefore, images images is an upper bound of images with respect to ⊆. To see that it is the least upper bound, let U be any upper bound of images. Take ximages images. This means that there exists Dimages such that xD. Since U is an upper bound of images, DU. Hence, xU, and we conclude that images imagesU.

Comparable and Compatible Elements

In Figure 4.5, we see that 01 images 010 and 01 images 011. However, 010 images 011 and 011 images 010. This means that in the poset of Example 4.3.7, there are pairs of elements that are related to each other and there are other pairs that are not.

images DEFINITION 4.3.15

Let (A, images) be a poset and a, bA. If a images b or b images a, then a and b are comparable with respect to images. Elements of A are incomparable if they are not comparable.

Continuing our review of the partially ordered set of Example 4.3.7, we note that the element images has the property that no element is less than it, but as seen in Figure 4.5, for every element of images*, there exists an element of images* that is greater. However, that same relation defined on

images

has the property that 000, 001, 010, 011, 100, 101, 110, 111 have no elements greater than them. This leads to the next definition.

images DEFINITION 4.3.16

Let (A, images) be a poset and mA.

  • m is a minimal element of A (with respect to images) if a images m for all aA.
  • m is a maximal element of A (with respect to images) if m images a for all a ∈ A.

Therefore, the empty string is a minimal element of A (4.3), and 000, 001, 010, 011, 100, 101, 110, 111 are maximal. Notice that every least element is minimal and every greatest element is maximal.

Although not every pair of elements is comparable in the partially ordered set of Example 4.3.7, there are infinite sequences of comparable elements, such as

images

images DEFINITION 4.3.17

A subset C of the poset (A, images) is a chain with respect to images if a is comparable to b for all a, bC.

When Z is partially ordered by ≤, the sets {0, 1, 2, 3, ...}, {... , −3, −2, −1, 0}, and {... , −2, 0, 2, 4, ...} are chains. In P(Z), both

images

and

images

are chains with respect to ⊆.

images EXAMPLE 4.3.18

To see that {Ak : kZ+} where Ak = {xZ : (x − 1)(x − 2) · · · (xk) = 0} is a chain with respect to ⊆, take m, nZ+. By definition,

images

and

images

If mn, then AmAn, otherwise AnAm.

images EXAMPLE 4.3.19

Let C0 and C1 be chains of A with respect to images. Take a, bC0C1. Then, a, bC0, so a images b or b images a. Therefore, C0C1 is a chain. However, the union of two chains might not be a chain. For example, {{1}, {1, 2}} and {{1}, {1, 3}} are chains in (P(Z), ⊆), but {{1}, {1, 2}, {1, 3}} is not a chain because {1, 2} images {1, 3} and {1, 3} images {1, 2}.

The sets Z, Q, and R are chains of R with respect to ≤. In fact, any subset of R is a chain of R because subsets of chains are chains. This motivates the next definition.

images DEFINITION 4.3.20

The poset (A, images) is a linearly ordered set and images is a linear order if A is a chain with respect to images.

Since every subset A of R is a chain with respect to ≤, the relation ≤ is a linear order on A. Furthermore, since every pair of elements in a linear order are comparable, Theorem 4.3.8 can be strengthened.

images THEOREM 4.3.21 [Trichotomy Law]

If images is a linear order on A, for all a, bA, exactly one of the following are true: a images b, b images a, or a = b.

Although it is not the case that every pair of elements of the poset defined in Example 4.3.7 is comparable, it is the case that for any given pair of elements, there exists another element that is related to the given elements. For example, for the pair 100 and 110, 1 images 100 and 1 images 110. Also, for the pair 101 and 10, 10 images 101 and 10 images 10.

images DEFINITION 4.3.22

Let (A, images) be a poset. The elements a, bA are compatible if there exists cA such that c images a and c images b. If a and b are not compatible, they are incompatible and we write ab.

Observe that if a and b are comparable, they are also compatible. On the other hand, it takes some work to define a relation in which every pair of elements is incompatible.

images DEFINITION 4.3.23

A subset D of a poset (A, images) is an antichain with respect to images when for all a, bD, if ab, then ab.

The sets

images

and

images

are antichains of P(Z) with respect to ⊆.

Well-Ordered Sets

The notion of a linear order incorporates many of the properties of ≤ on N since ≤ is reflexive, antisymmetric, and transitive, and N is a chain with respect to ≤. However, there is one important property of (N, ≤) that is not included among those of a linear order. Because of the nature of the natural numbers, every subset of N that is nonempty has a least element. For example, 5 is the least element of {5, 7, 32, 99} and 2 is the least element of {2, 4, 6, 8, ... }. We want to be able to identify those partial orders that also have this property.

images DEFINITION 4.3.24

The linearly ordered set (A, images) is a well-ordered set and images is a well-order if every nonempty subset of A has a least element with respect to images.

According to Definition 4.3.24, (N, ≤) is a well-ordered set, but this fact about the natural numbers cannot be proved without making an assumption. Therefore, so that we have at least one well-ordered set with which to work, we assume the following.

images AXIOM 4.3.25

(N, ≤) is a well-ordered set.

Coupling Axiom 4.3.25 with the next theorem will yield infinitely many well-ordered sets.

images THEOREM 4.3.26

If (A, images) is well-ordered and B is a nonempty subset of A, then (B, images) is well-ordered.

PROOF

Let BA and B ≠ ∅. To prove that B is well-ordered, let CB and C ≠ ∅. Then, CA. Since images well-orders A, we know that C has a least element with respect to images. images

Because Z ∩ [5, ∞) ⊆ Z+N, by Axiom 4.3.25 and Theorem 4.3.26, both (Z+, ≤) and (Z ∩ [5, ∞), ≤) are well-ordered sets.

images EXAMPLE 4.3.27

Let A = { : nN}. To prove that A is well-ordered by ≤, let BA such that B ≠ ∅. This means that there exists a nonempty subset I of N such that B = [ : nI}. Since N is well-ordered, I has least element m. We claim that is the least element of B. To see this, take bB. Then, b = for some iI. Since m is the least element of I, mi. Therefore, = b.

To prove that a set A is not well-ordered by images, we must find a nonempty subset B of A that does not have a least element. This means that for every bB, there exists cB such that c images b. That is, there are elements bnB (nN) such that

images

This informs the next definition.

images DEFINITION 4.3.28

Let images be a partial order on A and B = {ai : iN} be a subset of A.

  • B is increasing means i < j implies ai images aj for all i, jN.
  • B is decreasing means i < j implies aj images ai for all i, jN.

If a set is well-ordered, it has a least element, but the converse is not true. To see this, consider A = {0, 1/2, 1/3, 1/4, ...}. It has a least element, namely, 0, but A also contains the decreasing set

images

Therefore, A has a subset without a least element, so A is not well-ordered. We summarize this observation with the following theorem, and leave its proof to Exercise 23.

images THEOREM 4.3.29

(A, images) is not a well-ordered set if and only if (A, images) does not have a decreasing subset.

Theorem 4.3.29 implies that any finite linear order is well-ordered.

images EXAMPLE 4.3.30

The decreasing sequence (4.4) with Theorem 4.3.29 shows that the sets (0, 1), [0, 1], Q, and {1/n : nZ+} are not well-ordered by ≤.

We close this section by proving two important results from number theory. Their proofs use Axiom 4.3.25. The strategy is to define a nonempty subset of a well-ordered set. Its least element r will be a number that we want. This least element also needs to have a particular property, say p(r). To show that it has the property, assume ¬p(r) and use this to find another element of the set that is less than r. This contradicts the minimality of r allowing us to conclude p(r).

images THEOREM 4.3.31 [Division Algorithm]

If m, nN with m ≠ 0, there exist unique q, rN such that r < m and n = mq + r.

PROOF

Uniqueness is proved in Example 2.4.14. To prove existence, take m, nN and define

images

Notice that nS, so S ≠ ∅. Therefore, S has a least element by Axiom 4.3.25. Call it r and write n = mq + r for some natural number q. Assume rm, which implies that rm ≥ 0. Also,

images

because

images

so rmS. Since r > rm because m is positive, r cannot be the minimum of S, a contradiction. images

The value q of the division algorithm (Theorem 4.3.31) is called the quotient and r is the remainder. For example, if we divide 5 into 17, the division algorithm returns a quotient of 3 and a remainder of 2, so we can write that 17 = 5(3) + 2. Notice that 2 < 3.

Call nZ a linear combination of the integers a and b if n = ua + vb for some u, vZ. Since 37 = 5(2) + 3(9), we see that 37 is a linear combination of 2 and 9. Furthermore, if d | a and d | b, then d | ua + vb. To see this, write a = dl and b = dk for some l, kZ. Then,

images

and this means d | ua + vb.

images THEOREM 4.3.32

Let a, bZ with not both equal to 0. If c = gcd(a, b), there exists m, nZ such that c = ma + nb.

PROOF

Define

images

Notice that T is not empty because a2 + b2T. By Axiom 4.3.25, T has a least element d, so write d = ma + nb for some m, nZ.

  • Since d > 0, the division algorithm (4.3.31) yields a = dq + r for some natural numbers q and r with r < d. Then,

    images

    If r > 0, then rT, which is impossible because d is the least element of T. Therefore, r = 0 and d | a. Similarly, d | b.

  • To show that d is the greatest of the common divisors, suppose s | a and s | b with sZ+. By definition, a = sk and b = sl for some k, lZ. Hence,

    images

    Thus, sd because s is nonzero and s divides d (Exercise 25). images

Exercises

1. Is (∅, ⊆) a partial order, linear order, or well order? Explain.

2. For each relation on {1, 2}, determine if it is reflexive, irreflexive, symmetric, asymmetric, antisymmetric, or transitive.

(a) {(1, 2)}

(b) {(1, 2), (2, 1)}

(c) {(1, 1), (1, 2), (2, 1)}

(d) {(1, 1), (1, 2), (2, 2)}

(e) {(1, 1), (1, 2), (2, 1), (2, 2)}

(f) ∅

3. Give an example of a relation that is neither symmetric nor asymmetric.

4. Let R be a relation on A. Prove that R is reflexive if and only if (A × A) R is irreflexive.

5. Show that a relation R on A is asymmetric if and only if RR−1 = ∅.

6. Let (A, images) and (B, ≤) be posets. Define ~ on A × B by

images

Show that ~ is a partial order on A × B.

7. For any alphabet images, prove the following.

(a) For all σ, τ, νimages*, images.

(b) There exists σ, τimages* such that images.

(c) images* has an identity with respect to images, but for all σimages*, there is no inverse for σ if σimages.

8. Prove that images* from Example 4.3.7 is partially ordered by images.

9. Prove that (P(A), ⊆) is not a linear order if A has at least three elements.

10. Show that (images*, images) is not a linear order if images has at least two elements.

11. Prove that the following families of sets are chains with respect to ⊆.

(a) {[0, n] : nZ+}

(b) {(2n)Z : nN} where (2n)Z = {2n · k : kZ}

(c) {Bn : nN} where Bn = images{Ai : iNin} and Ai is a set for all iN

12. Can a chain be disjoint or pairwise disjoint? Explain.

13. Suppose that {Ai : iN} is a chain of sets such that for all ij, AiAj. Prove for all kN.

(a) images{Ai : iNik} = Ak

(b) images{Ai : iNik} = A0

14. Let {An : nN} be a family of sets. For every mN, define Bm = images. Show that {Bm : mN} is a chain.

15. Let imagesi be a chain of the poset (A, images) for all iI. Prove that images is a chain. Is images necessarily a chain? Explain.

16. Let (A, images) and (B, ≤) be linear orders. Define ~ on A × B by

images

if and only if

images

This relation is called a lexicographical order since it copies the order of a dictionary.

(a) Prove that (A × B, ~) is a linear order.

(b) Suppose that (a, b) is a maximal element of A × B with respect to ~. Show that a is a maximal element of A with respect to images.

17. Let A be a set. Prove that BP(A) {∅} is an antichain with respect to ⊆ if and only if B is pairwise disjoint.

18. Prove the following true or false.

(a) Every well-ordered set contains a least element.

(b) Every well-ordered set contains a greatest element.

(c) Every subset of a well-ordered set contains a least element.

(d) Every subset of a well-ordered set contains a greatest element.

(e) Every well-ordered set has a decreasing subset.

(f) Every well-ordered set has a increasing subset.

19. For each of the given sets, indicate whether or not it is well-ordered by ≤. If it is, prove it. If it is not, find a decreasing sequence of elements of the set.

(a) {images, 5, 6, 10.56, 17, −100}

(b) {2n : nN}

(c) {π/n : nZ+}

(d) {π/n : nZ}

(e) {−4, −3, −2, −1, ...}

(f) Z ∩ (π, ∞)

(g) Z ∩ (−7, ∞)

20. Prove that (Z ∩ (x, ∞), ≤) is a well-ordered set for all xR.

21. Show that a well-ordered set has a unique least element.

22. Let (A, images) be a well-ordered set. If BA and there is an upper bound for B in A, then B has a greatest element.

23. Prove Theorem 4.3.29.

24. Where does the proof of Theorem 4.3.31 go wrong if m = 0?

25. Prove that if a | b, then ab for all a, bZ.

26. Let a, b, cZ. Show that if gcd(a, c) = gcd(b, c) = 1, then gcd(a, bc) = 1.

27. Let a, bZ and assume that gcd(a, b) = 1. Prove.

(a) If a | n and b | n, then ab | n.

(b) gcd(a + b, b) = gcd(a + b, a) = 1.

(c) gcd(a + b, ab) = 1 or gcd(a + b, ab) = 2.

(d) If c | a, then gcd(b, c) = 1.

(e) If c | a + b, then gcd(a, c) = gcd(b, c) = 1.

(f) If d | ac and d | bc, then d | c.

28. Let a, bZ, where at least one is nonzero. Prove that S = T if

images

and

images

29. Prove that if d | a and d | b, then d | gcd(a, b) for all a, b, dZ.

4.4 FUNCTIONS

From algebra and calculus, we know what a function is. It is a rule that assigns to each possible input value a unique output value. The common picture is that of a machine that when a certain button is pushed, the same result always happens. In basic algebra a relation can be graphed in the Cartesian plane. Such a relation will be a function if and only if every vertical line intersects its graphs at most once. This is known as the vertical line test (Figure 4.6). This criteria is generalized in the next definition.

images DEFINITION 4.4.1

Let A and B be sets. A relation fA × B is a function means that for all (x, y), (x′, y′) ∈ A × B,

images

The function f is an n-ary function if there exists sets A0, A1, ... , An−1 such that A = A0 × A1 × · · · × An−1. If n = 1, then f is a unary function, and if n = 2, then f is a binary function,

images EXAMPLE 4.4.2

The set {(1, 2), (4, 5), (6, 5)} is a function, but {(1, 2), (1, 5), (6, 5)} is not since it contains (1, 2) and (1, 5). Also, ∅ is a function (Exercise 16).

images

Figure 4.6 Passing the vertical line test.

images EXAMPLE 4.4.3

Define f = {(u, 1 + 2 cos πu) : uR}. Assume that both (x, 1 + 2 cos πx) and (x′, 1 + 2 cosπx′) are elements of f. Then, because cosine is a function,

images

Therefore, f is a function.

images EXAMPLE 4.4.4

The standard arithmetic operations are functions. For example, taking a square root is a unary function, while addition, subtraction, multiplication, and division are binary functions. To illustrate this, addition on Z is the set

images

Let fA × B be a function. This implies that for all aA, either [a]f = ∅ or [a]f is a singleton (Definition 4.2.7). For example, if f = {(1, 2), (4, 5), (6, 5)}, then [1]f = {2} and [3]f = ∅. Because [a]f can contain at most one element, we typically simplify the notation.

images DEFINITION 4.4.5

Let f be a function. For all aA, define

images

and write that f(a) is undefined if [a]f = ∅.

For example, using (4.5),

images

but A(5, π) is undefined. With ordered n-tuples, the outer parentheses are usually eliminated so that we write

images

Moreover, if DA is the domain of the function f, write the function notation

images

and call B a codomain of f (Figure 4.7). Because functions are often represented by arrows that “send” one element to another, a function can be called a map. If f(x) = y, we can say that “f maps x to y.” We can also say that y is the image of x under f and x is a pre-image of y. For example, if

images

images

Figure 4.7 Function notation.

f maps 3 to 1, 2 is the image of 4, and 5 is a pre-image of 2 (Figure 4.8). If g is also a function with domain D and codomain B, we can use the abbreviation

images

to represent both functions. An alternate choice of notation involves referring to the functions as DB.

images EXAMPLE 4.4.6

If f(x) = cos x, then f maps π to −1, 0 is the image of π/2, and π/4 is a pre-image of images/2.

images EXAMPLE 4.4.7

Let A be any set. The identity relation on A (Definition 4.1.2) is a function, so call IA the identity map and write

images

Sometimes a function f is defined using a rule that pairs an element of the function's domain with an element of its codomain. When this is done successfully, f is said to be well-defined. Observe that proving that f is well-defined is the same as proving it to be a function.

images

Figure 4.8 The map f = {(3, 1), (4, 2), (5, 2)}.

images EXAMPLE 4.4.8

Let f : RR be defined by f(x) = 1 + 2 cos πx. This is the function

images

The work of Example 4.4.3 shows that f is well-defined.

Before we examine another example, let us set a convention on naming functions. It is partly for aesthetics, but it does help in organizing functions based on the type of elements in their domains and ranges.

  • Use English letters (usually, f, g, and h) for naming functions that involve numbers. Typically, these will be lowercase, but there are occasions when we will choose them to be uppercase.
  • Use Greek letters (often φ or ψ) for general functions or those with domains not consisting of numbers. They are also usually lowercase, but uppercase Greek letters like Φ and Ψ are sometimes appropriate. (See the appendix for the Greek alphabet.)

images EXAMPLE 4.4.9

Let n, mZ+ such that m | n. Define φ([a]n) = [a]m for all aZ. This means that

images

It is not clear that φ is well-defined since an equivalence class can have many representatives, so assume that [a]n = [b]n for a, bZ. Therefore, n | ab. Then, by hypothesis, m | ab, and this yields

images

images EXAMPLE 4.4.10

Let xR. Define the greatest integer function as

images

For example, images5images = 5, images1.4images = 1, and images−3.4images = −4. The greatest integer function is a function RZ. It is well-defined because the relation ≤ well-orders Z (Exercise 4.3.22).

If a relation on R is not a function, it will fail the vertical line test (Figure 4.9). To generalize, let φA × B. To show that φ is not a function, we must show that there exists (x, y1), (x, y2) ∈ φ such that y1y2.

images EXAMPLE 4.4.11

The relation f = IR ∪ {(x, −x) : xR} is not a function since (4, 4) ∈ f and (4, −4) ∈ f.

images

Figure 4.9 The relation is not a function.

images EXAMPLE 4.4.12

Define φZ2 × Z3 by φ([a]2) = [a]3 for all aZ. Since 3 does not divide 2, φ is not well-defined. This is proved by noting that [0]2 = [2]2 but [0]3 ≠ [2]3.

There will be times when we want to examine sets of functions. If each function is to have the same domain and codomain, we use the following notation.

images DEFINITION 4.4.13

If A and B are sets,

images

For instance, AB is a set of real-valued functions if A, BR.

images EXAMPLE 4.4.14

If an is a sequence of real numbers with n = 0, 1, 2, ... , the sequence an is an element of NR. Illustrating this, the sequence

images

is a function and can be graphed as in Figure 4.10.

images EXAMPLE 4.4.15

Let AR and fix aA. The evaluation map,

images

is defined as

images

images

Figure 4.10 an = (−1/2)n is a function.

For example, if g(x) = x2, then images3(g) = 9. Observe that the evaluation map is an element of images.

Equality

Since functions are sets, we already know that two functions are equal when they contain the same ordered pairs. However, there is a common test to determine function equality other than a direct appeal to Definition 3.3.7.

images THEOREM 4.4.16

Functions φ, ψ : AB are equal if and only if φ(x) = ψ(x) for all xA.

PROOF

Sufficiency is clear, so to prove necessity suppose that φ(x) = ψ(x) for every xA. Take (a, b) ∈ φ. This means that φ(a) = b. By hypothesis, ψ(a) = b, which implies that (a, b) ∈ ψ. Hence, φg. The proof of ψφ is similar, so φ = g. images

We use Theorem 4.4.16 in the next examples.

images EXAMPLE 4.4.17

Let f and g be functions RR defined by

images

and

images

We show that f = g by taking xR and calculating

images

images EXAMPLE 4.4.18

Let φ, ψ : ZZ6 be functions such that

images

and

images

Take nZ. We show that [n + 12]6 = [n]6 by proceeding as follows:

images

Therefore, φ = ψ.

images EXAMPLE 4.4.19

Define

images

by ψ(x) = imagesx for all xR (Example 4.4.15). We show that ψ is well-defined. Take a, bR and assume that a = b. To show that ψ(a) = ψ(b), we prove imagesa = imagesb. Therefore, let fRR. Since f is a function and a, b ∈ dom(f), we have that f(a) = f(b). Thus,

images

By Theorem 4.4.16, we see that two functions f and g are not equal when either dom(f) ≠ dom(g) or f(x) ≠ g(x) for some x in their common domain. For example, f(x) = x2 and g(x) = 2x are not equal because f(3) = 9 and g(3) = 6. Although these two functions differ for every x ≠ 0 and x ≠ 2, it only takes one inequality to prove that the functions are not equal. For example, if we define

images

then fh since f(0) = 0 and h(0) = 7.

Composition

We now consider the composition of relations when those relations are functions.

images THEOREM 4.4.20

If φ : AB and ψ : CD are functions such that ran(φ) ⊆ C, then ψ images φ is a function AD and (ψ images φ)(x) = ψ(φ(x)).

PROOF

Because the range of φ is a subset of C, we know that φA × C and ψC × D. Let (a, d1), (a, d2) ∈ ψ images φ. This means by Definition 4.1.9 that there exists c1, c2C such that (a, c1), (a, c2) ∈ φ and (c1, d1), (c2, d2) ∈ ψ. Since φ is a function, c1 = c2, and then since ψ is a function, d1 = d2. Therefore, ψ images φ is a function, which is clearly AD. Furthermore,

images

Hence, (ψ images φ)(x) = ψ(φ(x)). images

The ran(φ) ⊆ C condition is important to Theorem 4.4.20. For example, take the real-valued functions f(x) = x and g(x) = images. Since f(−1) = −1 but g(−1) ∉ R, we conclude that (g images f)(−1) is undefined.

images EXAMPLE 4.4.21

Define the two functions f : RZ and g : R {0} → R by f(x) = imagesximages and g(x) = 1/x. Since ran(f) = Z images dom(g), there are elements of R for which g images f is undefined. However,

images

so f images g is defined and for all xR,

images

images EXAMPLE 4.4.22

Let ψ : ZZZ be defined by ψ(f) = images3(f) and also let φ : ZZ7 be φ(n) = [n]7. Since ran(ψ) ⊆ dom(φ), φ images ψ is defined. Thus, if g : ZZ is defined as g(n) = 3n,

images

We should note that function composition is not a binary operation unless both functions are AA for some set A. In this case, function composition is a binary operation on AA.

Restrictions and Extensions

There are times when a subset of a given function is required. For example, consider

images

If only positive values of x are required, we can define

images

so that gf. We have notation for this.

images DEFINITION 4.4.23

Let φ : AB be a function and CA.

  • The restriction of φ to C is the function φ images C : CB so that

    images

  • The function ψ : DE is an extension of φ if AD, BE, and ψ images A = φ.

images EXAMPLE 4.4.24

Let f = {(1, 2), (2, 3), (3, 4), (4, 1)} and g = {(1, 2), (2, 3)}. We conclude that g = f images {1, 2}, and f is an extension of g.

images EXAMPLE 4.4.25

Let φ : UV be a function and A, BU. We conclude that

images

because

images

Binary Operations

Standard addition and multiplication of real numbers are functions R × RR (Example 4.4.4). This means two things. First, given any two real numbers, their sum or product will always be the same number. For instance, 3+5 is 8 and never another number. Second, given any two real numbers, their sum or product is also a real number. Notice that subtraction also has these two properties when it is considered an operation involving real numbers, but when we restrict substraction to Z+, it no longer has the second property because the difference of two positive integers might not be a positive integer. That is, subtraction is not a function Z+ × Z+Z+.

images DEFINITION 4.4.26

A binary operation * on the nonempty set A is a function A × AA.

The symbol that represents the addition function is +. It can be viewed as a function RR. Therefore, using function notation, +(3, 5) = 8. However, we usually write this as 3 + 5 = 8. Similarly, since * represents an operation like addition, instead of writing * (a, b), we usually write a * b,

To prove that a relation * is a binary operation on A, we must show that it satisfies Definition 4.4.26. To do this, take a, a′, b, b′ ∈ A, and prove:

  • a = a′ and b = b′ implies a * b = a′ * b′,
  • A is closed under *, that is a * bA.

images EXAMPLE 4.4.27

Define x * y = 2xy and take a, a′, b, b′ ∈ Z.

  • Assume a = a′ and b = b′. Then,

    images

    The second equality holds because multiplication and subtraction are binary operations on Z.

  • Because the product and difference of two integers is an integer, we have that a * bZ, so Z is closed under *.

Thus, * is a binary operation on Z.

images EXAMPLE 4.4.28

Let S = {e, a, b, c} and define * by the following table:

images

The table is read from left to right, so b * c = a. The table makes * into a binary operation since every pair of elements of S is assigned a unique element of S.

images EXAMPLE 4.4.29

Fix a set A. For any X, YP(A), define X * Y = XY.

  • Let X1, X2, Y1, Y2P(A). If we assume that X1 = X2 and Y1 = Y2, we have X1Y1 = X2Y2. Hence, * is well-defined.
  • To show that P(A) is closed under *, let B and C be subsets of A. Then B * C = BCP(A) because BCA [Exercise 3.3.10(a)].

This shows that * is a binary operation on P(A). Notice that * is a subset of [P(A) × P(A)] × P(A).

images EXAMPLE 4.4.30

Let mZ+ and define [a]m + [b]m = [a + b]m. We show that this is a binary operation on Zm.

  • Let a1, a2, b1, b2Z. Suppose [a1]m = [a2]m and [b1]m = [b2]m. This means that a1 = a2 + nk and b1 = b2 + nl for some k, lZ. Hence, a1 + b1 = a2 + b2 + n(k + l), and we have [a1 + b1]m = [a2 + b2]m.
  • For closure, let [a]m, [b]mZm where a and b are integers. Then, we have that [a]m + [b]m = [a + b]mZm since a + b is an integer.

Many binary operations share similar properties with the operations of + and × on R. The next definition gives four of these properties.

images DEFINITION 4.4.31

Let * be a binary operation on A.

  • * is associative means that (a * b) * c = a * (b * c) for all a, b, cA.
  • * is commutative means that a * b = b * a for all a, b ∈ A.
  • The element e is an identity of A with respect to * when eA and e * a = a * e = a for all aA.
  • Suppose that A has an identity e with respect to * and let aA. The element a′ ∈ A is an inverse of a with respect to * if a * a′ = a′ * a = e.

Notice that the identity, if it exists, must be unique. To prove this, suppose that both e and e′ are identities. These must be equal because e = e * e′ = e′. So, if a set has an identity with respect to an operation, we can refer to it as the identity of the set. Similarly, we can write the inverse if it exists for associative binary operations (Exercise 20).

images EXAMPLE 4.4.32

We assume that + and × are both associative and commutative on C and all subsets of C, that 0 is the identity with respect to + (the additive identity) and 1 is the identity with respect to × (the multiplicative identity), and that every complex number has an inverse with respect to + (an additive inverse) and every nonzero complex number has an inverse with respect to × (a multiplicative inverse).

images EXAMPLE 4.4.33

The binary operation defined in Example 4.4.30 is both associative and commutative. To see that it is commutative, let a, bZ. Then,

images

where the second equality holds because + is commutative on Z. Its identity is [0]m [let b = 0 in (4.6)] and the additive inverse of [a]m is [−a]m.

images EXAMPLE 4.4.34

Since AB = BA and (AB) ∪ C = A ∪ (BC) for all sets A, B, and C, the binary operation in Example 4.4.29 is both associative and commutative. Its identity is ∅, and only ∅ has an inverse.

Exercises

1. Indicate whether each of the given relations are functions. If a relation is not a function, find an element of its domain that is paired with two elements of its range.

(a) {(1, 2), (2, 3), (3, 4), (4, 5), (5, 1)}

(b) {(1, 1), (1, 2), (1, 3), (1, 4), (1, 5)}

(c) {(x, images : xR}

(d) {(x, ±images) : xR}

(e) {(x, x2) : xR}

(f) {([a]5, b) : ∃kZ(a = b + 5k)}

(g) ψ : ZZ5 if ψ(a) = [a]5

2. Prove that the given relations are functions.

(a) {(x, 1/x) : xR {0}}

(b) {(x, x + 1) : xZ}

(c) {(x |x|) : xR}

(d) {(x, images) : x ∈ [0, ∞)}

3. Let f = {(x, y) ∈ R2 : 2x + y = 1}. Show that f is a function with domain and codomain equal to the set of real numbers.

4. Let f, g : RR be functions. Prove that φ(x, y) = (f(x), g(y)) is a function with domain and codomain equal to R × R.

5. Let A be a set and define ψ(A) = P(A). Show that ψ is a function.

6. Define

images

Show that f is well-defined with domain equal to R. What is ran(f)?

7. Let x be in the domain and y in the range of each relation. Explain why each of the given equations does not describe a function.

(a) y = 5 ± x

(b) x2 + y2 = 1

(c) x = 4y2 − 1

(d) y2x2 = 9

8. Let φ : ZZ7 be defined by φ(a) = [a]7. Write the given images as rosters.

(a) φ(0)

(b) φ(7)

(c) φ(3)

(d) φ(−3)

9. Define φ([a]n) = [a]m for all aZ. Is φ being function sufficient for m | n? Explain.

10. Give an example of a function that is an element of the given sets.

(a) RR

(b) RZ

(c) NR

(d) R[0, ∞)

(e) Z(Z5)

11. Evaluate the indicated expressions.

(a) images4(f) if f(x) = 9x + 2

(b) imagesπ(g) if g(θ) = sin θ

12. Since functions are sets, we can perform set operations on them. Let f(x) = x2 and g(x) = −x. Find the following.

(a) fg

(b) fg

(c) f g

(d) g f

13. Let images be a chain of functions with respect to ⊆. Prove that images images is a function.

14. Let f and g be functions. Prove the following.

(a) If f and g are functions, fg is a function.

(b) fg is a function if and only if f(x) = g(x) for all x ∈ dom(f) ∩ dom(g).

15. Let f : AB be a function. Define a relation S on A by a S b if and only if f(a) = f (b).

(a) Show S is an equivalence relation.

(b) Find [3]S if f : ZZ is defined by f(n) = 2n.

(c) Find [2]S if f : ZZ5 is given by f(n) = [n]5.

16. Show that ∅ is a function and find its domain and range.

17. Define * by x * y = x + y + 2 for all x, yZ.

(a) Show that * is a binary operation on Z.

(b) Prove that −2 is the identity of Z with respect to *.

(c) For every nZ, show that −n − 4 is the inverse of n with respect to *.

18. Define the binary operation * by x * y = 2xy for all x, yZ.

(a) Is there an integer that serves as an identity with respect to *?

(b) Does every integer have an inverse with respect to *?

19. Let f, g : RR be functions. Prove that f images g is well-defined.

20. For an associative binary operation, prove that the inverse of an element is unique if it exists. Show that this might not be the case if the binary operation is not associative.

21. Prove that the given pairs of functions are equal.

(a) f(x) = (x − 1)(x − 2)(x + 3) and g(x) = x3 − 7x + 6

where f, g : RR

(b) φ(a, b) = a + b and ψ(a, b) = b + a

where φ, ψ : Z × ZZ

(c) φ(a, b) = ([a]5, [b + 7]5 and ψ(a, b) = ([a + 5]5, [b − 3]5)

where φ, ψ : Z × ZZ5 × Z5

(d) φ(f) = f images Z and ψ(f) = {(n, f(n)) : nZ}

where φ, ψ : RRZR

22. Show that the given pairs of functions are not equal.

(a) f(x) = x and g(x) = 2x where f, g : RR

(b) f(x) = x − 3 and g(x) = x + 3 where f, g : RR

(c) φ(a) = [a]5 and ψ(a) = [a]4 where φ, ψ : ZZ4Z5

(d) φ(A) = A {0} and ψ(A) = A ∩ {1, 2, 3} where φ, ψ : P(Z) → P(Z)

23. Let ψ : RRR be defined by ψ(a) = fa where fa is the function fa : RR with fa(x) = ax. Prove that ψ is well-defined.

24. For each pair of functions, find the indicated values when possible.

(a) f : RR and f(x) = 2x3

g : RR and g(x) = x + 1

(f images g)(2)

(g images f)(0)

(b) f : [0, ∞) → R and f(x) = images

g : RR and g(x) = |x| − 1

(f images g)(0)

(g images f)(4)

(c) φ : ZZ5 and φ(a) = [a]5

ψ : RRR and ψ(f) = f(0)

(φ images ψ)(.5x + 1)

(ψ images φ)(2)

25. For each of the given functions, find the composition of the function with itself. For example, find f images f for part (a).

(a) f : RR with f(x) = x2

(b) g : RR with g(x) = 3x + 1

(c) φ : Z × ZZ × Z with φ(x, y) = (2y, 5xy)

(d) ψ : ZmZm with ψ([n]m) = [n + 2]m

26. Let φ : AB be a function and ψ = φ images C where CA. Prove that if ι : CA is defined by ι(c) = c (known as the inclusion map), then ψ = φ images ι.

27. Write the given restrictions as rosters.

(a) {(1, 2), (2, 2), (3, 4), (4, 7)} images {1, 3}

(b) f images {0, 1, 2, 3} where f(x) = 7x − 1 and dom(f) = R

(c) (g + h) images {−3.3, 1.2, 7} where g(x) = imagesximages, h(x) = x + 1, and both dom(g) and dom(h) equal R

28. For functions f and g such that A, B ⊆ dom(f), prove the following.

(a) f images A = f ∩ [A × ran(f)]

(b) f images (AB) = (f images A) ∩ (f images B)

(c) f images (A B) = (f images A) (f images B)

(d) (g images f) images A = g images (f images A)

29. Let f : UV be a function. Prove that if AU, then f images A = f images IA.

30. Let φ : ACBC be defined by φ(f) = f images B. Prove that φ is well-defined.

31. A real-valued function f is periodic if there exists k > 0 so that f(x) = f(x + k) for all x ∈ dom(f). Let g, h : RR be functions with period k. Prove that g images h is periodic with period k.

32. Let (A, images) be a poset. A function φ : AA is increasing means for all x, yA, if x images y, then φx images φ(y). A decreasing function is defined similarly. Suppose that σ and τ are increasing. Prove that σ images τ is increasing.

4.5 INJECTIONS AND SURJECTIONS

When looking at relations, we studied the concept of an inverse relation. Given R, obtain R−1 by exchanging the x- and y-coordinates. The same can be done with functions, but the inverse might not be a function. For example, given

images

its inverse is

images

However, if the original relation is a function, we often want the inverse also to be a function. This leads to the next definition.

images DEFINITION 4.5.1

φ : AB is invertible means that φ−1 is a function BA.

An immediate consequence of the definition is the next result.

images LEMMA 4.5.2

Let φ be invertible. Then, φ(x) = y if and only if φ−1(y) = x for all x ∈ dom(φ).

PROOF

Suppose that φ(x) = y. This means that (x, y) ∈ φ, so (y, x) ∈ φ−1. Since φ is invertible, φ−1 is a function, so write φ−1(y) = x. The converse is proved similarly. images

We use Lemma 4.5.2 in the proof of the next theorem, which gives conditions for when a function is invertible.

images THEOREM 4.5.3

φ : AB is invertible if and only if φ−1 images φ = IA and φ images φ−1 = IB.

PROOF

Take a function φ : AB. Then, φ−1B × A.

  • Assume that φ−1 is a function BA. Let xA and yB. By assumption, we have x0A and y0B such that φ(x) = y0 and φ−1(y) = x0. This implies that φ−1(y0) = x and φ(x0) = y by Lemma 4.5.2. Therefore,

    images

    and

    images

  • Now assume φ−1 images φ = IA and φ images φ−1 = IB. To show that φ−1 is a function, take (y, x), (y, x′) ∈ φ−1. From this, we know that (x, y) ∈ φ. Therefore,

    images

    so x = x′. In addition, we know that dom(φ−1) ⊆ B, so to prove equality, let yB. Then,

    images

    Thus, there exists xA such that (y, x) ∈ φ−1, so y ∈ dom(φ−1). images

images EXAMPLE 4.5.4

  • Let f : RR be the function given by f(x) = x + 2. Its inverse is g(x) = x − 2 by Theorem 4.5.3. This is because

    images

    and

    images

  • If the function g : [0, ∞) → [0, ∞) is defined by g(x) = x2, then g−1 is a function [0, ∞) → [0, ∞) and is defined by g−1(x) = images.
  • Let h : R → (0, ∞) be defined as h(x) = ex. By Theorem 4.5.3, we know that h−1(x) = ln x because elnx = x for all x ∈ [0, ∞) and ln ex = x for all xR.

Injections

Theorem 4.5.3 can be improved by finding a condition for the invertibility of a function based only on the given function. Consider the following. In order for a relation to be a function, it cannot look like Figure 4.9. Since the inverse exchanges the roles of the two coordinates, in order for an inverse to be a function, the original function cannot look like the graph in Figure 4.11. In other words, if f−1 is to be a function, there cannot exist x1 and x2 so that x1x2 and f(x1) = f(x2). But then,

images

is equivalent to

images

which in turn is equivalent to

images

Hence, f being an invertible function implies that for every x1, x2 ∈ dom(f),

images

images

Figure 4.11 The inverse of a function might not be a function.

images

Figure 4.12 φ is a one-to-one function.

This means that the elements of the domain of f and the elements of the range of f form pairs of elements as illustrated in Figure 4.12. The sufficiency of (4.7) is the definition of a function, while necessity is the next definition.

images DEFINITION 4.5.5

The function φ : AB is one-to-one if and only if for all x1, x2A,

images

A one-to-one function is sometimes called an injection.

images EXAMPLE 4.5.6

Define f : RR by f(x) = 5x+1. To show that f is one-to-one, let x1, x2R and assume f(x1) = f(x2). Then,

images

images EXAMPLE 4.5.7

Let φ : Z × ZZ × Z × Z be the function

images

For any (a1, b1), (a2, b2) ∈ Z × Z, assume

images

This means that

images

Hence, a1 = a2 and b1 = b2, and this yields (a1, b1) = (a2, b2).

images

Figure 4.13 φ is not a one-to-one function.

If a function is not one-to-one, there must be an element of the range that has at least two pre-images (Figure 4.13). An example of a function that is not one-to-one is f(x) = x2 where both the domain and codomain of f are R. This is because f (2) = 4 and f(−2) = 4. Another example is g : RR defined by g(θ) = cos θ. It is not an injection because g(0) = g(2π) = 1.

Although the original function might not be one-to-one, we can always restrict the function to a subset of its domain so that the resulting function is one-to-one. This is illustrated in the next two examples.

images EXAMPLE 4.5.8

Let f be the function {(1, 5), (2, 8), (3, 8), (4, 6)}. We observe that f is not one-to-one, but both

images

and

images

are one-to-one as in Figure 4.14.

images

Figure 4.14 Restrictions of f to A and B are one-to-one.

images EXAMPLE 4.5.9

Let g : RR be the function g(x) = x2. This function is not one-to-one, but g images [0, ∞) and g images (−10, −5) are one-to-one.

Let f(x) = 3x + 6 and g(x) = images. Both are injections. Notice that

images

and

images

are also injections. We can generalize this result to the next theorem.

images THEOREM 4.5.10

If φ : AB and ψ : BC are injections, ψ images φ is an injection.

PROOF

Assume that φ : AB and ψ : BC are one-to-one. Let a1, a2A and assume (ψ images φ)(a1) = (ψ images φ)(a2). Then,

images

Since ψ is one-to-one,

images

and since φ is one-to-one, a1 = a2. images

Surjections

The function being an injection is not sufficient for it to be invertible since it is possible that not every element of the codomain will have a pre-image. In this case, the codomain cannot be the domain of the inverse. To prevent this situation, we will need the function to satisfy the next definition.

images DEFINITION 4.5.11

A function φ : AB is onto if and only if for every yB, there exists xA such that φ(x) = y. An onto function is also called a surjection.

This definition is related to the range (or image) of the function. The range of the function φ : AB is

images

as illustrated in Figure 4.15. Thus, φ is onto if and only if ran(φ) = B.

images EXAMPLE 4.5.12

Define f : [0, ∞) → [0, ∞) by f(x) = images. Its range is also [0, ∞), so it is onto.

images

Figure 4.15 The range of φ : AB with y = φ(x).

images EXAMPLE 4.5.13

The ranges of the following functions are different from their codomains, so they are not onto.

  • Let g : RR be defined by g(x) = |x|. Then, ran(g) = [0, ∞).
  • Define h : ZZ by h(n) = 2n. Here, ran(h) = {2n : nZ}.

The functions illustrated in Figures 4.12, 4.13, and 4.14 are onto functions as are those in the next examples.

images EXAMPLE 4.5.14

Any linear function f : RR that is not a horizontal line is a surjection. To see this, let f(x) = ax + b for some a ≠ 0. Take yR. We need to find xR so that ax + b = y. Choose

images

Then,

images

The approach in the example is typical. To show that a function is onto, take an arbitrary element of the codomain and search for a candidate to serve as its pre-image. When found, check it.

images EXAMPLE 4.5.15

Take a positive integer m and let φ : ZZm be defined as φ(k) = [k]m. To see that φ is onto, take [l]mZm for some lZ. We then find that φ(l) = [l]m.

images EXAMPLE 4.5.16

Let m, nN with m > n. A function π : RmRn defined by

images

is called a projection.. Such functions are not one-to-one, but they are onto. For instance, define π : R × R × RR × R by

images

It is not one-to-one because π(1, 2, 3) = π(1, 2, 4) = (1, 2). However, if we take (a, b) ∈ R × R, then π(a, b, 0) = (a, b), so π is onto.

If a function is not onto, it has a diagram like that of Figure 4.16. Therefore, to show that a function is not a surjection, we must find an element of the codomain that does not have a pre-image.

images EXAMPLE 4.5.17

Define f : ZZ by f(n) = 3n. This function is not onto because 5 does not have a pre-image in Z.

images EXAMPLE 4.5.18

The function

images

defined by φ(a, b) = (a, b, 0) is not onto because (1, 1, 1) does not have a pre-image in Z × Z.

We have the following analog of Theorem 4.5.10 for surjections.

images THEOREM 4.5.19

If φ : AB and ψ : BC are surjections, ψ images φ is a surjection.

PROOF

Assume that φ : AB and ψ : BC are surjections. Take cC. Then, there exists bB so that ψ(b) = c and aA such that φ(a) = b. Therefore,

images

images

Figure 4.16 φ is not a onto function.

Bijections

If we have a function that is both one-to-one and onto, then it is called a bijection or a one-to-one correspondence. Observe that ∅ is a bijection.

images EXAMPLE 4.5.20

As illustrated in Examples 4.5.6 and 4.5.14, every linear f : RR with nonzero slope is a bijection.

images EXAMPLE 4.5.21

Both g : (−π/2, π/2) → R such that g(θ) = tan θ and h : R → (0, ∞) where h(x) = ex are bijections.

We are now ready to give the standard test for invertibility. Its proof requires both Lemma 4.5.2 and Theorem 4.5.3. The benefit of this theorem is that it provides a test for invertibility in which the given function is examined instead of its inverse.

images THEOREM 4.5.22

A function is invertible if and only if it is a bijection.

PROOF

Let φ : AB be a function.

  • Suppose that φ is invertible. To show that φ is one-to-one, let x1, x2A and assume that φ(x1) = φ(x2). Then, by Theorem 4.5.3,

    images

    To see that φ is onto, take yB. Then, there exists xA such that φ−1(y) = x. Hence, φ(x) = y by Lemma 4.5.2.

  • Assume that φ is both one-to-one and onto. To show that φ−1 is a function, let (y, x), (y, x′) ∈ φ−1. This implies that φ(x) = y = φ(x′). Since φ is one-to-one, x = x′. To prove that the domain of φ−1 is B, take yB. Since φ is onto, there exists xA such that φ(x) = y. By Lemma 4.5.2, we have that φ−1(y) = x, so y ∈ dom(φ−1). images

By Theorem 4.5.22 the functions of Examples 4.5.20 and 4.5.21 are invertible.

images THEOREM 4.5.23

If φ : AB and ψ : BC are bijections, then φ−1 and ψ images φ are bijections.

PROOF

Suppose φ is a bijection. By Theorem 4.5.22, it is invertible, so φ−1 is a function that has φ as its inverse. Therefore, φ−1 is a bijection by Theorem 4.5.22. Combining the proofs of Theorems 4.5.10 and 4.5.19 show that ψ images φ is a bijection when ψ is a bijection. images

Using the functions g and h from Example 4.5.21, we conclude from Theorem 4.5.23 that h images g is a bijection with domain (−π/2, π/2) and range (0, ∞).

Order Isomorphims

Consider the function

images

defined by φ(m, 0) = (0, m). It can be shown that φ is a bijection (compare Exercise 12). Define the linear orders images on Z × {0} and images′ on {0} × Z by

images

and

images

Notice that (3, 0) images (5, 0) and (0, 3) images′ (0, 5) because 3 ≤ 5. We can generalize this to conclude that

images

and this implies that

images

This leads to the next definition.

images DEFINITION 4.5.24

Let R be a relation on A and S be a relation on B.

  • φ : AB is an order-preserving function if for all a1, a2A,

    images

    and we say that φ preserves R with S.

  • An order-preserving bijection is an order isomorphism.
  • (A, R) is order isomorphic to (B, S) and we write (A, R) ≅ (B, S) if there exists an order isomorphism φ : AB preserving R with S. If (A, R) ≅ (B, S) and the relations R and S are clear from context, we can write AB. Sometimes (A, R) and (B, S) are said to have the same order type when they are order isomorphic.

An isomorphism pairs elements from two sets in such a way that the orders on the two sets appear to be the same.

images EXAMPLE 4.5.25

Define f : R+R by f(x) = −x (Example 3.1.12). Clearly, f is a bijection. Moreover, f preserved ≤ with ≥. To prove this, let x1, x2R+. Then,

images

Therefore, (R+, ≤) ≅ (R, ≥).

Observe that the inverse of (4.8) is the function

images

such that φ−1(0, m) = (m, 0). This function preserves images′ with images. This result is generalized and proved in the next theorem.

images THEOREM 4.5.26

The inverse of an order isomorphism preserving R with S is an order isomorphism preserving S with R.

PROOF

Let φ : AB be an order isomorphism preserving R with S. By Theorem 4.5.23, φ−1 is a bijection. Suppose that (b1, b2) ∈ S. Since φ is onto, there exists a1, a2A such that φ(a1) = b1 and φ(a2) = b2. This implies that (φ(a1), φ(a2)) ∈ S. Since φ is an isomorphism preserving R with S, we have that (a1, a2) ∈ R. However, a1 = φ−1(b1) and a2 = φ−1(b2), so (φ−1(b1), φ−1(b2)) ∈ R. Therefore, φ−1 : BA is an isomorphism preserving S with R. images

Also, observe that g : R → (0, ∞) defined by g(x) = ex is an order isomorphism preserving ≤ with ≤. Using f from Example 4.5.25, the composition f images g is an order isomorphism R → (−∞, 0) such that (f images g)(x) = −ex. That this happens in general is the next theorem. Its proof is left to Exercise 25.

images THEOREM 4.5.27

If φ : AB is an isomorphism preserving R with S and ψ : BC is an isomorphism preserving S with T, then ψ images φ : AC is an isomorphism preserving R with T.

images EXAMPLE 4.5.28

Let R be a relation on A, S be a relation on B, and T be a relation on C.

  • Since the identity map is an order isomorphism, (A, R) ≅ (A, R).
  • Suppose (A, R) ≅ (B, S). This means that there exists an order isomorphism φ : AB preserving R with S. By Theorem 4.5.26, φ−1 is an order isomorphism preserving S with R. Therefore, (B, S) ≅ (A, R).
  • Let (A, R) ≅ (B, S) and (B, S) ≅ (C, T). By Theorem 4.5.27, we conclude that (A, R) ≅ (C, T).

If an order-preserving function is one-to-one, even it is not a surjection, the function still provides an order isomorphism between its domain and range. This concept is named by the next definition.

images DEFINITION 4.5.29

φ : AB is an embedding if φ is an order isomorphism A → ran(φ).

For example, f : ZQ such that f(n) = n is an embedding preserving ≤ and π : R2R3 such that ψ(x, y) = (x, y, 0) is an embedding preserving the lexicographical order (Exercise 4.3.16). Although R2 is not a subset of R3, we view the image of ψ as a copy of R2 in R3 that preserves the orders.

Exercises

1. Show that the given pairs of functions are inverses.

(a) f(x) = 3x + 2 and g(x) = images

(b) φ(a, b) = (2a, b + 2) and ψ(a, b) = (imagesa, b − 2)

(c) f(x) = ax and g(x) = loga x, where a > 0

2. For each function, graph the indicated restriction.

(a) f images (0, ∞), f(x) = x2

(b) g images [−5, −2], g(x) = |x|

(c) h images [0, π/2], h(x) = cos x

3. Prove that the given functions are one-to-one.

(a) f : RR, f(x) = 2x + 1

(b) g : R2R2, g(x, y) = (3y, 2x)

(c) h : R {9} → R {0}, h(x) = 1/(x − 9)

(d) φ : Z × RZ × (0, ∞), φ(n, x) = (3n, ex)

(e) ψ : P(A) → P(B), ψ(C) = C ∪ {b} where AB and bB A

4. Let f : (a, b) → (c, d) be defined by

images

Graph f and show that it is a bijection.

5. Let f and g be functions such that ran(g) ⊆ dom(f).

(a) Prove that if f images g is one-to-one, g is one-to-one.

(b) Give an example of functions f and g such that f images g is one-to-one, but f is not one-to-one.

6. Define φ : ZZm by φ(k) = [k]m. Show that φ is not one-to-one.

7. Show that the given functions are not one-to-one.

(a) f : RR, f(x) = x4 + 3

(b) g : RR, g(x)= |x − 2| + 4

(c) φ : P(A) → {{a}, ∅}, φ(B) = B ∩ {a}, where aA and A has at least two elements

(d) images5 : RRR, images5(f) = f(5)

8. Let f : RR be periodic (Exercise 4.4.31). Prove that f is not one-to-one.

9. Show that the given functions are onto.

(a) f : RR, f(x) = 2x + 1

(b) g : R → (0, ∞), g(x) = ex

(c) h : R {0} → R {0}, h(x) = 1/x

(d) φ : Z × ZZ, φ(a, b) = a + b

(e) images5 : RRR, images5(f) = f(5)

10. Show that the given functions are not onto.

(a) f : RR, f(x) = ex

(b) g : RR, g(x) = |x|

(c) φ : Z × ZZ × Z, φ(a, b) = (3a, b2)

(d) ψ : RRR, ψ(a) = f, where f(x) = a for all xR

11. Let f and g be functions such that ran(g) ⊆ dom(f).

(a) Prove that if f images g is onto, then f is onto.

(b) Give an example of functions f and g such that f images g is onto, but g is not onto.

12. Define φ : Q × ZZ × Q by φ(x, y) = (y, x). Show that φ is a bijection.

13. Show that the function γ : A × BC × D defined by

images

is a bijection if both φ : AC and ψ : BD are bijections.

14. Define γ : A × (B × C) → (A × B) × C by

images

Prove γ is a bijection.

15. Demonstrate that the inverse of a bijection is a bijection.

16. Prove that the empty set is a bijection with domain and range equal to ∅.

17. Let AR and define φ : RRAR by φ(f) = f images A. Is φ always one-to-one? Is it always onto? Explain.

18. A function f : AB has a left inverse if there exists a function g : BA such that g images f = IA. Prove that a function is one-to-one if and only if it has a left inverse.

19. A function f : AB has a right inverse if there exists a function g : BA so that f images g = IB. Prove a function is onto if and only if it has a right inverse.

20. Let (A, images) be a poset. For every bijection φ : AA, φ is increasing (Exercise 4.4.32) if and only if φ−1 is increasing.

21. Show that if a real-valued function is increasing, it is one-to-one.

22. Prove or show false this modification of Theorem 4.5.23: If φ : AB and ψ : CD are bijections with ran(φ) ⊆ C, then ψ images φ is a bijection.

23. Let A, BR be two sets ordered by ≤. Let A be well-ordered by ≤. Prove that if f : AB is an order-preserving surjection, B is well-ordered by ≤.

24. Let φ : AB be an isomorphism preserving R with R′. Let CA and DB. Prove the following.

(a) (C, R ∩ [C × C]) ≅ (φ[C], R′ ∩ [φ [C] × φ [C]])

(b) (D, R′ ∩ [D × D]) ≅ (φ−1 [D], R ∩ [φ−1 [D] × φ−1 [D]])

25. Prove Theorem 4.5.27.

26. Define f : RR by f(x) = 2x + 1. Prove that f is an order isomorphism preserving < with <.

27. Suppose that (A, R) and (B, S) are posets. Let φ : AB be an order isomorphism preserving R with S and CA. Prove that if m is the least element of C with respect to R, then φ(m) is the least element of φ[C] with respect to S.

28. Find linear orders (A, images) and (B, images′) such that each is isomorphic to a subset of the other but (A, images) is not isomorphic to (B, images′).

29. Let (A, images) be a poset. Prove that there exists BP(A) such that (A, images) ≅ (B, ⊆).

4.6 IMAGES AND INVERSE IMAGES

So far we have focused on the image of single element in the domain of a function. Sometimes we will need to examine a set of images.

images DEFINITION 4.6.1

Let φ : AB be a function and CA. The image of C (under φ) is

images

Notice that φ [C] ⊆ B (Figure 4.17) and φ [A] = ran(φ).

A similar definition can be made with subsets of the codomain.

images DEFINITION 4.6.2

Let φ : AB be a function and DB. The inverse image of D (under φ) is

images

images

Figure 4.17 The image of C under φ.

images

Figure 4.18 The inverse image of D under φ.

Observe that φ−1 [D] ⊆ A (Figure 4.18) and φ−1 [ran(φ)] = A.

images EXAMPLE 4.6.3

Let f = {(1, 2), (2, 4), (3, 5), (4, 5)}. This set is a function. Its domain is {1, 2, 3, 4}, and its range is {2, 4, 5}. Then,

images

and

images

images EXAMPLE 4.6.4

Define f : RR by f(x) = x2 + 1.

  • To prove f [(1, 2)] = (2, 5), we show both inclusions. Let yf [(1, 2)]. Then, y = x2 + 1 for some x ∈ (1, 2). By a little algebra, we see that 2 < x2 + 1 < 5. Hence, y ∈ (2, 5). Conversely, let y ∈ (2, 5). Because

    images

    images

    Figure 4.19 The image and inverse image of a set under f.

    images ∈ (1, 2). Furthermore,

    images

    Therefore, yf [(1, 2)]. This is illustrated in Figure 4.19(a).

  • Simply because f[(1, 2)] = (2, 5), we cannot conclude f−1[(2, 5)] equals (1, 2). Instead, f−1 [(2, 5)] = (−2, −1) ∪ (1, 2), as seen in Figure 4.19(b), because

    images

  • To show that f−1[(−2, −1)] is empty, take xf−1 [(−2, −1)]. This means that −2 < f(x) < −1, but this is impossible because f(x) is positive.

Let f = {(1, 3), (2, 3), (3, 4), (4, 5)}. This is a function {1, 2, 3, 4} → {3, 4, 5}. Notice that

images

and

images

This result concerning the interaction of images and inverse images with union and intersection is generalized in the next theorem.

images THEOREM 4.6.5

Let φ : AB be a function with C, DA and E, FB.

  • φ [CD] = φ [C] ∪ φ [D].
  • φ [CD] ⊆ φ [C] ∩ φ [D].
  • φ−1 [EF] = φ−1 [E] ∪ φ−1 [F].
  • φ−1 [EF] = φ−1 [E] ∩ φ−1 [F].

PROOF

We prove the first and third parts, leaving the others for Exercise 7. By Exercise 3.2.8(d),

images

In addition,

images

It might seem surprising that we only have an inclusion in the second part of Theorem 4.6.5. To see that the other inclusion is false, let f = {(1, 3), (2, 3)}. Then,

images

but

images

Hence, f [{1}] ∩ f [{2}] images f [{1} ∩ {2}]. However, if f had been a bijection, the inclusion would hold (Exercise 13).

images EXAMPLE 4.6.6

Let f(x) = x2 + 1. We check the union results of Theorem 4.6.5.

  • We have already seen in Example 4.6.4 that f[(1, 2)] = (2, 5). Since (1, 2) = (1, 1.5] ∪ [1.5, 2), apply f to both of these intervals and find that

    images

    Therefore, f [(1, 2)] = f[(1, 1.5]] ∪ f[[1.5, 2)].

  • Also, from Example 4.6.4, f−1[(2, 5)] = (−2, −1) ∪ (1, 2). We can write (2, 5) as the union of (2, 4) and (3, 5). Since

    images

    we have that

    images

Theorem 4.6.5 can be modified to arbitrary unions and intersections. The proof is left to Excercise 17.

images THEOREM 4.6.7

Let {Ai : iI} be a family of sets.

images

We know that the composition of a function and its inverse equals the identity map (Theorem 4.5.3). The last two results of the section show a similar result involving the image and inverse image using functions that are either one-to-one or onto.

images THEOREM 4.6.8

Let φ : AB be a function. Suppose CA and DB.

  • If φ is one-to-one, then φ−1[φ[C]] = C.
  • If φ is onto, then φ[φ−1[D]] = D.

PROOF

We prove the first part and leave the second to Exercise 8. Suppose that φ is an injection. We show that φ−1 [φ[C]] = C.

  • Let xφ−1[φ[C]]. This means that there exists yφ[C] such that φ(x) = y. Furthermore, there is a zC so that φ(z) = y. Therefore, since φ is one-to-one, x = z, which means that xC.
  • This step will work for any function. Take xC, so φ(x) ∈ φ[C]. By definition,

    images

    Since x is also an element of A, we conclude that xφ−1 [φ[C]]. images

Because we used the one-to-one condition only to prove φ−1[φ[C]] ⊆ C, we suspect that this inclusion is false if the function is not one-to-one. To see this, let f : RR be defined as f(x) = x2. We know that f is not one-to-one. Choose C = {1}. Then,

images

Therefore, f−1[f[C]] images C.

When examining the example, we might conjecture that the function being one-to-one is necessary for equality. That this is the case is the following theorem.

images THEOREM 4.6.9

Let φ : AB be a function.

  • If φ−1 [φ[C]] = C for all CA, then φ is one-to-one.
  • If φ [φ−1[D]] = D for all DB, then φ is onto.

PROOF

As with the previous theorem, we prove only the first part. The second part is Exercise 8. Assume

images

Take x1, x2A and let φ(x1) = φ(x2). Now,

images

Because φ(x1) = φ(x2), we have that {x1, x2} ⊆ {zA : φ(z) = φ(x1)}, so we must have x1 = x2. images

Exercises

1. Let f : RR be defined by f(x) = 2x + 1. Find the images and inverse images.

(a) f [(1, 3]]

(b) f [(−∞, 0)]

(c) f−1[(−1, 1)]

(d) f −1[(0, 2) ∪ (5, 8)]

2. Let g : RR be the function g(x) = x4 − 1. Find the images and inverse images.

(a) g[{0}]

(b) g[Z]

(c) g−1[{0, 15}]

(d) g−1[[−9, −5] ∪ [0, 5]]

3. Define φ : R × RZ by φ(a, b) = imagesaimages + imagesbimages. Find the images and inverse images.

(a) φ[{0} × R]

(b) φ[(0, 1) × (0, 1)]

(c) φ−1[{2, 4}]

(d) φ−1[N]

4. Let ψ : ZZ be a function and define γ : P(Z) → P(Z) by γ (C) = ψ[C].

(a) Prove that γ is well-defined.

(b) Let ψ(n) = 2n. Find γ[{1, 2, 3}], γ[Z], γ−1[{1, 2, 3}], and γ−1[Z].

(c) Under what conditions is γ one-to-one?

(d) Under what conditions is γ onto?

5. For any function ψ, show that ψ[∅] = ∅ and ψ−1[∅] = ∅.

6. Prove for every BA, IA[B] = B and (IA)−1 [B] = B.

7. Prove the remaining parts of Theorem 4.6.5.

8. Prove the unproven parts of Theorems 4.6.8 and 4.6.9.

9. Let φ : AB be an injection and CA.

(a) Prove φ(x) ∈ φ[C] if and only if xC.

(b) Show that Exercise 9(a) is false if the function is not one-to-one.

10. If ψ is a function, AB ⊆ dom(ψ), and CD ⊆ ran(ψ), show that both ψ[A] ⊆ ψ[B] and ψ−1[C] ⊆ ψ−1[D].

11. Let φ : AB be a function and take disjoint sets U and V.

(a) Prove false: If U, VA then φ[U] ∩ φ[V] = ∅.

(b) Prove false: If U, VB, then φ−1 [U] ∩ φ−1 [V] = ∅.

(c) What additional assumption is needed to prove both of the implications?

12. Assume that φ and ψ are functions such that ran(ψ) ⊆ dom(φ). Let A be a subset of dom(ψ). Prove or show false with a counterexample: (φ images ψ)[A] = φ[ψ[A]].

13. Let φ : AB be one-to-one. Prove the following.

(a) φ[A] ∩ φ[B] ⊆ φ[AB].

(b) If CA and DB, then φ[C] = D if and only if φ−1[D] = C.

14. Prove that if φ : AB is a bijection and CA, then φ[A C] = B φ[C].

15. Find a function φ : AB and a set DB such that D images φ[φ−1[D]].

16. Let ψ be an injection with A ⊆ dom(ψ) and B ⊆ ran(ψ). Prove that

images

17. Prove Theorem 4.6.7.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset