Skip to main content

Exercises Exercises

1.

(a)

Find a function f:R→R such that each element in the codomain has exactly one preimage.

(b)

Find a function f:R→R such that each element in the codomain has at least two preimages.

(c)

Find a function f:R→R such that each element has exactly two preimages.

(d)

Find a function f:R→R such that there is an element in the codomain that has exactly three preimages and another element in the codomain that as exactly two preminages.

(e)

Find a function f:R→R such that there is an element in the codomain that has infinitely many preimages.

2.

For each of the following functions, determine if the function is an injection, a surjection, a bijection, or none of these. Remember to be careful about the domain and range in each case. Justify all of your conclusions.

(c)

f:(Rβˆ–{4})β†’R defined by f(x)=3xxβˆ’4, for all x∈(Rβˆ–{4})

(d)

g:(Rβˆ–{4})β†’(Rβˆ–{3}) defined by g(x)=3xxβˆ’4, for all x∈(Rβˆ–{4})

(e)

h:Rβ†’Rβ‰₯0 defined by h(x)=x2 for every x∈R, where Rβ‰₯0={x∈R∣xβ‰₯0}

(f)

k:Rβ‰₯0β†’Rβ‰₯0 defined by k(x)=x2 for every x∈Rβ‰₯0

3.

Let A={1,2,3,4,5,6,7,8,9,10} and let B={a,b,c,d,e,g}, and define f:Aβ†’B as given in Table 2.13.
Table 2.13. A function from A to B
x 1 2 3 4 5 6 7 8 9 10
f(x) c d a g a c e d c a

(b)

Find a largest subset C of A (largest in the number of elements of C) such that f|C is an injection.

(d)

Find subsets X of A and Y of B such that f|X:X→Y is a bijection.

4.

Let A and B be sets, both of which have at least two distinct members.

(a)

Illustrate a subset XβŠ‚AΓ—B that is the Cartesian product of a subset of A with a subset of B.

(b)

Show that there is a subset WβŠ‚AΓ—B that is not the Cartesian product of a subset of A with a subset of B. [Thus, not every subset of a Cartesian product is the Cartesian product of a pair of subsets.]

5.

The cardinality of a finite set is defined to be the number of elements of that set. We denote the cardinality of a set A as |A|. Let A and B be sets with |A|=n and |B|=m for some positive integers m and n. Prove that there is a bijection f:A→B if and only if n=m.

6.

Let X and Y be sets and let f:X→Y be a function.

(a)

Let A be a subset of X. Show that AβŠ†fβˆ’1(f(A)). Make an example to show that in general, Aβ‰ fβˆ’1(f(A)).
Hint.
To show that the sets are not equal, consider sets X and Y with two elements.

(b)

Let B be a subset of Y. Show that f(fβˆ’1(B))βŠ†B. Make an example to show that in general, f(fβˆ’1(B))β‰ B.
Hint.
To show that the sets are not equal, consider sets X and Y with two elements.

(c)

Prove that f is a surjection if and only if f(fβˆ’1(B))=B for every subset B of Y.

(d)

Prove that f is an injection if and only if fβˆ’1(f(A))=A for every subset A of X.

7.

Let f:X→Y be a function and let {Aα} be a collection of subsets of X for α in some indexing set I, and {Bβ} be a collection of subsets of Y for β in some indexing set J. Prove or disprove each of the following. If a statement is not true, is either containment true? Prove your answers.

(b)

fβˆ’1(β‹‚Ξ²βˆˆJBΞ²)=β‹‚Ξ²βˆˆJfβˆ’1(BΞ²)

9.

