Lecture-09
Lecture-09
Lecture-09
Function
Topics
● Function Definition
● Domain and Range
● One-to-one and Onto Functions
● One-to-one Correspondence
● Cardinality of Sets
● Countable and Uncountable Sets
Function Definition
Let A and B be nonempty sets. A function f from A to B is an assignment of
exactly one element of B to each element of A. We write f(a) = b if b is the
unique element of B assigned by the function f to the element a of A. If f is a
function from A to B, we write f : A → B.
Abir A
Chanda B
Gopal C
Rihan D
Shyamoli F
f
a b=f(a)
A B
f
EXAMPLE: Let f1 and f2 be functions from R to R such that f1(x) = x2 and f2(x) = x −
x2. What are the functions f1 + f2 and f1 f2?
SOLUTION: From the definition of the sum and product of functions, it follows that
SOLUTION: The function f(x) = x2 is not one-to-one because, for instance, f(1) =
f(−1) = 1, but 1 ≠ −1.
EXAMPLE: Determine whether the function f(x) = x + 1 from the set of real
numbers to itself is one-to-one.
SOLUTION: Suppose that x and y are real numbers with f(x) = f(y), so,
f(x) = f(y)
→x+1=y+1
→ x = y.
Hence, f(x) = x + 1 is a one-to-one function from R to R.
Definition
A function f whose domain and codomain are subsets of the set of real
numbers is called increasing if f(x) ≤ f(y), and strictly increasing if
f(x) < f(y), whenever x < y and x and y are in the domain of f. Similarly, f is
called decreasing if f(x) ≥ f(y), and strictly decreasing if f(x) > f(y),
whenever x < y and x and y are in the domain of f. (The word strictly in this
definition indicates a strict inequality.)
Examples
EXAMPLE: Is the function f(x) = x2 from the set of integers to the set of
integers onto?
SOLUTION: The function f is not onto because there is no integer x with
x2 = −1, for instance.
One-to-one Correspondence
The function f is a one-to-one correspondence, or a bijection, if it is both
one-to-one and onto. We also say that such a function is bijective.
SOLUTION: To show that the set of odd positive integers is countable, we will
exhibit a one-to-one correspondence between this set and the set of positive
integers. Consider the function f(n) = 2n−1 , from Z+ to the set of odd positive
integers.