Problem 8RQ

a) Define the domain, codomain, and range of a function.

b) Let f(n) be the function from the set of integers to the set of integers such that f(n) = n2 + 1. What are the domain, codomain, and range of this function?

Solution:

Step1

To find

a) Define the domain, codomain, and range of a function.

b) Let f(n) be the function from the set of integers to the set of integers such that f(n) = n2 + 1. What are the domain, codomain, and range of this function?

Step2

a. The domain and codomain

A function f: ST, the set S is the domain of function f, the set T is the codomain of function f.

Range:- The range of function f is the set of all values assumed by f for all possible u; this is the set The range of function f can be the similar set as the codomain or it can be a proper subset of it.

Step3

b. We have

For the given function

Domain=Set of integer (I)

Codomain=Set of integer(I)

Range=