Functions
Functions
Function:
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.
If is a function from A to B, we write
f:A→B
f(a) = b
Solution:
Let n1 = 2 and n2 =−2.
g(n1) = g(2) = 4
g(n2) = g(−2) = 4.
Hence g(n1) = g(n2) but n1≠n2,
If the function f : R → R is defined by the rule
f(x)=4x−1, for all real numbers x, then is f
one-to-one?
Solution:
Suppose x and y are real numbers such that
f(x)=f(y). [We must show that x = y.]
By definition of f , 4 x − 1 = 4 y − 1.
4x=4y
x=y
Increasing and Decreasing function:
A function f whose domain and codomain is a
subset 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.
Surjective Function:
A function f from A to B is called onto, or surjective,
if and only if for every element b ∈ B there is an
element a ∈ A with f(a) = b.
Is the function f(x) = x2 from the set of
integers to the set of integers onto?
Solution:
The function f is not onto.
(Example : there is no integer x with x2
=−1)
Inverse Function:
Let f be a one-to-one correspondence from the
set A to the set B. The inverse function of f is the
function that assigns to an element b belonging
to B the unique element a in A such that f(a) = b.
The inverse function of f is denoted by f -1. Hence,
f -1(b) = a when f(a) = b.
Let f : Z → Z be such that f(x) = x + 1. Is f
invertible, and if it is, what is its inverse?
Solution:
The function f has an inverse because it is a
one-to-one correspondence
f -1 (y) = y − 1.
Solution:
(f ◦ g)(x) = f(g(x)) = f(3x + 2) = 2(3x + 2) + 3 =
6x + 7
(g ◦ f )(x) = g(f(x)) = g(2x + 3) = 3(2x + 3) + 2
= 6x + 11.
Solution:
1 1
Let x and y
2 2
1 1
2 2 1 1
1 1
2 2 2
Therefore, x y x y