![]() |
Functions are an important part of discrete mathematics. This article is all about functions, their types, and other details of functions. A function assigns exactly one element of a set to each element of the other set. Functions are the rules that assign one input to one output. The function can be represented as f: A ⇢ B. A is called the domain of the function and B is called the codomain function. Table of Content
What is Function?
Pre-Image and Image of a FunctionA function f: A ⇢ B such that for each a ∈ A, there exists a unique b ∈ B such that (a, b) ∈ R then, a is called the pre-image of f and b is called the image of f. Domain of a Function
Codomain (Range) of a Function
Read More about Domain and Range of Function. Types of FunctionSome of the common types of functions are:
Let’s discuss these in detail. One-One Function ( or Injective Function):A function in which one element of the domain is connected to one element of the codomain. A function f: A ⇢ B is said to be a one-one (injective) function if different elements of A have different images in B. f: A ⇢ B is one-one ⇒ a ≠ b ⇒ f(a) ≠ f(b) for all a, b ∈ A ⇒ f(a) = f(b) ⇒ a = b for all a, b ∈ A ![]() ONE-ONE FUNCTION Many-One FunctionA function f: A ⇢ B is said to be a many-one function if two or more elements of set A have the same image in B. A function f: A ⇢ B is a many-one function if it is not a one-one function. f: A ⇢ B is many-one. ⇒ a ≠ b but f(a) = f(b) for all a, b ∈ A ![]() MANY-ONE FUNCTION Onto Function( or Surjective Function)A function f: A ⇢ B is said to be onto (surjective) function if every element of B is an image of some element of A i.e. f(A) = B or range of f is the codomain of f. A function in which every element of the codomain has one pre-image. f: A ⇢ B is onto if for each b∈ B, there exists a∈ A such that f(a) = b. ![]() ONTO FUNCTION Into FunctionA function f: A ⇢ B is said to be an into a function if there exists an element in B with no pre-image in A. A function f: A⇢ B is into function when it is not onto. ![]() INTO FUNCTION One-One Correspondent Function (or Bijective Function or One-One Onto Function)A function which is both one-one and onto (both injective and surjective) is called one-one correspondent(bijective) function. f : A ⇢ B is one-one correspondent (bijective) if:
![]() ONE-ONE CORRESPONDENT FUNCTION One-One Into FunctionA function that is both one-one and into is called one-one into function. ![]() ONE-ONE INTO FUNCTION Many-One Onto FunctionA function that is both many-one and onto is called many-one onto function. ![]() MANY-ONE ONTO FUNCTION Many-One Into FunctionA function that is both many-one and into is called many-one into function. ![]() MANY-ONE INTO FUNCTION Inverse of a FunctionLet f: A ⇢ B be a bijection then, a function g: B ⇢ A which associates each element b ∈ B to a different element a ∈ A such that f(a) = b is called the inverse of f.
Read More about Inverse Function. Composition of FunctionsLet f: A ⇢ B and g: B ⇢ C be two functions then, a function gof: A ⇢ C is defined by
Here, (gof)(x) is called the composition of f and g. Read More about Composition of Function. Summary: Functions in Discrete MathematicsLet X and Y be two sets with m and n elements and a function is defined as f : X⇢Y then,
For the composition of functions f and g be two functions :
Sample Questions on Functions in Discrete MathematicsQuestion 1: Show that the function f : R ⇢ R, given by f(x) = 2x, is one-one and onto. Solution:
Question 2: Let f : R ⇢ R ; f(x) = cos x and g : R ⇢ R ; g(x) = x3 . Find fog and gof. Solution:
Question 3: If f : Q ⇢ Q is given by f(x) = x2 , then find f-1(16). Solution:
Question 4: If f : R ⇢ R; f(x) = 2x + 7 is a bijective function then, find the inverse of f. Solution:
Question 5: If f : A ⇢ B and |A| = 5 and |B| = 3 then find total number of functions. Solution:
FAQs on Functions in Discrete MathematicsWhat is a function in discrete mathematics?
How is a function represented in mathematics?
What is the difference between a function and a relation?
What are the different types of functions?There are several types of functions, including:
How do you determine if a function is injective, surjective, or bijective?
|
Reffered: https://www.geeksforgeeks.org
Engineering Mathematics |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 14 |