Types of Functions

One to one Function: A function f : X → Y is defined to be one-one (or injective), if the images of distinct elements of X under f are distinct,

i.e., for every x1 , x2 ∈ X, f(x1 ) = f(x2 ) implies x1 = x2 . Otherwise, f is called many-one.

One-one function
many-one function

Examples

Examples of one-one / injective Function

  • The identity function X → X is always one-one.
  • If function f: R→ R, then f(x) = 2x is one-one.
  • If function f: R→ R, then f(x) = 2x+1 is one-one.
  • If function f: R→ R, then f(x) = x2 is not an injective function, because here

if x = -1, then f(-1) = 1 = f(1). Hence, the element of co-domain is not discrete here.

  • If function f: R→ R, then f(x) = x/2 is one-one.
  • If function f: R→ R, then f(x) = x3 is one-one.
  • If function f: R→ R, then f(x) = 4x+5 is one-one.

Properties of One-One Function

  • If f and g are both one to one, then f ∘ g follows one-one.
  • If g ∘ f is one to one, then function f is one to one, but function g may not be.
  • f: X → Y is one-one, if and only if, given any functions g, h : P → X whenever f ∘ g = f ∘ h, then g = h..
  • If f: X → Y is one-one and P is a subset of X, then f-1 (f(A)) = P. Thus, P can be retrieved from its image f(P).
  • If f: X → Y is one-one and P and Q are both subsets of X, then f(P ∩ Q) = f(P) ∩ f(Q).
  • If both X and Y are limited with the same number of elements, then f: X → Y is one-one, if and only if f is surjective or onto function.

Example :

Show that f: R→ R defined as f(a) = 3x3 – 4 is one to one function?

Solution:

Let f ( x1 ) = f ( x2 ) for all a1 , a∈ R

  •  3x13 – 4 = 3x23 – 4
  • x13 = x23 
  • x13 – x23 = 0
  • (x1 – x2) (x1 + x1x2 + x22) = 0
  • x1 = x2 and (x12 + x1x2 + x22) = 0 
  • (x12 + x1x2 + x22) = 0 is not considered because there are no real values of x1 and x2.

Therefore,  the given function f is one-one.

  1. Onto Function: A function f: X → Y is said to be onto (or surjective), if every element of Y is the image of some element of X under f,(Codomain=Range)

i.e., for every y ∈ Y, there exists an element x in X such that f(x) = y.