Exam 1 Answer

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

EXAM 1—Solutions

Math 2513
9-17-04
NOTE: Many of the problems on this test can be solved in more than one way.

1. Consider the set identity A − B ⊆ A.


(a) Write down complete statements of the two definitions which play central roles in this identity.
(b) Prove the identity.
(a) The two relevant definitions are ”set difference” and ”subset”. Let A and B be sets. The set difference
A − B is defined to be the set {x | x ∈ A and x ∈ / B}. To say that A is a subset of B means that whenever
x ∈ A then x ∈ B.
(b) Let A and B be sets. Suppose that x ∈ A − B. By the definition of set difference this means that x ∈ A
and x ∈
/ B. In particular, x ∈ A. So we have shown that each element x in A − B is also an element of A which
means that A − B ⊆ A. 

2. In one or two sentences describe the standard general strategy which you would use to prove
that two given sets are equal.
To prove that two sets are equal the standard strategy is to show that each is a subset of the other. So, if the
sets to be shown equal are A and B then the proof breaks into two steps (Step 1) A ⊆ B and (Step 2) B ⊆ A.

3. Let f : Z → Z be the function described by the rule f (n) = n2 + 1. (a) What are the do-
main, codomain and range of this function f ? (b) Show (by example) that f is not injective. (c)
Determine f (S) if S = {−1, 0, 1, 2, 3}.
(a) domain(f ) = Z, codomain(f ) = Z, range(f ) = {n2 + 1 | n ∈ Z} = {1, 2, 5, 10, 17, 26, 37, . . . } (Note that
the range of f is a proper subset of Z+ .)
(b) f (3) = 32 + 1 = 10 and f (−3) = (−3)2 + 1 = 10. So f (3) = f (−3) but 3 6= −3, and this shows that f is
not injective.
(c) f ({−1, 0, 1, 2, 3}) = {1, 2, 5, 10}.

4. Let A and B be sets such that A ⊆ B . Show that A ∪ B ⊆ B .


Let A and B be sets such that A ⊆ B. Suppose that x ∈ A ∪ B. By the definition of union, (i) x ∈ A or (ii)
x ∈ B. If (i) holds then x ∈ B using the hypothesis that A ⊆ B and the definition of subset. So in either case
(i) or (ii) we can conclude that x ∈ B. Thus x ∈ A ∪ B implies that x ∈ B, and this shows that A ∪ B ⊆ B by
the definition of subset. 

5. Let A and B be two non-empty sets. (a) Describe the Cartesian product A × B . (b) Let
P : A × B → B be the function which maps (a, b) to b. Show that P is onto.

(a) A × B = {(a, b) | a ∈ A and b ∈ B}.


(b) Let A and B be nonempty sets and let P : A × B → B be the function defined by P (a, b) = b for each
ordered pair (a, b) in A × B. Suppose that b ∈ B. Since A is non-empty there is an element a0 ∈ A. Then
(a0 , b) ∈ A × B and P (a0 , b) = b. This shows that b is in the range of P , and P is onto. 

6. Let f and g be functions from R to R given by f (x) = 3x − 2 and g(x) = ax + b where a and b are
constants. (a) Determine an equation for g ◦ f (x) (b) Find values for a and b such that g ◦ f (x) = x
for every x ∈ R. Then determine f ◦ g(x) when these values of a and b are used.
(a) g ◦ f (x) = g(f (x)) = g(3x − 2) = a(3x − 2) + b = 3ax − 2a + b
(b) If g ◦ f (x) = x for all x ∈ R then 3ax − 2a + b = 1x + 0 and we must have 3a = 1 and −2a + b = 0. Solving
for a and b yields a = 1/3 and b = 2a = 2/3. (Another approach is to plug in two values for x and solve the
resulting equations: If we choose x = 0 and x = 1 then we get equations −2a + b = 0 and a + b = 1, which
yields a = 1/3 and b = 2a = 2/3.) With this choice of a and b we have

f ◦ g(x) = f (g(x)) = f (x/3 + 2/3) = 3(x/3 + 2/3) − 2 = x.

(NOTE: The function g with g(x) = x/3 + 2/3 is the inverse function of f .)

7. Explain why the function h : {a, b, c, d} → {1, 2, 3, 4} defined by h(a) = 2, h(b) = 4, h(c) = 3, and
h(d) = 1 is a bijection.

We note that a is the only element in the domain of h with h(a) = 2, b is the only element in domain(h)
with h(b) = 4, c is the only element in domain(h) with h(c) = 3, and d is the only element in domain(h) with
h(d) = 1. Since a, b, c and d are all of the elements of domain(h), no two distinct elements in domain(h) get
mapped to the same element of {1, 2, 3, 4}, and this shows that h is injective. Observe that

range(h) = h({a, b, c, d}) = {2, 4, 3, 1} = codomain(h)

and this shows that h is surjective. Therefore h is both injective and surjective, which means that it is a
bijection. 

8. Let A, B and C be sets. Prove that A ∪ (B ∩ C) ⊆ (A ∪ B) ∩ (A ∪ C).


Let A, B and C be sets. Suppose that x ∈ A ∪ (B ∩ C). Then x ∈ A or x ∈ B ∩ C by the definition of union. By
the definition of intersection, x ∈ A, or, x ∈ B and x ∈ C. In either case we can see that x ∈ A or x ∈ B, and
x ∈ A or x ∈ C. It follows that x ∈ A ∪ B and x ∈ A ∪ C (definition of union), and that x ∈ (A ∪ B) ∩ (A ∪ C)
(definition of intersection). This shows that if x ∈ A ∪ (B ∩ C) then x ∈ (A ∪ B) ∩ (A ∪ C) which means that
A ∪ (B ∩ C) ⊆ (A ∪ B) ∩ (A ∪ C) (definition of subset). 

You might also like