Let R, S, and T be sets, and let g:Rβ†’S and h:Sβ†’T be functions. Let O be a subset of T. Show that (h∘g)βˆ’1(O)=gβˆ’1(hβˆ’1(O).

10.

Let X1 and X2 be nonempty sets, and let X=X1Γ—X2. Define Ο€i:Xβ†’Xi by Ο€i(x)=xi, where x=(x1,x2). We call Ο€i the projection of X onto Xi. Let Y1 and Y2 be nonempty sets, and let Y=Y1Γ—Y2. Assume that for each i there is a function fi:Xiβ†’Yi. For example, let Xi={i,i+1} and Yi={βˆ’i,βˆ’iβˆ’1}. We could then define fi by fi(x)=βˆ’x for i either 1 or 2.

(b)

Prove that there is a unique function f:Xβ†’Y such that Ο€i∘f=fiβˆ˜Ο€i for each i. (Note that one of the Ο€i maps X to Xi and the other maps Y to Yi.)

(c)

The function f from part (b) is denoted as f=f1×f2. Let Z1 and Z2 be two nonempty sets, and let Z=Z1×Z2. Assume that there are functions gi:Yi→Zi for each i. Show that
(g1Γ—g2)∘(f1Γ—f2)=(g1∘f1)Γ—(g2∘f2).

(d)

Suppose that each fi has an inverse hi. Show that (f1Γ—f2)βˆ’1=h1Γ—h1.

11.

Let N be the set of positive integers. Define f:Nβ†’Z as follows: For each n∈N, let
f(n)=1+(βˆ’1)n(2nβˆ’1)4.
Is the function f an injection? Is the function f a surjection? Justify your conclusions.
Hint.
Start by calculating several outputs for the function before you attempt to write a proof. In exploring whether or not the function is an injection, it might be a good idea to use cases based on whether the inputs are even or odd. In exploring whether f is a surjection, consider using cases based on whether the output is positive or less than or equal to zero.

12.

An operation βˆ— on a set S is a function from SΓ—S to S that assigns to the pair (x,y)∈SΓ—S the element xβˆ—y in S. For example, addition of integers can be defined as a function f:ZΓ—Zβ†’Z that maps the pair (a,b)∈ZΓ—Z to the integer f(a,b)=a+b.

13.

Let A, B, and C be sets and let f:A→B and g:B→C be functions.

(a)

Is it true that if g∘f is an injection, then both f and g are injections? If the answer is no, are there any conditions that f or g must satisfy if g∘f an injection? Prove your answers.

(b)

Is it true that if g∘f is a surjection, then both f and g are surjections? If the answer is no, are there any conditions that f or g must satisfy if f∘g a surjection? Prove your answers.

15.

(a)

Define f:Z5β†’Z5 by f([x])=[x2+4] for all [x]∈Z5. Write the inverse of f as a set of ordered pairs, and explain why fβˆ’1 is not a function.

(b)

Define g:Z5β†’Z5 by g([x])=[x3+4] for all [x]∈Z5. Write the inverse of g as a set of ordered pairs, and explain why gβˆ’1 is a function.

(c)

Is it possible to write a formula for gβˆ’1([y]), where [y]∈Z5? The answer to this question depends on whether or not it is possible to define a cube root of elements of Z5. Recall that for a real number x, we define the cube root of x to be the real number y such that y3=x. That is, y=x3 if and only if y3=x. Using this idea, is it possible to define the cube root of each element of Z5? If so, what is [0]3, [1]3, [2]3, [3]3, and [4]3.

(d)

Now answer the question posed at the beginning of part (c). If possible, determine a formula for gβˆ’1([y]) where gβˆ’1:Z5β†’Z5.

16.

Let A be the set of all functions f:[a,b]β†’R that are continuous on [a,b] (use your memory of continuous functions from calculus for this problem). Let B be the subset of A consisting of all functions possessing a continuous derivative on [a,b]. Let C be the subset of B consisting of all functions whose value at a is 0.

(a)

(i)
Give an example of a function that is in A and not in B with [a,b]=[βˆ’1,1].
(ii)
Give an example of a function that is in B but not in C with [a,b]=[βˆ’1,1].
(iii)
Give an example of a function that is in C with [a,b]=[βˆ’1,1].

17.

For each of the following, answer true if the statement is always true. If the statement is only sometimes true or never true, answer false and provide a concrete example to illustrate that the statement is false. If a statement is true, explain why.

(e)

If A1 and A2 are subsets of X with A1βŠ†A2, then f(A1)βŠ†f(A2).

(f)

If B1 and B2 are subsets of Y with B1βŠ†B2, then fβˆ’1(B1)βŠ†fβˆ’1(B2).

(g)

If B1 and B2 are subsets of Y with B1βŠ†B2, then fβˆ’1(B2)βŠ†fβˆ’1(B1).

(h)

If A1 and A2 are subsets of X, then f(A1βˆͺA2)=f(A1)βˆͺf(A2).

(i)

If B1 and B2 are subsets of Y, then fβˆ’1(B1βˆͺB2)=fβˆ’1(B1)βˆͺfβˆ’1(B2).

(j)

If A1 and A2 are subsets of X, then f(A1∩A2)=f(A1)∩f(A2).

(k)

If B1 and B2 are subsets of Y, then fβˆ’1(B1∩B2)=fβˆ’1(B1)∩fβˆ’1(B2).

(l)

If A1 and A2 are subsets of X, then f(A1βˆ–A2)=f(A1)βˆ–f(A2).

(m)

If B1 and B2 are subsets of Y, then fβˆ’1(B1βˆ–B2)=fβˆ’1(B1)βˆ–fβˆ’1(B2).