Exam 1 Answer
Exam 1 Answer
Exam 1 Answer
Math 2513
9-17-04
NOTE: Many of the problems on this test can be solved in more than one way.
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}.
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.
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
(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
and this shows that h is surjective. Therefore h is both injective and surjective, which means that it is a
bijection.