Solutions To Homework Set #6
Solutions To Homework Set #6
Section 2.3
2. Determine whether f is a function from Z to R if
(a) f (n) = ±n.
This is not a function because the rule is not well-defined. We do not know whether f (n) = n or f (n) = −n.
For a function, it cannot be both at the same time.
p
(b) f (n) = (n2 + 1).
p
This is a function. For all integers n, (n2 + 1) is a well-defined real number.
1
(c) f (n) = 2 .
n −4
This is not a function with domain Z, since for n = 2 and n = −2 the value of f (n) is not defined by the
given rule. In other words, f (2) and f (−2) are not specified since division by 0 makes no sense.
5. See textbook.
15. Determine whether the function f : Z × Z → Z is onto if
(a) f (m, n) = m + n.
Onto.
(b) f (m, n) = m2 + n2 .
Not onto.
(c) f (m, n) = m.
Onto.
(d) f (m, n) = |n|.
Not onto.
(e) f (m, n) = m − n.
Onto.
19. Determine whether each of these functions is a bijection from R to R.
(a) f (x) = 2x + 1.
Yes.
(b) f (x) = x2 + 1.
No.
(c) f (x) = x3 .
Yes.
x2 + 1
(d) 2 .
x +2
No.
38. Let f be the function from R to R defined by f (x) = x2 . Find
(a) f −1 ({1}).
{1, −1}
(b) f −1 ({x|0 < x < 1}).
{x| − 1 < x < 0 ∨ 0 < x < 1}
(c) f −1 ({x|x > 4}).
{x|x > 2 ∨ x < −2}
1
73. For each of these partial functions, determine its domain, codomain, domain of definition, and the set of values
for which it is undefined. Also, determine whether is is a total function.
1
(a). f : Z → R, f (n) = .
n
Domain is Z; codomain is R; domain of definition is the set of nonzero integers; the set of values for which
f is undefined is {0}; not a total function.
m
(c). f : Z × Z → Q, f (m, n) = .
n
Domain is Z × Z; codomain is Q; domain of definition is Z × (Z − {0}); set of values for which f is
undefined is {0}; not a total function.