Relations-Domain, Range and Co-Domain
Relations-Domain, Range and Co-Domain
AND CO-DOMAIN
A well
defined
collection
of objects
FUNCTIONS
Section 2.3
Domain, Range and Codomain
function f from A to B.
f (a) = b,
where (a, b) is the unique ordered pair in the relation that has a as its first element.
FUNCTION
• What are the domain, codomain, and range of the function that assigns grades
to students?
Solution:
Let G be the function that assigns a grade to a student in our discrete mathematics class.
Note that G(Adams) = A, for instance.
The domain of G is the set {Adams, Chou, Goodfriend, Rodriguez, Stevens},
codomain is the set {A,B,C,D, F}.
The range of G is the set {A,B,C, F}, because each grade except D is assigned to some student.
EXAMPLE 2
• Let R be the relation with ordered pairs
• (Abdul, 22), (Brenda, 24), (Carla, 21), (Desire, 22), (Eddie, 24), and (Felicia, 22).
• Here each pair consists of graduate student and this student’s age.
• Specify a function determined by this relation.
• Solution:
• f (Abdul ) = 22, f (Brenda) = 24, f (Carla) = 21, f (Desire) = 22, f (Eddie) = 24, and f
(Felicia) = 22. (Here, f (x) is the age of x, where x is a student.)
• domain: set {Abdul, Brenda, Carla, Desire, Eddie, Felicia}.
• 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 + f2and f1.f2?
Equality of Functions
• If F: X → Y and G: X → Y are functions, then F = G if, and only if, F(x) =
G(x) for all x ∈ X.
• Example:
• Let J = {0, 1, 2}, and define functions f and g from J to J as follows: For all
x in J,
• f (x) = (x2 + x + 1) mod 3 and g(x) = (x + 2)2 mod 3.
• Is f = g?
Identity Function
• Let A be a set. The identity function on A is the function ιA : A → A, where
ιA(x) = x, for all x ∈ A.
• In other words, the identity function assigns each element to itself.
• Let . The identity function ιX on X is represented by the arrow diagram:
• Is it a bijection?
Constant Function
• A function is a constant function if it maps (sends) all elements of X to one
element of Y
f-1(b) = a
f-1(11) = 5
Inverse Function
Inverse Function
Inverse Function
Inverse Function
• Let f be a bijection from A to B. Then the inverse of f, denoted f -1, is the
function from B to A defined as
f-1(b) = a iff f(a) = b
• A bijection is called invertible because we can define an inverse of this
function
f(x)= f(x, y)
f-1(x)= f(y, x)
f(x)= f(x, y)
f-1(x)= f(y, x)
f [ f-1(x)= x]
f-1[ f (x)= x]
f [ f-1(x)= 4[(x+5)/4]-5=x
Composition of Function
Composition of Function